Commit graph

265 commits

Author SHA1 Message Date
Baptiste Daroussin
18793d1058 ports-mgmt/pkg: update to 1.17.5
Changes from 1.17.4 to 1.17.5
- pkg add: only runs triggers at the end of the equivalent of a transaction
- pkg search: fix the combinaison of -q and -o
- pkg fetch: correctly exit with error on fetch failures
- Improve error message when failing to drop privileges
2021-11-12 11:12:43 +01:00
Baptiste Daroussin
7f73a93ef2 ports-mgmt/pkg: update to 1.17.4
Changes
- ensure pkg waits for the programs executed by the triggers
2021-11-04 17:38:32 +01:00
Baptiste Daroussin
e9e85de23c ports-mgmt/pkg: update to 1.17.3
Changes:
- revert 2 regressions,
  * periodic script for audit which reduced verbosity
  * the fallback on version mismatch on pkg add
- prevent an endless recursion on the solver
- make fingerprint signature validation respect rootdir

MFH after:	1 week
2021-10-19 08:25:18 +02:00
Baptiste Daroussin
5094187e53 ports-mgmt/pkg: update to 1.17.2
- make audit.h c++ friendly
- fix build with libressl
- autoremove now respects -q
- version: reports error if INDEX file does not exists but is expected
- periodic audit:
  * Allow user to specify which jail not to audit
  * New option to ignore deprecation and expiration warnings
  * Reduce verbosity of the report
  * Add a script to audit base
- register: implement -N to actually not register in the database
- fetch: do not count cached package in the list to be fetched
- query: -e is not supported as additional condition
- fix pkg not finding its db when run from a directory which does not exists
  anymore
- De-prioritize upgrade-removals in the solver
- triggers:
  * run them for pkg register and pkg add
  * Add pkg.readdir lua function
  * Add documentation for the triggers
2021-09-21 10:23:31 +02:00
Baptiste Daroussin
acd0a3266d ports-mgmt/pkg: retag the release
The tag was put on the wrong version of the release, (missing the NEWS
update and the internal version update)

retag it
2021-07-27 18:08:15 +02:00
Baptiste Daroussin
bfb91594d9 ports-mgmt/pkg: release 1.17.1
Changes from 1.17.0 to 1.17.1
- by default only create .txz symlinks for metadata
- only consider the .pkg when creating a repository
  add an option REPO_ACCEPT_LEGACY_PKG to keep index old pkg
- Reduce usage of memory stack
2021-07-27 17:52:53 +02:00
Baptiste Daroussin
e497a16a28 ports-mgmt/pkg*: Release 1.17.0
TL;DR: new uniq package file extension: '.pkg'

Full changelog for pkg:
- add a new "snap" prefix, to deal with pkg base snapshots
- pkg repo now accepts packages with different compression formats
- pkg now have a single extension: ".pkg" and a backward compatible
  symlink is created when the package is created to help transitioning
- Default compression level for zstd is now set to 19
- the default compression level is now a configuration option
- plenty of portability fixes
- fix plenty of typos
- expose the name of the package to lua and shell scripts
- plist:
  remove internal support for @*exec (this is now in the ports tree)
  remove support for @ignore
  remove support for @dirrm/@dirrmtry
  remove support for @pkgdep
  remove stub support for @stopdaemon
  remove stub support for @display
  remove stub support for @mtree
  remove stub support for @conflict
- VUXML: fetch .xz compressed version of the file by default
- triggers are deferred to later command (firstboot is planned) if run
  with pkg -r
- pkg triggers commands has been added and can execute the deferred
  triggers for example at firstboot

Changes in the framework:
- Add a backward compatibility layer, so people are not forced to move
  to pkg 1.17 yet (new quarter we will enforce the switch for triggers
  anyway, but it gives time to people to switch)
- Introduce a new PKG_COMPRESSION_FORMAT for users to specify the
  compression format they are willing to use when creating packages:
  txz, tar, tgz, tbz, tzst are the valid ones (note that tzst is only
  usable on FreeBSD 13 and 14)
- Add a backward compatibility for people who specified the compression
  format already via PKG_SUFX and issue a warning to tell them about the
  deprecation of PKG_SUFX
2021-07-22 10:05:59 +02:00
Mathieu Arnold
cf118ccf87
One more small cleanup, forgotten yesterday.
Reported by:	lwhsu
2021-04-07 10:09:01 +02:00
Mathieu Arnold
305f148f48
Remove # $FreeBSD$ from Makefiles. 2021-04-06 16:31:07 +02:00
Emmanuel Vadot
08e8765a42 ports-mgmt/pkg: Update to 1.16.3
- lua: filecmp: Fix for symlink

