Gentoo Archives: gentoo-commits

From: Sebastien Fabbro <bicatali@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-mathematics/arb/, sci-mathematics/arb/files/
Date: Fri, 28 Jul 2017 21:56:29
Message-Id: 1501278121.2c3bf701dff1c57800b8e2ada20559049714aef2.bicatali@gentoo
1 commit: 2c3bf701dff1c57800b8e2ada20559049714aef2
2 Author: Sébastien Fabbro <bicatali <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jul 28 21:41:41 2017 +0000
4 Commit: Sebastien Fabbro <bicatali <AT> gentoo <DOT> org>
5 CommitDate: Fri Jul 28 21:42:01 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2c3bf701
7
8 sci-mathematics/arb: fixed for linking with PIE
9
10 Package-Manager: Portage-2.3.6, Repoman-2.3.3
11
12 .../arb/{arb-2.11.1.ebuild => arb-2.11.1-r1.ebuild} | 5 ++++-
13 sci-mathematics/arb/files/arb-2.11.1-pie-ftbs.patch | 17 +++++++++++++++++
14 2 files changed, 21 insertions(+), 1 deletion(-)
15
16 diff --git a/sci-mathematics/arb/arb-2.11.1.ebuild b/sci-mathematics/arb/arb-2.11.1-r1.ebuild
17 similarity index 92%
18 rename from sci-mathematics/arb/arb-2.11.1.ebuild
19 rename to sci-mathematics/arb/arb-2.11.1-r1.ebuild
20 index bea3d8d89ec..88e262a3d9f 100644
21 --- a/sci-mathematics/arb/arb-2.11.1.ebuild
22 +++ b/sci-mathematics/arb/arb-2.11.1-r1.ebuild
23 @@ -21,6 +21,8 @@ RDEPEND="
24 "
25 DEPEND="${RDEPEND}"
26
27 +PATCHES=( "${FILESDIR}"/${P}-pie-ftbs.patch )
28 +
29 src_configure() {
30 # Not an autoconf configure script.
31 # Note that it appears to have been cloned from the flint configure script
32 @@ -31,7 +33,8 @@ src_configure() {
33 --with-flint="${EPREFIX}/usr" \
34 --with-gmp="${EPREFIX}/usr" \
35 --with-mpfr="${EPREFIX}/usr" \
36 - $(use_enable static-libs static) || die
37 + $(use_enable static-libs static) \
38 + CFLAGS="${CPPFLAGS} ${CFLAGS}" || die
39 }
40
41 src_compile() {
42
43 diff --git a/sci-mathematics/arb/files/arb-2.11.1-pie-ftbs.patch b/sci-mathematics/arb/files/arb-2.11.1-pie-ftbs.patch
44 new file mode 100644
45 index 00000000000..b2db6b2a294
46 --- /dev/null
47 +++ b/sci-mathematics/arb/files/arb-2.11.1-pie-ftbs.patch
48 @@ -0,0 +1,17 @@
49 +Description: Use -r instead of -Wl,-r to fix FTBFS with PIE enabled
50 +Author: Logan Rosen
51 +Forwarded: yes
52 +
53 +diff --git a/Makefile.subdirs b/Makefile.subdirs
54 +index 3dc757d..f0ec923 100644
55 +--- a/Makefile.subdirs
56 ++++ b/Makefile.subdirs
57 +@@ -52,7 +52,7 @@ $(BUILD_DIR)/$(MOD_DIR)_%.o: %.c
58 + $(QUIET_CC) $(CC) $(CFLAGS) $(INCS) -c $< -o $@ -MMD -MP -MF "$(BUILD_DIR)/$(MOD_DIR)_$*.d" -MT "$(BUILD_DIR)/$(MOD_DIR)_$*.d" -MT "$@"
59 +
60 + $(MOD_LOBJ): $(LOBJS)
61 +- $(QUIET_CC) $(CC) $(ABI_FLAG) -Wl,-r $^ -o $@ -nostdlib
62 ++ $(QUIET_CC) $(CC) $(ABI_FLAG) -r $^ -o $@ -nostdlib
63 +
64 + -include $(LOBJS:.lo=.d)
65 +