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

pkgng/pkgng 9886217libpkg 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 67fe7b3libpkg 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 481c87blibpkg/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 9b56ce7libpkg pkg_config.c

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

pkgng/pkgng ce77a8dlibpkg pkg_macho.c

libpkg/pkg_macho.c: use memset instead of bzero

Same commit message as: c3651589cdd2a82de2000d0d0e35a083597472be

Signed-off-by: rilysh <nightquick at proton.me>
DeltaFile
+1-1libpkg/pkg_macho.c
+1-11 files

pkgng/pkgng 5775b93libpkg pkgdb.c

libpkg/pkgdb.c: fix the indentation

Signed-off-by: rilysh <nightquick at proton.me>
DeltaFile
+1-1libpkg/pkgdb.c
+1-11 files

pkgng/pkgng da343aelibpkg pkg_audit.c

libpkg/pkg_audit.c: use memset instead of bzero

Same commit message as: c3651589cdd2a82de2000d0d0e35a083597472be

Signed-off-by: rilysh <nightquick at proton.me>
DeltaFile
+1-1libpkg/pkg_audit.c
+1-11 files

pkgng/pkgng dc39cd3libpkg/repo/binary query.c

libpkg/../query.c: use constness, test branch once, and others

* These SQL strings aren't being modified later and generally, they're
just string constants. Use const to explicitly mark them as constants.

* Avoid initializing bsql value with basesql, as if match is MATCH_INTER-
NAL, bsql value have to be set again (previously the value was basesql),
which will use a mov instruction. Use a branch (if..else) to remove that.

* "how" variable is initialized just below, and the function will return
NULL, when none of the case matches with the provided one. So the initia-
lization to NULL is unneeded here.

Signed-off-by: rilysh <nightquick at proton.me>
DeltaFile
+5-6libpkg/repo/binary/query.c
+5-61 files

pkgng/pkgng 3163dablibpkg/repo/binary common.c

libpkg/repo/binary/common.c: remove unused return

* Remove the unused "return" in a void function.

Signed-off-by: rilysh <nightquick at proton.me>
DeltaFile
+0-1libpkg/repo/binary/common.c
+0-11 files

pkgng/pkgng eb15d28libpkg utils.c

libpkg/utils.c: use memset instead of bzero

bzero() was deprecated in POSIX.1-2001 and was removed in POSIX.1-2008
specification. For portability reasons, use memset() over bzero(). bzero()
is wrapper function for memset(), and so compilers just replaces it to
memset() to avoid two function calls.

Signed-off-by: rilysh <nightquick at proton.me>
DeltaFile
+2-1libpkg/utils.c
+2-11 files

pkgng/pkgng fdf930flibpkg pkg_elf.c

libpkg/pkg_elf.c: use memset instead of bzero

Same commit message as: c3651589cdd2a82de2000d0d0e35a083597472be

Signed-off-by: rilysh <nightquick at proton.me>
DeltaFile
+1-1libpkg/pkg_elf.c
+1-11 files

pkgng/pkgng 8537d29. NEWS auto.def

release 1.21.1
DeltaFile
+4-0NEWS
+1-1auto.def
+5-12 files

pkgng/pkgng f54d06blibpkg/repo/binary update.c

processing entries progress: fix spinner

Reported by:    osa
DeltaFile
+2-2libpkg/repo/binary/update.c
+2-21 files

pkgng/pkgng 2e42c22libpkg/repo/binary update.c

processing entries progress: fix spinner

Reported by:    osa
DeltaFile
+2-2libpkg/repo/binary/update.c
+2-21 files

pkgng/pkgng d2b085aexternal .editorconfig

Add a .editor config in external to not mess up with external
contributions
DeltaFile
+5-0external/.editorconfig
+5-01 files

pkgng/pkgng f1415c4. .editorconfig

Add editorconfig
DeltaFile
+10-0.editorconfig
+10-01 files