RFC: small patch to linux_base files for package building

Mark Linimon linimon at lonesome.com
Sun Jul 17 03:04:11 UTC 2011


pointyhat makes its INDEX file elsewhere from the client environment.
Thus, the test for ${SYSCTL} -n compat.linux.osrelease might or might
not match the clients.

I want to put in the following patch in each of the Makefiles to be
able to force the INDEX (same patch for each one).  Any objections?

Thanks.

mcl

Index: Makefile
===================================================================
RCS file: /home/pcvs/ports/emulators/linux_base-f10/Makefile,v
retrieving revision 1.60
diff -u -r1.60 Makefile
--- Makefile	2 Mar 2011 10:11:21 -0000	1.60
+++ Makefile	17 Jul 2011 02:38:49 -0000
@@ -122,7 +122,9 @@
 
 .include <bsd.port.pre.mk>
 
+.if !defined(PACKAGE_BUILDING) || (defined(PACKAGE_BUILDING) && !defined(LINUX_OSRELEASE) )
 LINUX_OSRELEASE!=	${ECHO_CMD} `${SYSCTL} -n compat.linux.osrelease 2>/dev/null`
+.endif
 
 .if ${LINUX_OSRELEASE}x == "x"
 IGNORE=			linuxulator is not (kld)loaded


More information about the freebsd-emulation mailing list