Source: patchelf Version: 0.8-2 Severity: normal Dear Maintainer,
The package patchelf, although it does build, it fails on the test suite. That is because the setting of the pageSize to 4K does not fit ppc archs. When changing to 64K, the tests that fail pass, but no-rpath.sh fails. That is because one assertion within patchelf.cc fails, and I cannot get exactly how to correct this. Attached is the patch with what I have added to patchelf.cc. Thanks. -- System Information: Debian Release: 8.0 APT prefers stable-updates APT policy: (500, 'stable-updates'), (500, 'unstable'), (500, 'stable') Architecture: ppc64el (ppc64le) Kernel: Linux 3.16.0-4-powerpc64le (SMP w/8 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system)
diff -Nru patchelf-0.8/debian/changelog patchelf-0.8/debian/changelog --- patchelf-0.8/debian/changelog 2014-03-28 14:32:16.000000000 -0400 +++ patchelf-0.8/debian/changelog 2015-09-23 13:01:56.000000000 -0400 @@ -1,3 +1,10 @@ +patchelf (0.8-2.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Changed pageSize to 64k for ppc architectures. + + -- Fernando Seiti Furusato <ferse...@br.ibm.com> Wed, 23 Sep 2015 13:01:23 -0400 + patchelf (0.8-2) unstable; urgency=medium * Document --remove-needed in manpage diff -Nru patchelf-0.8/debian/patches/ppc64-pagesize.patch patchelf-0.8/debian/patches/ppc64-pagesize.patch --- patchelf-0.8/debian/patches/ppc64-pagesize.patch 1969-12-31 19:00:00.000000000 -0500 +++ patchelf-0.8/debian/patches/ppc64-pagesize.patch 2015-09-23 13:02:05.000000000 -0400 @@ -0,0 +1,11 @@ +--- a/src/patchelf.cc ++++ b/src/patchelf.cc +@@ -25,6 +25,8 @@ + #ifdef MIPSEL + /* The lemote fuloong 2f kernel defconfig sets a page size of 16KB */ + const unsigned int pageSize = 4096*4; ++#elif defined (__PPC__) ++const unsigned int pageSize = 4096*16; + #else + const unsigned int pageSize = 4096; + #endif diff -Nru patchelf-0.8/debian/patches/series patchelf-0.8/debian/patches/series --- patchelf-0.8/debian/patches/series 2014-03-28 14:35:23.000000000 -0400 +++ patchelf-0.8/debian/patches/series 2015-09-23 13:00:17.000000000 -0400 @@ -1 +1,2 @@ debian-changes +ppc64-pagesize.patch