app-editors/emacs: Fix temacs wrapper.
authorUlrich Müller <ulm@gentoo.org>
Mon, 19 Mar 2018 17:51:28 +0000 (18:51 +0100)
committerUlrich Müller <ulm@gentoo.org>
Mon, 19 Mar 2018 18:01:08 +0000 (19:01 +0100)
Disable the sandbox already when "env" is executed, so that the execvp
executing temacs will be the regular one from libc.

Package-Manager: Portage-2.3.24, Repoman-2.3.6

app-editors/emacs/emacs-18.59-r11.ebuild
app-editors/emacs/emacs-23.4-r17.ebuild
app-editors/emacs/emacs-24.5-r5.ebuild
app-editors/emacs/emacs-25.3-r3.ebuild

index 9b260064e0b83e569c82cb89e8f043c160d3f1d5..91fad29d2a694302cc49fee0b50ea20a2b463545 100644 (file)
@@ -32,7 +32,7 @@ src_prepare() {
        default
 
        # Do not use the sandbox, or the dumped Emacs will be twice as large
-       sed -i -e 's:\./temacs.*dump:env SANDBOX_ON=0 LD_PRELOAD= &:' \
+       sed -i -e 's:\./temacs.*dump:SANDBOX_ON=0 LD_PRELOAD= env &:' \
                src/ymakefile || die
 }
 
index d984134389d105e7890cd51f0b735e552e4b64e0..47bae6b5ddcfbc20296e26d2e9fc74f13365fe17 100644 (file)
@@ -226,7 +226,7 @@ src_compile() {
        emake CC="$(tc-getCC)" \
                AR="$(tc-getAR) cq" \
                RANLIB="$(tc-getRANLIB)" \
-               RUN_TEMACS="env SANDBOX_ON=0 LD_PRELOAD= ./temacs"
+               RUN_TEMACS="SANDBOX_ON=0 LD_PRELOAD= env ./temacs"
 }
 
 src_install () {
index 23d6f54c458b88544bcab9e456fc6da1acedd51e..856e206ec8f127134a5cd990bf4e38672d0c6eb6 100644 (file)
@@ -224,7 +224,7 @@ src_configure() {
 
 src_compile() {
        # Disable sandbox when dumping. For the unbelievers, see bug #131505
-       emake RUN_TEMACS="env SANDBOX_ON=0 LD_PRELOAD= ./temacs"
+       emake RUN_TEMACS="SANDBOX_ON=0 LD_PRELOAD= env ./temacs"
 }
 
 src_install () {
index 72aacd2aed716dd0ce14d3ec327ad95742d4a26c..0f547078ec537e5de63a90b7650482de0f47f69f 100644 (file)
@@ -236,7 +236,7 @@ src_configure() {
 
 src_compile() {
        # Disable sandbox when dumping. For the unbelievers, see bug #131505
-       emake RUN_TEMACS="env SANDBOX_ON=0 LD_PRELOAD= ./temacs"
+       emake RUN_TEMACS="SANDBOX_ON=0 LD_PRELOAD= env ./temacs"
 }
 
 src_install () {