summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2007-10-13 19:38:53 +0000
committerjoerg <joerg@pkgsrc.org>2007-10-13 19:38:53 +0000
commit5f6e2d40c137074aedac5a0ed5280f470d1b4d1d (patch)
treedae1d044fad4ac4534da3f0213cb0177474e0018 /mk
parent2347bb93fed2c4baa27e42d38f7354330b15eae2 (diff)
downloadpkgsrc-5f6e2d40c137074aedac5a0ed5280f470d1b4d1d.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.
Diffstat (limited to 'mk')
-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/}