Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 16 Jul 2011 21:47:10 -0500
From:      Mark Linimon <linimon@lonesome.com>
To:        emulation@FreeBSD.org, gabor@FreeBSD.org
Cc:        linimon@FreeBSD.org
Subject:   RFC: small patch to linux_base files for package building
Message-ID:  <20110717024710.GA19599@lonesome.com>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110717024710.GA19599>