Commit graph

60 commits

Author SHA1 Message Date
Baptiste Daroussin
ed8719542a - update to 1.0.8
- changes:
  * libpkg: When reseting a package reset the associated flags
  * libpkg: Allow to build with newer and older libarchive
  * Fix pkg clean trying to get information on non existing packages
  * Fix build with bmake
  * Fix multi repository save remote repository to wrong database
  * Fix pkg repo incremental update
  * Return an error when one of the repository failed to update in multi repo
    mode
  * Fix dragonfly abi detection to fit the way dragonfly development is done
2013-02-20 22:37:48 +00:00
Baptiste Daroussin
c806932592 - update to 1.0.7
- changes:
  * Fix HTTP_MIRRORS parsing
  * Workaround libarchive not 100% supporting mtree format
  * prepend remote repository by 'repo-' in multirepository mode
  * If mirror is stored in http use If-Modified-Since
  * Register the packagesite in the remote database, pkg update detects
    packagesite chanes
  * Fix pkg check -s
  * Allow to pipe events in json format though a unix socket/fifo via EVENT_PIPE
    configuration
  * store errno in events when it fits to avoid errno to be overwritten
2013-01-28 20:42:22 +00:00
Baptiste Daroussin
c2e3d6cff0 - update to 1.0.6
- changes:
  * Avoid installing .symbols on current

Reported by:	kwm
Tested by:	kwm
2013-01-22 10:51:18 +00:00
Baptiste Daroussin
aa06b36b84 - update to 1.0.5:
- changes:
  * Expand all instances of $ORIGIN in RPATH strings
  * Use -rpath when building pkg
  * Handle the case where left-over records are present in the local database
  * Fix license logic
  * Fix spelling in manpages
  * Fix built with gcc when build without DEBUG_FLAGS
  * Allow to set HTTP_PROXY/FTP_PROXY directly in pkg.conf(5)
  * Fix +MTREE_DIR extracting during binary installation of a package
  * Add experimental feature: HTTP_MIRRORS, see below

Please note that this version does something we normally do not do in a release
branch. It adds an experimental feature: HTTP_MIRRORS, that was requested for
PC-BSD. This feature makes possible to retrieve a list of mirrors via an http
request first, looking for the URL: http://... lines in the fetched page.
2013-01-22 07:20:08 +00:00
Bryan Drewery
041145b6cc - Fix build due to uninitialized variables, which
were previously hidden due to DEBUG_FLAGS

Obtained from:	Upstream git repo
Approved by:	bapt
2013-01-13 18:25:20 +00:00
Baptiste Daroussin
cec931194c Do not install .symbols on current
Reported and tested by:	kwm
2013-01-12 22:49:07 +00:00
Bryan Drewery
a571a5e592 - Only show conversion "seatbelt" notice if no
pkgng packages have been installed yet. This fixes
  the notice showing after already running pkg2ng but
  having 1 or more packages fail to convert.

Approved by:	bapt
2013-01-09 03:48:37 +00:00
Bryan Drewery
5d26e224e2 - Enable seatbelt again after further testing. It will
work fine as is with portmaster distfiles.

  pkg_info -Ea will list invalid packages, while pkg_info only
  gives a warning for the packages. This is already handled
  due to stderr being sent to /dev/null. The NB_OLDPKGS does
  come out correct.

Approved by:	bapt (implicit)
2012-12-22 19:58:04 +00:00
Baptiste Daroussin
dda5685792 Temporary disable the seat belt it doesn't play nice with portmaster 2012-12-21 18:32:55 +00:00
Bryan Drewery
99a563929c - Fix runtime version still showing 1.0.3
Approved by:	bapt
2012-12-21 16:11:05 +00:00
Baptiste Daroussin
52541f3406 - update to 1.0.4
- changes:
  * zsh completion for the help subcomment [1]
  * Make unlocking an already unlocked database a no-op,
  * Create the PKG_DBDIR if it doesn't exists
  * Fix download size calculation
  * When analysing shlibs, interpret the special token $ORIGIN in RPATH correctly
  * For shared libraries installed by a package, don't require dynamic library dependencies to resolve
  * Do not warn twice about unknown keywords
  * New PERMISSIVE option please do not use !!!
  * Add a seat belt in the ports Makefile to avoid automatic switching to pkgng [2]

