commit:     10cc6ae8d05d268607e7368374fe3740b2815299
Author:     Florian Schmaus <flo <AT> geekplace <DOT> eu>
AuthorDate: Mon Apr 19 19:04:24 2021 +0000
Commit:     Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
CommitDate: Mon Apr 19 19:05:14 2021 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=10cc6ae8

app-arch/tarlz: skip broken test case

Closes: https://bugs.gentoo.org/783846
Signed-off-by: Florian Schmaus <flo <AT> geekplace.eu>

 app-arch/tarlz/files/skip-broken-testcase.patch | 14 ++++++++++++++
 app-arch/tarlz/tarlz-0.19-r2.ebuild             |  4 ++++
 2 files changed, 18 insertions(+)

diff --git a/app-arch/tarlz/files/skip-broken-testcase.patch 
b/app-arch/tarlz/files/skip-broken-testcase.patch
new file mode 100644
index 000000000..949e4df5a
--- /dev/null
+++ b/app-arch/tarlz/files/skip-broken-testcase.patch
@@ -0,0 +1,14 @@
+--- a/testsuite/check.sh       2021-04-19 20:57:33.141266611 +0200
++++ b/testsuite/check.sh       2021-04-19 20:58:18.465330536 +0200
+@@ -1102,6 +1102,11 @@
+       [ $? = 2 ] || test_failed $LINENO $i
+       "${TARLZ}" -q -tf "${testdir}"/t155_fv${i}.tar.lz --permissive ||
+               test_failed $LINENO $i
++      if [ "${i}" = 5 ] ; then
++              # Skip broken test case. See gentoo bug #783846 and
++              # 
https://lists.nongnu.org/archive/html/lzip-bug/2021-04/msg00001.html
++              continue
++      fi
+       if [ "${ln_works}" = yes ] ; then
+               mkdir dir2 || framework_failure
+               "${TARLZ}" -C dir2 -xf "${testdir}"/t155_fv${i}.tar.lz 
--permissive ||

diff --git a/app-arch/tarlz/tarlz-0.19-r2.ebuild 
b/app-arch/tarlz/tarlz-0.19-r2.ebuild
index 5ecb5d3fe..86091b0f2 100644
--- a/app-arch/tarlz/tarlz-0.19-r2.ebuild
+++ b/app-arch/tarlz/tarlz-0.19-r2.ebuild
@@ -20,6 +20,10 @@ DEPEND="
        $(unpacker_src_uri_depends)
 "
 
+PATCHES=(
+       "${FILESDIR}/skip-broken-testcase.patch"
+)
+
 src_configure() {
        econf LDFLAGS="${LDFLAGS}" CXXFLAGS="${CXXFLAGS}"
 }

Reply via email to