Skip to contentSkip to conversation

tests: really fix fdisk/bsd for hppa

PATCH Applied Helge Deller 2 participants 2 messages Aug 15, 2016 – Aug 16, 2016 Util-Linux package

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tests: really fix fdisk/bsd for hppa

Finally fix the bsd testcase on the hppa architecture.

Commit 1b7be556e553cdcef6213ead6340832c306011ed tried to fix it, but missed the fact that "uname -m" returns "parisc" or "parisc64" instead of "hppa*".

tests/ts/fdisk/bsd renamed from tests/ts/fdisk/bsd.org +1 -1
diff -up ./tests/ts/fdisk/bsd.org ./tests/ts/fdisk/bsd
@@ -48,7 +48,7 @@ BYTE_ORDER=$($TS_HELPER_SYSINFO byte-ord
 ARCH=$(uname -m)
 case $ARCH in
 	# see include/pt-bsd.h
-	*alpha* | *ppc* | *ia64* | *hppa* )
+	*alpha* | *ppc* | *ia64* | *parisc* )
 		BSD_LABELSECTOR=0
 		BSD_LABELOFFSET=64
 		;;
maintainer Applied
#1 lore raw
Quoted 13 lines · Helge Deller

Finally fix the bsd testcase on the hppa architecture.

Commit 1b7be556e553cdcef6213ead6340832c306011ed tried to fix it, but missed the fact that "uname -m" returns "parisc" or "parisc64" instead of "hppa*".

diff -up ./tests/ts/fdisk/bsd.org ./tests/ts/fdisk/bsd

tests/ts/fdisk/bsd BYTE_ORDER=$($TS_HELPER_SYSINFO byte-ord · line 51

Quoted 5 lines
tests/ts/fdisk/bsd renamed from tests/ts/fdisk/bsd.org +1 -1
@@ -48,7 +48,7 @@ BYTE_ORDER=$($TS_HELPER_SYSINFO byte-ord
 ARCH=$(uname -m)
 case $ARCH in
 	# see include/pt-bsd.h
-	*alpha* | *ppc* | *ia64* | *hppa* )
+	*alpha* | *ppc* | *ia64* | *parisc* )

Applied, but we had hppa also in ./confugure, so I guess that "hppa" has been also correct for some boxes. It seems more robust to use

    *alpha* | *ppc* | *ia64* | *hppa* | *parisc* ) 

for sure. Fixed.

Thanks

Karel

Signature · 2 lines
 Karel Zak  <[email protected]>
 http://karelzak.blogspot.com