Submitted by:		ume [1]
Requested by:		stas [2]
Bad english by:		bapt [2]
Good english by:	bdrewery, gjb [2]
2012-12-21 12:21:03 +00:00
Baptiste Daroussin
93a80fc8aa Add a patch to bump the version output bump by pkg -v this was forgotten in
the last release

Feature safe:	yes
2012-12-07 16:17:29 +00:00
Baptiste Daroussin
6ad5396a43 - update to 1.0.3
- changes:
  * Accept to query _https._tcp srv records
  * Fix diskspace change calculation in pkg upgrade
  * Fix pkg info -s -F apackage
  * Better ABI determination
  * Fix pkg upgrade badly returning 0 in case of failure
  * Fix build with recent clang 3.2

Feature safe:	yes
2012-12-07 11:26:51 +00:00
Baptiste Daroussin
310cd31280 - update to 1.0.2
- changes:
  * Add a completion for zsh
  * 1 in pkg.conf is consider as true or yes for booleans
  * Fix incremental pkg repo
  * Provide a pkgconf pkg.pc file for third party software using libpkg
  * Multiple grammar fixes
  * Several fixes in pkg create
  * Do not emit error if the deletion of a directory fails with EBUSY
  * Use isdigit(3) rather than isnumber(3)
  * Jail support is automatically disabled it /usr/include/jail.h is not present
  * Fix a regression leading to pkg install always returning 0 even when
    something wrong happened
  * Improve portability so that it now builds on DragonFly BSD

Feature safe:	yes
2012-11-06 16:32:41 +00:00
Baptiste Daroussin
a90808a87f Mark as not ccache safe
Reported by:	Piotr Kubaj <pkubaj@gmail.com>
2012-10-01 16:33:19 +00:00
Baptiste Daroussin
7f590f9ad9 - update to 1.0.1
- changes:
  * Allow extra space for environment and command when piping to /bin/sh for scripts
  * Improved DEVELOPER_MODE output
  * Error when neither www or desc is defined in the manifest
  * pkg help now have the same level of informations as usage()
  * Lots of fixes in manpages
  * Only try to get checksum on regular files
  * pkg2ng: Preserve files under $PKG_DBDIR that don't belong to pkg_tools
  * add dry-run to pkg autoremove
2012-10-01 13:54:16 +00:00
Baptiste Daroussin
219c41c8e9 Mark as job safe
Submitted by:	Adam McDougall <mcdouga9@egr.msu.edu>
2012-09-24 22:18:57 +00:00
Baptiste Daroussin
72e4b80c71 - update to 1.0
- changes:
  * SRV mirroring is on by default
  * fix large scripts executions
  * pkg check -d now installed packages tags as automatic
  * performance improvements
2012-08-30 14:19:30 +00:00
Bryan Drewery
e73d68fc73 - Fix crash when no PACKAGESITE is defined in pkg.conf
Approved by:	bapt (mentor, maintainer)
2012-08-23 22:09:53 +00:00
Pietro Cerutti
34270a1982 - Fix prompt sign in pkg-message, pkg2ng must be run as root
Approved by:	bapt (portmgr)
2012-08-22 10:18:41 +00:00
Baptiste Daroussin
710d4251be - update to 1.0-rc6
- changes:
  * pkg query now fails if no format strings has been provided
  * pkg delete pkg is no more allowed expect if -f is specified
  * large improvements on pkg backup/restore interface
  * do not propose to downgrade dependencies expect if forced to
  * every script execution now uses posix_spawn(3)
  * this abi is now check on pkg update, if a remote repository does not fit the
    desired abi, pkg update will fail.
  * allow pkg set -o even if the oldoriring has been uninstalled
  * pkg version now has -O to match on package origin
  * respect TMPDIR environnement setting
  * pkg.conf now has a ${ABI} variable correcponding to the detected ABI or the
    set one (sample pkg.conf has been modified to use it)
  * when run as non root pkg upgrade is automatically set to dry-run mode
  * pkg version can now work on remote repository (no need for a ports tree)
  * many buf fixes and man pages improvements
2012-08-16 17:05:58 +00:00
Baptiste Daroussin
80a49985ce Fix a regression appending newline to commments
Reported by:	avilla
2012-07-30 08:25:34 +00:00
Baptiste Daroussin
8cf9526831 - update to 1.0-rc5
- changes:
  * speed improvements in pkg repo on multi core boxes
  * fix pkg upgrade proposing to downgrade dependencies
  * fix pkg2ng losing seom origin from dependencies
  * fix losing new line informations in descriptions
  * new -A option to track a new installation as automatically installed
