1 |
commit: b71be70a5e0eee017fc3ba5d3a9952bc55c1b1c7 |
2 |
Author: Justin Lecher <jlec <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Dec 31 12:42:16 2015 +0000 |
4 |
Commit: Justin Lecher <jlec <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Dec 31 12:55:03 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b71be70a |
7 |
|
8 |
sci-libs/cifparse-obj: Add gcc5 support |
9 |
|
10 |
Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=570254 |
11 |
|
12 |
Package-Manager: portage-2.2.26 |
13 |
Signed-off-by: Justin Lecher <jlec <AT> gentoo.org> |
14 |
|
15 |
sci-libs/cifparse-obj/cifparse-obj-7.025-r1.ebuild | 3 ++- |
16 |
.../cifparse-obj/files/cifparse-obj-7.025-gcc5.patch | 16 ++++++++++++++++ |
17 |
2 files changed, 18 insertions(+), 1 deletion(-) |
18 |
|
19 |
diff --git a/sci-libs/cifparse-obj/cifparse-obj-7.025-r1.ebuild b/sci-libs/cifparse-obj/cifparse-obj-7.025-r1.ebuild |
20 |
index be87825..a30d3b4 100644 |
21 |
--- a/sci-libs/cifparse-obj/cifparse-obj-7.025-r1.ebuild |
22 |
+++ b/sci-libs/cifparse-obj/cifparse-obj-7.025-r1.ebuild |
23 |
@@ -28,7 +28,8 @@ src_prepare() { |
24 |
epatch \ |
25 |
"${FILESDIR}"/${P}-makefile.patch \ |
26 |
"${FILESDIR}"/${P}-gcc4.3.patch \ |
27 |
- "${FILESDIR}"/${P}-gcc4.7.patch |
28 |
+ "${FILESDIR}"/${P}-gcc4.7.patch \ |
29 |
+ "${FILESDIR}"/${P}-gcc5.patch |
30 |
|
31 |
sed \ |
32 |
-e "s:^\(CC=\).*:\1$(tc-getCC):g" \ |
33 |
|
34 |
diff --git a/sci-libs/cifparse-obj/files/cifparse-obj-7.025-gcc5.patch b/sci-libs/cifparse-obj/files/cifparse-obj-7.025-gcc5.patch |
35 |
new file mode 100644 |
36 |
index 0000000..6b2f797 |
37 |
--- /dev/null |
38 |
+++ b/sci-libs/cifparse-obj/files/cifparse-obj-7.025-gcc5.patch |
39 |
@@ -0,0 +1,16 @@ |
40 |
+ etc/platform.sh | 2 +- |
41 |
+ 1 file changed, 1 insertion(+), 1 deletion(-) |
42 |
+ |
43 |
+diff --git a/etc/platform.sh b/etc/platform.sh |
44 |
+index ff0ab51..1b56ab1 100755 |
45 |
+--- a/etc/platform.sh |
46 |
++++ b/etc/platform.sh |
47 |
+@@ -60,7 +60,7 @@ case `uname -s` in |
48 |
+ # Check if it is a Linux platform |
49 |
+ Linux) |
50 |
+ # Check if it is GCC version 4.x |
51 |
+- gcc_ver=`gcc --version | grep -e " 4\."` |
52 |
++ gcc_ver=`gcc --version | grep -e " [45]\."` |
53 |
+ if [[ -z $gcc_ver ]] |
54 |
+ then |
55 |
+ # It is not GCC version 4.x. Check if it is GCC version 3.x |