pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/cpuflags/files use psrinfo -v instead of -pv. O...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/154399485424
branches:  trunk
changeset: 519088:154399485424
user:      dmcmahill <dmcmahill%pkgsrc.org@localhost>
date:      Sun Oct 01 00:59:36 2006 +0000

description:
use psrinfo -v instead of -pv.  On solaris-2.8, -p is supported (or so
says the man page) but seems to cause nothing to come out even with -v.
On solaris-2.9 (sparc), -p isn't supported which causes major failures.
On solaris-2.9 (i386), -p causes a failure.

diffstat:

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

diffs (19 lines):

diff -r 2dcc97a1a100 -r 154399485424 devel/cpuflags/files/cpuflags.SunOS
--- a/devel/cpuflags/files/cpuflags.SunOS       Sun Oct 01 00:06:31 2006 +0000
+++ b/devel/cpuflags/files/cpuflags.SunOS       Sun Oct 01 00:59:36 2006 +0000
@@ -1,5 +1,5 @@
 #!/bin/sh
-# $NetBSD: cpuflags.SunOS,v 1.9 2006/09/15 14:37:32 abs Exp $
+# $NetBSD: cpuflags.SunOS,v 1.10 2006/10/01 00:59:36 dmcmahill Exp $
 PATH=/sbin:/usr/sbin:/bin:/usr/bin:$PATH
 
 AWK=nawk
@@ -12,7 +12,7 @@
     }
 
 hw_arch=`/usr/bin/uname -m`
-hw_psrinfo=`psrinfo -pv | $AWK 'NR==3{print}'` # Just gets the first CPU
+hw_psrinfo=`psrinfo -v | $AWK 'NR==3{print}'` # Just gets the first CPU
 
 case $hw_arch in
     sun4c | sun4 )             FLAGS='-mcpu=cypress' ;;



Home | Main Index | Thread Index | Old Index