Page MenuHomeFreeBSD

Makefile.inc1: add fallback to set PKG_ABI from newvers.sh
ClosedPublic

Authored by emaste on Feb 11 2022, 2:31 PM.
Tags
None
Referenced Files
F111651477: D34249.id102672.diff
Thu, Mar 6, 1:01 PM
F111647940: D34249.diff
Thu, Mar 6, 11:59 AM
Unknown Object (File)
Mon, Feb 10, 10:05 AM
Unknown Object (File)
Sun, Feb 9, 5:38 PM
Unknown Object (File)
Feb 4 2025, 7:00 AM
Unknown Object (File)
Feb 4 2025, 6:47 AM
Unknown Object (File)
Jan 26 2025, 12:23 PM
Unknown Object (File)
Jan 16 2025, 9:28 AM
Subscribers

Details

Summary

If ${WSTAGEDIR}/usr/bin/uname does not exist (e.g., if building only kernel packages) we were unable to determine PKG_ABI. In this case synthesize it from newvers.sh.

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

emaste created this revision.
emaste added a reviewer: kevans.
This revision is now accepted and ready to land.Feb 11 2022, 2:34 PM

always use newvers.sh mode

This revision now requires review to proceed.Feb 11 2022, 2:52 PM
This revision is now accepted and ready to land.Feb 11 2022, 2:54 PM
Makefile.inc1
526

This shouldn't do this. It should do eval $(newvers.sh -V ${_V}) instead. These aren't guaranteed to be constants.
A note for another day...

emaste added inline comments.
Makefile.inc1
526

Indeed. I submitted D34253 as one tiny step related to this

1887

We could perhaps drop the uname case and always use newvers.sh

1887

Oops this was an unsubmitted draft comment. I discussed on IRC and updated to include this.