summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjoerg <joerg>2007-10-13 19:38:53 +0000
committerjoerg <joerg>2007-10-13 19:38:53 +0000
commit92fccafc2d26f68282fd1e5d6e4681bc48710ac9 (patch)
treedae1d044fad4ac4534da3f0213cb0177474e0018
parent9926b8cb9cbe012fc31adbae0e43651eaa84654d (diff)
downloadpkgsrc-92fccafc2d26f68282fd1e5d6e4681bc48710ac9.tar.gz
Ignore post-hyphen parts of the Linux kernel version similiar to
DragonFly and FreeBSD. It seems like Linux people love those... This addresses the first part of PR 37100.
-rw-r--r--mk/bsd.prefs.mk4
1 files changed, 3 insertions, 1 deletions
diff --git a/mk/bsd.prefs.mk b/mk/bsd.prefs.mk
index 15e2666d0b1..448db00899f 100644
--- a/mk/bsd.prefs.mk
+++ b/mk/bsd.prefs.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.prefs.mk,v 1.269 2007/10/05 21:03:39 rillig Exp $
+# $NetBSD: bsd.prefs.mk,v 1.270 2007/10/13 19:38:53 joerg Exp $
#
# This file includes the mk.conf file, which contains the user settings.
#
@@ -177,6 +177,8 @@ LOWER_OPSYS?= irix${OS_VERSION}
LOWER_VENDOR?= sgi
.elif ${OPSYS} == "Linux"
+OS_VERSION:= ${OS_VERSION:C/-.*$//}
+LOWER_OS_VERSION:= ${LOWER_OS_VERSION_CMD:C/-.*$//}
LOWER_OPSYS?= linux
MACHINE_ARCH:= ${MACHINE_ARCH:C/i.86/i386/}
MACHINE_ARCH:= ${MACHINE_ARCH:C/ppc/powerpc/}