Commit graph

199 commits

Author SHA1 Message Date
Ryan Steinmetz
b76b458340 - Instruct portscout to ignore these 2017-01-03 20:38:47 +00:00
Baptiste Daroussin
0693ccefbe Fix file descriptor leak that might lead to errors on packages with lots of files
PR:		215544
Submitted by:	pasokondokoro@gmail.com
2016-12-25 15:15:38 +00:00
Baptiste Daroussin
0c586c93ba Update to 1.9.4
- Stop dropping privileges for fetching, it causes more issues than it solves
- Fix segfault when ABI is defined by empty
- Fix reporting of deprecated packages
- Provide instructions on how to unset vital flages
- Fix libfetch for NetBSD
- Fix @config potential double free
- Always warn about the deprecated @dirrm/@dirrmtry
- Always warn about the deprecated @exec
- Rework pkg register to share more code with pkg install
  * It makes it more robust to libarchive regressions [1]

PR:		214381 [1], 215029 [2]
Reported by:	lampa@fit.vutbr.cz [1]
Exp-run:	antoine [2]
2016-12-08 09:27:04 +00:00
Baptiste Daroussin
e39c5c4efc Update to 1.9.3
- Fix file descriptor leak during rc script execution
- Fix setting attributes on directories
- Fix locking on NFS
- Allow pkg annodate -S to run as a non priviledge user
- Extend the audit periodic script to report about expiration/deprecation
2016-11-03 22:20:08 +00:00
Baptiste Daroussin
1bc4c308f8 Update to 1.9.2
- Fix NetBSD ABI
- Add a fallback for when utimensat returns EOPNOTSUPP like on some NFS servers
- Install the NEWS file
2016-10-29 09:01:16 +00:00
Baptiste Daroussin
df21debbe1 Release 1.9.1
- fix a fd leak on freebsd <11

Reported by:	mat
Tested by:	mat
2016-10-16 14:55:49 +00:00
Baptiste Daroussin
dd098475c5 Update to 1.9.0
- Drop privileges in many commands
- Drop privileges when fetching a file
- Add resource limitation in sandboxes
- Add support for METALOG
- pkg delete new prints a warning for pattens that matches nothing?
2016-10-15 21:26:17 +00:00
Bryan Drewery
f771ab66f2 Force a rebuild to bring in libarchive fixes from head r305819.
MFH:		2016Q3
2016-09-14 23:41:39 +00:00
Baptiste Daroussin
e7badd6689 Add javavmwrapper 2.5_1 to the list of buggy scripts 2016-09-13 20:29:54 +00:00
Baptiste Daroussin
a203d9f11c Add a hack in pkg to skip running predeinstall for javavmwrapper-2.5
During upgrades/reinstall javavmwrapper 2.5 pre deinstall script deletes the pkg
temporary files preventing to finish the upgrade.

A fixed version of javavmwrapper will be made soon, this hack will remain in the
ports tree and not in pkg(8) itself. This hack is made to not bother users is
only affecting upgrade/reinstall phase not proper deinstall

PR:		210313
2016-07-31 11:52:22 +00:00
Baptiste Daroussin
b6c1d8ce53 Update to 1.8.7
- update internal expat to 2.2.0
- fix external solver
- fix build on freebsd pre 9.2
- fix warnings on armv6
- fix solver issue resulting in missing conflicts or reinstalling unneeded
  packages
- add a mini summary at the end of the output
2016-07-05 15:15:52 +00:00
Baptiste Daroussin
80871d0e41 Release 1.8.6
- Important fixes in the solver
- When conflicts are found, they are explicitly printed
- Reduce namecache contention a bit
- Temporary files created during extraction are now hidden
- Accept symlinks to directories when pkg is expecting a directory
2016-06-25 11:48:14 +00:00
Baptiste Daroussin
d7f63035c7 Fix pkg upgrade -f 2016-06-12 22:41:04 +00:00
Baptiste Daroussin
f8a8451d63 Release 1.8.5
Changes:
- Fix mirror_type: http with https servers
- Fix regression in the solver that tries to reinstall reverse deps sometime
2016-06-09 21:21:03 +00:00
Baptiste Daroussin
2c20fde739 Add a patch to fix grabbing mirror lists over https
Note that people are using mirror_type: http when they should not
most probably due to bad documentation on our side so we will improve that later

