pkgng/pkgng bd83d9cdocs pkg-create.8 pkg_create.3, libpkg packing.c pkg_create.c

pkg: allow to define threads for zstd and xz

Allow to define the number of threads either by pkg create -T
or via pkg.conf
the default is not threaded
0 will use all CPU
the other options will set the threading to the number specified

Requested by:   olivier
DeltaFile
+44-38libpkg/packing.c
+18-18tests/lib/packing.c
+25-6src/create.c
+13-1docs/pkg-create.8
+10-2docs/pkg_create.3
+8-1libpkg/pkg_create.c
+118-667 files not shown
+137-7113 files

pkgng/pkgng 5a7eeeelibpkg/private event.h

fix build on gcc
DeltaFile
+2-0libpkg/private/event.h
+2-01 files

pkgng/pkgng 66cb25elibpkg pkg_solve.c, libpkg/private event.h

debug: add a namespace for the solver
DeltaFile
+25-23libpkg/pkg_solve.c
+2-0libpkg/private/event.h
+27-232 files

pkgng/pkgng 05d9f0clibpkg pkg_manifest.c, libpkg/private event.h

debug: add a manifest namespace
DeltaFile
+30-28libpkg/pkg_manifest.c
+2-0libpkg/private/event.h
+32-282 files

pkgng/pkgng 8760a45libpkg pkgdb.c, libpkg/private event.h

debug: add a db namespace
DeltaFile
+23-18libpkg/pkgdb.c
+2-0libpkg/private/event.h
+25-182 files

pkgng/pkgng 86f938elibpkg pkg_event.c

debug: fix printing the namespaces
DeltaFile
+5-3libpkg/pkg_event.c
+5-31 files

pkgng/pkgng 659271elibpkg packing.c, libpkg/private event.h

packing: add a debugging namespace
DeltaFile
+8-4libpkg/packing.c
+2-0libpkg/private/event.h
+10-42 files

pkgng/pkgng d12b0fdlibpkg pkg_config.c

debug: use macro so simplify code
DeltaFile
+13-11libpkg/pkg_config.c
+13-111 files

pkgng/pkgng d839e6flibpkg pkgdb.c pkg.c

libpkg: remove now unused pkg_recompute and pkgdb_reanalyse_shlibs
DeltaFile
+2-85libpkg/pkgdb.c
+2-66libpkg/pkg.c
+0-2libpkg/libpkg.ver
+0-2libpkg/pkg.h.in
+4-1554 files

pkgng/pkgng 65e8620docs pkg-check.8, src check.c

check: remove -B and -r options

While they could be useful in the past they are now causing more harm.
In 99.99% of the case they should not be run by users, so let's remove
them entirely.
DeltaFile
+9-84src/check.c
+5-33docs/pkg-check.8
+14-1172 files

pkgng/pkgng b0a68a9libpkg pkgdb.c

check: make -B rootdir friendly
DeltaFile
+1-1libpkg/pkgdb.c
+1-11 files

pkgng/pkgng 69dc99dlibpkg fetch_ssh.c pkg_config.c

pkg_dbg: now accept both flags and level

This allows finer grain debugging, for example now
pkg -o PKG_DEBUG_FLAGS=fetch -o DEBUG_LEVEL=1 will only show
the regular libcurl debug, LEVEL=2 will show more debug
DeltaFile
+18-18libpkg/fetch_ssh.c
+11-11libpkg/pkg_config.c
+19-3libpkg/pkg_event.c
+10-10libpkg/fetch_libcurl.c
+2-2libpkg/fetch_file.c
+2-2libpkg/fetch.c
+62-461 files not shown
+63-477 files

pkgng/pkgng 2bb7306libpkg pkg_config.c, libpkg/private event.h

debug: add a "config" debug flag
DeltaFile
+11-11libpkg/pkg_config.c
+2-0libpkg/private/event.h
+13-112 files

pkgng/pkgng 6cccc24libpkg pkg_config.c, libpkg/private event.h

debug: appease gcc
DeltaFile
+4-2libpkg/private/event.h
+2-2libpkg/pkg_config.c
+6-42 files

pkgng/pkgng d206f3alibpkg/private event.h

debug: fix dumb basic math
DeltaFile
+1-1libpkg/private/event.h
+1-11 files

pkgng/pkgng 9f817aalibpkg pkg_config.c fetch_ssh.c, libpkg/private event.h

debug: implement PKG_DEBUG_FLAGS

Instead of having level which ends up being way too verbose, welcome
flags, which will be only per subsistem and allow fine grain selection
of the debug messages

pkg -o PKG_DEBUG_FLAGS=flag1,flag2 something

So far the implemented flags are: "none", "fetch", "all"

