Page MenuHomeFreeBSD

release: packages: Add back UCL Kerberos libraries
AbandonedPublic

Authored by jlduran on Sep 3 2025, 5:36 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Oct 13, 2:23 PM
Unknown Object (File)
Sun, Oct 12, 8:19 PM
Unknown Object (File)
Sun, Oct 12, 6:06 PM
Unknown Object (File)
Sun, Oct 12, 8:44 AM
Unknown Object (File)
Sun, Oct 12, 8:44 AM
Unknown Object (File)
Sun, Oct 12, 8:43 AM
Unknown Object (File)
Sun, Oct 12, 8:43 AM
Unknown Object (File)
Sat, Oct 11, 9:59 PM
Subscribers

Details

Reviewers
emaste
Group Reviewers
krb5
pkgbase
Summary

Fixes: 929f5966a9fd ("packages: Improve handling of -lib packages")

Test Plan
make -j $(sysctl -n hw.ncpu) packages

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 66789
Build 63672: arc lint + arc unit

Event Timeline

I don't know what to put in the description, so suggestions are welcome!

jlduran retitled this revision from release: packages: Add UCL for Kerberos libraries to release: packages: Add back UCL Kerberos libraries.Sep 3 2025, 5:56 PM
jlduran edited the summary of this revision. (Show Details)

Add back previous file.
@ivy do you prefer to handle this fix differently?

is this the right filename? the -all suffix is used with $PKGGENNAME (see release/packages/template.ucl), but kerberos-lib is a subpackage of kerberos, so PKGNAME is kerberos-lib and PKGGENNAME is kerberos, and it should be picking up kerberos-all.ucl and kerberos-lib.ucl but not kerberos-lib-all.ucl.

or in other words, if this works, i think we have a bug somewhere in the package build, because it seems like it shouldn't (or else i'm missing something, which is quite possible).

In D52361#1195557, @ivy wrote:

is this the right filename? the -all suffix is used with $PKGGENNAME (see release/packages/template.ucl), but kerberos-lib is a subpackage of kerberos, so PKGNAME is kerberos-lib and PKGGENNAME is kerberos, and it should be picking up kerberos-all.ucl and kerberos-lib.ucl but not kerberos-lib-all.ucl.

or in other words, if this works, i think we have a bug somewhere in the package build, because it seems like it shouldn't (or else i'm missing something, which is quite possible).

The error I have is:

===> Creating FreeBSD-kerberos-dbg-15.snap20250903174135
pkg -o ABI=FreeBSD:15:aarch64 -o ALLOW_BASE_SHLIBS=yes  -o OSVERSION="1500063"  create -f tzst -l -1  -M /usr/obj/usr/src/arm64.aarch64/worldstage/kerberos-dbg.ucl  -p /usr/obj/usr/src/arm64.aarch64/worldstage/kerberos-dbg.plist  -r /usr/obj/usr/src/arm64.aarch64/worldstage  -o /usr/obj/usr/src/repo/FreeBSD:15:aarch64/15.snap20250903174135
/usr/src/release/packages/generate-ucl.lua: fail to parse(/usr/src/release/packages/template.ucl): cannot open file /usr/src/release/packages/ucl/kerberos-lib-all.ucl: No such file or directory
*** [create-world-package-kerberos-lib-dbg-lib32] Error code 1

After this patch I'm getting strange pkg names. Maybe my setup is broken. Looking at pkg.FreeBSD.org everything seems OK.

I'll abandon for now. Sorry for the noise.

does a clean build fix it? that shouldn't be required but perhaps we're not properly cleaning something for changes like this.

In D52361#1195576, @ivy wrote:

does a clean build fix it? that shouldn't be required but perhaps we're not properly cleaning something for changes like this.

Just did a clean build before. I'll setup another VM. Thanks!

i've done a full clean build, including deleting the repository, and i can't reproduce this, so i'm very interested to know what's going on. if you don't find the issue, could you share the full build log?

In D52361#1195682, @ivy wrote:

i've done a full clean build, including deleting the repository, and i can't reproduce this, so i'm very interested to know what's going on. if you don't find the issue, could you share the full build log?

I'm currently doing a vanilla build. The previous one had MK_MITKRB5=no, also WITHOUT_BLACKLIST=, and WITHOUT_BLACKLIST_SUPPORT=. I'll let you know!

building without MIT Kerberos is probably the issue, it looks like i forgot to update the packages for Heimdal. i'll make another review to fix that.