1 |
commit: 62898bdbc0f979b183ceb638ab09f98592240fa9 |
2 |
Author: Ulrich Müller <ulm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Feb 22 13:21:05 2018 +0000 |
4 |
Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Feb 22 13:21:05 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/emacs.git/commit/?id=62898bdb |
7 |
|
8 |
app-editors/emacs: Disable the sandbox only when dumping. |
9 |
|
10 |
Apply this also to slots 18, 23, and 24. |
11 |
|
12 |
Package-Manager: Portage-2.3.24, Repoman-2.3.6 |
13 |
|
14 |
app-editors/emacs/emacs-18.59-r11.ebuild | 11 +++++++++-- |
15 |
app-editors/emacs/emacs-23.4-r17.ebuild | 5 +++-- |
16 |
app-editors/emacs/emacs-24.5-r5.ebuild | 4 ++-- |
17 |
3 files changed, 14 insertions(+), 6 deletions(-) |
18 |
|
19 |
diff --git a/app-editors/emacs/emacs-18.59-r11.ebuild b/app-editors/emacs/emacs-18.59-r11.ebuild |
20 |
index bd7a527..9b26006 100644 |
21 |
--- a/app-editors/emacs/emacs-18.59-r11.ebuild |
22 |
+++ b/app-editors/emacs/emacs-18.59-r11.ebuild |
23 |
@@ -28,6 +28,14 @@ DEPEND="${RDEPEND} |
24 |
|
25 |
PATCHES="../${P}-linux22x-elf-glibc21.diff ../patch" |
26 |
|
27 |
+src_prepare() { |
28 |
+ default |
29 |
+ |
30 |
+ # Do not use the sandbox, or the dumped Emacs will be twice as large |
31 |
+ sed -i -e 's:\./temacs.*dump:env SANDBOX_ON=0 LD_PRELOAD= &:' \ |
32 |
+ src/ymakefile || die |
33 |
+} |
34 |
+ |
35 |
src_configure() { |
36 |
# autoconf? What's autoconf? We are living in 1992. ;-) |
37 |
local arch |
38 |
@@ -70,8 +78,7 @@ src_configure() { |
39 |
} |
40 |
|
41 |
src_compile() { |
42 |
- # Do not use the sandbox, or the dumped Emacs will be twice as large |
43 |
- export SANDBOX_ON=0 |
44 |
+ addpredict /var/lib/emacs/lock |
45 |
emake --jobs=1 \ |
46 |
CC="$(tc-getCC)" CFLAGS="${CFLAGS} -Demacs" \ |
47 |
LD="$(tc-getCC) -nostdlib" LDFLAGS="${LDFLAGS}" |
48 |
|
49 |
diff --git a/app-editors/emacs/emacs-23.4-r17.ebuild b/app-editors/emacs/emacs-23.4-r17.ebuild |
50 |
index 0a3267b..7879999 100644 |
51 |
--- a/app-editors/emacs/emacs-23.4-r17.ebuild |
52 |
+++ b/app-editors/emacs/emacs-23.4-r17.ebuild |
53 |
@@ -224,10 +224,11 @@ src_configure() { |
54 |
} |
55 |
|
56 |
src_compile() { |
57 |
- export SANDBOX_ON=0 # for the unbelievers, see Bug #131505 |
58 |
+ # Disable sandbox when dumping. For the unbelievers, see bug #131505 |
59 |
emake CC="$(tc-getCC)" \ |
60 |
AR="$(tc-getAR) cq" \ |
61 |
- RANLIB="$(tc-getRANLIB)" |
62 |
+ RANLIB="$(tc-getRANLIB)" \ |
63 |
+ RUN_TEMACS="env SANDBOX_ON=0 LD_PRELOAD= ./temacs" |
64 |
} |
65 |
|
66 |
src_install () { |
67 |
|
68 |
diff --git a/app-editors/emacs/emacs-24.5-r5.ebuild b/app-editors/emacs/emacs-24.5-r5.ebuild |
69 |
index 4244c1f..9fa543d 100644 |
70 |
--- a/app-editors/emacs/emacs-24.5-r5.ebuild |
71 |
+++ b/app-editors/emacs/emacs-24.5-r5.ebuild |
72 |
@@ -225,8 +225,8 @@ src_configure() { |
73 |
} |
74 |
|
75 |
src_compile() { |
76 |
- export SANDBOX_ON=0 # for the unbelievers, see Bug #131505 |
77 |
- emake |
78 |
+ # Disable sandbox when dumping. For the unbelievers, see bug #131505 |
79 |
+ emake RUN_TEMACS="env SANDBOX_ON=0 LD_PRELOAD= ./temacs" |
80 |
} |
81 |
|
82 |
src_install () { |