Page MenuHomeFreeBSD

pkgbaseProject
ActivePublic

Details

Description

For reviews on pkgbase

Recent Activity

Fri, Oct 9

bapt added a comment to D58339: src: fix deps in package build.

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.

Fri, Oct 9, 12:55 PM · pkgbase
ivy added a comment to D58339: src: fix deps in package build.

Could you give me just an idea of the reason why we don't use dependencies for pkgbase packages?

Fri, Oct 9, 12:49 PM · pkgbase
vladlen added a comment to D58339: src: fix deps in package build.

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}

Fri, Oct 9, 8:57 AM · pkgbase
vladlen added a comment to D58339: src: fix deps in package build.

does this case still happen in 2.8.4 ? if yes it mans I need to release 2.9

Fri, Oct 9, 8:50 AM · pkgbase
vladlen added a comment to D58339: src: fix deps in package build.
In D58339#1387376, @ivy wrote:

ld-elf.so.1: /usr/sbin/certctl: Undefined symbol "fts_open@FBSD_1.9"

this is because it's trying to install certctl and run its post-installed script before the library it depends on, which i think is a known issue in pkg. but it *does* eventually install all the required new packages, right?

we should fix this, but i don't think adding explicit depends will help (or even if it does, it's not the right approach).

Fri, Oct 9, 8:41 AM · pkgbase

Thu, Oct 8

bapt added a comment to D58339: src: fix deps in package build.

this is a pkg bug I will try to reproduce next week with 2.9

Thu, Oct 8, 7:26 PM · pkgbase
bapt added a comment to D58339: src: fix deps in package build.

yes clibs should be the first one upgraded

Thu, Oct 8, 7:25 PM · pkgbase
cperciva added a comment to D58339: src: fix deps in package build.