2012-07-30 06:23:26 +00:00
Baptiste Daroussin
db838cc82a add a fix to pkg2ng preventing losing track of some dependency origins leading
to a failure of the conversion.

Reported by:	Pierre Guinoiseau (via gitub issue #314)
Tested by:	Pierre Guinoiseau
2012-07-29 22:21:30 +00:00
Baptiste Daroussin
79769610e4 - update to 1.0-rc4
- changes:
  * Fix reinstalling package due to options change losing automatic flag
  * Fix pkg set -o
  * do not use dlopen for figure out path of libraries to track shlibs
  * more manpages cleanup
2012-07-20 20:21:09 +00:00
Baptiste Daroussin
26bc5ba5b1 - update to 1.0-rc3
- changes:
  * fix bug corrupting automatic and licenselogic flags
  * some mdoc fixes
  * fix a new dependencies pulled by upgrade showed as reinstalling instead of
    installing
  * some fixes in repo generations
2012-07-13 23:15:45 +00:00
Baptiste Daroussin
d08b26f7dd - update to 1.0-rc2
- changes:
  * fix an important bug on script handling resulting in scripts runned sometime
    twice
  * time can no more be negative while fetching
  * fix a crash on pkg check
  * fix an infinite retry loop when fetching a file that return 404
  * emit a warning when search gives no results
2012-07-13 15:39:57 +00:00
Baptiste Daroussin
fd554fce86 - update to 1.0 rc1
- changes:
  * schema for remote repositories are versionned
  * fix ordering of scripts
  * ability to query SRV dns records for automatic mirror detection (ala
    portsnap/frebsd-update) via the SRV_MIRROR options default to off
  * new FETCH_RETRY options (default to 3)
  * more style(9) compliance of the code
  * lots of cleanup in exits codes
  * lots of typos fixes in manpage
  * improvements in manpages
  * pkg2ng now move the old database into /var/db/pkg.back
  * new -B option to pkg check to reanalyse the files and populate shlibs
  * new install -fR to reinstall all packages depending on a given package
  * disable shlib when using pkg-static

No new feature to expect in next releases, only bug fixes
New feature will be for 1.1 (already planned :))
2012-07-11 22:17:37 +00:00
Baptiste Daroussin
0c571441dc Fix alignement error making pkg repo segfaul on i386
Reported by:	gjb, Ivan Klymenko <fidaj@ukr.net> (via ports@)
Tested by:	gjb
Obtained from:	pkgng git repository
2012-07-04 09:59:23 +00:00
Baptiste Daroussin
6fe34aef3c fix distinfo (sorry I commit the wrong one before) 2012-07-02 15:07:52 +00:00
Baptiste Daroussin
7db30eeb77 - update to 1.0 beta17
- changes:
  * downgrading is always forbidden except if you explicitly force it
  * yet another fix for incremental pkg repo
  * pkg install/upgrade now detect ports which remote has different option set
    and propose to reinstall them
  * code refactoring, and improvement in pkgdb.c and pkg_repo.c
  * new -f options for pkg update
  * new -f and -q options for pkg repo
2012-07-02 13:42:22 +00:00
Baptiste Daroussin
9e3a60e39e Really fix build on 8-stable and 9-stable
No revision bump because no changes but allowing building when it failed

Obtained from:	pkgng git (Bryan Drewery)
2012-06-27 06:27:14 +00:00
Baptiste Daroussin
4f79580b23 - update to 1.0-beta16
- changes:
  * fix incremental pkg repo
  * fix stage directory (copy mode) support
  * improvements on documentation (man pages, error messages)
  * new ARCH_INDEP options in developper mode to allow notifying a maintainer
    that a port might be archiecture independant
  * fix compilation on recent 8-stable and 9-stable
  * improvemens is usage() output
  * new option PORTAUDIT_SITE to allow user to set the url for the auditfile
  * pkg create -an to not repack existing packages
  * new periodic script to make daily backup of the database
  * new stats (pkg-stats(8)) subcommand
  * big improvements and bug fixes in pkg (r)query
  * deactivate shlibs tracking all the time in pkg-static
  * lots of bug fixes

