Adjust where UNAME_r is defined for ports builds

In followup to 80ab50e1de,
export UNAME_r in Makefile.inc1 instead of Makefile.vm.

MFC after:	3 days
MFC with:	80ab50e1de
Sponsored by:	Rubicon Communications, LLC ("Netgate")
This commit is contained in:
Glen Barber 2021-03-02 10:11:04 -05:00
parent ee21ee1572
commit 0be274d373
2 changed files with 4 additions and 1 deletions

View File

@ -40,3 +40,6 @@ BUILDDATE!= date +%Y%m%d
.export BUILDDATE
.endif
# Override UNAME_r to allow building ports for a different branch.
UNAME_r= ${REVISION}-${BRANCH}
.export UNAME_r

View File

@ -54,7 +54,7 @@ emulator-portinstall:
.if ( ${TARGET_ARCH} != "i386" ) || ( ${MACHINE_ARCH} != "amd64" )
.if !exists(/usr/local/bin/qemu-${TARGET_ARCH}-static)
.if exists(${PORTSDIR}/emulators/qemu-user-static/Makefile)
env - UNAME_r="${REVISION}-${BRANCH}" PATH=$$PATH make -C ${PORTSDIR}/emulators/qemu-user-static BATCH=1 all install clean
env - UNAME_r=${UNAME_r} PATH=$$PATH make -C ${PORTSDIR}/emulators/qemu-user-static BATCH=1 all install clean
.else
.if !exists(/usr/local/sbin/pkg-static)
env ASSUME_ALWAYS_YES=yes pkg bootstrap -y