PR:	253292, 250439
Approved by:	bapt (implicit)
MFH:		2021Q1
2021-02-18 18:11:06 +00:00
Emmanuel Vadot
25f680fffe ports-mgmt/pkg: Update to 1.16.2
Changes from 1.16.1 to 1.16.2
- libpkg: add a snap(shot) version prefix
- libpkg: only upgrade installed packages with pattern matches
- Document pkg-lock(8) accepts a list of packages

Approved by:	bapt (implicit)
2021-01-20 14:35:40 +00:00
Adam Weinberger
011cbbbfb6 ports-mgmt/pkg: Update WWW
The pkg wiki entry (https://wiki.freebsd.org/pkgng) says "The content of this
page was outdated and misleading so it has been deleted." Instead, point to
the upstream github repo where truths about pkg can be found.

Approved by:	pkg (bapt)
2020-12-28 09:05:45 +00:00
Baptiste Daroussin
b8c209a747 Update to 1.16.1
Fixes: pkg audit -q output

Reported by:	many
2020-12-26 15:53:09 +00:00
Baptiste Daroussin
982fa079a5 update to 1.16.0
Main highlights:
- Add support for RISC-V
- plist now supports '@include <anotherfile>'
- Keywords can now validate the plist syntax at packaging time
  validation is done via a lua script
- Keywords can issue a deprecation warning if needed
- Add support for triggers (lua and shell scripts possible)
- pkg create -e now will create a package with a readable MANIFEST

but also:
- pkg-query now supports %X to print the internal package checksum
- remove usage of utstring
- lua scripts can now take real arguments
- get rid of sysexits
- improve performances for pkg query -F
- Fix an issue with metalog duplicated entries
- Relax keywords attributes syntax by allowing spaces
- Fix a crash when pkg is told to package a directory as a file
- pkg upgrade -n does not run anymore the "prior" test for self pkg upgrade
  but instead prints everything that will be upgraded including pkg
- pkg info now print the installed timestamp and repository in --raw output
- print all missing packages not only the first one encountered
- All commands are now consistently using --no-scripts
- pkg audit now accepts a -R/--raw option for parseable output
- some fixes in the solver

PR:		251696
2020-12-22 18:52:05 +00:00
Emmanuel Vadot
cd3a338678 ports-mgmt/pkg: Update to 1.15.10
Add a workaround for https://bugs.freebsd.org/250271

PR:		250059
Approved by:	bapt (implicit)
MFH:		2020Q4
2020-10-11 13:00:43 +00:00
Emmanuel Vadot
20f0c7125b ports-mgmt/pkg: Update to 1.15.9
Changes from 1.15.8 to 1.15.9:
- lua_pkg_copy when copying a symlink

PR:		248314
Approved by:	bapt (implicit)
2020-10-04 14:14:51 +00:00
Baptiste Daroussin
c4bca255db Update to 1.15.8
Fixes a typo which results in pkg ignoring some lua script in some particular
circumpstancies: shell script also available in certain types
2020-10-02 14:05:23 +00:00
Emmanuel Vadot
ac33e165c5 ports-mgmt/pkg: Update to 1.15.7
Changes from 1.15.6 to 1.15.7:
 - Fix %# expand in script

Approved by:	bapt (implicit)
2020-10-02 09:01:41 +00:00
Piotr Kubaj
d46d9e64c9 ports-mgmt/pkg: fix build on powerpc64le
Little-endian powerpc64 is not detected properly by sqlite3.
2020-09-24 17:29:13 +00:00
Emmanuel Vadot
1590ec2e8c ports-mgmt/pkg: Update to 1.15.6
Changes from 1.15.5 to 1.15.6
- Fix '%X' to include the file name and sum

Approved by:	bapt (implicit)
2020-09-22 14:15:44 +00:00
Emmanuel Vadot
b5eae4c190 ports-mgmt/pkg: Update to 1.15.5
Changes from 1.15.4 to 1.15.5
- Add powerpc64le arch
- Fix query '%X' to not use the version

Approved by:	bapt (implicit)
2020-09-21 14:54:18 +00:00
Baptiste Daroussin
4d83e7f63d Release 1.15.4
- Fix the ssh protocol support
2020-09-09 16:41:07 +00:00
Baptiste Daroussin
65dde89c8b Update to 1.15.3
- Fix fetching files not belonging to a repo (fixes pkg audit -F)

PR:		249185
Reported by:	Peter Larsen
2020-09-08 19:22:40 +00:00
Baptiste Daroussin
e59ff60f67 Release 1.15.2
- Fixes a crash in the fetch methods
2020-09-08 16:55:47 +00:00
Baptiste Daroussin
b0b6a38fb3 Commit forgotten distinfo 2020-09-07 15:53:38 +00:00
Baptiste Daroussin
3ecd5e8213 Fix a crash when fetching audit file 2020-09-07 15:52:11 +00:00
Emmanuel Vadot
1dc396abb3 ports-mgmt/pkg: Update to 1.15
Changes from 1.14.99.6 to 1.14.99.7
- Default the OSVERSION check to false
- Fix some errors related to getpwname_r/getgrnam_r
- Add RISC-V ABI aliases
- Add '%X' to pkg-query, this print the internal package checksum

Changes from 1.14.99.5 to 1.14.99.6
- Run lua scripts before shell scripts
- unbreak build with -fno-common

Changes from 1.14.99.4 to 1.14.99.5
- Fix lua script during pkg_delete
- Return file type for lua_stat

Changes from 1.14.99.3 to 1.14.99.4
- Add function to lua scripts:
  * Simple stat()
  * filecopy to copy a file preserving its attributes
  * filecmp to compare files
  * update sqlite to latest version
  * Add a new 'hash' mode to pkg repo to make repositories CDN friendly
  * Isolate transport protocol to be able to easily change implementations
    in the futur
  * Fix invalid json in even_pipe
  * lots of portability fixes

Changes from 1.14.99.2 to 1.14.99.3
- Fix linking on FreeBSD

Changes from 1.14.99.1 to 1.14.99.2
- Fix hanging if a script spawn a process and
  it still run after the scripts finish
- Prevent potential hang with lua scripts
- For http mirror first try to get the list from the
  full path and then fallback on the root one if we
  didn't find anything.
- Add a debug message if obtaining the lock fails

hanges from 1.13.99.7 to 1.14.99.1
- parallelize the run of the tests
- Fix VERSION_MINOR expansion
- Fix chflags tests
- Bring back pkg create -n but in a consistent way
- Improve build of sqlite
- Use mmap in sqlite
- Update sqlite to latest version
- Document pkg_create(3)
- Prepare the land for futur proof remote dependency handling
- Update usage of pkg set -A and pkg set -v
- Add pkg create -l (compression level)

PR:		249035 (exp-run)
Approved by:	bapt
2020-09-07 10:02:01 +00:00
Emmanuel Vadot
c7029ad98e ports-mgmt/pkg: Update to 1.4.17
- Fix build with -fno-common
2020-08-18 08:23:44 +00:00
Emmanuel Vadot
e7a53bc45a Update to 1.14.6
Changes from 1.14.5 to 1.14.6:
- Fix linking on FreeBSD

Approved by:	bapt (implicit)
2020-06-29 08:00:18 +00:00
Emmanuel Vadot
b4b063f21c Update to 1.14.5
Changes from 1.14.4 to 1.14.5:
- Prevent potential hang with lua scripts
- Add a debug message if obtaining the lock fails

Approved by:	bapt
2020-06-25 15:01:10 +00:00
Xin LI
5321f236b3 ports-mgmt/pkg: Respect liblzma.pc if available.
Note that this is meant to be a temporary hack and will be reverted once the
freebsd/pkg have solved this in the build infrastructure.

PR:			200142
MFH:			2020Q2
Approved by:		portmgr (bapt over IRC)
Differential Revision:  https://reviews.freebsd.org/D24972
2020-06-20 21:22:55 +00:00
Baptiste Daroussin
e6431df8d5 Update to 1.14.4
- fix a hang in pkg scripts

PR:		245462
Submitted by:	sobomax
Reported by:	sobomax, jkim
2020-04-29 07:32:00 +00:00
Baptiste Daroussin
469e950f79 Update to 1.14.3:
- Add pkg create -l to set compression level
- Parallelize the run of kyua
- Fix VERSION_MINOR UCL expansion
- Bring back pkg create -n
- Document pkg_create(3)
- Improve documentations in pkg-set(8)
2020-04-27 07:40:02 +00:00
Baptiste Daroussin
7c47e31675 Update to 1.14.2
- Disable keep-alive for now, it is not stable enough
2020-04-03 10:53:15 +00:00
Baptiste Daroussin
d439f6d42a Update to 1.14.1
- fix a regression in the autosetup system which resulted in bad path
  for periodic script
2020-04-02 18:06:00 +00:00
Baptiste Daroussin
0c9aeef553 forgot to commit the plist part
Reported by:	ohauer
2020-04-02 15:15:14 +00:00
Baptiste Daroussin
eb7f018869 Update to 1.14
Major changes since 1.13:
- HTTP keep-alive in libfetch (imported from xbps)
- allow to backup shared libraries during upgrades
  (a compat-libraries packages is created to keep track of it)
- better reproducible build support
- More variable exposed to configuration

exp-run by:	antoine
2020-04-02 13:00:38 +00:00
Baptiste Daroussin
3602ee63c4 Update to 1.13.2
- fix pkg fetch -o
- accept again colon before path in ssh url scheme in repositories
2020-02-21 14:24:58 +00:00
Baptiste Daroussin
252d58ddcd Update to 1.3.1
- Fix inverted logic that lead to pkg always restarting rc scripts

Reported by:	flo
2020-02-12 14:01:53 +00:00
Baptiste Daroussin
dfcf194888 Release pkg 1.13
- when installing over a non tracked file (not owned by any package)
   pkg now saves a copy of that file as .pkgsave
 - Fix a chicken/egg problem with the meta being compressed and defining
   the compression format. Now pkg repo will create a meta.conf file
   uncompressed (it is small enough) and fallback on the old meta.txz.
   Note that meta.txz is still created for backward compatibility.
 - pkg repo now creates meta files in version 2 by default meaning the
   digests.txz (this was only used with pkg up to 1.2).
   Anyone using that version and willing to upgrade can do it via:
   pkg bootstrap -f
 - suppress version checking when -j is specified
 - Alphabetically sort packages printed in the output of pkg commands to
   ease readability
 - pkg lock/unlock now allows multiple packages in arguments
 - shell script can now print messages along with pkg-messages by writing
   to ${PKG_MSGFD} file descriptor
 - improve error reporting when parsing vuxml files
 - lua script are now ready for prime time:
   - sanboxed with capsicum on plateforms that support it
   - rootdir native
   - documented
 - Fix pkg backup
 - pkg now gives a hint about running pkg update -f in case of "size mismatch"
 - scripts (lua and shell) can now determine if they are in the process of an
   upgrade or an installation via a variable
 - shell scripts are now fully documented
 - keyword files are now documented

PR:		243564
exp-run by:	antoine
2020-02-11 08:36:22 +00:00
Baptiste Daroussin
d6f58b5351 Import the libfetch patch to the bundled libfetch 2020-01-29 13:09:01 +00:00
Baptiste Daroussin
44b8c0a038 Attempt to fix pkg on mips.
Since recently, libarchive is linked to libzstd, which itself uses threads
somehow, this make the build of pkg in mips unhappy.

Given libpkg is not threadsafe anyway just drop the __thread

PR:		240822
Reported by:	tech-lists@zyxst.net and mandree
Discussed with:	jhb
2019-10-02 18:35:29 +00:00
Baptiste Daroussin
ce9cb11db9 Release pkg 1.12.0
- updating: allow to use regular expession in AFFECTS: value
- updating: improve the exact matching for AFFECTS: values
- recommand using pkg bootstrap -f instead of pkg-static install -f to reinstall
  pkg itself
- Add support for lua in package scripts (not documented yet)
- Add support for lua in keywords definition (not documented yet)
- Properly detect when base libarchive is linked to zstd and handle it. (needed
  an upcoming change in base)
- Add a function tu lua script to append message at the run of the pkg process
  along with other messages
- Add the missing warning about @unexec being deprecated for a while now in
  pkg-plist
- Fix build with gmake
- Ensure pkg_shutdown properly reinitialize all the closed fd to -1.
- Do not crash when being passed an unsupported ABI
2019-09-18 07:37:56 +00:00
Baptiste Daroussin
887504ba6b Respect CC
Submitted by:	tijl
2019-06-03 11:27:34 +00:00
Dirk Meyer
08110940c7 - fix build with custom PREFIX
PR:		238296
2019-06-03 05:02:52 +00:00
Baptiste Daroussin
75b69fed68 Update to 1.11.1
- Fix abi string for dragonfly
- Fix libfetch built without ipv6 support [1]

PR:		238264
Reported by:	ume
2019-05-31 14:59:44 +00:00
Baptiste Daroussin
b49bc9fc24 Update to 1.11
Improvements:
  * better ABI name on linux
  * lots of changes in internal API to use fd when possible
  * 410.pkg-audit now uses anticongestion on freebsd 12+
  * completion improvements
  * add an extra line when printing pkg-messages to improve readability
  * add %q to pkg_printf(3) and pkg-query(8) to print altabi
  * make pkg version -r imply -R
  * New build system based on autosetup
  * pkg is now a semi static binary
  * Add 3 new aliases:
    - rall-depends: showing depenencies of a non installed package
    - rcomment: showing only the comment of a non installed package
    - rdesc: showing only the description of a non installed package
  * close stdin when running scripts
  * Tons of bug fixes
Removal:
  * removed option: pkg repo -L
  * removed script: pkg2ng
2019-05-31 09:54:49 +00:00
Baptiste Daroussin
721fca0324 Add a patch to fix pkg-static with linked against openssl 1.1.1
This is needed to be able to sign repository with pkg-static

Reported by:	many (based on a patch by gjb)
MFH:		2018Q4
2018-10-16 10:08:01 +00:00
Ryan Steinmetz
274759c90c - Bump PORTREVISION to chase openssl update in CURRENT 2018-10-11 00:10:52 +00:00
Brad Davis
27f9bf5942 Apply a patch from git that fixes make packages with hardlinks and config files. 2018-09-10 22:28:59 +00:00