ports/148879: [patch] Mk/bsd.port.mk: extend IA32_BINARY_PORT to support USE_LINUX
Anonymous
swell.k at gmail.com
Fri Jul 23 21:20:07 UTC 2010
>Number: 148879
>Category: ports
>Synopsis: [patch] Mk/bsd.port.mk: extend IA32_BINARY_PORT to support USE_LINUX
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Fri Jul 23 21:20:06 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator: Anonymous
>Release: FreeBSD 9.0-CURRENT amd64
>Organization:
>Environment:
>Description:
http://docs.freebsd.org/cgi/mid.cgi?86mxu4phfa.fsf_-_
>How-To-Repeat:
>Fix:
--- a.diff begins here ---
Index: Mk/bsd.port.mk
===================================================================
RCS file: /a/.cvsup/ports/Mk/bsd.port.mk,v
retrieving revision 1.642
diff -u -p -r1.642 bsd.port.mk
--- Mk/bsd.port.mk 4 Jun 2010 08:09:17 -0000 1.642
+++ Mk/bsd.port.mk 6 Jul 2010 18:50:08 -0000
@@ -1714,10 +1714,14 @@ HAVE_COMPAT_IA32_LIBS?= YES
.if !defined(HAVE_COMPAT_IA32_KERN)
HAVE_COMPAT_IA32_KERN!= if ${SYSCTL} -n compat.ia32.maxvmem >/dev/null 2>&1; then echo YES; fi
.endif
+.if !defined(HAVE_COMPAT_LINUX32_KERN)
+HAVE_COMPAT_LINUX32_KERN!= if ${SYSCTL} -n compat.linux32.maxvmem >/dev/null 2>&1; then echo YES; fi
+.endif
.endif
.if defined(IA32_BINARY_PORT) && ${ARCH} != "i386"
.if ${ARCH} == "amd64" || ${ARCH} == "ia64"
+.if !defined(USE_LINUX)
.if !defined(HAVE_COMPAT_IA32_KERN)
IGNORE= requires a kernel with compiled-in IA32 compatibility
.elif !defined(HAVE_COMPAT_IA32_LIBS)
@@ -1725,6 +1729,9 @@ IGNORE= requires 32-bit libraries insta
.endif
_LDCONFIG_FLAGS=-32
LIB32DIR= lib32
+.elif !defined(HAVE_COMPAT_LINUX32_KERN)
+IGNORE= requires a kernel with compiled-in LINUX32 compatibility
+.endif
.else
IGNORE= requires i386 (or compatible) platform to run
.endif
--- a.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list