1 |
commit: 97a6466309bf66a7c8380681510a0e38c613ed13 |
2 |
Author: Mike Frysinger <vapier <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Dec 24 18:56:30 2015 +0000 |
4 |
Commit: Mike Frysinger <vapier <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Dec 24 20:16:40 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=97a64663 |
7 |
|
8 |
dev-libs/efl: fix builds on PaX kernels #547076 |
9 |
|
10 |
Sync the logic into the live ebuild. |
11 |
|
12 |
dev-libs/efl/efl-9999.ebuild | 25 ++++++++++++++++++++++++- |
13 |
1 file changed, 24 insertions(+), 1 deletion(-) |
14 |
|
15 |
diff --git a/dev-libs/efl/efl-9999.ebuild b/dev-libs/efl/efl-9999.ebuild |
16 |
index fcf0d81..806219a 100644 |
17 |
--- a/dev-libs/efl/efl-9999.ebuild |
18 |
+++ b/dev-libs/efl/efl-9999.ebuild |
19 |
@@ -18,7 +18,7 @@ else |
20 |
EKEY_STATE="snap" |
21 |
fi |
22 |
|
23 |
-inherit enlightenment |
24 |
+inherit enlightenment pax-utils |
25 |
|
26 |
DESCRIPTION="Enlightenment Foundation Libraries all-in-one package" |
27 |
|
28 |
@@ -163,6 +163,17 @@ DEPEND=" |
29 |
|
30 |
S=${WORKDIR}/${MY_P} |
31 |
|
32 |
+src_prepare() { |
33 |
+ enlightenment_src_prepare |
34 |
+ |
35 |
+ # Remove stupid sleep command. |
36 |
+ # Also back out gnu make hack that causes regen of Makefiles. |
37 |
+ sed -i \ |
38 |
+ -e '/sleep 10/d' \ |
39 |
+ -e '/^#### Work around bug in automake check macro$/,/^#### Info$/d' \ |
40 |
+ configure || die |
41 |
+} |
42 |
+ |
43 |
src_configure() { |
44 |
if use ssl && use gnutls ; then |
45 |
einfo "You enabled both USE=ssl and USE=gnutls, but only one can be used;" |
46 |
@@ -245,6 +256,18 @@ src_configure() { |
47 |
enlightenment_src_configure |
48 |
} |
49 |
|
50 |
+src_compile() { |
51 |
+ if host-is-pax && ! use oldlua ; then |
52 |
+ # We need to build the lua code first so we can pax-mark it. #547076 |
53 |
+ local target='_e_built_sources_target_gogogo_' |
54 |
+ printf '%s: $(BUILT_SOURCES)\n' "${target}" >> src/Makefile || die |
55 |
+ emake -C src "${target}" |
56 |
+ emake -C src bin/elua/elua |
57 |
+ pax-mark m src/bin/elua/.libs/elua |
58 |
+ fi |
59 |
+ enlightenment_src_compile |
60 |
+} |
61 |
+ |
62 |
src_install() { |
63 |
MAKEOPTS+=" -j1" |