Commit graph

200 commits

Author SHA1 Message Date
Baptiste Daroussin
7447ff8c9d Update to 1.6.99.2
Changes:
- Fix cross building
- Wording fixes
- Always restore credentials after extraction in preparation for bigger changes
- Improve zsh completion
- Update libucl to the latest version
- Added support for OpenBSD/Bitrig
- Add a latest fixes to kill origin usage
- Improved linux support
- More user friendly error messages
- Fixes in the solver: Treat dependencies missed as errors
- Improved regression framework
- Allow to specify repositories directly un pkg.conf under the "repositories"
  keyword
- All multiple version of the same package in a repository
- Fix configuration regarding ipv6
2015-11-23 21:46:51 +00:00
Baptiste Daroussin
3c7dd2add8 Release pkg 1.6.99.1
Changes:
- Fix a regression in performance when listing files [1]
- Remove references to EOLed FreeBSD version in manpages
2015-09-27 19:40:25 +00:00
Baptiste Daroussin
3e4b4d0817 Update to 1.6.99.0
Changes:
- Document @{pre,post}[un]exec
2015-09-25 23:15:51 +00:00
Baptiste Daroussin
89f5b5512e Update to pkg 1.5.99.13 aka 1.6.0 rc3
Changes:
- Important fixes in the solver (fixes the jpeg->jpeg-turbo issue)
- +DISPLAY can now be a ucl file (contextual messages)
- pkg info -D now understand ucl format
- keywords can now define messages to be printed (depending on the context)
- PKG_ROOTDIR is now always set in scripts (default to /)
- pkg version now accept -n <pkgname> to check a given package version against
  remote repository or ports tree or INDEX file
