Fix the logic so if a package sets EMUL_REQD to suse>=11.3, then use that in preference to SUSE_PREFERdiff -r1.4 -r1.5 pkgsrc/mk/emulator/linux-suse.mk
(abs)
@@ -1,24 +1,18 @@ | @@ -1,24 +1,18 @@ | |||
1 | # $NetBSD: linux-suse.mk,v 1.4 2010/09/24 01:30:36 chs Exp $ | 1 | # $NetBSD: linux-suse.mk,v 1.5 2011/09/06 17:48:24 abs Exp $ | |
2 | # | 2 | # | |
3 | # SuSE Linux | 3 | # SuSE Linux | |
4 | # | 4 | # | |
5 | 5 | |||
6 | # Most Linux software only need suse>=6.4. | |||
7 | .for _version_ in ${EMUL_REQD:Msuse>=*:S/suse>=//} | |||
8 | SUSE_VERSION_REQD?= ${_version_} | |||
9 | .endfor | |||
10 | SUSE_VERSION_REQD?= 6.4 | |||
11 | ||||
12 | # When building the SuSE packages, force the Linux type to be the specific | 6 | # When building the SuSE packages, force the Linux type to be the specific | |
13 | # version of SuSE that is being built. | 7 | # version of SuSE that is being built. | |
14 | # | 8 | # | |
15 | .if defined(SUSE_PKG) && defined(SUSE_VERSION) | 9 | .if defined(SUSE_PKG) && defined(SUSE_VERSION) | |
16 | EMUL_TYPE.linux= suse-${SUSE_VERSION} | 10 | EMUL_TYPE.linux= suse-${SUSE_VERSION} | |
17 | .endif | 11 | .endif | |
18 | 12 | |||
19 | # EMUL_TYPE.linux can be "suse" or "suse-[0-9]*". If the former, then use | 13 | # EMUL_TYPE.linux can be "suse" or "suse-[0-9]*". If the former, then use | |
20 | # the default SuSE version, otherwise use the specific version requested. | 14 | # the default SuSE version, otherwise use the specific version requested. | |
21 | # | 15 | # | |
22 | .if !empty(EMUL_TYPE.linux:Msuse-10.[0x]) | 16 | .if !empty(EMUL_TYPE.linux:Msuse-10.[0x]) | |
23 | . include "${PKGSRCDIR}/emulators/suse100_linux/emulator.mk" | 17 | . include "${PKGSRCDIR}/emulators/suse100_linux/emulator.mk" | |
24 | 18 |
@@ -1,22 +1,28 @@ | @@ -1,22 +1,28 @@ | |||
1 | # $NetBSD: linux.mk,v 1.8 2011/02/27 15:54:03 chs Exp $ | 1 | # $NetBSD: linux.mk,v 1.9 2011/09/06 17:48:24 abs Exp $ | |
2 | # | 2 | # | |
3 | # Linux binary emulation framework | 3 | # Linux binary emulation framework | |
4 | # | 4 | # | |
5 | 5 | |||
6 | .if ${OPSYS} == "Linux" | 6 | .if ${OPSYS} == "Linux" | |
7 | EMUL_TYPE.linux?= native | 7 | EMUL_TYPE.linux?= native | |
8 | .else | 8 | .else | |
9 | EMUL_TYPE.linux?= suse-${SUSE_PREFER} | 9 | ||
10 | .for _version_ in ${EMUL_REQD:Msuse>=*:S/suse>=//} | |||
11 | SUSE_VERSION_REQD?= ${_version_} | |||
12 | .endfor | |||
13 | SUSE_VERSION_REQD?= ${SUSE_PREFER} | |||
14 | ||||
15 | EMUL_TYPE.linux?= suse-${SUSE_VERSION_REQD} | |||
10 | .endif | 16 | .endif | |
11 | EMUL_MODULES.linux?= # empty | 17 | EMUL_MODULES.linux?= # empty | |
12 | 18 | |||
13 | .if ((${EMUL_ARCH} == "i386") && (${MACHINE_ARCH} == "x86_64")) || \ | 19 | .if ((${EMUL_ARCH} == "i386") && (${MACHINE_ARCH} == "x86_64")) || \ | |
14 | ((${EMUL_ARCH} == "sparc") && (${MACHINE_ARCH} == "sparc64")) | 20 | ((${EMUL_ARCH} == "sparc") && (${MACHINE_ARCH} == "sparc64")) | |
15 | _LINUX_BASE= linux32 | 21 | _LINUX_BASE= linux32 | |
16 | EMULSUBDIR= emul/linux32 | 22 | EMULSUBDIR= emul/linux32 | |
17 | .else | 23 | .else | |
18 | _LINUX_BASE= linux | 24 | _LINUX_BASE= linux | |
19 | EMULSUBDIR= emul/linux | 25 | EMULSUBDIR= emul/linux | |
20 | .endif | 26 | .endif | |
21 | 27 | |||
22 | EMULDIR= ${PREFIX}/${EMULSUBDIR} | 28 | EMULDIR= ${PREFIX}/${EMULSUBDIR} |