For reviews on pkgbase
Details
Fri, Oct 9
in ports is going to move to shlibs as well, this is wip, this is doable since pkg 2.8 for a reason independant from what we are discussing here.
It is for demonstration of dependencies. Really most of the pkgbase packages depend on 3 library:
- utilities
- runtime
- clibs
And these library has depenencies, that could be entered one time. This image for demonstarion of all dependencies from these libraries (red - existed, but not detected dependencies: wrong dependency in Makefile or dependency in script):
{F175241070}
Thu, Oct 8
this is a pkg bug I will try to reproduce next week with 2.9
yes clibs should be the first one upgraded
[143/228] Upgrading FreeBSD-caroot from 15.1 to 16.snap20260720181726...
[143/228] Extracting FreeBSD-caroot-16.snap20260720181726: 100%
ld-elf.so.1: /usr/sbin/certctl: Undefined symbol "fts_open@FBSD_1.9"
pkg: POST-INSTALL script failed
[144/228] Upgrading FreeBSD-clibs from 15.1p4 to 16.snap20261007175931...
[144/228] Extracting FreeBSD-clibs-16.snap20261007175931: 100%
ld-elf.so.1: /usr/sbin/certctl: Undefined symbol "fts_open@FBSD_1.9"
Wed, Oct 7
does this case still happen in 2.8.4 ? if yes it mans I need to release 2.9
Aug 25 2026
Aug 12 2026
Jul 29 2026
I don't believe this is a bug in pkg(8). I reviewed a very long log file (with -dddd) and confirmed that library dependencies are not used during the scheduling stage.
Jul 28 2026
Jul 27 2026
we don't want to add manual dependencies on library packages; these are supposed to be handled automatically by pkg. if that's not working properly, it's a bug in pkg(8) and should be fixed there.
Jul 25 2026
Jul 19 2026
Jun 22 2026
Remove unintentionally included failsafe handling
May 8 2026
May 7 2026
LGTM!
fix comment typos, thanks @cperciva!
implement cperciva/lwhsu sha256 suggestion, thanks guys!
May 6 2026
ok, what if we separate the pkg update, and take the state after updating, but before upgrading, then we will actually know if the upgrade did anything. maybe because of this we can simplify the logic at the end a bit more.
May 4 2026
May 1 2026
greatly simplify based on cperciva feedback.
Apr 30 2026
I'm inclined to skip the "figure out if we need to reboot or just restart services" complexity at this point because
incorperate suggestions by @bapt. Do not reboot unless kernel is updated. In all other situations, including situations where only the pkg database is updated, just restart all services.
Apr 22 2026
@lwhsu out of interest, how do you end up with a system that has FreeBSD-base packages installed but doesn't have pkg bootstrapped?
use logic inspired from @lwhsu to prevent reboot if nothing happened. compare the file size in bytes of the pkg database instead of using pkg inf and checksum to save water/coal. tested on my laptop
implement bootstrap pkg if it is not done so already, based on lwhsu feedback, thanks! note, i like a blank line at the end of scripts for cat reasons. if we don't want this, i can remove it, but it doesn't hurt anything and we do it all over the place.
