aboutsummaryrefslogtreecommitdiffstats
path: root/emulators
diff options
context:
space:
mode:
authorxmj <xmj@FreeBSD.org>2014-12-10 01:47:32 +0800
committerxmj <xmj@FreeBSD.org>2014-12-10 01:47:32 +0800
commitc2209bab1d6989f4b5a85dd7e8769e78af9205db (patch)
tree6db29b1926953ca6841d65414db5d75ee8d737e8 /emulators
parent2d922c950fe3afcc7e357c1f6fc011bd6dddf813 (diff)
downloadfreebsd-ports-gnome-c2209bab1d6989f4b5a85dd7e8769e78af9205db.tar.gz
freebsd-ports-gnome-c2209bab1d6989f4b5a85dd7e8769e78af9205db.tar.zst
freebsd-ports-gnome-c2209bab1d6989f4b5a85dd7e8769e78af9205db.zip
Force PREFIX to LINUXBASE
Using pkg with linux packages will generate conflicts with non-linux ports if PREFIX is set in make.conf. If USE_LINUX_PREFIX is defined, force PREFIX to LINUXBASE, which can be overridden separately. Differential Revision: https://reviews.freebsd.org/D1265 Approved by: koobs, swills (mentors)
Diffstat (limited to 'emulators')
-rw-r--r--emulators/linux_base-c6/Makefile2
-rw-r--r--emulators/linux_base-c6/pkg-plist3
-rw-r--r--emulators/linux_base-f10/Makefile2
-rw-r--r--emulators/linux_base-f10/pkg-plist1
4 files changed, 4 insertions, 4 deletions
diff --git a/emulators/linux_base-c6/Makefile b/emulators/linux_base-c6/Makefile
index 27a8faafa546..48e6ed1dade9 100644
--- a/emulators/linux_base-c6/Makefile
+++ b/emulators/linux_base-c6/Makefile
@@ -131,7 +131,7 @@ LINUX_RPM_ARCH= i686
USE_LINUX_PREFIX= yes
NO_WRKSUBDIR= yes
DISTINFO_FILE?= ${MASTERDIR}/distinfo.${LINUX_RPM_ARCH}
-PLIST_SUB= GLIBCVER="2.12"
+PLIST_SUB= GLIBCVER="2.12" LINUXBASE=${LINUXBASE}
USES= shebangfix
SHEBANG_FILES= bin/redhat_lsb_init sbin/mount.tmpfs
# bash scripts need to work in chroot /compat/linux, so use env instead.
diff --git a/emulators/linux_base-c6/pkg-plist b/emulators/linux_base-c6/pkg-plist
index dc63de961a0d..7fc97ead6a05 100644
--- a/emulators/linux_base-c6/pkg-plist
+++ b/emulators/linux_base-c6/pkg-plist
@@ -2340,8 +2340,7 @@ usr/tmp
var/mail
@sample etc/krb5.conf.sample
@sample etc/yp.conf.sample
-@dir /compat/linux
-@dir /compat
+@dir %%LINUXBASE%%
@dir etc/X11/applnk
@dir etc/X11/fontpath.d
@dir etc/ld.so.conf.d
diff --git a/emulators/linux_base-f10/Makefile b/emulators/linux_base-f10/Makefile
index b1675ee7c99b..bf50e186e87a 100644
--- a/emulators/linux_base-f10/Makefile
+++ b/emulators/linux_base-f10/Makefile
@@ -111,7 +111,7 @@ LINUX_RPM_ARCH= i386
USE_LINUX_PREFIX= yes
NO_WRKSUBDIR= yes
DISTINFO_FILE?= ${MASTERDIR}/distinfo.${LINUX_RPM_ARCH}
-PLIST_SUB= GLIBCVER="2.9"
+PLIST_SUB= GLIBCVER="2.9" LINUXBASE=${LINUXBASE}
EXTRACT_ONLY= ${BIN_DISTFILES}
diff --git a/emulators/linux_base-f10/pkg-plist b/emulators/linux_base-f10/pkg-plist
index 0fe011ce6c61..ea7f88e49648 100644
--- a/emulators/linux_base-f10/pkg-plist
+++ b/emulators/linux_base-f10/pkg-plist
@@ -2011,6 +2011,7 @@ usr/share/man/man8/setserial.8.gz
usr/share/man/man8/tune2fs.8.gz
usr/tmp
var/mail
+@dir %%LINUXBASE%%
@rmtry var/cache/ldconfig/aux-cache
@comment empty directory listing
@dir var/yp