pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mk Ignore post-hyphen parts of the Linux kernel versio...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/fd46fad8e14e
branches:  trunk
changeset: 534212:fd46fad8e14e
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Sat Oct 13 19:38:53 2007 +0000

description:
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:

 mk/bsd.prefs.mk |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (18 lines):

diff -r f3ec348434ef -r fd46fad8e14e mk/bsd.prefs.mk
--- a/mk/bsd.prefs.mk   Sat Oct 13 19:38:27 2007 +0000
+++ b/mk/bsd.prefs.mk   Sat Oct 13 19:38:53 2007 +0000
@@ -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_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/}



Home | Main Index | Thread Index | Old Index