sys-apps/keyutils: tweak endianness check on BE systems, bug #643406
authorSergei Trofimovich <slyfox@gentoo.org>
Sat, 6 Jan 2018 22:20:36 +0000 (22:20 +0000)
committerSergei Trofimovich <slyfox@gentoo.org>
Sat, 6 Jan 2018 22:20:54 +0000 (22:20 +0000)
Seen on powerpc and sparc to fail as:
    +++ Can't Determine Endianness

It's caused by missing trailing escape of closing ')' for MSB case.

Reported-by: Rolf Eike Beer
Bug: https://bugs.gentoo.org/643406
Package-Manager: Portage-2.3.19, Repoman-2.3.6

sys-apps/keyutils/files/keyutils-1.5.9-endian-check-2.patch

index a4558d8edfcbdbe3f9baee808e5b090086d56d91..bc96dae464b894474c524979783fe9ecf086c95b 100644 (file)
@@ -25,7 +25,7 @@ index f2463c57b40e..5ac23ffc04fb 100644
  
  endian=`file -L /proc/$$/exe`
 -if expr "$endian" : '.* MSB \+executable.*' >&/dev/null
-+if expr "$endian" : '.* MSB \+\(executable\|shared object).*' >&/dev/null
++if expr "$endian" : '.* MSB \+\(executable\|shared object\).*' >&/dev/null
  then
      endian=BE
 -elif expr "$endian" : '.* LSB \+executable.*' >&/dev/null