more to come
DeltaFile
+45-1libpkg/pkg_config.c
+18-18libpkg/fetch_ssh.c
+10-10libpkg/fetch_libcurl.c
+20-0libpkg/pkg_event.c
+17-1libpkg/private/event.h
+3-3libpkg/fetch_libfetch.c
+113-334 files not shown
+119-3710 files

pkgng/pkgng e482b66libpkg pkg_add.c utils.c, libpkg/private utils.h pkg.h

extraction: fix an upgrade issue with symlinks becoming directories

many users took the habit to create symlinks from random directories
into another partition when running out of disk space, for this reason
when pkg extracts files it does accept to extract files below a symlink
if this symlink is valid and points to a directory.

The problem is if a package itself provide a symlink to a directory and
then a latter upgrade is providing a directory instead of that symlink.
it results and unsolveable extraction problem for pkg.

From now on, pkg will not accept anymore symlinks not owned by pkg to
exists when extracting files, with the exception of prefix which is
according to the report the number 1 case of symlinks done directly by
users.
DeltaFile
+38-27libpkg/pkg_add.c
+23-1tests/frontend/upgrade.sh
+10-3libpkg/utils.c
+4-4tests/lib/utils.c
+3-1libpkg/private/utils.h
+0-1libpkg/private/pkg.h
+78-376 files

pkgng/pkgng e1e788dlibpkg elfhints.c

elfhints.c: include endian.h, copy from pkg_elf.c
DeltaFile
+7-0libpkg/elfhints.c
+7-01 files

pkgng/pkgng 7388509src audit.c

audit: plug a leak
DeltaFile
+1-0src/audit.c
+1-01 files

pkgng/pkgng 5860bc2src audit.c

audit: implement audit -d

it audits all packages inside a directory
DeltaFile
+43-24src/audit.c
+43-241 files

pkgng/pkgng 87f0600. NEWS auto.def

1.21.99.1

Changes:
- fix regression in HANDLE_RC_SCRIPTS option (off by default)
- fix processing entries spiner
- fix database path handling for rootdir
- revert a change in vital/lock handling in the solver cause
  some vital packages to never be upgraded.
DeltaFile
+7-0NEWS
+1-1auto.def
+8-12 files

pkgng/pkgng fb9992a. NEWS auto.def

release 1.21.2
DeltaFile
+6-1NEWS
+1-1auto.def
+7-22 files

pkgng/pkgng 22d7f7ftests/frontend vital.sh

Revert "vital: adapt test to latest changes"

This reverts commit 26f12751621b6c6efd869fb789197be268cd4776.
DeltaFile
+2-2tests/frontend/vital.sh
+2-21 files

pkgng/pkgng 74dc0e8libpkg pkg_solve.c

Revert "Take PKG_ATTR_{VITAL,LOCKED} into account when solving for pkg upgrade."

This reverts commit ccfbf0c0812bb28681f33729db635fef7a8d9294.
DeltaFile
+0-28libpkg/pkg_solve.c
+0-281 files

pkgng/pkgng aa7a3b7tests/frontend upgrade.sh

Revert "Test: add a testsuite about the solver and the vital flags"

This reverts commit 3681bf1185409f57f7bff39002092d79cfee55c7.
DeltaFile
+1-43tests/frontend/upgrade.sh
+1-431 files

pkgng/pkgng 8a17a61libpkg pkg_solve.c

Revert "solver: fix sigbus with vital rule"

This reverts commit f3151f6df74f3a3eada24e460478d25212791610.
DeltaFile
+0-2libpkg/pkg_solve.c
+0-21 files

pkgng/pkgng 7671f75libpkg/repo/binary common.c init.c

repos: fix database path handling when PKG_DBDIR is overridden

Make pkg_repo_binary_get_filename() return a path relative to the DB
root (usually /var/db/pkg).  This fixes consumers which expect that
because they use capsicum-friendly syscalls (faccessat() etc.).

Fixes:  8ecdfa0e2 ("repos: move repos database under /var/db/pkg/repos/<name>/db")
DeltaFile
+4-3libpkg/repo/binary/common.c
+3-3libpkg/repo/binary/init.c
+3-2libpkg/repo/binary/update.c
+10-83 files

pkgng/pkgng 2dea8d1libpkg pkg_config.c

config: if ABI is provided extrapolate ALTABI
DeltaFile
+9-2libpkg/pkg_config.c
+9-21 files

pkgng/pkgng be6d675tests/frontend vital.sh

Revert "vital: adapt test to latest changes"

This reverts commit 26f12751621b6c6efd869fb789197be268cd4776.
DeltaFile
+2-2tests/frontend/vital.sh
+2-21 files

pkgng/pkgng 619b115tests/frontend upgrade.sh

Revert "Test: add a testsuite about the solver and the vital flags"

This reverts commit 3681bf1185409f57f7bff39002092d79cfee55c7.
DeltaFile
+1-43tests/frontend/upgrade.sh
+1-431 files