sys-apps/sydbox: Use sandbox-2.13+ unloading instead of unsandbox
authorMichał Górny <mgorny@gentoo.org>
Tue, 3 Apr 2018 19:42:14 +0000 (21:42 +0200)
committerMichał Górny <mgorny@gentoo.org>
Tue, 3 Apr 2018 20:05:09 +0000 (22:05 +0200)
sys-apps/sydbox/sydbox-1.0.7.ebuild

index 660422f3a516545883c64cf01ac7c343328ce7d8..951a50fa3a49592f9be16d8c7966db6a4652afbe 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -15,7 +15,7 @@ IUSE="debug seccomp test"
 RDEPEND="sys-libs/pinktrace:=
        debug? ( sys-libs/libunwind:= )"
 DEPEND="${RDEPEND}
-       test? ( app-portage/unsandbox )"
+       test? ( !<sys-apps/sandbox-2.13 )"
 
 src_configure() {
        local myconf=(
@@ -27,6 +27,9 @@ src_configure() {
 }
 
 src_test() {
-       # two sandboxes are never a good idea ;-)
-       unsandbox emake check
+       # unload the Gentoo sandbox
+       local -x SANDBOX_ON=0
+       local -x LD_PRELOAD=
+
+       emake check
 }