diff options
author | kristerw <kristerw@pkgsrc.org> | 2004-04-23 23:52:42 +0000 |
---|---|---|
committer | kristerw <kristerw@pkgsrc.org> | 2004-04-23 23:52:42 +0000 |
commit | b3beadb1449e8a1e410fa3e1157fb2facea1d4da (patch) | |
tree | 35fd4e6713c4cf0d61b516687b70ccc34746a398 /emulators/suse_linux | |
parent | 4fd1d648b9ca164ab5df7e22dae1b0d125c9b132 (diff) | |
download | pkgsrc-b3beadb1449e8a1e410fa3e1157fb2facea1d4da.tar.gz |
Fail gracefully for architectures that cannot use the suse_linux
packages (instead of error due to use of uninitialized variables).
Diffstat (limited to 'emulators/suse_linux')
-rw-r--r-- | emulators/suse_linux/Makefile.application | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/emulators/suse_linux/Makefile.application b/emulators/suse_linux/Makefile.application index 1e88a1e4bc6..58039deb6d3 100644 --- a/emulators/suse_linux/Makefile.application +++ b/emulators/suse_linux/Makefile.application @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.application,v 1.11 2004/04/14 11:31:12 xtraeme Exp $ +# $NetBSD: Makefile.application,v 1.12 2004/04/23 23:52:42 kristerw Exp $ .include "../../mk/bsd.prefs.mk" @@ -8,10 +8,9 @@ _LINUX_SYSCTL_OSRELEASE?= compat.linux.osrelease _LINUX_SYSCTL_OSRELEASE?= emul.linux.kern.osrelease .endif -.if (${OPSYS} == "NetBSD" || ${OPSYS} == "FreeBSD") -. if (${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "powerpc") +.if ((${OPSYS} == "NetBSD" || ${OPSYS} == "FreeBSD") && \ + (${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "powerpc")) LINUX_KERNEL_OSRELEASE!= (/sbin/sysctl -n ${_LINUX_SYSCTL_OSRELEASE} 2>/dev/null; ${ECHO} 2.0.38) | ${HEAD} -1 -. endif . if ${LINUX_KERNEL_OSRELEASE} == "2.0.38" SUSE_DIR_PREFIX= suse64 |