app-arch/cabextract: fix big-endian
authorThomas Deutschmann <whissi@gentoo.org>
Thu, 22 Nov 2018 13:53:24 +0000 (14:53 +0100)
committerThomas Deutschmann <whissi@gentoo.org>
Thu, 22 Nov 2018 13:53:24 +0000 (14:53 +0100)
Closes: https://bugs.gentoo.org/670654
Package-Manager: Portage-2.3.52, Repoman-2.3.12
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
app-arch/cabextract/cabextract-1.9-r1.ebuild [moved from app-arch/cabextract/cabextract-1.9.ebuild with 93% similarity]
app-arch/cabextract/files/cabextract-1.9-fix-bigendian.patch [new file with mode: 0644]
app-arch/cabextract/files/cabextract-1.9-remove-spurious-test_files.patch [new file with mode: 0644]

similarity index 93%
rename from app-arch/cabextract/cabextract-1.9.ebuild
rename to app-arch/cabextract/cabextract-1.9-r1.ebuild
index 547506966c97c6129d1c90d93cc28282bd7dbf9b..f435083a5f260c15e8a28709f280e84c740075cc 100644 (file)
@@ -31,6 +31,11 @@ DEPEND="${LIBMSPACK_DEPEND}
        virtual/pkgconfig"
 RDEPEND="extras? ( dev-lang/perl )"
 
+PATCHES=(
+       "${FILESDIR}"/${P}-fix-bigendian.patch
+       "${FILESDIR}"/${P}-remove-spurious-test_files.patch
+)
+
 src_prepare() {
        if [[ ${PV} == "9999" ]] ; then
                # Re-create file layout from release tarball
diff --git a/app-arch/cabextract/files/cabextract-1.9-fix-bigendian.patch b/app-arch/cabextract/files/cabextract-1.9-fix-bigendian.patch
new file mode 100644 (file)
index 0000000..760dd9d
--- /dev/null
@@ -0,0 +1,17 @@
+https://github.com/kyz/libmspack/commit/c19e707936947b45cf05bc9aaee68517c6c2aca6
+
+---
+ configure.ac  | 1 +
+ 1 files changed, 1 insertions(+)
+
+diff --git a/configure.ac b/configure.ac
+--- a/configure.ac
++++ b/configure.ac
+@@ -30,6 +30,7 @@ AC_CHECK_HEADERS([inttypes.h])
+ # Checks for typedefs, structures, and compiler characteristics.
+ AC_C_CONST
+ AC_C_INLINE
++AC_C_BIGENDIAN
+ AC_TYPE_MODE_T
+ AC_TYPE_OFF_T
+ AC_TYPE_SIZE_T
diff --git a/app-arch/cabextract/files/cabextract-1.9-remove-spurious-test_files.patch b/app-arch/cabextract/files/cabextract-1.9-remove-spurious-test_files.patch
new file mode 100644 (file)
index 0000000..d80b870
--- /dev/null
@@ -0,0 +1,17 @@
+https://github.com/kyz/libmspack/commit/2f78851e3927b05931574b380ca6dccaf91e3807
+
+---
+ test/bugs.test | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- a/test/bugs.test
++++ b/test/bugs.test
+@@ -2,7 +2,7 @@
+ # test that known crash bugs remain fixed
+ . test/testcase
+ 
+-$cabextract -t $test_files/bugs/*.cab
++$cabextract -t bugs/*.cab
+ 
+ # fail if exit code indicates a crash (SIGBUS, SIGSEGV, etc.)
+ test $? -le 1