1 |
commit: 514dc4d9c8f74aca164ff4d74c54917ed1b24b92 |
2 |
Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Feb 6 15:24:22 2018 +0000 |
4 |
Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Feb 6 15:24:22 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=514dc4d9 |
7 |
|
8 |
app-forensics/libewf: fix test failures |
9 |
|
10 |
Bug: https://bugs.gentoo.org/634910 |
11 |
Package-Manager: Portage-2.3.24, Repoman-2.3.6 |
12 |
|
13 |
.../libewf-20140608-fix-tmpdir-in-tests.patch | 33 ++++++++++++++++++++++ |
14 |
app-forensics/libewf/libewf-20140608-r1.ebuild | 10 ++++--- |
15 |
2 files changed, 39 insertions(+), 4 deletions(-) |
16 |
|
17 |
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 |
18 |
new file mode 100644 |
19 |
index 00000000000..09a6948d7c7 |
20 |
--- /dev/null |
21 |
+++ b/app-forensics/libewf/files/libewf-20140608-fix-tmpdir-in-tests.patch |
22 |
@@ -0,0 +1,33 @@ |
23 |
+--- a/tests/test_read_write.sh |
24 |
++++ b/tests/test_read_write.sh |
25 |
+@@ -25,7 +25,7 @@ EXIT_FAILURE=1; |
26 |
+ EXIT_IGNORE=77; |
27 |
+ |
28 |
+ INPUT="input"; |
29 |
+-TMP="tmp"; |
30 |
++TMP=$(mktemp -ut); |
31 |
+ |
32 |
+ LS="ls"; |
33 |
+ TR="tr"; |
34 |
+--- a/tests/test_read_write_delta.sh |
35 |
++++ b/tests/test_read_write_delta.sh |
36 |
+@@ -25,7 +25,7 @@ EXIT_FAILURE=1; |
37 |
+ EXIT_IGNORE=77; |
38 |
+ |
39 |
+ INPUT="input"; |
40 |
+-TMP="tmp"; |
41 |
++TMP=$(mktemp -ut); |
42 |
+ |
43 |
+ AWK="awk"; |
44 |
+ CUT="cut"; |
45 |
+--- a/tests/test_write.sh |
46 |
++++ b/tests/test_write.sh |
47 |
+@@ -24,7 +24,7 @@ EXIT_SUCCESS=0; |
48 |
+ EXIT_FAILURE=1; |
49 |
+ EXIT_IGNORE=77; |
50 |
+ |
51 |
+-TMP="tmp"; |
52 |
++TMP=$(mktemp -ut); |
53 |
+ |
54 |
+ CUT="cut"; |
55 |
+ |
56 |
|
57 |
diff --git a/app-forensics/libewf/libewf-20140608-r1.ebuild b/app-forensics/libewf/libewf-20140608-r1.ebuild |
58 |
index 4f45bb342f1..c313c72a60a 100644 |
59 |
--- a/app-forensics/libewf/libewf-20140608-r1.ebuild |
60 |
+++ b/app-forensics/libewf/libewf-20140608-r1.ebuild |
61 |
@@ -1,9 +1,10 @@ |
62 |
-# Copyright 1999-2017 Gentoo Foundation |
63 |
+# Copyright 1999-2018 Gentoo Foundation |
64 |
# Distributed under the terms of the GNU General Public License v2 |
65 |
|
66 |
EAPI=5 |
67 |
|
68 |
AUTOTOOLS_AUTORECONF=1 |
69 |
+AUTOTOOLS_IN_SOURCE_BUILD=1 |
70 |
inherit eutils autotools-utils |
71 |
|
72 |
DESCRIPTION="Implementation of the EWF (SMART and EnCase) image format" |
73 |
@@ -27,9 +28,10 @@ DEPEND=" |
74 |
zlib? ( sys-libs/zlib )" |
75 |
RDEPEND="${DEPEND}" |
76 |
|
77 |
-AUTOTOOLS_IN_SOURCE_BUILD=1 |
78 |
- |
79 |
-PATCHES=( "${DISTDIR}"/${P}-libuna-remove-inline.patch ) |
80 |
+PATCHES=( |
81 |
+ "${DISTDIR}"/${P}-libuna-remove-inline.patch |
82 |
+ "${FILESDIR}"/${PN}-20140608-fix-tmpdir-in-tests.patch |
83 |
+) |
84 |
|
85 |
DOCS=( AUTHORS ChangeLog NEWS README documents/header.txt documents/header2.txt ) |