- Improve Linux support: testuite now passes entirely on linux
- pkg register only tries to load +DESC if it exists
2015-09-21 21:08:39 +00:00
Baptiste Daroussin
8950b41433 Update to 1.5.99.12 (aka 1.6.0 rc1)
Changes:
- Restore ordering of files and directories
- Simplify regression test framework
- Silence `pkg upgrade -q' when there are no packages to upgrade.
2015-09-05 14:56:01 +00:00
Baptiste Daroussin
ba11c55ba7 Update to 1.5.99.11
Changes:
- Fix 3 way merge
- Properly apply credentials on merged files (@config)
2015-08-30 18:23:02 +00:00
Baptiste Daroussin
2ec4008ed0 Update to 1.5.99.10
Changes:
Fix signature pubkey which was:
1/ broken
2/ backward incompatible.
Allow to not use ldns on Linux
Improve build on linux
Fix corruption on @config files
Fix @config files extraction when parent directories does not exists
2015-08-29 23:26:24 +00:00
Baptiste Daroussin
332cb55e20 1.5.99.9
Changes:
- Allow to emit dot graphs from the solver (-o DOT_FILE=afile)
- Update bundled libucl
- Fix bus error intorduced in 1.5.99.8
- Fix forward compatibility
2015-08-19 15:35:05 +00:00
Baptiste Daroussin
d70ee20ba8 Update to 1.5.99.8
Changes:
- Fix endless cycle of reinstall/deinstall of packages
- Reduce a bit memory usage
- New context aware messages (only show a message depending on where you are upgrading from)
- Fix a bug about pkg messages not being properly decoded
- Reduce code duplication
2015-08-18 09:53:01 +00:00
Mathieu Arnold
21a283f3be Remove UNIQUENAME and LATEST_LINK.
UNIQUENAME was never unique, it was only used by USE_LDCONFIG and now,
we won't have conflicts there.

Use PKGBASE instead of LATEST_LINK in PKGLATESTFILE, the *only* consumer
is pkg-devel, and it works just fine without LATEST_LINK as pkg-devel
has the correct PKGNAME anyway.

Now that UNIQUENAME is gone, OPTIONSFILE is too. (it's been called
OPTIONS_FILE now.)

Reviewed by:	antoine, bapt
Exp-run by:	antoine
Sponsored by:	Absolight
Differential Revision:	https://reviews.freebsd.org/D3336
2015-08-17 14:20:40 +00:00
Baptiste Daroussin
5e1ae330d2 Update to 1.5.99.7
Changes:
- Use mmap with sqlite during pkg update
- Fix pkg query humanized output
- Improvement in pkg check manpage
- Lots of improvements in the solver
- Improve Linux support
- Fix CVE-2015-1283 in bundle expat

Note that this release does not pass 100% of the regression tests due to a known
cosmetic issue.
2015-08-11 22:25:15 +00:00
Baptiste Daroussin
7f8f30a522 Update to 1.5.99.6
Changes:
- Manpages updates
- Add a random delay to pkg-audit when invoked without a TTY
- Update zsh completion
- Add a new AUTOCLEAN option to automatically clean the cache directory
- Don't attempt to set file ownership when INSTALL_AS_USER is set
- Add a new configuration item to define custom HTTP User-Agent
- Fix an integer overflow when displaying package size for packages larger than
2GiB.
- Initial support for flexible dependencies
- Allow to specify dependencies without hardcoded versions
2015-07-14 14:36:17 +00:00
Baptiste Daroussin
67a86ac3ee Update to 1.5.99.5
Changes:
- Progress is not printing dots on the fly when stdout is not a tty
- Fix partial upgrades
- Fix url in pkg.conf.sample about vuxml
- Improve zsh completion
2015-06-06 20:11:43 +00:00
Baptiste Daroussin
f2a5a9e656 Update to 1.5.99.4
Changes:
- fix signature checking
2015-05-30 12:03:33 +00:00
Baptiste Daroussin
694e3c87ea Remove outdated mirrors 2015-05-30 09:00:07 +00:00
Baptiste Daroussin
78bb648706 Update to 1.5.99.3
Changes:
- Updates in manpages
- Improved support for --quiet everywhere
- Keep 7 (by default) days (rotation) of backups of the database
- Prune old style backups entirely
- Code cleanup
- Deduplication of the checksum related part of the code
- New checksum serialization format for files allowing to change the checksum
  algorihtm (fully backward compatible) for now sha256 and blake2b are supported
- pkg check -d now knows about provides/requires
- Do not pushed in shlibs required any library we can find in the list of files
  owned by the package
2015-05-30 08:52:59 +00:00
Baptiste Daroussin
cc8d23daab Update to 1.5.99.2
Changes:
- Documentation updates
- Make pkg alias -l respect quiet
- Reinstall packages if shlib provided has changed
- Do not expose shlibs without SONAME as provided libs
- Update sqlite to 3.8.9
- Add linenoise to have editing capabilities with pkg shell
- Fix pkg audit -r formatting
- Stop elf analysis sooner if not operating on an elf file
- Fix checking signatures on arm
2015-05-07 22:45:08 +00:00
Baptiste Daroussin
36a72bc24f Update to 1.5.99.1
Changes:
- Fix pkg ssh://
- Fix a missing '\n' in pkg audit
- Fix compat at functions to not mess up with cwd
2015-04-16 15:25:43 +00:00
Bryan Drewery
ea5adfb8f1 Let WITH_CCACHE_BUILD work on the pkg port that is not PKG_ORIGIN.
For example, if ports-mgmt/pkg is PKG_ORIGIN then it is safe to use
ccache for ports-mgmt/pkg-devel.
2015-04-14 20:58:26 +00:00
Baptiste Daroussin
0bfa28f3ea Update to 1.5.99.0 aka (1.5.0 but from master branch)
Changes:
- Fix pkg query -e "%#0"
- Add some test for pkg query
- Add some tests for pkg repo
- pkg repo now follows symlinks and skip Latest
- Bunch of documentation updates
2015-04-14 18:59:17 +00:00
Baptiste Daroussin
2aacf18235 Update to 1.4.99.20 aka pkg 1.5.0 rc2
Changes:
- Print notice to stdout
- Prevent pkg-static from trying to load plugins
- Bring back displaying of download size
- pkg shlib now support -q (quiet)
- Accept symlinks in pkg repo and ignore directories named (Latest or hidden: starting with a .)
2015-04-11 13:30:48 +00:00
Baptiste Daroussin
f4e0af4cde Update to 1.4.99.19 aka 1.5.0-rc1
Changes:
- Activate CONSERVATIVE_UPGRADE by default (by popular demand)
- Add -l to pkg alias
- Small improvements on zsh completion
- Add some new popular aliases to the sample pkg.conf
2015-04-07 12:08:59 +00:00
Baptiste Daroussin
b82954d753 Update to 1.44.99.18
Changes:
- Add the user_version in the sql dump
- Fix pkg version when checking the ports tree without INDEX
- Make pkg lock -l respect -q
- Fix ipv6
- Add noauto alias
- Make lead alias more accurate
- New pkg lock --has-locked-packages (return 0 if it has locked packages 1 otherwise)
- Resume fetch support for http/ftp
2015-04-03 20:03:04 +00:00
Baptiste Daroussin
cc047292ea Update to pkg 1.4.99.17 (pkg 1.5.0 beta2)
Changes:
- Allow processing of Transfer-Encoding: chunked responses. when fetch a package
- Only consider compatible ABI when processing shlibs provides/requires
- Ensure to first satisfy requires on packages already in universe before trying
  add new ones into the universe
2015-04-02 18:14:45 +00:00
Baptiste Daroussin
e8d245bd51 Update to 1.4.99.16 aka pkg 1.5.0 beta1
Changes:
- Important fixes on provides/requires (now we can solve situation like php upgrades with modification in the ports tree to set the provides/requires)
2015-03-31 18:28:20 +00:00
Baptiste Daroussin
ff04e756a2 Update to 1.4.99.15 aka pkg 1.5.0 alpha2
Changes:
- stop spamming users about false libraries not found when creating a package
- do not consider local files when evaluation the pkg delete arguments
- be more precise about the reasons of a dependency change
- give informations about abi changes
- give informations about options changes
- fix conflicts handling in multi repository mode
2015-03-28 01:58:01 +00:00
Baptiste Daroussin
6890e87f20 Update to 1.4.99.14 aka 1.5.0 alpha1
Changes:
- More fixes on pkg lock/unlock on 32bits
- Initial support for provides/requires
- Print which package is the reason for direct depend change
- Cleanup regression tests
- Allow pkg create -M ./plop.ucl -p ./plop.plist
- Deprecate --relocate
- add pkg -r <rootdir> option to allow easy cross installation
- export PKG_ROOTDIR in script to ease cross installation friendly scripts
2015-03-18 19:08:55 +00:00
Baptiste Daroussin
3b13fab0f3 Release 1.4.99.13
Changes:
- Add examples about annotations
- Make the public API c++ friendly
- Fix bug in solver found by the ruby 2.1 upgrade: puppet getting removed when
  it should not
2015-03-07 00:02:18 +00:00
Baptiste Daroussin
470fcdb1bc Release 1.4.99.12
Changes:
- New option DEFAULT_ALWAYS_YES to have pkg defaulting on Yes for all questions
- Cleanup some internal APIs
- 37 more regression tests
- Improved support for NetBSD
- Fix return code of pkg lock -l
- Fix documentation about the default location for keywords
- Mark @ignore as deprecated
- Add more flexibility to keyword credentials:
  * Now accept mini version of arguments: @(owner) or @(,group)
  * All arguments after 4th arguments is now considered as file flags
- Allow custom (UCL) keywords to have arguments, this will split the line after
  the keywords line any command line arguments.
- Improve report from error when parsing the plist lines to format the '%' keys
- Reduce memory usage in lot of operations
- Speed up lot of operations
- Update bundled libelf
- Add support for aarch64
- Fix pkg audit -r printing twice the CVE entry
- Fix pkg audit -r not finding reverse dependencies
- Fix dynamic conflicts (was only broken in devel branches not releases)
- Fix pkg lock on 32bits
- Cleanup pkg alias: Show errors in stderr, Support -q (quiet)
- Fix parsing key/value list from env
- Fix annotate --show --all
- Make sure the kernel allows PROCCTL_REAP_ACQUIRE.
2015-03-01 01:41:00 +00:00
Baptiste Daroussin
4e22fc3280 Release 1.4.99.11
Changes:
- connect pkg alias to the build
- add pkg create -v and PKG_CREATE_VERBOSE in pkg.conf to get verbose package
  creation
- show repository priority in pkg -vv
- document pkg_repo_priority() in pkg_repos(3)
- fix a bug handling chflags on systems without chflagsat reported on dfly but
  might also affect FreeBSD 8 and 9 even if no bugs were reported yet [1]

  [1] Special thanks goes to Dillon for removing the dirt our of my eyes and
  spotting the bug, Antonio Huete Jimenez (tuxillo) for testing and tracking the
  bug since it has been spotted on dragonfly
2015-02-11 21:46:53 +00:00
Baptiste Daroussin
e6d0c7f821 Update to 1.4.10 and 1.4.99.10
- Fix a regression causing bus error

Reported by:	marino
2015-02-05 10:24:50 +00:00
Baptiste Daroussin
4617df4fba Update pkg to 1.4.9
Update pkg-devel to 1.4.99.9
Changes:
- Fix regression introduced in 1.4.8 [1]
- Document pkg set -n
- add pkg alias

Reported by:	mandree [1]
2015-02-04 22:38:00 +00:00
Baptiste Daroussin
fc8ee30c40 Update to 1.4.99.8
Changes:
- Tons of resources leak plugged (thanks coverity)
- Fix size calculation output
- Fix 'pkg add -M -'
- Update libucl to latest version
- Improve documentation
- Make pkg create more verbose
- Add -q|--quiet option to pkg create
- Add a new pkg alias subcommand
- Update sqlite to 3.8.8.2
- Update libucl to 0.7.2
2015-02-04 20:51:05 +00:00
Baptiste Daroussin
88dcdf979d Update to 1.4.99.7
Changes:
- pkg updating now support case insensitive matching
- pkg_printf(3) support %x (so print the size of the package tarball)
- Use SI symbols (MiB instead of MB)
- When using procctl on an older kernel that does not implement the reaper
functionnality, be explicit about the failing syscall.
- Lots of fixes on the chflags handling
- Emit names in cudf instead of origins
2015-01-23 16:04:24 +00:00
Baptiste Daroussin
ff4b9929e3 Update to 1.4.99.6
Fix last minute regression
2015-01-17 17:47:58 +00:00
Baptiste Daroussin
44f69f3ec9 Update to 1.4.99.5
Changes:
- Enforce a bit more pkgname a unicity identifier
- Fix regression on pkg query with multiline
- Fix sql error on some pkg query
- Stop again caching files for file:/// repos
- Do not trust libarchive to apply modes
- Accept tar files in repositories
- Handle chflags
- Some updates in documentation
- update sqlite to 3.8.8 (small performances improvements and bug memory usage reduction)
2015-01-17 16:51:14 +00:00
Baptiste Daroussin
32b11fba60 Update to 1.4.99.4
Changes:
  - Remove lots of dead code
  - Fix pkg stat reporting the size of remote repositories
  - Remove execinfo dependency
  - Fix pkg check with no active remote db
  - Remove outdated example from manpages
  - More accurate error messages in pkg check
  - Use the new procctl(2) features when possible to prevent script from spawning daemons
  - More fixes in integrity check
  - Improvements in zsh completion
  - Initial support for OSX (passes all regression tests)
  - Initial support for Linux (early)
  - Update libucl to 0.7.1
  - Bundle libfetch (to simplify porting as well as providing latest improvements to all FreeBSD version)
  - Support blake2b digests
2015-01-02 15:19:18 +00:00
Baptiste Daroussin
dcce7a470c Update to 1.4.3 and 1.4.99.3
Changes:
- Fix integrity check in multi repository
- Document CONSERVATIVE_UPGRADE
- Document repository priority
- Do not duplicate replacement request
2014-12-29 20:14:49 +00:00
Baptiste Daroussin
58c057d2bc Update pkg to 1.4.2 and pkg-devel to 1.4.99.2:
Changes:
- Fix applying proper modes on directories on some corner cases (fixes pkg install mailman)
- Do not display pkg-message is pkg register fails
- During removal, if a directory was already removed by a bogus script, continue removing parents.

Changes specific to -devel:
- pkg -d now set DEBUG_LEVEL -d == DEBUG_LEVEL=1 -dd == 2 etc
2014-12-27 11:22:29 +00:00
Baptiste Daroussin
903e334d32 Release pkg 1.4.1 and 1.4.99.1
Changes:
- Manpages updates
- Fix directory removal guard
- Fix loading of files from packages
- Add new CONSERVATIVE_UPGRADE option to enforce keeping package from the
  repository they were installed from
- Add priority support for multi repository

While this version improves a lot multi repo support please note that there is a
known bug resulting in failures during integrity checking, resulting in some
operations may have to be run twice we are investigating a fix
2014-12-22 19:57:53 +00:00
Baptiste Daroussin
3c3ac2d7a3 Disable Werror to calm down gcc 2014-12-09 14:50:07 +00:00
Baptiste Daroussin
4126c83152 Update pkg to 1.4.0
Update pkg-devel to 1.4.99.0 (aka 1.5 pre-alpha0)
Changes since pkg 1.3.0:
Changes you can expect in pkg 1.4 are the following:
- Loads of bug fixes
- Stricter checking of the path passed via the plist
- Removal of the bundled libyaml
- new --raw-format to chose the output format for info -R and search -R
- ABI (for freebsd, unchanged for dragonfly) is now follwing MACHINE_ARCH
  (freebsd:10:x86:64 become FreeBSD:10:amd64) the old ABI is available as a
  fallback in ALTABI
- pkg check now support a quiet mode
- new 3 way merge code ("stolen" from the fossil-scm) to allow automerging
configuration files
- new @config keyword to mark a file as a config file (during
  upgrade/reinstallation it will try to merge the configuration with the one the
  user may have modified) an option AUTOMERGE is available to prevent
  automerging if automerge fails a .pkgnew file will be created along with the
  untouched user version of the configuration
- The update procedure has been improved and speed up a lot (in particular for
  machine with low resources)
- The unique identifier has been modified to be pkgname meaning now ports can be
  moved in new categories without having to be considered a different package
- Only libraries starting by lib* are added to the provided libraries
- General speed up of all operations
- pkg set gain a -n option (equivalent to -o but works on name rather than origin)
- pkg set -o now considered deprecated
- pkg version accept '?' and '!' in pkg version limchar
2014-12-09 14:22:10 +00:00
Baptiste Daroussin
825572a861 Update to 1.4.0 rc3
Changes:
- More fixes to pkg fetch -o
- Fix pkg delete removing too many directories
- new pkg set -n (to change names) equivalent of pkg set -o
- Run pkg set -n and -o understand transaction to speed up
- Allow @dir to be a symlink
2014-12-08 14:48:19 +00:00
Baptiste Daroussin
e8ac976874 Update to 1.4.0 rc2
Changes:
- Important bug fix in the solver in case an explicit conflict has been
  discovered in that case the solve should delete the old version then
  install the new version when it was deleting the old version then upgrading \
  to the new version
- Small cosmetic fix
2014-12-06 11:45:34 +00:00
Baptiste Daroussin
be5bff64ac Update to 1.4.0 rc1
Changes:
- Print orphaned packages in pkg version when comparing with the INDEX file
- Fix pkg upgrade leaving directories behind
- Plug memory leaks when parsing plists
- Remove some dead code
- Improve documentation
- file:// repository files are now fetched again into the cache to avoid
  problems in integrity check
- The repository configuration files are now load in alpha order
- When upgrading from a database with duplicated package names arbitrary rename them
- Fix pkg fetch -o
- Fix return code when pkg fetch fails
2014-12-05 17:48:02 +00:00
Baptiste Daroussin
337d98cc5d Update to 1.4.0.b2
- more fixes to multi repo
- fix pkg autoremove recursivity
2014-11-19 07:28:02 +00:00
Baptiste Daroussin
92d05cd558 Update to 1.4.0.b1
Changes:
- Lots of documentation fixes
- Lots of typos fixes in messages
- Fix UI when a package is going to be downgraded
- Cleanup is internal functions (removing useless accessors)
- Do not allow to create packages in old format anymore (it was broken anyway)
- allow ? and ! in pkg version limchar
- New configuration option VERSION_SOURCE (to the version used to read INDEX)
- Really fix multirepo (hopefully)
2014-11-18 14:00:18 +00:00
Baptiste Daroussin
94fe893051 Update to 1.4.0.a4
Changes:
- Reinstall packages if one of its dependency have change
  While hackish this allows seamless upgrade of perl5 and ruby2
- Fix pkg audit as used from ports
- Reject chroot for unknown ABIs
- Fix generating repos from 1.3 created packages
- Allow to build out of the source tree
- Fix ABI detection on armeb
- Fix some left overs from Unique id migration
- Fix pkg delete regression (it is again recursive by default)
- Locked packages prevent deleting anything that depends on them
- Fix pkg upgrade on multi repo
- Fix pkg upgrade ignoring the lock flag

Thank you very much for all the testers and reports! Please keep testing!
2014-10-30 14:41:21 +00:00
Baptiste Daroussin
e139980a3f Update to 1.4.0 alpha3:
- Fix pkg check -r to make it also compute checksums for symlinks
- Fix pkg register in case the ancient arch as not already been defined
2014-10-29 07:00:11 +00:00
Baptiste Daroussin
b83cfef8c9 Update to 1.4.0.alpha2
Changes:
- Change the default fetch site for vuxml
- simplify some code
- fix too small buffers
- only add in provided shlibs the files starting with lib*
2014-10-28 19:04:22 +00:00
Baptiste Daroussin
cff7b12443 Update to pkg 1.4.0.alpha1
Changes:
- Lots of cleanup in the API
- Huge refactoring to avoid using hashes where not needed
- add a new @config keyword for all files with such flags pkg will try
  automatically to merge the difference with newer version on upgrades
  a vanilla version of the file is kept in the db to allow 3 way merge
  this was the last blocker to be able to package base
- new options AUTOMERGE to prevent pkg to automatically merge @config files
- speed up upgrades by only extracting files that are different from 2 packages
- convert unique package identifier to the package name (at last !)
- drop incremental update support this was preventing allowing multiple packages
  with the same name in a remote repo
- lots of improvements in the pkg update process
- update sqlite to 3.8.7
- Change pkg audit so that it points to the http://vuxml.FreeBSD.org/freebsd/
  location by default
- Lots of fixes in the solver
2014-10-26 22:40:40 +00:00
Baptiste Daroussin
2303f42042 Update to 1.4.0.pre-alpha16
Changes:
- Rework the job request processing
- Fix pkg install/upgrade
- Fix forced reinstall
- Rework of integrity checking
- The ABI is now defined using MACHINE_ARCH meaning freebsd:10:x86:64 is now FreeBSD:10:amd64
  this is encoded in the package as "abi" the old "arch" key remains for compatibility and is translated to the old ABI
- New option ALTABI represent the ancient ABI format
- Repository configuration files can now talle ${ALTABI} as well as ${ABI}
- The audit periodic script is able to audit pkgs in jails or chroots from the host system
- The backup periodic script is able to backup database from jails or chroots to the host system
- The status periodic script is able to report on chroots and jails from the host system.
- The checksum periodic script is able to report on checksum mismatches in chroots and jails.
- pkg check now support -q (--quiet)
- 3 way merge code has been imported from the fossil scm project (not yet in use)
- Code cleanup
- Lots of minor bug fixes
- Update libucl
- Rationalise path before packaging ( /something//bla is not the same a /something/bla)
- pkg info/search -R can now specify ucl as a format for the raw output
2014-10-13 14:30:48 +00:00
Bryan Drewery
dc9116af30 If not built with WITH_PKG=devel, depend on ports-mgmt/pkg. This will use
the normal pkg for packaging pkg-devel. This is needed because the repo is
expected to be only non-devel packages.

This also fixes a poudriere crash when the repo is empty and both pkg and
pkg-devel are built. When pkg-devel would finish first it would crash due to
not having a pkg to use for caching various metadata from the package.

Differential Revision:	D809
With hat:		portmgr
Reviewed by:		bapt
2014-09-22 21:23:52 +00:00
Baptiste Daroussin
627d890c90 Update to 1.4.0-alpha15
Changes:
- pkg register checks conflicts before installing the files
- do not provide any shlibs if the "no_provide_shlib" annotation is set
- fix invalid free() in keywords arguments parsing
- Add ability to select usage of IPv4/IPv6 via config, repository config or command line
- some documentation fixes and improvements
- If one of -P, -I or -R is not explicitly given on the command line, do
  not emit error messages while searching for a mechanism to find data
  about the latest available ports.
- Rework automatic directory deletion
2014-09-14 23:00:04 +00:00
Baptiste Daroussin
f4afd32cb9 Update to 1.4.0-pre-alpha14
Changes:
- New @dir keyword
- @dirrm/@dirrmtry will now expose a warning in DEVELOPER_MODE
- directories outside of PREFIX are now automatically handled
- Determine the running OS version from /bin/sh not uname so that
pkg doesn't think a jail running on a newer host is an OS upgrade
- Remove libyaml
- The plist now entirely default on owner root, group wheel
- Add more regressions tests
2014-09-10 14:07:50 +00:00
Baptiste Daroussin
af46f5c511 Update to 1.4.0-pre-alpha13:
Changes:
- @owner/@group without var reset to root/wheel
- Do not accept @mode with '+-' like u+s or g-w
- Integrate kyua with autools (make check now calls kyua)
- Fix pkg annotate -y
- Fix a regression in pkg_is_valid
- Allow keywords define in ucl files '(Keywords/*.ucl)' to consider its
  argument as a command line argument (aka split it)
- Completly ignore mtree
- Automatically remove any directory under PREFIX if needed
2014-09-03 16:29:13 +00:00
Baptiste Daroussin
d96aa38d95 Remove support for pkg_install
Merge back bsd.pkgng.mk into bsd.port.mk
Add a note about @stopdaemon not being supported anymore

With hat:	portmgr
Differential Revision:	https://reviews.freebsd.org/D693
2014-09-01 13:03:25 +00:00
Bryan Drewery
ac6d9a63e4 - Update to 1.4.0.pre-alpha12
Changes:
  * Documentation updates
  * Fix always refetching of file:// and ftp:// repositories
  * pkg query -g: Fix handling of ranges such as 'name-[0-9]*' which
    is used by ports CONFLICTS checking
  * Fix crash when SIGNATURE_TYPE=PUBKEY but PUBKEY is not defined
  * New output for UX testing/feedback:
    * pkg add - Use a nested tree view due to how the job is handled
    * pkg upgrade/install/delete - Show 'Installing' message separate
      from Extracting or Deleting of files. This is so that any messages
      from the package are shown after noting what is being done. Messages
      were shown before "Installing" before.
2014-08-26 23:04:49 +00:00
Baptiste Daroussin
1f8915aaa8 Do not strip binaries at all this port is a developement ports and should remain with symbols
While here remove remnant code from the pkg pre 1.3 build system.
2014-08-25 21:03:08 +00:00
Bryan Drewery
72333c50d5 Strip the proper file
Reported by:	dbn
2014-08-25 18:46:16 +00:00
Bryan Drewery
d4000ab22c - Update to 1.4.0.pre-alpha11
Users will see a "changed shlibs" reinstall for 'pkg upgrade' until:
    1. _All_ packages on remote repositories are rebuilt with this version
       of pkg.
    2. 'pkg check -Ba' should be run after upgrading pkg but before upgrading
       other packages. This requires #1 though, which is not happening until
       1.3.7 is released. Running 'pkg check -Ba' before the remote repository
       is fixed will just continue to propose reinstalling packages for 'changed
       shlibs'.

Changes:
  * pkg fetch -d: Fix crash (#955)
  * Progress bar improvements/fixes
  * Fix ETA for fetching (#943)
  * Fix progressbar stalled support
  * ETA progress: Account for TCP SLOW START and weigh the first few ticks less
  * Rework 'pkg update' output slightly to clarify what it is doing.
  * pkg check: Add progressbar when not using -v
  * pkg check: Add job counter with using -v
  * pkg clean: Add progressbar
  * Fix hardlink calculations (#958)
  * pkg backup: Add -q
  * pkg backup: Remove docs for '-d -' as it does not work.
  * pkg config: Fix output for arrays/objects (#971)
  * Fix RC scripts being started on deinstall rather than stopped
  * Add some more asserts
  * pkg-fetch.8: Remove reference to removed mirror mode
  * Fix a few typos in pkg.conf.5 (#969)
  * Document new configuration options. (#969)
2014-08-19 22:26:59 +00:00
Bryan Drewery
7d5c5956ac - Update to 1.4.0.pre-alpha10
Changes:
  * Test suite fixes
  * Fix pkg-devel self upgrade when remote repo defaults to non-devel
  * pkg-rquery(8): Add a pointer to EXAMPLES in pkg-query(8)
  * If opening the db in READ_ONLY give a warning if it is missing
  * Give advice on how to recreate the database if auto-updating was skipped
  * Remove pkg --check-activation. It is too tempting to use.
  * Make it more clear that the 'Major version' change is non-fatal
  * Jobs display: Avoid excessive newline before prompt and after unprompted usage
  * Remove references to PACKAGESITE/MIRROR_TYPE/PUBKEY
  * Support uppercase ENABLED in repo config.
  * Avoid POLA, make PACKAGESITE/MIRROR_TYPE/PUBKEY in pkg.conf fatal
  * Fix self upgrade loop with pkg upgrade -Fy
  * Fix self upgrade not using the new pkg binary
  * pkg-{delete,autoremove}: Use a readonly lock in dry run
  * pkg-convert: Add locking. EXCLUSIVE by default, READONLY with -n
  * pkg-convert: Check for proper db permissions for both real and dry_run mode
  * pkg-convert -r: Only a readonly lock is required for converting from the db
  * pkg-convert -r: Add common db access checks
  * pkg convert -r: Don't crash if unable to create the package dir
  * Revert stripping shlib versions from e127d91d4.
    This will require rebuilding packages on the repository and then
    running pkg check -Ba to fully utilize. Until packages are rebuilt
    there may be false-positive shlib reinstalls.
  * pkg {register, check -B}: Fix registering provided shlibs as required
  * When analysing ELF files with DEVELOPER_MODE, don't bail on first error
  * Fix pkg-ssh when SSH_RESTRICT_DIR is a symlink
  * Fix size calculations with hardlinks
  * Fix pkg-which glob
2014-08-16 03:47:14 +00:00
Vsevolod Stakhov
de847b6e8d Update to 1.4.0.pre-alpha9
Changes:
- Fix pkg-delete -q [1]
- pkg-add: Respect locked packages on forced invocation [2]
- Rework fields in manifests digests (based on [3]):
 added:
 * depends
 * shlib provides/requires
 * users
 * groups
 removed:
 * maintainer
 * www
 * message
 * comment
- Fix forced repo update when checksum is changed
- pkg-(add|install|upgrade): Respect locked packages on forced invocation. [2]
- Fix autoremove -n
- Remove dead case fallthrough in pkg_jobs_universe_process_item()
- Remove dead PKG_FLAG_RECURSIVE handling code

Submitted by:	grembo [2]
				Maxim Ignatenko [3]
Suggested by:	az [1]
With hat:	pkg@
2014-08-12 12:13:12 +00:00
Vsevolod Stakhov
7cbb999106 Update to 1.4.0.pre-alpha8
Changes:
- When filtering out shlib archs, compare wordsize first and then ABI arch string
- Fix rquery -e
- Fix install progress output for meta packages
- Fix writing annotations to manifests
- pkg-clean: Show files to delete first
- Add a pkg_symlink_cksumat to fix pkg-delete
- Add packages checksums to digest file to fix broken repo update
- Unbreak pkg-ssh

With hat:	pkg@
2014-08-11 08:57:09 +00:00
Vsevolod Stakhov
805b629918 Update to 1.4.0.pre-alpha7
Changes:
- Fix crash on i386 (thanks to antoine@)
- Ignore duplicates in require/provide
- Add missed call to pkg_list_free for PKG_PROVIDES (thanks to Maxim Ignatenko)
- Print error if we cannot parse manifest
- Select the newest possible package to satisfy dependency
- Check shared libraries architecture and ignore incompatible ones

With hat:	pkg@
2014-08-08 12:23:48 +00:00
Vsevolod Stakhov
c900975a34 Update to 1.4.0.pre-alpha6
Changes:
- Print number of upgrade candidates
- Fix request addition
- Suggest manual resolution for UNSAT problems
- Check repository and force update if it is not valid
- Fix issue with seen packages not added to the request
- Use plain .so for all shared libraries requires/provides

With hat:	pkg@
2014-08-07 15:20:25 +00:00
Baptiste Daroussin
0803b4afd9 Disable maintainer mode to make sure configure never tries to regenerate
the configure and Makefiles
2014-08-06 15:57:07 +00:00
Vsevolod Stakhov
acd3c19d08 Update to 1.4.0.pre-alpha5
Changes:
- Use picosat SAT solver instead of the internal one:
 * production grade solver that is extensively tested
 * faster than internal one
 * has more flexible features
- Fix issues with adding items to the universe
- Fix forced operations

With hat:	pkg@
2014-08-06 15:05:45 +00:00
Vsevolod Stakhov
069cc7d61a Update to 1.4.0.pre-alpha4
Changes:
- The solver and jobs interface were completely reworked:
 * multirepos have now better support
 * fix a number of issue with missed shared library dependencies
 * upgrade and install are now more clever about chosing repositories
 * implement package pinning to a repository
 * add heuristic to resolve conflicts between remote packages
 * removed tonns of old hacks
 * arrays are now used in many places instead of lists for performance
 * some hash tables are improved by using direct pointers hash
- Minor fixes
2014-08-05 13:11:23 +00:00
Vsevolod Stakhov
1f2e788731 Update to 1.4.0.pre-alpha3.
Changes:
- Explicitly pass when passmode should be used with libarchive
- Properly trim end spaces in plist for files and directories
- Fix pkg ssh client
- Fix pkg_env
- Follow symlinks in fstatat otherwise it breaks repos created by poudriere
- Fix sqlite on FS without proper locking mechanism
- Fix pkg install -A
- Do not distinguish anymore between dirrm and drirmtry
- Fix options parsing by libucl
- Rework repo update to avoid early repo destruction
- Fix forced update
- Update errors are now not fatal
- Fix realpath usage
- Fix pkg set -o
- Fix progress bars when not in a tty to give output
- Ignore sigpipe to avoid resources leak
- Read lock is now no-op unles READ_LOCK option is turned on
- Fix incremental repo updates (size missmatch error)
- Add a rootfd to simplify handling of relocation
- Implement a set of *at functions
- Improve documentation
- Tons of minor bugfixes

With hat:	pkg@
2014-08-03 22:42:09 +00:00
Vsevolod Stakhov
d8a2263b12 Update to pre-alpha2.
This build includes all fixes from pkg 1.3.2 plus the following changes:
- Fix an issue with pkg-repo that prevents from getting all packages in the
 archive
- Fix an issue with manifests parsing on big-endian platforms
- Add help messages for aliases (by admi3)
- Fix linkage with sbuf (always use bundled sbuf)

With hat:	pkg@
2014-07-28 12:56:47 +00:00
Vsevolod Stakhov
392d6b7db9 Prior to release 1.3 update pkg-devel to 1.4.0.pre-alpha1.
This version is equal to pkg 1.3.0 tag.

Changes from 1.3.0.rc4:
- Use rename(2) to install symlink [1]
- Link directly pkg frontend to libsbuf
- Rework installation logic:
 If a file is found on the way do the following:
 1) Append 12 chars random suffix to the filename;
 2) Extract new file to that modified filename;
 3) Rename new file to old file.
 - or -
 3) Remove temporary file in case of error.
- Fix reporting of locked packages [2]
- Fix link with binutils 2.24

Reported by:	bdrewery[1], az[2]
With hat:	pkg@
2014-07-23 14:11:10 +00:00
Vsevolod Stakhov
b9ef0484b7 Update to 1.3.0.rc4
Changes:
- Fix output format when a dependency is missing
- Fix typo (dbpath -> dbdir)
- Create repo compatible with pkg 1.2 (path -> repopath)
- Event pipe related fixes
- Fetching now does not use mkstemp(2) to create files
- Change permissions of files fetched to default ones
- Fix fetching for reinstalled packages
- Fix build on mips by proper checking of atomic builtins

With hat:	pkg@
2014-07-22 16:02:04 +00:00
Vsevolod Stakhov
50e6275ec8 Update to 1.3.0.rc3.
Changes:
- Fix bug in upgrade repos schemas from 1.2 [1]
- Fix repos downgrade sql
- Add -r (--recursive) flag to pkg-audit that makes pkg-audit to print all
 reverse dependencies of vulnerable packages. This allows users to
 upgrade or reinstall potentially vulnerable packages.
- Rework pkg-audit to support pkg names without versions
- pkg-audit now supports multiple patterns in the command line
- Do not throw failed assertion if pattern is empty in [r]query
- Fix symlinks checksum verification in pkg-delete
- Fix bug in libucl variables parsing code
- Add --raw-format to info/search
- Ignore not top level packages with missing fields (for example, missing dependencies)
- Make dependency missing message more informative [1]
- Introduce mirror mode for pkg-fetch
- Add -o flag to pkg-fetch to specify mirroring output directory

Found by:	az [1]
With hat:	pkg@
2014-07-18 13:53:23 +00:00
Vsevolod Stakhov
a79014ceac Update to rc2.
Changes:
- Fix critical bug in the solver caused not required packages being installed
- Rework DPLL algorithm to solve tasks quicker by propagating units on each step
- Fix bug with loading of package files and directories
- If all files are downloaded then perform integrity check immediately without extra queries to a user
- Removed incorrect error messages

With hat:	pkg@
2014-07-09 12:11:30 +00:00
Vsevolod Stakhov
776a2caed6 Update to release candidate 1.
Changes:
- Fix repo ident for local packages [1]
- Fix pkg-stat
- Improve safety of 1.2 -> 1.3 database migration
- Fix minor bugs in progress bar
- Restart system calls on SIGALARM

Submitted by:	des[1]
With hat:	pkg@
2014-07-07 13:27:06 +00:00
Vsevolod Stakhov
5885a25654 Update to 1.3.0.b9
Changes:
- Quit pkg ssh if an error occurs while reading
- Fix critical issue with manifest fields (path->repopath) [1]
- Set reponame for local packages [1]
- Fix forced upgrade [1]
- Fix packages count in pkg-delete
- Allow override `enabled` state for repos
- Fix message if a pattern has not been found
- Move the pkg_keys[] array from private/pkg.h to pkg.c to reduce duplication [1]
- Add package validation function
- Fix local packages installation
- Validate pkg when changing its uid
- Rework solver initial guessing
- Fix multirepos documentation
- Fix issue with repository metafile updating
- Fix issue with unnecessary fingerprints check
- Fix meta loading

Submitted by:	des [1]
With hat:	pkg@
2014-06-30 13:52:33 +00:00
Vsevolod Stakhov
5e1f0868b9 Update to 1.3.0.b8.
Changes:
- Fix pkg-backup display issues
- Fix UID changing when looking for upgrade candidates
- Rework integritycheck procedure to use uids
- Improve searching of local and remote packages
- Lazy load of files and dirs for remote packages
- Fix upgrades with UID changed
- Fix actions count in jobs progress display
- Fix serious bug in pkg-repo by moving to socketpairs from pipes
- Detect SOCK_SEQPACKET support and fallback to SOCK_DGRAM (for 8.x)

With hat:	pkg@
2014-06-26 13:30:24 +00:00
Vsevolod Stakhov
2ecafe66a4 Update to 1.3.0.b7
Changes:
- Save repo type in the annotation.
- Fix packages fetching for reinstallation
- Convert pkg repo from threads to processes (no more pthread dependency)
- Add progress indicators to repo create
- Implement new repo style:
	* Add metafile
	* Use data from that metafile
	* Use advanced manifest digests format
	* Implement legacy repos creation
- Fix symlinks checksums (reported by misha @ #pkgng)
- Fix pkg backup -r messages
- Now pkg is able to delete multiple versions of the same package (e.g. when some packages are
 merged into one another)
- Fix repo schema upgrade
- Do not try to re-fetch broken packages infinitely
- Fix couple minor bugs and crashes

With hat:	pkg@
2014-06-23 13:56:49 +00:00
Vsevolod Stakhov
c2ff371b35 Update to 1.3.0 beta6.
Changes:
- fixed pkg-delete bug
- fixed issues with progress displaying

With hat:	pkg@
2014-06-20 08:47:53 +00:00
John Marino
cb4839820c ports-mgmt/pkg-devel: Chase relocation of pkg.8 man page
The pkg.8 manpage is edited by an extra patch on DragonFly due to
differences in jail operation.  The patch no longer applies both due
to file relocation and regular bitrot.  Regenerate the patch and
change its name to reflect the new file location.  This is a no-op
on all releases of FreeBSD.

Approved by:	just-fix-it blanket
2014-06-19 20:51:52 +00:00
Vsevolod Stakhov
9b7cae180b Update to 1.3.0 beta5
Changes:
- repositories system has been reworked to support opaque repository operations
- progress bar has been reworked and simplified
- pkg backups generated by the distributed script are now plain sql files
- fixed some visual issues while installing packages

With hat:	pkg@
2014-06-19 13:18:42 +00:00
Vsevolod Stakhov
cf38f40174 Update to 1.3.0.b4.
With hat:	pkg@
2014-06-15 15:10:11 +00:00
Vsevolod Stakhov
e6c4b05d8b Change the maintainer of the development version of pkg to pkg@ instead of portmgr@
Approved by:	portmgr (bapt, bdrewery)
With hat:	pkg
2014-06-14 12:33:31 +00:00
Bryan Drewery
600d8ff67a Fix regex, which fixes portmaster/portupgrade integration
Reported by:	kwm
2014-06-12 20:15:10 +00:00
Bryan Drewery
913fc3d387 Fix loading of reverse dependencies 2014-06-11 19:41:23 +00:00
Baptiste Daroussin
6c35651f27 Update to 1.3.0 beta3
Changes:
- Now unicity is made on the typle (origin, name) to allow sub packages but cannot be made to only name to break installation from prior sanitization of the names
- Fix pkg stat
- Fix speed regression
- 411.pkg-backup does not hide errors anymore
- Improve documentation
- debug now print stacktrace on freebsd 10+
- globalize common variables
- new option to allow profiling sql queries
- fix flatsize calculation
- improve ui (better output)
- add a new shiny progress bar and start using it everywhere
- create a pkg_checksum api
- fix pkg rquery -I
- rework package digest
- allow to use ldns instead of the FreeBSD dns api if needed
- change the upgrade package path: first rename a file then extract the new file then unlink the renamed one
- add a version script to avoid exposing external third party library symbols
- fix pkg upgrade (it was changing the automatic flags when it shouldn't)
2014-06-11 16:01:34 +00:00
Baptiste Daroussin
7d6a250fe2 Update to pkg 1.3.0 beta2
Changes:
- more fixes in pkg audit
- move audit functions into the library
- pkg lock -l now list the locked packages
- database lock behaviour is now configurable
- symlinks now has a checksum to ensure they are valid
- more fixes on the solver
- add long version of the options
2014-05-22 10:11:10 +00:00
Baptiste Daroussin
56c0e361c4 Update to 1.3.0 beta1
Changes:
- pkg audit now accepts vuln.xml with multiple package names
- Prefer SONAME instead of filename for library provides
- Do not require dependencies that are self provided
- pkg upgrade can now have a name in argument to only upgrade a given package and its dependencies
- Lots of bug fixes
2014-05-07 13:29:45 +00:00
Baptiste Daroussin
cecd3824ae Update to 1.3.0 alpha10
Changes:
- Document pkg search -U
- Reduce memory usage when loading a package
- Validate package loading against a ucl schema
- Sandbox signature checking with capsicum
- Update man pages
- Be pedantically correct about units and scale factors
- Now uses sqlite full text search extension
- Allow case insensitive search
- Fix pkg add -f
- Lots of fixes in the solver
2014-04-30 13:21:06 +00:00
Tijl Coosemans
aad09bc5e2 When linking a library libA with a library libB using libtool, if libB.la
exists, libtool will add all libraries libB.la refers to (dependency_libs
field) to the linker command line and store them in the dependency_libs
field of libA.la.  So everything that subsequently links with libA will also
link to these extra libraries.  This causes too much overlinking.

This commit modifies Mk/Uses/libtool.mk so it empties the dependency_libs
field in .la libraries during staging.  However, because .la libraries have
very limited use when dependency_libs is empty it makes sense to completely
remove them during staging.

So with this commit USES=libtool is modified to remove .la libraries and a
new form (USES=libtool:keepla) is introduced in case they need to be kept
(dependency_libs is still emptied).

PORTREVISION is bumped on all ports with USES=libtool that install .la
libraries.  Most ports are also changed to add :keepla because .la
libraries have to be kept around as long as there are dependent ports with
.la libraries that refer to them in their dependency_libs field.  In most
cases :keepla can be removed again as soon as all dependent ports that
install .la libraries have some form of USES=libtool added to their
Makefile.

PR:		ports/188759
Exp-run:	bdrewery
Approved by:	portmgr (bdrewery)
2014-04-23 13:25:16 +00:00
Baptiste Daroussin
defeff25f1 Update to 1.3.0 alpha9
Changes:
- Fix important regression due to bad usage of libucl
- Validate keywords against a schema
- repos can now present metadata
2014-04-16 15:23:10 +00:00
Baptiste Daroussin
ceb24859ae New patch to avoid tons of cores to be created in case of bad failures
This time bump portrevision
2014-04-15 17:24:28 +00:00
Baptiste Daroussin
7a4ec467a9 Update to 1.3.0 alpha8
Changes:
- Detect invalid packages that list directories in plist
- new pkg_emit_query_(yesno|select) to allow the library to ask question to the user
- Reinstall packages on upgrade if remote abi changed (this catches up automatically major upgrade of freebsd)
- Ability the specify the file to read the ABI from
- add --relocate to pkg add and register (this is totally unsafe to use a a normal user, it is intended to be used in the ports tree)
- clean/improvements in the repo handling functions
- validate the directory is actually a port directory when running pkg version against the ports tree
- new pkg audit -f <file> to run pkg audit against a local file
- pkg -j and pkg -c are now able to restart themself
- pkg version against the ports tree now works even if current working directory has been deleted out from underneath us.
- Improved pkg upgrade/install/delete output
- Improve cache handling
- Make pkg update more verbose
- new RUN_SCRIPTS options (default on) to be able to switch of the running pre/post operation scripts
2014-04-15 14:48:12 +00:00
Baptiste Daroussin
61ca29f0fc Add the ability to specifiy the file where the ABI string will be determined
from
Enfore USES=libtool (the default libtool to not really respect CC and thus breaks
cross building)
2014-04-03 13:33:37 +00:00
Baptiste Daroussin
ad4a7feb3b Update to 1.3.0.a7:
Changes:
- pkg create uses a readonly lock
- pkg create returns non 0 is package creation failed
- rework the cache so that is avoid collision with multirepo and avoid warning the users harmless checksum retry
- do not cache anymore files when using file:// scheme
- Preserve automatic flags of local packages.
- Use installed provides if possible.
- Fix local and remote logic for provides and conflicts.
- Optimize SAT solving slightly.
- Make duplicate-related warning fatal in developer mode
- Continue turning the public api into pkg_objects
2014-03-31 16:56:39 +00:00
Baptiste Daroussin
703a9826c8 Update to 1.3.0.a6:
Changes:
- pkg delete is not recursive by default
- pkg delete ui now explain why a package will be removed
- pkg which now handle PATH when looking for a file
- shared libraries are now directly resolved in the solver (no need anymore for explicit package dependency)
2014-03-31 10:23:49 +00:00
Baptiste Daroussin
4241879be2 Release 1.3.0.a5
Changes:
- Added ability to install packages with missing dependencies
- Do not enter in a sandbox if the database is open
- Do not count the lock owner as lock blocker.
- Lots of rework and fixes to improve the solver when trying to upgrade very old package database.
2014-03-25 17:17:22 +00:00
Koop Mast
2f2121a38d Add orphaned file to plist.
Approved by:	bapt (just do it)
2014-03-21 15:53:33 +00:00
Baptiste Daroussin
e20f0482c2 Update to 1.3.0 alpha4
Changes:
- Reimport old pkg add (aliasing it to install was too optimistic at the moment)
- Fix pkg install ./file with package lacking the manifestdigest information)
- Fix a bug resulting in "pkg-static: sqlite: no such savepoint: upgrade"
2014-03-21 13:26:58 +00:00