From e5a9c9adc17b23caef553261234630cbad4fccff Mon Sep 17 00:00:00 2001 From: Ulrich Müller Date: Tue, 20 Feb 2018 08:46:16 +0100 Subject: app-editors/emacs-vcs: Disable the sandbox only when dumping. 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 | 12 ++++++++++-- app-editors/emacs-vcs/emacs-vcs-26.0.91.ebuild | 12 ++++++++++-- app-editors/emacs-vcs/emacs-vcs-26.0.9999-r1.ebuild | 12 ++++++++++-- app-editors/emacs-vcs/emacs-vcs-27.0.9999.ebuild | 12 ++++++++++-- 4 files changed, 40 insertions(+), 8 deletions(-) (limited to 'app-editors/emacs-vcs') diff --git a/app-editors/emacs-vcs/emacs-vcs-26.0.90.ebuild b/app-editors/emacs-vcs/emacs-vcs-26.0.90.ebuild index 2153ada2274b..b332683366c3 100644 --- a/app-editors/emacs-vcs/emacs-vcs-26.0.90.ebuild +++ b/app-editors/emacs-vcs/emacs-vcs-26.0.90.ebuild @@ -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 () { diff --git a/app-editors/emacs-vcs/emacs-vcs-26.0.91.ebuild b/app-editors/emacs-vcs/emacs-vcs-26.0.91.ebuild index 2153ada2274b..b332683366c3 100644 --- a/app-editors/emacs-vcs/emacs-vcs-26.0.91.ebuild +++ b/app-editors/emacs-vcs/emacs-vcs-26.0.91.ebuild @@ -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 () { diff --git a/app-editors/emacs-vcs/emacs-vcs-26.0.9999-r1.ebuild b/app-editors/emacs-vcs/emacs-vcs-26.0.9999-r1.ebuild index 2153ada2274b..b332683366c3 100644 --- a/app-editors/emacs-vcs/emacs-vcs-26.0.9999-r1.ebuild +++ b/app-editors/emacs-vcs/emacs-vcs-26.0.9999-r1.ebuild @@ -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 () { diff --git a/app-editors/emacs-vcs/emacs-vcs-27.0.9999.ebuild b/app-editors/emacs-vcs/emacs-vcs-27.0.9999.ebuild index e2c11b5e4c51..9cf901fe95f7 100644 --- a/app-editors/emacs-vcs/emacs-vcs-27.0.9999.ebuild +++ b/app-editors/emacs-vcs/emacs-vcs-27.0.9999.ebuild @@ -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 () { -- cgit v1.2.3-65-gdbad