dev-lisp/sbcl: Fix sandbox violation.
authorUlrich Müller <ulm@gentoo.org>
Sat, 13 Feb 2016 15:08:40 +0000 (16:08 +0100)
committerUlrich Müller <ulm@gentoo.org>
Sat, 13 Feb 2016 15:13:03 +0000 (16:13 +0100)
Thanks to Nicholas Vinson <nvinson234@gmail.com> for the original patch.

Bug: 572478

Package-Manager: portage-2.2.27

dev-lisp/sbcl/sbcl-1.1.18.ebuild

index 0b14a4900a216dca23efe77733555030954ab43b..926737a771d6b494203a78b217b94668868dd1ca 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
@@ -108,6 +108,10 @@ src_prepare() {
        # #define SBCL_HOME ...
        sed "s,/usr/local/lib,/usr/$(get_libdir),g" -i src/runtime/runtime.c || die
 
+       # Avoid sandbox violation, bug #572478
+       sed -i -e "/(sb-posix:rmdir /s%\"/\"%\"${WORKDIR}\"%" \
+               contrib/sb-posix/posix-tests.lisp || die
+
        find . -type f -name .cvsignore -delete
 }