[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%

Thu, Oct 8, 7:16 PM · pkgbase
ivy added a comment to D58339: src: fix deps in package build.

ld-elf.so.1: /usr/sbin/certctl: Undefined symbol "fts_open@FBSD_1.9"

Thu, Oct 8, 7:05 PM · pkgbase
vladlen added a comment to D58339: src: fix deps in package build.

does this case still happen in 2.8.4 ? if yes it mans I need to release 2.9

Thu, Oct 8, 7:01 PM · pkgbase

Wed, Oct 7

bapt added a comment to D58339: src: fix deps in package build.

does this case still happen in 2.8.4 ? if yes it mans I need to release 2.9

Wed, Oct 7, 5:26 PM · pkgbase

Aug 25 2026

ivy added a comment to D58339: src: fix deps in package build.

The reason is fundamental: it is technically impossible for pkg to know which package provides a required library in the new release

Aug 25 2026, 8:44 AM · pkgbase

Aug 12 2026

vladlen added a comment to D58339: src: fix deps in package build.
In D58339#1343137, @ivy wrote:

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.

that's the bug: a package's dependencies should be installed before the package itself. there's no reason for this to be different with shlib dependencies, especially since that will break many/most post-install scripts.

Aug 12 2026, 12:19 PM · pkgbase

Jul 29 2026

ivy updated subscribers of D58339: src: fix deps in package build.

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 29 2026, 2:53 AM · pkgbase

Jul 28 2026

vladlen added a comment to D58339: src: fix deps in package build.
In D58339#1341688, @ivy wrote:

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 28 2026, 6:44 PM · pkgbase

Jul 27 2026

ivy added a comment to D58339: src: fix deps in package build.

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 27 2026, 2:06 PM · pkgbase

Jul 25 2026

vladlen added a reviewer for D58339: src: fix deps in package build: pkgbase.
Jul 25 2026, 9:59 PM · pkgbase

Jul 19 2026

vladlen requested review of D58339: src: fix deps in package build.
Jul 19 2026, 10:34 AM · pkgbase

Jun 22 2026

ziaee added a reviewer for D57751: pkgbase release improvements part3: releng.
Jun 22 2026, 7:29 PM · pkgbase
ziaee added a reviewer for D57742: pkgbase release improvements: releng.
Jun 22 2026, 7:28 PM · pkgbase
ziaee added a reviewer for D57745: pkgbase release improvements part2: releng.
Jun 22 2026, 7:28 PM · pkgbase
ziaee added a project to D57751: pkgbase release improvements part3: pkgbase.
Jun 22 2026, 7:24 PM · pkgbase
hs.freebsd_id.omnilan.de updated the diff for D57745: pkgbase release improvements part2.

Remove unintentionally included failsafe handling

Jun 22 2026, 4:43 PM · pkgbase
hs.freebsd_id.omnilan.de added a project to D57745: pkgbase release improvements part2: pkgbase.
Jun 22 2026, 4:39 PM · pkgbase
hs.freebsd_id.omnilan.de requested review of D57742: pkgbase release improvements.
Jun 22 2026, 1:41 PM · pkgbase

May 8 2026

ziaee closed D56381: sysutils/firstboot-pkg-upgrade: New port.
May 8 2026, 3:35 PM · pkgbase, releng

May 7 2026

bapt accepted D56381: sysutils/firstboot-pkg-upgrade: New port.
May 7 2026, 9:29 PM · pkgbase, releng
cperciva accepted D56381: sysutils/firstboot-pkg-upgrade: New port.

LGTM!

May 7 2026, 5:46 PM · pkgbase, releng
ziaee updated the summary of D56381: sysutils/firstboot-pkg-upgrade: New port.
May 7 2026, 5:43 PM · pkgbase, releng
ziaee updated the diff for D56381: sysutils/firstboot-pkg-upgrade: New port.

fix comment typos, thanks @cperciva!

May 7 2026, 5:41 PM · pkgbase, releng
ziaee updated the summary of D56381: sysutils/firstboot-pkg-upgrade: New port.
May 7 2026, 5:35 PM · pkgbase, releng
ziaee updated the diff for D56381: sysutils/firstboot-pkg-upgrade: New port.

implement cperciva/lwhsu sha256 suggestion, thanks guys!

May 7 2026, 5:31 PM · pkgbase, releng
cperciva added a comment to D56381: sysutils/firstboot-pkg-upgrade: New port.

Fair point, but I'm a little bit concerned about this being brittle -- /var/db/pkg/local.sqlite is not a public interface for pkg, so there's no guarantee that a future pkg won't (a) change that path, or (b) touch that file even if nothing has changed. I don't want to suddenly discover in FreeBSD 16.3 that VMs aren't rebooting after applying security updates because something changed in pkg.

that is a valid concern from @cperciva I don't think I will change anything in that area, but yes the content of /var/db/pkg is supposed to be opaque. (I know I am the one who recommended the mtime check in the first place).

May 7 2026, 4:41 PM · pkgbase, releng
bapt added a comment to D56381: sysutils/firstboot-pkg-upgrade: New port.

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.

I think pkg info | sha256 would work? If any packages are updated (or installed or removed) then that hash will change.

I think it would work too, but I don't see why we wouldn't want to stat the mtime in between updating and upgrading instead. By my rough estimate, time(1) shows 0.08 real for the pkg info | sha256, but for stat -f %c /var/db/pkg/local.sqlite it shows 0.00 real, so, that's less electricity, right?

Fair point, but I'm a little bit concerned about this being brittle -- /var/db/pkg/local.sqlite is not a public interface for pkg, so there's no guarantee that a future pkg won't (a) change that path, or (b) touch that file even if nothing has changed. I don't want to suddenly discover in FreeBSD 16.3 that VMs aren't rebooting after applying security updates because something changed in pkg.

May 7 2026, 4:20 PM · pkgbase, releng
cperciva added a comment to D56381: sysutils/firstboot-pkg-upgrade: New port.

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.

I think pkg info | sha256 would work? If any packages are updated (or installed or removed) then that hash will change.

I think it would work too, but I don't see why we wouldn't want to stat the mtime in between updating and upgrading instead. By my rough estimate, time(1) shows 0.08 real for the pkg info | sha256, but for stat -f %c /var/db/pkg/local.sqlite it shows 0.00 real, so, that's less electricity, right?

May 7 2026, 4:15 PM · pkgbase, releng
ziaee added a comment to D56381: sysutils/firstboot-pkg-upgrade: New port.

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.

I think pkg info | sha256 would work? If any packages are updated (or installed or removed) then that hash will change.

May 7 2026, 1:30 PM · pkgbase, releng

May 6 2026

cperciva added a comment to D56381: sysutils/firstboot-pkg-upgrade: New port.

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 6 2026, 11:42 PM · pkgbase, releng
ziaee updated the diff for D56381: sysutils/firstboot-pkg-upgrade: New port.

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 6 2026, 11:08 PM · pkgbase, releng

May 4 2026

ziaee updated the summary of D56381: sysutils/firstboot-pkg-upgrade: New port.
May 4 2026, 9:53 PM · pkgbase, releng
ziaee added inline comments to D56381: sysutils/firstboot-pkg-upgrade: New port.
May 4 2026, 9:31 PM · pkgbase, releng

May 1 2026

ziaee updated the diff for D56381: sysutils/firstboot-pkg-upgrade: New port.

greatly simplify based on cperciva feedback.

May 1 2026, 7:09 PM · pkgbase, releng

Apr 30 2026

cperciva added a comment to D56381: sysutils/firstboot-pkg-upgrade: New port.

I'm inclined to skip the "figure out if we need to reboot or just restart services" complexity at this point because

Apr 30 2026, 11:47 PM · pkgbase, releng
ziaee updated the diff for D56381: sysutils/firstboot-pkg-upgrade: New port.

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 30 2026, 11:21 PM · pkgbase, releng

Apr 22 2026

lwhsu added a comment to D56381: sysutils/firstboot-pkg-upgrade: New port.

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.

Apr 22 2026, 9:29 PM · pkgbase, releng
lwhsu added inline comments to D56381: sysutils/firstboot-pkg-upgrade: New port.
Apr 22 2026, 9:26 PM · pkgbase, releng
lwhsu added a comment to D56381: sysutils/firstboot-pkg-upgrade: New port.

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

Apr 22 2026, 9:23 PM · pkgbase, releng
lwhsu added a comment to D56381: sysutils/firstboot-pkg-upgrade: New port.
In D56381#1295532, @ivy wrote:

@lwhsu out of interest, how do you end up with a system that has FreeBSD-base packages installed but doesn't have pkg bootstrapped?

Apr 22 2026, 9:18 PM · pkgbase, releng
ivy added a comment to D56381: sysutils/firstboot-pkg-upgrade: New port.

@lwhsu out of interest, how do you end up with a system that has FreeBSD-base packages installed but doesn't have pkg bootstrapped?

Apr 22 2026, 8:53 PM · pkgbase, releng
ziaee updated the diff for D56381: sysutils/firstboot-pkg-upgrade: New port.

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

Apr 22 2026, 8:50 PM · pkgbase, releng
ziaee updated the diff for D56381: sysutils/firstboot-pkg-upgrade: New port.

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.

Apr 22 2026, 8:11 PM · pkgbase, releng