mirror_type: http is only useful if you actually host multiple mirror of your
repos see pkg-repository(5).
2016-06-08 14:04:50 +00:00
Baptiste Daroussin
508189966c Update to 1.8.4
Changes:
- Fix: setting date on system not POSIX 2008 compliant (like FreeBSD 8)
- Fix: running pkg in env where the 0 file descriptor is closd
- Fix: make http mirror type respect the specified port
- Fix: chown/chmod on linux
- Fix: pkg ssh
- Improved upgrade chain in multi repo environment
- Update libucl to latest version
2016-06-05 09:08:50 +00:00
Baptiste Daroussin
e50957faea Update to 1.8.3
Changes:
- upgrading/reinstall packages also need to not check the result of the predeinstall script :(
2016-05-23 18:11:29 +00:00
Baptiste Daroussin
60d910a9c9 Do not check deinstall script results at all except if DEVELOPER_MODE is set
Due to too many bad quality ports, for now we are back in not checking pre/post
deinstall scripts at all except if DEVELOPER_MODE=yes is set, we hope to readd
those checks once the ports have been fixed
2016-05-23 12:25:30 +00:00
Baptiste Daroussin
db527ddf9d Update to 1.8.1
Changes:
- Fix double free in pkg updating
- Drop failures on POST-DEINSTALL (still too many failures in ports there :()
2016-05-23 09:53:15 +00:00
Baptiste Daroussin
e55afefa90 Release pkg 1.8.0
New features:
- new vital flag that prevent from removing a package with pkg delete when not specifying -f
- upgrade process now has atomicity per packages meaning now we can safely check the return of the pre* scripts
- handle ctrl-c during upgrade/install/update
- solver improvements
- pkg clean now runs in a capsicum sandbox on supported plateforms

Changes:
- pkg delete now fails if one tries to delete it (the pkg package) without -f. Before it was just warning and skipping it
- pkg install --from-root has been renamed pkg install --recursive to avoir confusion

Fixes:
- correctly handle hardlinked setuid files
- better handling of setuid
- fix elf analysis when some bad libraries have SONAME specified by empty
- fix elf analysis when a binary provides elf_notes but not the expected ones and are still valid freebsd binaries
  (this fixes the case when libgdk_pixbuf was not found as a provided lib on i386)
- NAMESERVER option is now working again and inputs are better checked
- lots of bug fixes: potential leaks mostly
2016-05-22 15:12:16 +00:00
Baptiste Daroussin
ec0aae92aa Update to 1.7.2
Changes:
- Update libucl to latest version which fixes an issue with empty pkg.conf (regression test added)
- pkg install on an already installed package returns 0 again this regression was introduced when fixing pkg lock (regression test added)
2016-04-06 07:06:23 +00:00
Baptiste Daroussin
95792e97da Update to 1.7.1
This release fixes regressions:
- detection of new version of pkg could fail
- if the all process operation would have an inpact of less than 1MB on the FS
  then the action is proceed with out asking the user to acknowledge it
2016-04-02 12:51:08 +00:00
Baptiste Daroussin
5f4b8f7e80 Update to pkg 1.7.0
Changes:
- Support new "vital" notion: prevent from implicit deletion
- Improved support for OpenBSD/bitrig (still lacks some functions in libc)
- Improved ZSH completion
- Updated libucl
- Lots of fixes in error messages
- Fixed "pkg lock" handling
- Allow to specify "inline" respositories in pkg.conf
- ipv6 fixes
- Allow to restrict the accepted url schemes
- More commands supports "-q"
- Multiple bug fixes
- As usual multiple new bugs
- Improved support for shlibs dependency generation when packaging base via ALLOW_BASE_SHLIBES
2016-04-01 22:24:56 +00:00
Bryan Drewery
da7ab928ba Add missing patch for r409562 2016-02-25 22:35:10 +00:00
Baptiste Daroussin
255a33dd69 Add a patch to fix hardlink installation
pkg 1.6.5 is on its way but requires more testing
2016-02-25 21:49:33 +00:00
Baptiste Daroussin
bd61a67da2 Update to 1.6.4
Changes:
- Fix hardlinks extraction with --rootdir
- Relax url scheme acceptance to allow file:/ and file://
- Accept pkg+ for url scheme where it was never intended to be used, because users used it anyway
- Remove pkg-message
2016-02-10 23:27:17 +00:00
Baptiste Daroussin
e13581d0d9 Update to 1.6.3
Changes:
- Allow to limit the valid url scheme in pkg.conf
- Add support for SOURCE_DATE_EPOCH: https://reproducible-builds.org/specs/source-date-epoch/
- Fix pkg check -d
- Fix testsuite with kyua 0.12
- Fix completion on pkg info -l
- Reduce te probability to get an infinite loop on pkg version check
- Fix pkg version -q
- Update libfetch to the latest version from head
- Debug mode is now verbose when fetching
- Fix segfault with empty HTTP_USER_AGENT
- Fix segfault when parsing invalid URL
- Fix build on OS X
- Better error reporint on issue during pkg create

Note that this release will be merged to quarterly branch in 10 days
2016-01-26 23:44:58 +00:00
Baptiste Daroussin
7878a5ea8e Update to 1.6.2
Changes:
- Fix cross building
- Improved zsh completion
- Improved error messages
- Improved documentation
- Bug fixes in the solver
- Allow to specify repositories directly via pkg.conf
- Allow multiple version of the same package in a repository
- Fix ipv6 testing in configuration
2015-11-23 21:56:14 +00:00
Baptiste Daroussin
a89f3b5d08 Seems like there is no place for humour :(
Requested by:	many
2015-10-31 15:13:01 +00:00
Ryan Steinmetz
edc9841089 - Add bapt-get symlink
- Bump PORTREVISION

Approved by:	portmgr (bapt)
2015-10-20 16:04:34 +00:00
Baptiste Daroussin
f3b3f6076a Release pkg 1.6.1
Changes:
- Fix a regression in performance when listing files [1]
- Remove references to EOLed FreeBSD version in manpages
2015-09-27 19:39:24 +00:00
Baptiste Daroussin
0a0888440f Release pkg-1.6.0
Changes since pkg-1.5 series
- Lots of improvements in the solver (in particular fixes the case like the
  recent jpeg upgrade)
- Lots of fixes in the 3 way merge code
- pkg add can now work without a version specified in the dependency line
- pkg check -d now also check the required libraries
- Improved support for partial upgrades
- Improved zsh completion support
- Improved linux support (now all regression tests passes on linux)
- Messages can now be context aware: (only print a given message during
  installation, upgrade - version aware -, removal, or always)
- @keywords now accepts new entries to add context aware messages
- Add the ability to generate graphiz's dot format representation of the
  solver's problem
- pkg search now default on showing the comments of of the matched packages
- Lots of bug fixes and code cleanup
- Document @{pre,post}[un]exec in plist added in pkg 1.5
2015-09-25 23:14:18 +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
5408cac7ef Update to pkg 1.5.6
Changes:
- Incorporate in sources the patch for expat CVE-2015-1283
  Note that pkg is not vulnerable because it does not use the patched function
- improvements in pkg check manpage
- fix format specifier in libpkg's pkg_vets
2015-08-11 22:00:42 +00:00
Baptiste Daroussin
61ccdb94ea Release pkg 1.5.5
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.
2015-07-14 14:04:19 +00:00
Baptiste Daroussin
febc0cf608 Update to 1.5.4
Changes:
- Fix partial upgrades
- pkg create -v now ticks (print does on a regular basis) if not on a tty
- Fix vuxml url in sample configuration
- zsh completion improvements
2015-06-11 13:58:07 +00:00
Baptiste Daroussin
c0a105285e Update to 1.5.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
- Do not pushed in shlibs required any library we can find in the list of files
  owned by the package
2015-05-30 09:01:35 +00:00
Baptiste Daroussin
aa69fca2a3 Update to 1.5.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
- 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:50:51 +00:00
Baptiste Daroussin
e78a6af418 Update to 1.5.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:28:37 +00:00
John Marino
aadfeb0da6 ports-mgmt/pkg: Regenerate EXTRA_PATCHES (unbreaks DragonFly)
The patch target will fail if EXTRA_PATCHES is defined, but it is
only defined on DragonFly (change is no-op for FreeBSD)

Approved by:	Just fix it
2015-04-14 21:32:00 +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
27b1e9e432 Update to 1.5.0
Changes since pkg 1.4.0:
- Initial provides/requires support
- Lots of new regression tests have been added
- Initial support for OS X
- Initial support for NetBSD/EdgeBSD
- Update most of the bundled third party software has been updated to their
  latest version
- Improve the messages reported by pkg
- Properly support file flags
- Implement argument support for custom keywords
- Extend setting credential via plist to allow to set file flags
- Make credential syntax via plist more flexible allow to only defines the first
- pkg updating now supports case insensitive matching
- pkg create now support a verbose mode
- Add an option to change the default on question, until now the default answer
  was "No" with that option set it would be "Yes"
- Lots of fixes to pkg audit -r
- Global memory usage reduction and speed up
- Improvements and cleanup on pkg alias
- pkg annotate --show --all has been fixed
- Make pkg.h C++ friendly
- Lots of improvements in the solver
- Lots of fixes on 32 bits platforms
- Add support for: pkg create -M ./plop.ucl -p ./plop.plist
- New pkg -r <rootdir> that will install in the given rootdir without chrooting
- Export PKG_ROOTDIR to scripts allow to make them as portable as possible
- Stop trying to remove all installed package with the argument of pkg delete is
  a local file
- Be more explicit about why the solver it going to reinstall, remove or upgrade
  (when possible)
- Plenty of bug fixes
- Plenty of new bugs
- pkg shlibs now support -q
- pkg lock gained a new --has-locked-packages option
- pkg now resumes fetch if possible
- CONSERVATIVE_UPGRADE is now on by default
- pkg alias now have a -l argument to list aliases
- A sample pkg.conf is now installed with a bunch of aliases set by default
- Fix the backup script to properly export an sql which will be importable via
  pkg shell and/or sqlite out of box

Thanks to all testers and contributors,
2015-04-14 19:07:53 +00:00
Baptiste Daroussin
e21fae5c5d Pass maintainership to pkg@ 2015-03-25 15:48:13 +00:00
Baptiste Daroussin
3c3b3a32c6 Release pkg 1.4.12:
- Fix a bug that can generate an unlinkat issue on dragonfly
2015-02-13 19:45:44 +00:00
Baptiste Daroussin
d8b3fe2296 Release 1.4.11
Changes:
- 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:44:47 +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
4b43394ffe Update to 1.4.8
Changes:
- Tons of resources leak plugged (thanks coverity)
- Fix size calculation output
- Fix 'pkg add -M -'
- Update libucl to latest version
- Improve documentation
2015-02-04 20:48:33 +00:00
Baptiste Daroussin
de9b9ec948 Release 1.4.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.
- Lofs of fixes on the chflags handling
2015-01-23 15:57:20 +00:00
Baptiste Daroussin
2f45dcbc07 Release 1.4.6
Fix a last minute regression
2015-01-17 17:43:17 +00:00