pkgng/pkgng 0d5c9ae — tests/frontend pubkey.sh
Check the repo to make sure the packages are found
Delta | File | |
---|---|---|
+12 | -0 | tests/frontend/pubkey.sh |
+12 | -0 | 1 files |
Check the repo to make sure the packages are found
Delta | File | |
---|---|---|
+12 | -0 | tests/frontend/pubkey.sh |
+12 | -0 | 1 files |
Switch to using the new_pkg helper function
Delta | File | |
---|---|---|
+3 | -42 | tests/frontend/pubkey.sh |
+3 | -42 | 1 files |
malloc: check malloc return
Delta | File | |
---|---|---|
+2 | -1 | src/clean.c |
+2 | -1 | src/event.c |
+4 | -2 | 2 files |
delete: remove useless code
Delta | File | |
---|---|---|
+1 | -4 | src/delete.c |
+1 | -4 | 1 files |
cocci: fix NELEM vs nitems mix Only keep NELEM
Delta | File | |
---|---|---|
+8 | -4 | libpkg/pkgdb_iterator.c |
+7 | -0 | tests/cocci/pkg/NELEM.cocci |
+2 | -2 | libpkg/pkg_ports.c |
+2 | -2 | libpkg/scripts.c |
+0 | -4 | libpkg/private/pkg.h |
+1 | -1 | libpkg/pkg_version.c |
+20 | -13 | 4 files not shown |
+24 | -17 | 10 files |
streq: generalize the macro
Delta | File | |
---|---|---|
+8 | -0 | libpkg/pkg.h.in |
+4 | -0 | libpkg/pkghash.c |
+0 | -2 | libpkg/private/utils.h |
+12 | -2 | 3 files |
STR*EQ: use macros where possible
Delta | File | |
---|---|---|
+32 | -32 | libpkg/pkg_manifest.c |
+31 | -31 | libpkg/pkg.c |
+24 | -25 | libpkg/pkg_audit.c |
+23 | -23 | libpkg/pkg_jobs.c |
+17 | -17 | libpkg/pkg_config.c |
+29 | -0 | tests/cocci/pkg/strieq.cocci |
+156 | -128 | 50 files not shown |
+315 | -293 | 56 files |
jobs: remove useless continue Noted by: coccinelle
Delta | File | |
---|---|---|
+0 | -1 | libpkg/pkg_jobs.c |
+0 | -1 | 1 files |
debug_flags: default to all flags This is done to not break all existing recommandation to run pkg -o DEBUG_LEVEL=4
Delta | File | |
---|---|---|
+1 | -1 | libpkg/pkg_config.c |
+1 | -1 | 1 files |
debug: fix performance regression only allocate memory when we will actually use it. this avoid a memory leak and brings back performance of pkg.
Delta | File | |
---|---|---|
+2 | -1 | libpkg/pkg_event.c |
+2 | -1 | 1 files |
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
Delta | File | |
---|---|---|
+44 | -38 | libpkg/packing.c |
+18 | -18 | tests/lib/packing.c |
+25 | -6 | src/create.c |
+13 | -1 | docs/pkg-create.8 |
+10 | -2 | docs/pkg_create.3 |
+8 | -1 | libpkg/pkg_create.c |
+118 | -66 | 7 files not shown |
+137 | -71 | 13 files |
fix build on gcc
Delta | File | |
---|---|---|
+2 | -0 | libpkg/private/event.h |
+2 | -0 | 1 files |
debug: add a namespace for the solver
Delta | File | |
---|---|---|
+25 | -23 | libpkg/pkg_solve.c |
+2 | -0 | libpkg/private/event.h |
+27 | -23 | 2 files |
debug: add a manifest namespace
Delta | File | |
---|---|---|
+30 | -28 | libpkg/pkg_manifest.c |
+2 | -0 | libpkg/private/event.h |
+32 | -28 | 2 files |
debug: add a db namespace
Delta | File | |
---|---|---|
+23 | -18 | libpkg/pkgdb.c |
+2 | -0 | libpkg/private/event.h |
+25 | -18 | 2 files |
debug: fix printing the namespaces
Delta | File | |
---|---|---|
+5 | -3 | libpkg/pkg_event.c |
+5 | -3 | 1 files |
packing: add a debugging namespace
Delta | File | |
---|---|---|
+8 | -4 | libpkg/packing.c |
+2 | -0 | libpkg/private/event.h |
+10 | -4 | 2 files |
debug: use macro so simplify code
Delta | File | |
---|---|---|
+13 | -11 | libpkg/pkg_config.c |
+13 | -11 | 1 files |
libpkg: remove now unused pkg_recompute and pkgdb_reanalyse_shlibs
Delta | File | |
---|---|---|
+2 | -85 | libpkg/pkgdb.c |
+2 | -66 | libpkg/pkg.c |
+0 | -2 | libpkg/libpkg.ver |
+0 | -2 | libpkg/pkg.h.in |
+4 | -155 | 4 files |
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.
Delta | File | |
---|---|---|
+9 | -84 | src/check.c |
+5 | -33 | docs/pkg-check.8 |
+14 | -117 | 2 files |
check: make -B rootdir friendly
Delta | File | |
---|---|---|
+1 | -1 | libpkg/pkgdb.c |
+1 | -1 | 1 files |
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
Delta | File | |
---|---|---|
+18 | -18 | libpkg/fetch_ssh.c |
+11 | -11 | libpkg/pkg_config.c |
+19 | -3 | libpkg/pkg_event.c |
+10 | -10 | libpkg/fetch_libcurl.c |
+2 | -2 | libpkg/fetch_file.c |
+2 | -2 | libpkg/fetch.c |
+62 | -46 | 1 files not shown |
+63 | -47 | 7 files |
debug: add a "config" debug flag
Delta | File | |
---|---|---|
+11 | -11 | libpkg/pkg_config.c |
+2 | -0 | libpkg/private/event.h |
+13 | -11 | 2 files |
debug: appease gcc
Delta | File | |
---|---|---|
+4 | -2 | libpkg/private/event.h |
+2 | -2 | libpkg/pkg_config.c |
+6 | -4 | 2 files |
debug: fix dumb basic math
Delta | File | |
---|---|---|
+1 | -1 | libpkg/private/event.h |
+1 | -1 | 1 files |
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
Delta | File | |
---|---|---|
+45 | -1 | libpkg/pkg_config.c |
+18 | -18 | libpkg/fetch_ssh.c |
+20 | -0 | libpkg/pkg_event.c |
+10 | -10 | libpkg/fetch_libcurl.c |
+17 | -1 | libpkg/private/event.h |
+3 | -3 | libpkg/fetch_libfetch.c |
+113 | -33 | 4 files not shown |
+119 | -37 | 10 files |
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.
Delta | File | |
---|---|---|
+38 | -27 | libpkg/pkg_add.c |
+23 | -1 | tests/frontend/upgrade.sh |
+10 | -3 | libpkg/utils.c |
+4 | -4 | tests/lib/utils.c |
+3 | -1 | libpkg/private/utils.h |
+0 | -1 | libpkg/private/pkg.h |
+78 | -37 | 6 files |
elfhints.c: include endian.h, copy from pkg_elf.c
Delta | File | |
---|---|---|
+7 | -0 | libpkg/elfhints.c |
+7 | -0 | 1 files |
audit: plug a leak
Delta | File | |
---|---|---|
+1 | -0 | src/audit.c |
+1 | -0 | 1 files |
audit: implement audit -d it audits all packages inside a directory
Delta | File | |
---|---|---|
+43 | -24 | src/audit.c |
+43 | -24 | 1 files |