pkgng/pkgng 499a33elibpkg pkg_checksum.c

pkg_generate_checsum: make it more robust

With some buggy metadata, when parsing the manifest we may end up requesting
to generate the checksum for a package with files informations but no
checksum associated with the files, which mean f->sum would be NULL.

Accept to generate checksum in this case by processing an empty string instead of
crashing because process NULL.

Fixes: #2560
DeltaFile
+1-1libpkg/pkg_checksum.c
+1-11 files

pkgng/pkgng daf72e9libpkg fetch_libcurl.c

libpkg: improve curl fetch error reporting

Currently all errors that occur in curl_do_fetch() are reported to the
user as "Failed to fetch X: No Error" which is both incorrect and very
unhelpful.

With this patch, the correct error message from libcurl is reported
to the user, for example "Failed to fetch X: Could not resolve hostname"

This patch does not fix all the error handling done by the libcurl
fetching code, but it does fix the case that seems to be most commonly
hit by users.

Closes:         https://github.com/freebsd/pkg/issues/2498
Sponsored by:   The FreeBSD Foundation
DeltaFile
+34-18libpkg/fetch_libcurl.c
+34-181 files

pkgng/pkgng 503c2e9. NEWS

NEWS: fix typo
DeltaFile
+1-1NEWS
+1-11 files

pkgng/pkgng b0a4090. NEWS auto.def

Release 2.4.2
DeltaFile
+3-0NEWS
+1-1auto.def
+4-12 files

pkgng/pkgng 8bb9c9flibpkg pkg.c

check: fix dangling if
DeltaFile
+3-2libpkg/pkg.c
+3-21 files

pkgng/pkgng 7f3673flibpkg pkg.c

check: fix dangling if
DeltaFile
+3-2libpkg/pkg.c
+3-21 files

pkgng/pkgng 12950dblibpkg pkg.c

check: fix progress for -s

Only emit an event about metadata being ok when checking for metadata
DeltaFile
+2-1libpkg/pkg.c
+2-11 files

pkgng/pkgng ae514d1libpkg pkg.c

check: fix progress for -s

Only emit an event about metadata being ok when checking for metadata
DeltaFile
+2-1libpkg/pkg.c
+2-11 files

pkgng/pkgng 6798328libpkg pkgdb.c

pkgdb: clean code deduplication
DeltaFile
+2-7libpkg/pkgdb.c
+2-71 files

pkgng/pkgng bd2c8c4libpkg pkgdb.c, libpkg/private pkg.h

db: replace va_args with type safe arguments

With va_args, we got bitten several times by forgetting to cast to int64_t,
but with this change, that won't happen anymore.

As a bonus, we no longer need to specify types when declaring SQL code.
DeltaFile
+215-150libpkg/pkgdb.c
+86-35libpkg/repo/binary/update.c
+12-39libpkg/repo/binary/common.c
+33-1libpkg/private/pkg.h
+1-1libpkg/repo/binary/binary_private.h
+347-2265 files

pkgng/pkgng 94272d1. NEWS auto.def

Release 2.4.1
DeltaFile
+5-0NEWS
+1-1auto.def
+6-12 files

pkgng/pkgng dec5e78libpkg pkg_add.c

3way merge: complain loudly about missing local checksum (and prevent crash)

Fixes:  #2557
DeltaFile
+3-1libpkg/pkg_add.c
+3-11 files

pkgng/pkgng 4766647libpkg pkg_add.c

3way merge: complain loudly about missing local checksum (and prevent crash)

Fixes:  #2557
DeltaFile
+3-1libpkg/pkg_add.c
+3-11 files

pkgng/pkgng 38e1a37tests/frontend conflicts.sh

tests: fix when running in jails
DeltaFile
+14-14tests/frontend/conflicts.sh
+14-141 files

pkgng/pkgng 0e44296docs pkg-triggers.5

pkg-triggers.5: Clean up

Rewrite the introductory paragraph to be more clear, and include the
(new) default value of PKG_TRIGGERS_DIR.  This also fixes an incorrect
use of .Nm which caused rendering errors.

Copyedit the UCL object definition, and be more explicit about the
type of each key.

Remove a blank line.
DeltaFile
+40-35docs/pkg-triggers.5
+40-351 files

pkgng/pkgng a64f2felibpkg pkgdb.c

Fix failure on 32bit
DeltaFile
+5-5libpkg/pkgdb.c
+5-51 files

