summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorhauke <hauke@pkgsrc.org>2021-05-12 10:14:24 +0000
committerhauke <hauke@pkgsrc.org>2021-05-12 10:14:24 +0000
commit0b181faf603c65890cb6e2f60c951a629fbdf115 (patch)
treec214595c8526599e86e7bd41daedf2c2c1b2b319 /mk
parentb49aefdc3180eaa81aa03232a749299b8d5f4cd6 (diff)
downloadpkgsrc-0b181faf603c65890cb6e2f60c951a629fbdf115.tar.gz
Set SUSE_PREFER explicitly for recent FreeBSD releases.
Otherwise, we end up with 10.0, which does not support FreeBSD, even in the presence of newer suse_ packages installed -- so much for *_PREFER.
Diffstat (limited to 'mk')
-rw-r--r--mk/emulator/linux.mk8
1 files changed, 7 insertions, 1 deletions
diff --git a/mk/emulator/linux.mk b/mk/emulator/linux.mk
index 2b5505a0e66..60b75542aee 100644
--- a/mk/emulator/linux.mk
+++ b/mk/emulator/linux.mk
@@ -1,4 +1,4 @@
-# $NetBSD: linux.mk,v 1.33 2020/10/08 10:42:49 nia Exp $
+# $NetBSD: linux.mk,v 1.34 2021/05/12 10:14:24 hauke Exp $
#
# Linux binary emulation framework
#
@@ -21,6 +21,12 @@ SUSE_PREFER?= 13.1
SUSE_PREFER?= 12.1
. endif
.endif
+.if ${OPSYS} == "FreeBSD" && ${EMUL_ARCH} == "x86_64"
+# Use 13.1 under FreeBSD 10.* and newer
+. if empty(OS_VERSION:M[2-9].*)
+SUSE_PREFER?= 13.1
+. endif
+.endif
SUSE_PREFER?= 10.0
.for _version_ in ${EMUL_REQD:Msuse>=*:S/suse>=//}