summaryrefslogtreecommitdiff
path: root/emulators/compat_netbsd
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2007-08-30 16:54:06 +0000
committerjlam <jlam@pkgsrc.org>2007-08-30 16:54:06 +0000
commit5dca58e72d9e3a1304ffe8dd0dbfa59892ab70e8 (patch)
tree2f73adffa6faf80646711380bf46ba6f36e3bfca /emulators/compat_netbsd
parent1f0cfcf013a5205848d4ac317fdf2b7a5d6f4931 (diff)
downloadpkgsrc-5dca58e72d9e3a1304ffe8dd0dbfa59892ab70e8.tar.gz
Don't rely on differences in the value of DISTNAME that rely on
"immediate" versus "lazy" evaluation of the value. Just explicitly define a variable (COMPAT_PKG) that holds the value that's needed in each of the compat* packages, and use it within Makefile.common. This was an attempt to solve PR pkg/36863, but it doesn't look like pkglint or lintpkgsrc understand this more straightforward variable construction either.
Diffstat (limited to 'emulators/compat_netbsd')
-rw-r--r--emulators/compat_netbsd/Makefile.common4
1 files changed, 2 insertions, 2 deletions
diff --git a/emulators/compat_netbsd/Makefile.common b/emulators/compat_netbsd/Makefile.common
index 92de0a352e8..72303638f13 100644
--- a/emulators/compat_netbsd/Makefile.common
+++ b/emulators/compat_netbsd/Makefile.common
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.6 2007/08/28 14:00:45 jlam Exp $
+# $NetBSD: Makefile.common,v 1.7 2007/08/30 16:54:08 jlam Exp $
#
# Common infrastructure for NetBSD compat* packages.
#
@@ -71,7 +71,7 @@ NATIVE_EXEC_FMT= ${_NATIVE_EXEC_FMT_cmd:sh}
_NATIVE_EXEC_FMT_cmd= sh ${.CURDIR}/../../mk/scripts/shlib-type \
${_OPSYS_SHLIB_TYPE:Q} ${MAKE:Q}
-.include "${PKGSRCDIR}/emulators/${DISTNAME:C/-.*//}/emulator.mk"
+.include "${PKGSRCDIR}/emulators/${COMPAT_PKG}/emulator.mk"
#
# Different combinations of the native executable format and the emulated