commit: 514dc4d9c8f74aca164ff4d74c54917ed1b24b92 Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> AuthorDate: Tue Feb 6 15:24:22 2018 +0000 Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> CommitDate: Tue Feb 6 15:24:22 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=514dc4d9
app-forensics/libewf: fix test failures Bug: https://bugs.gentoo.org/634910 Package-Manager: Portage-2.3.24, Repoman-2.3.6 .../libewf-20140608-fix-tmpdir-in-tests.patch | 33 ++++++++++++++++++++++ app-forensics/libewf/libewf-20140608-r1.ebuild | 10 ++++--- 2 files changed, 39 insertions(+), 4 deletions(-) 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 index 00000000000..09a6948d7c7 --- /dev/null +++ b/app-forensics/libewf/files/libewf-20140608-fix-tmpdir-in-tests.patch @@ -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"; + diff --git a/app-forensics/libewf/libewf-20140608-r1.ebuild b/app-forensics/libewf/libewf-20140608-r1.ebuild index 4f45bb342f1..c313c72a60a 100644 --- a/app-forensics/libewf/libewf-20140608-r1.ebuild +++ b/app-forensics/libewf/libewf-20140608-r1.ebuild @@ -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 )