pkgng/pkgng 99d8a9clibpkg packing.c pkg_config.c, libpkg/private pkg.h

compat: .pkg is there for long enough, remove forward compat.

All supported versions of FreeBSD knows how to deal with .pkg files.
Remove the last bits of forward compatibility which create the .t*
symlinks. If one still need this they can do it themselves via a script
post pkg repo.
DeltaFile
+2-12libpkg/packing.c
+1-7libpkg/pkg_config.c
+1-2libpkg/private/pkg.h
+1-1libpkg/pkg_repo_create.c
+1-1libpkg/pkg_create.c
+6-235 files

pkgng/pkgng d6fdfd6libpkg pkgdb.c

pkgdb: clean code deduplication
DeltaFile
+2-7libpkg/pkgdb.c
+2-71 files

pkgng/pkgng 270575dlibpkg pkgdb.c, libpkg/private pkg.h

db: replace va_args with type safe arguments

With va_args, we got bitten several times by forgetting to cast to int64_t,
but with this change, that won't happen anymore.

As a bonus, we no longer need to specify types when declaring SQL code.
DeltaFile
+215-150libpkg/pkgdb.c
+86-35libpkg/repo/binary/update.c
+12-39libpkg/repo/binary/common.c
+33-1libpkg/private/pkg.h
+1-1libpkg/repo/binary/binary_private.h
+347-2265 files

pkgng/pkgng b5db805libpkg pkgdb.c, libpkg/private pkg.h

db: replace va_args with type safe arguments
DeltaFile
+215-150libpkg/pkgdb.c
+86-35libpkg/repo/binary/update.c
+12-39libpkg/repo/binary/common.c
+33-1libpkg/private/pkg.h
+1-1libpkg/repo/binary/binary_private.h
+347-2265 files

pkgng/pkgng 232453btests/frontend conflicts.sh

tests: fix when running in jails
DeltaFile
+14-14tests/frontend/conflicts.sh
+14-141 files

pkgng/pkgng 3a3c921libpkg pkgdb.c, libpkg/private pkg.h

db: replace va_args with type safe arguments
DeltaFile
+215-150libpkg/pkgdb.c
+86-35libpkg/repo/binary/update.c
+12-39libpkg/repo/binary/common.c
+33-1libpkg/private/pkg.h
+1-1libpkg/repo/binary/binary_private.h
+347-2265 files

pkgng/pkgng b62748flibpkg pkgdb.c, libpkg/private pkg.h

db: replace va_args with type safe arguments
DeltaFile
+216-151libpkg/pkgdb.c
+86-35libpkg/repo/binary/update.c
+12-39libpkg/repo/binary/common.c
+33-1libpkg/private/pkg.h
+1-1libpkg/repo/binary/binary_private.h
+348-2275 files

pkgng/pkgng 844bc37docs pkg-triggers.5

pkg-triggers.5: Clean up

Rewrite the introductory paragraph to be more clear, and include the
(new) default value of PKG_TRIGGERS_DIR.  This also fixes an incorrect
use of .Nm which caused rendering errors.

Copyedit the UCL object definition, and be more explicit about the
type of each key.

Remove a blank line.
DeltaFile
+40-35docs/pkg-triggers.5
+40-351 files

pkgng/pkgng 15f5bc4libpkg pkgdb.c

Fix failure on 32bit
DeltaFile
+5-5libpkg/pkgdb.c
+5-51 files

pkgng/pkgng cf5d17c. NEWS auto.def

Release 2.4.0
DeltaFile
+5-0NEWS
+1-1auto.def
+6-12 files

pkgng/pkgng 78c0116tests/frontend upgrade.sh

test: fix ABI test on ci
DeltaFile
+3-1tests/frontend/upgrade.sh
+3-11 files

pkgng/pkgng ad6f361tests/frontend upgrade.sh

test: fix ABI test on ci
DeltaFile
+3-1tests/frontend/upgrade.sh
+3-11 files

pkgng/pkgng 625cb4atests/frontend upgrade.sh

test: attempt to fix ABI test on ci
DeltaFile
+3-1tests/frontend/upgrade.sh
+3-11 files

pkgng/pkgng b1c6b57tests/frontend upgrade.sh

test: attempt to fix ABI test on ci
DeltaFile
+3-1tests/frontend/upgrade.sh
+3-11 files