pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/emulators/suse100_linux Check if ONLY_FOR_PLATFORM is ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/54d73a089b59
branches:  trunk
changeset: 528036:54d73a089b59
user:      xtraeme <xtraeme%pkgsrc.org@localhost>
date:      Thu Apr 19 17:26:01 2007 +0000

description:
Check if ONLY_FOR_PLATFORM is defined before using .if empty...

Reported by Michai Chelaru.

diffstat:

 emulators/suse100_linux/compat32.mk |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (19 lines):

diff -r cff05bc3b718 -r 54d73a089b59 emulators/suse100_linux/compat32.mk
--- a/emulators/suse100_linux/compat32.mk       Thu Apr 19 16:54:58 2007 +0000
+++ b/emulators/suse100_linux/compat32.mk       Thu Apr 19 17:26:01 2007 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: compat32.mk,v 1.1 2007/04/19 15:31:07 xtraeme Exp $
+# $NetBSD: compat32.mk,v 1.2 2007/04/19 17:26:01 xtraeme Exp $
 #
 
 .ifndef SUSE_LINUX_COMPAT32_MK
@@ -60,7 +60,8 @@
 .    else
 OPSYS_EMULSUBDIR=      linux
 SUSE_COMPAT32_SUFFIX=  # empty
-.      if empty(ONLY_FOR_PLATFORM:MNetBSD-*-x86_64)
+.      if defined(ONLY_FOR_PLATFORM) && \
+           empty(ONLY_FOR_PLATFORM:MNetBSD-*-x86_64)
 PKG_FAIL_REASON+=      ${MYSTRING}
 .      endif
 .    endif # end of PKG_OPTIONS.suse=compat32



Home | Main Index | Thread Index | Old Index