diff options
author | Michał Górny <mgorny@gentoo.org> | 2020-05-20 11:29:39 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2020-05-20 11:30:16 +0200 |
commit | b2a63352b5636ed0ad3e1481777438d375500af8 (patch) | |
tree | 3fa23fd8c103e5cda09dd1fb416747942c9818ac /app-arch/libarchive | |
parent | dev-python/pyenchant: Bump to 3.1.0 (diff) | |
download | gentoo-b2a63352b5636ed0ad3e1481777438d375500af8.tar.gz gentoo-b2a63352b5636ed0ad3e1481777438d375500af8.tar.bz2 gentoo-b2a63352b5636ed0ad3e1481777438d375500af8.zip |
app-arch/libarchive: Reenable tests
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'app-arch/libarchive')
-rw-r--r-- | app-arch/libarchive/libarchive-3.4.3.ebuild | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/app-arch/libarchive/libarchive-3.4.3.ebuild b/app-arch/libarchive/libarchive-3.4.3.ebuild index 7eb40b6533f0..dde837017a82 100644 --- a/app-arch/libarchive/libarchive-3.4.3.ebuild +++ b/app-arch/libarchive/libarchive-3.4.3.ebuild @@ -41,10 +41,6 @@ PATCHES=( "${FILESDIR}"/${PN}-3.3.3-libressl.patch ) -# Various test problems, starting with the fact that sandbox -# explodes on long paths. https://bugs.gentoo.org/598806 -RESTRICT="test" - src_prepare() { default elibtoolize # is required for Solaris sol2_ld linker fix @@ -97,9 +93,19 @@ multilib_src_compile() { fi } +src_test() { + mkdir -p "${T}"/bin || die + # tests fail when lbzip2[symlink] is used in place of ref bunzip2 + ln -s "${BROOT}/bin/bunzip2" "${T}"/bin || die + local -x PATH=${T}/bin:${PATH} + multilib-minimal_src_test +} + multilib_src_test() { - # Replace the default src_test so that it builds tests in parallel - multilib_is_native_abi && emake check + # sandbox is breaking long symlink behavior + local -x SANDBOX_ON=0 + local -x LD_PRELOAD= + emake check } multilib_src_install() { |