Page MenuHomeFreeBSD

release: create pkgbase repo config from Makefile
ClosedPublic

Authored by ifreund_freebsdfoundation.org on Jul 24 2025, 8:46 AM.
Referenced Files
F136172030: D51482.id162805.diff
Sun, Nov 16, 10:16 AM
Unknown Object (File)
Thu, Nov 6, 6:02 AM
Unknown Object (File)
Wed, Nov 5, 6:58 AM
Unknown Object (File)
Tue, Nov 4, 10:15 AM
Unknown Object (File)
Tue, Nov 4, 7:07 AM
Unknown Object (File)
Tue, Oct 28, 10:08 PM
Unknown Object (File)
Tue, Oct 28, 5:58 PM
Unknown Object (File)
Sat, Oct 25, 6:43 PM
Subscribers

Details

Summary

This will allow the VM image build scripts to use the same repository
config file for installing base system packages at build time.

Sponsored by: The FreeBSD Foundation

Diff Detail

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

Event Timeline

Looks good but I'd like to avoid having the literal worldstage in two different places if we can

release/Makefile
193

Can we pick this up from WSTAGEDIR somehow?

release/Makefile
193

I tried to find a way to do this using e.g. make -C ${WORLDDIR} -V WSTAGEDIR but wasn't able to figure out how to make it work, I never found a way to get make to print WSTAGEDIR with -V. Perhaps there's a gap in my understanding of how make/-V works though, any tips on how I might achieve this?

release/Makefile
193

Kind of gross but:

$ make -f Makefile.inc1 TARGET=amd64 TARGET_ARCH=amd64 -V WSTAGEDIR
/usr/obj/home/emaste/src/freebsd-git/stable/14/amd64.amd64/worldstage

assuming you have the target variables available and can do TARGET=$TARGET TARGET_ARCH=$TARGET_ARCH

release/Makefile
193

Thanks Ed, I didn't think to use -f Makefile.inc1 for some reason.

release/Makefile
193

No worries, it's not intuitive. I've just seen that in some Makefile machinery before.

This revision is now accepted and ready to land.Sep 25 2025, 9:11 AM
emaste edited reviewers, added: ifreund_freebsdfoundation.org; removed: emaste.
This revision now requires review to proceed.Sep 25 2025, 9:23 AM
This revision is now accepted and ready to land.Sep 25 2025, 9:42 AM
ifreund_freebsdfoundation.org added inline comments.
release/Makefile
196–200

Oh wait, this pkgbase-repo target shouldn't be deleted, it's still necessary.

This revision now requires changes to proceed.Sep 25 2025, 9:46 AM
This revision was not accepted when it landed; it landed in state Needs Review.Sep 25 2025, 12:36 PM
This revision was automatically updated to reflect the committed changes.