Page MenuHomeFreeBSD

Set OS versions to target system versions for CROSS_SYSROOT.
ClosedPublic

Authored by jhb on Jun 14 2018, 7:21 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Jan 9, 4:37 PM
Unknown Object (File)
Dec 6 2024, 8:33 AM
Unknown Object (File)
Nov 3 2024, 3:46 AM
Unknown Object (File)
Sep 28 2024, 4:54 AM
Unknown Object (File)
Sep 20 2024, 8:57 AM
Unknown Object (File)
Sep 8 2024, 9:04 PM
Unknown Object (File)
Sep 8 2024, 7:14 PM
Unknown Object (File)
Sep 7 2024, 3:43 PM
Subscribers

Details

Summary

When cross-building a package via a CROSS_SYSROOT, set OSVERSION,
_OSRELEASE, and OSREL to the target OS version. OSVERSION is derived
from the <sys/param.h> header in the sysroot. _OSRELEASE cannot be
easily derived from a sysroot as it is a property of a kernel, so
instead generate a "fake" _OSRELEASE from the OSVERSION, but use a
"-CROSS" branch name that will hopefully fail in any places that makes
assumptions about branch names.

Test Plan
  • used in a dependent patch for base/binutils that alters the plist based on the target OS version

Diff Detail

Repository
rP FreeBSD ports repository
Lint
No Lint Coverage
Unit
No Test Coverage
Build Status
Buildable 17282
Build 17119: arc lint + arc unit