pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/cpuflags Update cpuflags to 0.65.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/0a6a1bb742aa
branches:  trunk
changeset: 471975:0a6a1bb742aa
user:      abs <abs%pkgsrc.org@localhost>
date:      Thu Apr 01 19:44:59 2004 +0000

description:
Update cpuflags to 0.65.
        Use -dumpversion with gcc rather than mangling -v output. Suggested
        by mrg. Located copy of egcs to confirm output still correctly
        mangled in that case :)

diffstat:

 devel/cpuflags/Makefile              |  4 ++--
 devel/cpuflags/files/cpuflags.NetBSD |  4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diffs (32 lines):

diff -r 2050afa3ae77 -r 0a6a1bb742aa devel/cpuflags/Makefile
--- a/devel/cpuflags/Makefile   Thu Apr 01 19:38:32 2004 +0000
+++ b/devel/cpuflags/Makefile   Thu Apr 01 19:44:59 2004 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.68 2004/04/01 19:37:59 abs Exp $
+# $NetBSD: Makefile,v 1.69 2004/04/01 19:44:59 abs Exp $
 #
 
-DISTNAME=      cpuflags-0.64
+DISTNAME=      cpuflags-0.65
 CATEGORIES=    sysutils
 MASTER_SITES=  # empty
 DISTFILES=     # empty
diff -r 2050afa3ae77 -r 0a6a1bb742aa devel/cpuflags/files/cpuflags.NetBSD
--- a/devel/cpuflags/files/cpuflags.NetBSD      Thu Apr 01 19:38:32 2004 +0000
+++ b/devel/cpuflags/files/cpuflags.NetBSD      Thu Apr 01 19:44:59 2004 +0000
@@ -1,5 +1,5 @@
 #!/bin/sh
-# $NetBSD: cpuflags.NetBSD,v 1.46 2004/04/01 19:37:59 abs Exp $
+# $NetBSD: cpuflags.NetBSD,v 1.47 2004/04/01 19:44:59 abs Exp $
 
 if [ -x /sbin/sysctl ] ;then
     SYSCTL=/sbin/sysctl
@@ -172,7 +172,7 @@
 #   gcc_version_in_which_option_was_introduced  new_option  old_option
 
 if [ -n "$FLAGS" ]; then
-    gcc_ver=`${CC} -v 2>&1 | awk '/gcc version/ {sub("egcs-","");print $3}'`
+    gcc_ver=`${CC} -dumpversion | sed 's/^egcs-//'`
     FLAGS=`awk -v "flags=$FLAGS" -v "gcc_ver=$gcc_ver" '
        { if (gcc_ver < $1){map[$2] = ""$3} }
        END { while (flags in map) {flags = map[flags]} print flags }



Home | Main Index | Thread Index | Old Index