Thanks to all contributors
2012-06-25 13:23:38 +00:00
Baptiste Daroussin
4ed25952f9 - Fix pkg2ng with new options framework 2012-06-15 10:46:45 +00:00
Baptiste Daroussin
a5d3bde5f9 Backout reproducible packages.
pkgng tried since beta14 to create reproducible package: aka 1 package build
twice will get exactly the same checksums, this revealed some problem with
python that were workaround in beta15 but lots of build system seems to really
not approciate it, while the feature is good and might be reactivated in the
futur, the ports tree and upstream build systems, need a lot of work to be able~
to deal with 100% reproducible packages :(
2012-06-03 19:02:27 +00:00
Koop Mast
c8e790e8a0 Add pkg-remove.8 to MLINKS.
Approved by:	portmgr (bapt@)
2012-06-03 16:07:19 +00:00
Baptiste Daroussin
66ade9c22c - update to 1.0-beta15
- changes:
  - new -d to pkg fetch to download the dependencies along with the package
  - fix automatic flag tracking over installs and upgrades
  - fix hardlink detection (size calculation of git is now sane again :))
  - pkg remove is now an alias to pkg delete
  - fix a bug with shlibs track causing segfault
  - pkg check -r now updates flatesiz and checksums
  - all generated yaml now contain a yaml object separator, pkg info -Ra can be
    pased directly to a yaml parser
  - pkg query and pkg rquery do not fallback anymore on matching everything if
    -g -x or -X is passed in arguments
  - fix python packing on pointyhat/tinderbox with a ugly workaround for now
  - pkg info '' and pkg search '' now complains about empty pattern
  - pkg rquery now return 1 if nothing matched
2012-06-03 14:47:21 +00:00
Baptiste Daroussin
27150984d0 - Fix pkg update adding repo.txz twice
PR:		ports/168235
Submitted by:	Andriy Syrovenko <andriys@gmail.com>
2012-05-22 16:49:26 +00:00
Baptiste Daroussin
a1ffe962fd - update to 1.0-beta14
- changes:
  * new DEVELOPER_MODE option: it will fail instead of just printing warnings
  * package creation is now reproductible, the same package built twice will
have the same checksum
  * pkg install, upgrade and fetch now automatically performs the update of the
remote metadata if necessary
  * portmaster patch: use_pkgng is not nessecary anymore
  * portmaster patch: new format you can just copy it in the
ports-mgmt/portmaster/files
  * portmaster patch: support for portmaster -o
  * portmaster patch: Enable --check-depends, aliasing pkg check -adv
  * pkg set -A to mark a package as automatically installed (-a now matches all:
 better consistency with other commands)
  * new -D option for pkg info (same as pkg_info -D)
  * pkg set -o now change origin for a port and everything that depends on it
  * new -L option for pkg {fetch,install,upgrade} to skip updating metadata.
  * when a package isn't valid, print human information about what is missing
  * some fixes in ordering (revealed by p5-XML-Sax mess)

Thanks to all contributors
2012-05-22 13:16:46 +00:00
Baptiste Daroussin
0665269baf - update to 1.0-beta13
- changes:
  * -a (all) is now befault behaviour of check, query, rquery
  * speed up remote repository query
  * fix excessive CPU usage on fetching
  * improve man pages documentation
  * only display filenames on fetching not full url
  * fix an important bug on jobs ordering calculation
  * lots of bugs fixes
2012-05-04 06:17:32 +00:00
Baptiste Daroussin
65e5ecf448 pkg.conf.sample is not a PORTEXAMPLE 2012-04-26 10:14:12 +00:00
Baptiste Daroussin
0a9194acae - update to 1.0-beta12
- changes:
  * Fix to be downloaded calculation
  * Respected rc.conf with handle_rc_scripts
  * Improve man pages
  * Fix pkg set -o
  * new pkg rquery subcommand, do the same as pkg query but for remote
    repositories
  * Allow forcing installation of a package even on bad arches
  * Add indexes to local database, speed up local queries
  * Speed up file loading from database
  * lock the database while executing a job
  * improvements on new pkg version detection
