pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mk/compiler Remove tail of -* from _GCC_VERSION for _G...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/6e0dcb9c7346
branches:  trunk
changeset: 574709:6e0dcb9c7346
user:      obache <obache%pkgsrc.org@localhost>
date:      Sat Apr 24 08:33:19 2010 +0000

description:
Remove tail of -* from _GCC_VERSION for _GCC_PKG.
With gcc2 on Haiku, it's 2.95.3-haiku-090629, confuse pmatch of pkg_admin.

diffstat:

 mk/compiler/gcc.mk |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r a679c105bfff -r 6e0dcb9c7346 mk/compiler/gcc.mk
--- a/mk/compiler/gcc.mk        Sat Apr 24 08:03:22 2010 +0000
+++ b/mk/compiler/gcc.mk        Sat Apr 24 08:33:19 2010 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: gcc.mk,v 1.103 2010/03/15 08:27:49 adam Exp $
+# $NetBSD: gcc.mk,v 1.104 2010/04/24 08:33:19 obache Exp $
 #
 # This is the compiler definition for the GNU Compiler Collection.
 #
@@ -117,7 +117,7 @@
 _GCC_VERSION=  0
 .  endif
 .endif
-_GCC_PKG=      gcc-${_GCC_VERSION}
+_GCC_PKG=      gcc-${_GCC_VERSION:C/-.*$//}
 
 .if !empty(_CC:M${LOCALBASE}/*)
 _IS_BUILTIN_GCC=       NO



Home | Main Index | Thread Index | Old Index