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
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.
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
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
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.
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.