1 |
commit: 011a496c85cf6f36b24082a3ac55f6b63162f2e5 |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Jan 9 13:32:06 2018 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jan 9 13:46:14 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=011a496c |
7 |
|
8 |
app-office/scribus: Fix build w/ x86 on 17.0 profile |
9 |
|
10 |
Closes: https://bugs.gentoo.org/642242 |
11 |
Package-Manager: Portage-2.3.19, Repoman-2.3.6 |
12 |
|
13 |
app-office/scribus/files/scribus-1.5.3-x86-fpic.patch | 16 ++++++++++++++++ |
14 |
app-office/scribus/scribus-1.5.3-r1.ebuild | 1 + |
15 |
app-office/scribus/scribus-9999.ebuild | 2 +- |
16 |
3 files changed, 18 insertions(+), 1 deletion(-) |
17 |
|
18 |
diff --git a/app-office/scribus/files/scribus-1.5.3-x86-fpic.patch b/app-office/scribus/files/scribus-1.5.3-x86-fpic.patch |
19 |
new file mode 100644 |
20 |
index 00000000000..03d4dc4daa3 |
21 |
--- /dev/null |
22 |
+++ b/app-office/scribus/files/scribus-1.5.3-x86-fpic.patch |
23 |
@@ -0,0 +1,16 @@ |
24 |
+--- a/CMakeLists.txt 2017-05-28 11:10:27.000000000 +0200 |
25 |
++++ b/CMakeLists.txt 2018-01-09 14:26:14.494922353 +0100 |
26 |
+@@ -155,11 +155,11 @@ |
27 |
+ set(ARCH_HPPA 1) |
28 |
+ endif() |
29 |
+ |
30 |
+-# We need to pass -fPIC to lib2geom on amd64, mips, mipsel, and hppa. See: |
31 |
++# We need to pass -fPIC to lib2geom on amd64, mips, mipsel, hppa and x86. See: |
32 |
+ # http://www.gentoo.org/proj/en/base/amd64/howtos/index.xml?part=1&chap=3 and |
33 |
+ # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=559133 |
34 |
+ |
35 |
+-if (ARCH_X86_64 EQUAL 1 OR ARCH_HPPA EQUAL 1 OR ARCH_MIPS EQUAL 1 OR ARCH_MIPS_64 EQUAL 1 OR ARCH_PPC_64 EQUAL 1) |
36 |
++if (ARCH_X86 EQUAL 1 OR ARCH_X86_64 EQUAL 1 OR ARCH_HPPA EQUAL 1 OR ARCH_MIPS EQUAL 1 OR ARCH_MIPS_64 EQUAL 1 OR ARCH_PPC_64 EQUAL 1) |
37 |
+ set(CMAKE_CXX_FLAGS_FPIC "-fPIC") |
38 |
+ endif() |
39 |
+ |
40 |
|
41 |
diff --git a/app-office/scribus/scribus-1.5.3-r1.ebuild b/app-office/scribus/scribus-1.5.3-r1.ebuild |
42 |
index 0c8f8171b5e..e1ed169825a 100644 |
43 |
--- a/app-office/scribus/scribus-1.5.3-r1.ebuild |
44 |
+++ b/app-office/scribus/scribus-1.5.3-r1.ebuild |
45 |
@@ -96,6 +96,7 @@ PATCHES=( |
46 |
"${FILESDIR}"/${P}-fpic.patch |
47 |
"${FILESDIR}"/${P}-cmake-openssl.patch |
48 |
"${FILESDIR}"/${P}-poppler-0.58.patch |
49 |
+ "${FILESDIR}"/${P}-x86-fpic.patch |
50 |
) |
51 |
|
52 |
src_prepare() { |
53 |
|
54 |
diff --git a/app-office/scribus/scribus-9999.ebuild b/app-office/scribus/scribus-9999.ebuild |
55 |
index b65e60a412b..f9c847c7aa6 100644 |
56 |
--- a/app-office/scribus/scribus-9999.ebuild |
57 |
+++ b/app-office/scribus/scribus-9999.ebuild |
58 |
@@ -6,7 +6,6 @@ EAPI=6 |
59 |
PYTHON_COMPAT=( python2_7 ) |
60 |
PYTHON_REQ_USE="tk?" |
61 |
CMAKE_MAKEFILE_GENERATOR=ninja |
62 |
-CMAKE_MIN_VERSION=3.2.0 |
63 |
|
64 |
inherit cmake-utils eutils flag-o-matic gnome2 python-single-r1 subversion xdg-utils |
65 |
|
66 |
@@ -97,6 +96,7 @@ DEPEND="${COMMON_DEPEND} |
67 |
PATCHES=( |
68 |
"${FILESDIR}"/${P}-docdir.patch |
69 |
"${FILESDIR}"/${P}-fpic.patch |
70 |
+ "${FILESDIR}"/${PN}-1.5.3-x86-fpic.patch |
71 |
) |
72 |
|
73 |
src_prepare() { |