2012-04-23 13:57:39 +00:00
Baptiste Daroussin
3371d462a9 Fix bug preventing self upgrade with beta11 2012-04-18 21:25:19 +00:00
Baptiste Daroussin
0938297841 - update to 1.0 beta11
- changes:
  * lot's of improvement in man pages documentations
  * pkg info and pkg search are now aligned like pkg_info
  * pkg search -x is now default
  * new pkg shell subcommand, this fires up a sqlite3 shell use with caution
  * pkg which gains 2 new options: -q (quiet) -o (origin)
  * fix pkg repo incremental
  * pkg version can now have -egXx <pattern> options
  * when is port is registred this is now notifified as an installation (means syslog informations :))
  * force umask 022
2012-04-13 20:54:59 +00:00
Baptiste Daroussin
16932b8e47 - update to 1.0-beta10
- changes:
 * Fix memory corruption
 * Fix handle_rc_script when upgrading services are now really restarted
 * Report Already installed/Not found when installing packages if any
 * when trying to pkg add something that doesn't exists, recommend the user to use pkg install
 * Fix abi detection on recent current
 * pkg -v report the version, -vv more informaton, -vvv even more :)
 * new pkg fetch command (not yet documented)
 * code factorisation
 * pkg repo is now incremental
 * install/upgrade now first forces installation/upgrade of pkg before anything

Feature safe:	yes
2012-04-07 20:22:57 +00:00
Baptiste Daroussin
55654d1b4f fix @ignore handling (fixes nullmailer)
Feature safe:	yes
2012-03-31 21:54:21 +00:00
Baptiste Daroussin
ad624c8fdc Fix plist
Feature safe:	yes
2012-03-30 13:33:19 +00:00
Baptiste Daroussin
8f79c9b4f5 - Fix pkg check -ra
Reported by:	gelraen (irc://freenode/#pkgng)
Feature safe:	yes
2012-03-30 10:31:55 +00:00
Baptiste Daroussin
0e618fdde0 - update to 1.0-beta9
- changes:
  * query -f has been replaced by query -F when querying a package (file) for consistency with pkg info
  * fix autoremove recursion
  * pkg set -o oldorigin:neworigin allow the user to modify the origin of a packages (useful for MOVED)
  * several fixes on powerpc
  * pkg query evaluation expression now accept !=
  * pkg2ng is now able to migrate a local database without needed the ports tree
  * speed up pkg check by only loading the informations needed for the operation it will do
  * code cleanup in the library
  * fix uname/gname lookup when creating packages
  * new periodic script for pkg audit
  * new keyword shlib, pkgng is able to load information about the needed shlibs for a package (disable by default)
  * pkg info act as pkg info -a by default
  * new install timestamp in the package database, available using pkg query "%t"
  * pkg updating can now take a port name as argument to only show related UPDATING informations)
  * -q (quiet) for install, delete, upgrade, update and autoremove
  * new ABI detection string

Concerning the new ABI, to be able to determine which package can be installed on which destination, pkgng couldn't rely on the simple:
os version/machine, because some arches have incompatible ABIs. Can compute on its own the ABI, the string is the followin:
OSNAME:OSMAJORVERSION:OSARCH:OSCLASS(:...)
... means the arch specific extensions.

which means on:
 * amd64: freebsd:9:x86:64
 * i386: freebsd:9:x86
 * arm: freebsd:9:arm:eb:oabi:softvp
etc

Be careful all the packages (.txz) files have to be rebuilt!!!
When binary upgradeing from pkg beta8, on amd64 do the following:
UNAME_m=freebsd:9:x86:64 pkg install -f pkg

on i386
UNAME_m=freebsd:9:x86:32 pkg install -f pkg

Bonus when run on a chroot/jail where ABI is different from the host, pkgng will dynamically determine the destination ABI.

Feature safe:	yes
2012-03-30 07:34:00 +00:00
Baptiste Daroussin
16f8237039 - update to 1.0-beta8
- changes:
 * pkg info -R now show a full yaml (script, options, users and groups were missing in previous versions)
 * new pkg query -e <evalutaion> <query-format> to be able to query packages base on boolean expression matching content of the package
 * pkg check now works like other subcommand: -a for all, -gxX for (glob, regex, eregex)
 * pkg check is now able to check the file checksum and print what has been modified since package installation (-s option)
 * pkg check is now able to recompute the flatsize (-r) this can fix the flatsize of packages installed with version prior to beta7
 * new pkg set currently can only be used to manually mark package as automatically installed or not
2012-03-02 23:08:42 +00:00