소스 검색

fix cpu determination under Tru64 5.0

Ralf S. Engelschall 24 년 전
부모
커밋
55cbc6b9ae
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      openpkg/rpmtool

+ 1 - 1
openpkg/rpmtool

@@ -362,7 +362,7 @@ case $tool in
                 case $platform in
                     *:SunOS:5.*:* | *:OSF1:*:* )
                         if [ ".$isgmake" = .yes ]; then
-                            n=`/bin/uname -X | grep -i NumCPU | awk '{ print $3; }'`
+                            n=`(/bin/uname -X) 2>/dev/null | grep -i NumCPU | awk '{ print $3; }'`
                             if [ ".$n" != . ]; then
                                 if [ $n -gt 1 ]; then
                                     n=`expr $n \* 2`