Commit graph

42 commits

Author SHA1 Message Date
gdt
5aafdaef9e Revert previous.
This warning isn't supposed to fire on macro code, so this is either
something subtly odd in pkgin or broken in OS X's clang.  This still
needs fixing, but in a way that's more limited to the problematic
platform.
2015-09-27 16:41:12 +00:00
gdt
1775bf7047 Disable -Werror to avoid build failures.
At least on OS X with clang, pkgin fails to build because of extra
parens around ==.  See https://github.com/NetBSDfr/pkgin/issues/64
for details.

This seems to be a new issue with something in the pkgsrc build
environment (bsd makefiles or compat libs), not in pkgin proper, but
pkgin's use of bsd makefiles leads to Werror.
2015-09-26 12:15:28 +00:00
jperkin
27085577b1 Update pkgin to version 0.9.3. Changes:
* Ensure we aren't copying overlapping memory regions.  Issue found by
   Matthias Ferdinand.

 * Free libarchive resources after use.

 * Various WARNS and build cleanups.

Tested on Linux (now builds on Ubuntu 12.04), OSX, SmartOS and NetBSD.
2015-08-18 19:31:29 +00:00
jperkin
b80e538302 Pick up configure version bump. Ride previous version. 2015-08-17 16:05:26 +00:00
jperkin
00d4d1af57 Update pkgin to version 0.9.2. Changes:
* Fix -Wempty-body issue, noticed by joerg.
2015-08-17 09:40:11 +00:00
jperkin
7a744f9636 Update pkgin to version 0.9.1. Changes:
* Fix off-by-one NUL handling in pkg_summary.  Problem noticed by yrmt,
    caused occasional failures on OSX.
2015-08-13 15:16:55 +00:00
jperkin
426b9716c0 Update pkgin to version 0.9.0. Changes:
* Significantly reduce RAM requirements for both "install" and "update",
    headline number is "pkgin install gcc47" on SmartOS/x86_64 reduces from
    383MB to 14MB, as well as being significantly faster, especially on
    slower hardware.  See my blog post at
    <http://www.perkin.org.uk/posts/reducing-ram-usage-in-pkgin.html> for
    more details.

  * Handle pkg_add signature verification failures.

  * Support pkg_summary.xz if available.

  * Don't switch to parsable output when stdout isn't a tty, which broke
    various automation tools.

  * Integrate patches/patch-external_progressmeter.h

Tested on NetBSD, OSX, and SmartOS.
2015-08-13 10:05:19 +00:00
rodent
65559addc2 Including <sys/termios.h> on FreeBSD throws a warning. This warning breaks
the build. Patch fixes that.
2015-03-25 02:10:01 +00:00
imil
12ee1fb684 Updated pkgin to version 0.8.0
20150308
        bugfix: added missing dash before ffu

20150128
        0.8.0
        Added preferred.conf support
        man page now based on ronn <http://rtomayko.github.io/ronn/ronn.1.html>
2015-03-08 17:57:42 +00:00
imil
a0139b05c1 Updated to pkgin 0.7.0
Changes:

