app-editors/emacs-vcs: Disable the sandbox only when dumping.
authorUlrich Müller <ulm@gentoo.org>
Tue, 20 Feb 2018 07:46:16 +0000 (08:46 +0100)
committerUlrich Müller <ulm@gentoo.org>
Tue, 20 Feb 2018 07:46:58 +0000 (08:46 +0100)
Note that unsetting LD_PRELOAD will have an effect only for
>=sys-apps/sandbox-2.13.

Package-Manager: Portage-2.3.24, Repoman-2.3.6

app-editors/emacs-vcs/emacs-vcs-26.0.90.ebuild
app-editors/emacs-vcs/emacs-vcs-26.0.91.ebuild
app-editors/emacs-vcs/emacs-vcs-26.0.9999-r1.ebuild
app-editors/emacs-vcs/emacs-vcs-27.0.9999.ebuild

index 2153ada2274ba0fa65748e678dbe37f46b564ce5..b332683366c38b86d23bf2911bb097f0916852e9 100644 (file)
@@ -273,8 +273,16 @@ src_configure() {
 }
 
 src_compile() {
-       export SANDBOX_ON=0                     # for the unbelievers, see Bug #131505
-       emake
+       # Disable sandbox when dumping. For the unbelievers, see bug #131505
+       cat >src/temacs-wrapper <<-'EOF' || die
+               #!/bin/bash
+               export SANDBOX_ON=0
+               unset LD_PRELOAD
+               exec ./temacs "$@"
+       EOF
+       chmod +x src/temacs-wrapper || die
+
+       emake RUN_TEMACS="./temacs-wrapper"
 }
 
 src_install () {
index 2153ada2274ba0fa65748e678dbe37f46b564ce5..b332683366c38b86d23bf2911bb097f0916852e9 100644 (file)
@@ -273,8 +273,16 @@ src_configure() {
 }
 
 src_compile() {
-       export SANDBOX_ON=0                     # for the unbelievers, see Bug #131505
-       emake
+       # Disable sandbox when dumping. For the unbelievers, see bug #131505
+       cat >src/temacs-wrapper <<-'EOF' || die
+               #!/bin/bash
+               export SANDBOX_ON=0
+               unset LD_PRELOAD
+               exec ./temacs "$@"
+       EOF
+       chmod +x src/temacs-wrapper || die
+
+       emake RUN_TEMACS="./temacs-wrapper"
 }
 
 src_install () {
index 2153ada2274ba0fa65748e678dbe37f46b564ce5..b332683366c38b86d23bf2911bb097f0916852e9 100644 (file)
@@ -273,8 +273,16 @@ src_configure() {
 }
 
 src_compile() {
-       export SANDBOX_ON=0                     # for the unbelievers, see Bug #131505
-       emake
+       # Disable sandbox when dumping. For the unbelievers, see bug #131505
+       cat >src/temacs-wrapper <<-'EOF' || die
+               #!/bin/bash
+               export SANDBOX_ON=0
+               unset LD_PRELOAD
+               exec ./temacs "$@"
+       EOF
+       chmod +x src/temacs-wrapper || die
+
+       emake RUN_TEMACS="./temacs-wrapper"
 }
 
 src_install () {
index e2c11b5e4c51108ed9c6fc2f35fd3c06425ad746..9cf901fe95f76f97aa22fa82cfc01a513548f36d 100644 (file)
@@ -273,8 +273,16 @@ src_configure() {
 }
 
 src_compile() {
-       export SANDBOX_ON=0                     # for the unbelievers, see Bug #131505
-       emake
+       # Disable sandbox when dumping. For the unbelievers, see bug #131505
+       cat >src/temacs-wrapper <<-'EOF' || die
+               #!/bin/bash
+               export SANDBOX_ON=0
+               unset LD_PRELOAD
+               exec ./temacs "$@"
+       EOF
+       chmod +x src/temacs-wrapper || die
+
+       emake RUN_TEMACS="./temacs-wrapper"
 }
 
 src_install () {