app-forensics/libewf: fix test failures
authorThomas Deutschmann <whissi@gentoo.org>
Tue, 6 Feb 2018 15:24:22 +0000 (16:24 +0100)
committerThomas Deutschmann <whissi@gentoo.org>
Tue, 6 Feb 2018 15:24:22 +0000 (16:24 +0100)
Bug: https://bugs.gentoo.org/634910
Package-Manager: Portage-2.3.24, Repoman-2.3.6

app-forensics/libewf/files/libewf-20140608-fix-tmpdir-in-tests.patch [new file with mode: 0644]
app-forensics/libewf/libewf-20140608-r1.ebuild

diff --git a/app-forensics/libewf/files/libewf-20140608-fix-tmpdir-in-tests.patch b/app-forensics/libewf/files/libewf-20140608-fix-tmpdir-in-tests.patch
new file mode 100644 (file)
index 0000000..09a6948
--- /dev/null
@@ -0,0 +1,33 @@
+--- a/tests/test_read_write.sh
++++ b/tests/test_read_write.sh
+@@ -25,7 +25,7 @@ EXIT_FAILURE=1;
+ EXIT_IGNORE=77;
+ 
+ INPUT="input";
+-TMP="tmp";
++TMP=$(mktemp -ut);
+ 
+ LS="ls";
+ TR="tr";
+--- a/tests/test_read_write_delta.sh
++++ b/tests/test_read_write_delta.sh
+@@ -25,7 +25,7 @@ EXIT_FAILURE=1;
+ EXIT_IGNORE=77;
+ 
+ INPUT="input";
+-TMP="tmp";
++TMP=$(mktemp -ut);
+ 
+ AWK="awk";
+ CUT="cut";
+--- a/tests/test_write.sh
++++ b/tests/test_write.sh
+@@ -24,7 +24,7 @@ EXIT_SUCCESS=0;
+ EXIT_FAILURE=1;
+ EXIT_IGNORE=77;
+ 
+-TMP="tmp";
++TMP=$(mktemp -ut);
+ 
+ CUT="cut";
+ 
index 4f45bb342f11ca269d9bd4a0c85e27869e807b71..c313c72a60adb0508843e8248938eb2512673761 100644 (file)
@@ -1,9 +1,10 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=5
 
 AUTOTOOLS_AUTORECONF=1
+AUTOTOOLS_IN_SOURCE_BUILD=1
 inherit eutils autotools-utils
 
 DESCRIPTION="Implementation of the EWF (SMART and EnCase) image format"
@@ -27,9 +28,10 @@ DEPEND="
        zlib? ( sys-libs/zlib )"
 RDEPEND="${DEPEND}"
 
-AUTOTOOLS_IN_SOURCE_BUILD=1
-
-PATCHES=( "${DISTDIR}"/${P}-libuna-remove-inline.patch )
+PATCHES=(
+       "${DISTDIR}"/${P}-libuna-remove-inline.patch
+       "${FILESDIR}"/${PN}-20140608-fix-tmpdir-in-tests.patch
+)
 
 DOCS=( AUTHORS ChangeLog NEWS README documents/header.txt documents/header2.txt )