20150124
        When -n is provided to pkgin ar, rm, in, fug, packages list is shown
        as one package per line so it is easier to read (feature proposed
        by gdt@ in GitHub issue #41)

20150122
        Fixed GitHub issue #33: clean database when repository removed

20150121
        Fixed some resource leakage pointed out by coverity scan

20150119
        +PRESERVE packages now correctly upgraded without pkg_add -f

20150106
        Dropped percentage printout if stdout is not a tty (patch by Havard
        Eidnes)
        Changed pkg_add -f flag with -D as suggested by Greg Troxel

20150105
        Fixed an issue with meta-packages not updating pkgdb, check for
        PKG_DBDIR mtime instead

20150102
        Avoid deepness > 1 when checking for dependency upgrades, should fix
        PR #48561

20141229
        Avoid `preserved' packages to be `autoremoved'

20141228
        Fixed GH issue #1, NULL PKG_PATH (which is wrong btw) makes pkgin
        segfault, strcmp() secured with safe_strcmp()
        Added --with-pkginstall to configure

20141223
        0.7.0
        Fixed GH issue #36, automatic flag no more set when a package is
        installed via pkg_add(1)
        Added -p (parsable) flag for 3rd party frontends
        Added statistics (patch by Youri Mouton)
        Package-names-containing-a-dot fix (patch by Yamamoto Takashi)
2015-01-25 10:09:34 +00:00
jperkin
a8b03cb4c2 Support catpage. Bump PKGREVISION. 2014-01-21 16:31:27 +00:00
wiz
1a229f0701 Allow specifying multiple input files for 'pkgin import'.
Ok imil@, will be integrated upstream
2013-10-06 08:28:47 +00:00
joerg
f7a9a45b34 Don't pass non-literal strings as format string. 2013-09-10 14:40:33 +00:00
jperkin
319c043093 Remove workaround for 'pkg_add -f' bug, now that it is fixed in pkg_install.
Bump PKGREVISION.
2013-09-02 10:38:04 +00:00
imil
cda1a83536 0.6.4
Large file systems fix by Filip Hajny
	gcc 4.7 / unused-but-set-variable fix by Makoto Fujiwara
	Moved to GitHub
2013-06-16 14:37:33 +00:00
imil
b8c8d88a3e NetBSD specific: repositories.conf is configured using OS release number. 2013-02-25 19:35:38 +00:00
imil
a915ba7d68 0.6.3.1
Do not exit with not enough space message when install size is negative
2012-12-14 22:43:45 +00:00
imil
6b82479a16 0.6.3
PR3555339@sf (stacktic)
        Avoid negative speed when a download start (stacktic)
        PR47196 fixed by stacktic
        PR47060 fixed by stacktic
        Added show-no-keep by orgrim
        Fixed PR47192 (by stacktic)
2012-12-14 09:05:48 +00:00
imil
9a2590b4d4 Forgot to bump version in configure.ac 2012-08-01 11:25:40 +00:00
imil
f192453dbc 0.6.2.2
Fixed bad size_pkg
2012-08-01 11:15:32 +00:00
imil
df166bf6ae 0.6.2.1
0.6.2 broke build for systems lacking __UNCONST
2012-07-30 18:43:51 +00:00
imil
e9ff62ba2d 20120730
Modified default behaviour for Proceed [Y/n]
        Sync wip with pkgsrc: pkgin 0.6.2

20120729
        Rewrote narrow_match() using version_check() to avoid more
        dirty repositories mistakes.

20120715
        Preparing pkginteractive integration.

20120530
        SQLite is now part of NetBSD 6.0 base, remove it from pkgin's tree.
        Dependency will be added in the package.
2012-07-30 10:43:03 +00:00
imil
529d11ce8b patch-Makefile.in now upstream 2012-05-28 20:21:47 +00:00
imil
f9ea1319c3 20120528
Added SQLite build patch from sbd@
        Added show-all-categories
        unlink() before symlink()

20120525
        Dynamically read PKG_DBDIR from pkg_admin

20120524
        Do not delete repository entries if the new one is unreachable.

20120429
        When a package is marked as TOREMOVE and TOUPGRADE because of a
        dependency breakage during upgrade, just follow the usual upgrade
        process.

20120427
        Handled "no value field" for buggy packages.

20120419
        Hopefuly fixed the "dirty repository" bug thanks to bapt

20120416
        Added show-{pkg-,}category as requested by Julian Fagir
        Added pkg-build-defs as requested by gls@

20120415
        Added pkg-content and pkg-descr
        Introduced pkg_infos.c to fetch remote informations
        Removed -D_FILE_OFFSET_BITS=64 from Makefile and added it in fsops.c

20120414
        Fire up pkgin 0.6.0
        case: cleanup in summary.c (stacktic)
        Packages list queries ordered differently for display and internals
2012-05-28 20:17:36 +00:00
sbd
5b82e37168 Omit the SQLite load extension and insure that sqlite3.o is compiled
with it's extra CPPFLAGS.  (Fixes the build on Linux.)
2012-05-20 04:14:58 +00:00
imil
8e3f3270c5 20120409
pkgin 0.5.2.3
        Fixed "upgrade too many packages" bug (thanks stacktic)
2012-04-09 08:58:19 +00:00
imil
e574d5ee3c pkgin-0.5.2.1
Handled the very rare case where CONFLICTS is placed *after* PKGNAME
	in pkg_summary(5), leading to database inconsistency.
2011-10-29 14:25:47 +00:00
imil
a1d63b0f76 pkgin-0.5.2
Various minor fixes from NetBSDfr hackathon
        Moved break_depends() at the end of impact.c to avoid inconsistencies
        Check for real filesystem size to be occuppied by upgrade
        Check for user permissions before update_db
        update_db() returns a status so we can warn simple users
        introduced have_enough_rights(), fixed pkg_keep() perms
        Various return codes fixed to satisfy frontends
2011-10-24 10:00:45 +00:00
imil
b495cd3b95 pkgin-0.5.1
. Don't download packages when repository is a file:// scheme
        . Reduce verbosity when marking non-autoremovable packages
        . Keep going if unmet requirements are encountered and warn about
          it before proceeding
        . Always move pkg_install on top of the "to-upgrade" list
        . pkgin now depends on pkgsrc's pkg_install
        . Log timestamp
        . Better handling of pkg_install error logs
        . rec_pkglist() now takes a va_list
        . Added "requires" and "provides" to have a closer look on packages
          requirements
        . Globs can now be passed as an argument for package installation, i.e.
          # pkgin in 'mysql-server<5.1'
        . Export / import a list of packages as requested by wiz@
        . Operations tracing flag (-t)
        . Database silent migration
        . More flexible check_yesno()
        . Made pkgin in / rm yes by default
        . One struct to rule them all (Pkglist)
        . Got rid of many useless lists (speed x10, literally)
        . Introduced FULLPKGNAME as db member, speed ups searches
        . unique_pkg(): no more "many versions of foo", pickup newer
2011-10-16 09:26:36 +00:00
imil
162ee96ea0 pkgin 0.4.3
Imported progressmeter from OpenSSH, should fix percentage progress
2011-08-13 11:23:36 +00:00
imil
5d7c5f0000 pkgin 0.4.2.2
Cleaned up download.c
	SQLite upgraded to 3.7.7.1
2011-08-10 10:56:23 +00:00
imil
f10af0eee0 20110802
Release 0.4.2.1
	Fixed the "too many connexions" problem with libfetch and FTP
2011-08-02 21:26:59 +00:00
imil
868c402e8a pkgin 0.4.2
20110306
        Moving to SF.net
        Check for mark_as_automatic_installed() return code

20110301
        pkgin can now upgrade pkg_install with user's approval

20110228
        url_stat's size is declared as off_t, will be > SSIZE_MAX on
        32 bits systems. Added a fix for this.

20110227
        Added -P, print package version instead of globs in sd, srd, sfd
        Added warning for repositories with 0-lenght FILE_SIZE
        Added -V (verbosity) flag
        Moved integer flags to uint8_t
2011-03-06 18:44:59 +00:00
imil
e51ba24248 pkgin 0.4.1
. Wiped out file.c, ftpio.c, path.c, str.c, pexec.c, pkg_io.c,
  pen.c, strsep.c, lpkg.c, iterate.c
. Inform about logging
2011-02-21 22:42:48 +00:00
imil
c804df31d0 pkgin 0.4.0
20110207
        Replaced naive repository arch check by MACHINE_ARCH check

20110206
        Bump to SQLite 3.7.5

20110205
        Added statvfs64 support
        Redirect stderr to logfile while pkg_{add,delete}

20110204
        Feature request: -F / force-reinstall
        Feature request: PR 43049
        Generated repositories.conf for NetBSD, DragonFly BSD and MINIX

20110130
        Merged 0.4.0 to HEAD
        MINIX patches from Gautam are now upstream
        Re-added download-only
        Makefile.in / configure.ac cleanup
        Integrated some of bapt's patches
        - chroot
        - bandwidth calculation

20110122
        pkgin 0.4.0
        SQLite "Amalgamation" version is now part of the tree,
        No more databases/sqlite3 dependency needed
2011-02-13 16:03:56 +00:00
imil
8ab9fe4530 pkgin 0.3.3.4, never say "this is the last release"
Fixed a non-critical bug: some packages were marked
	for upgrade more than once.
2011-01-20 18:14:09 +00:00
imil
7e77fca53c pkgin 0.3.3.3, hopefully the last 0.3 release
- Double dewey match fixed, i.e. foo>=1.2.3<3.0
- Duplicate entries for remove and upgrade fixed
- "Missing package in repository" case handled
2011-01-19 12:10:11 +00:00
imil
af39bce556 pkgin 0.3.3.2
Fixed a nasty bug in handling dependencies like php>=5.2.17<5.3
Included is@ patch upstream for Solaris build
2011-01-16 22:47:56 +00:00
is
d3d2384ade Update to 0.3.3.1 (on wip: 20100124) + a local patch to fix building on
Solaris (and, I suspect, other autoconf-using architectures). En detail:

20100123:
        Many cleanups from stacktic
        - Replaced strstr's with str{n}cmp when possible
        - #ifdef'ed PROVIDES
        - Queries are now const chars

20100102:
        Solaris 10 support
        Mac OS X support
        Many cleanups from stacktic

20100101:
        Many fixes by stacktic :
        - Added -n (no-flag)
        - Various memleaks fixed
        - pkgname comparison fix
        - Cleaned up trailing spaces
        - Got rid of recursion !

20091206:
        Added -l status flags

20091203:
        autoconf support
        percentage redraw fix (jmcneill)
        variables cleanups (PKG_SYSCONFDIR, VARBASE) (sketch)
        auto-lookup for SUMEXTS, removed options.mk (sketch)
        opensolaris fixes (sketch)
        repositories.conf variables substitution (tuxillo)
        impact mutex (Johannes Hofmann)
        SunOS 5.8 support (Mikhail T.)
2010-06-10 08:05:00 +00:00
imil
10d137ea33 pkgin 0.3.3.1
Fixed ordering issue.
2010-01-24 17:11:04 +00:00
imil
56f81da1a2 pkgin 0.3.3 import from wip/pkgin-20100123
- Solaris 10 support
- Mac OS X support
- Added -l status flags
- autoconf support
- percentage redraw fix (jmcneill)
- variables cleanups (PKG_SYSCONFDIR, VARBASE) (sketch)
- auto-lookup for SUMEXTS, removed options.mk (sketch)
- opensolaris fixes (sketch)
- repositories.conf variables substitution (tuxillo)
- impact mutex (Johannes Hofmann)
- SunOS 5.8 support (Mikhail T.)

Plus many cleanups from stacktic@
- Replaced strstr's with str{n}cmp when possible
- #ifdef'ed PROVIDES
- Queries are now const chars
- Added -n (no-flag)
- Various memleaks fixed
- pkgname comparison fix
- Cleaned up trailing spaces
- Got rid of recursion !
2010-01-24 14:56:24 +00:00
imil
1876b2154b pkgin is aimed at being an apt / yum like tool for managing
pkgsrc binary packages. It relies on pkg_summary(5) for
installation, removal and upgrade of packages and associated
dependencies, using a remote repository.

OK'd by seb@
2009-06-08 13:58:26 +00:00