Gentoo Archives: gentoo-commits

From: Joonas Niilola <juippis@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-gfx/gimp/
Date: Tue, 07 Jan 2020 06:20:28
Message-Id: 1578378000.c9813ac11df007d7bc9f8b09ef667d02d5c52fdd.juippis@gentoo
1 commit: c9813ac11df007d7bc9f8b09ef667d02d5c52fdd
2 Author: Sergey Torokhov <torokhov-s-a <AT> yandex <DOT> ru>
3 AuthorDate: Sun Dec 15 22:38:29 2019 +0000
4 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
5 CommitDate: Tue Jan 7 06:20:00 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c9813ac1
7
8 media-gfx/gimp: Fix suppressing system CFLAGS on configuration tests
9
10 During configuration tests CPU support of SSE2 and SSE4.1 in configure.ac file
11 the system env variable CFLAGS parameters are suppressed by addition of -msse2
12 and -msse4.1 that results in the GIMP will be compiled with their support
13 but the compilation will fail if system CFLAGS has SSE2 and SSE4.1 disabled
14 (i.e. -mno-sse2 and -mno-sse4.1 is used).
15
16 Closes: https://bugs.gentoo.org/702554
17 Signed-off-by: Sergey Torokhov <torokhov-s-a <AT> yandex.ru>
18 Closes: https://github.com/gentoo/gentoo/pull/13992
19 Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
20
21 media-gfx/gimp/gimp-2.10.10-r1.ebuild | 6 +++++-
22 media-gfx/gimp/gimp-2.10.12.ebuild | 6 +++++-
23 media-gfx/gimp/gimp-2.10.14.ebuild | 6 +++++-
24 media-gfx/gimp/gimp-2.9.8-r1.ebuild | 8 +++++++-
25 4 files changed, 22 insertions(+), 4 deletions(-)
26
27 diff --git a/media-gfx/gimp/gimp-2.10.10-r1.ebuild b/media-gfx/gimp/gimp-2.10.10-r1.ebuild
28 index ff1bb96d42f..f3976c3f12b 100644
29 --- a/media-gfx/gimp/gimp-2.10.10-r1.ebuild
30 +++ b/media-gfx/gimp/gimp-2.10.10-r1.ebuild
31 @@ -1,4 +1,4 @@
32 -# Copyright 1999-2019 Gentoo Authors
33 +# Copyright 1999-2020 Gentoo Authors
34 # Distributed under the terms of the GNU General Public License v2
35
36 EAPI=6
37 @@ -101,6 +101,10 @@ pkg_setup() {
38 }
39
40 src_prepare() {
41 + # Disable system CFLAGS suppressing on SSE{2,4.1} support tests by addition of {SSE2,SSE4_1}_EXTRA_CFLAGS: bug #702554
42 + sed -i -e 's:\$intrinsics_save_CFLAGS \$SSE2_EXTRA_CFLAGS:\$SSE2_EXTRA_CFLAGS \$intrinsics_save_CFLAGS:' \
43 + -e 's:\$intrinsics_save_CFLAGS \$SSE4_1_EXTRA_CFLAGS:\$SSE4_1_EXTRA_CFLAGS \$intrinsics_save_CFLAGS:' configure.ac || die
44 +
45 sed -i -e 's/== "xquartz"/= "xquartz"/' configure.ac || die #494864
46 sed 's:-DGIMP_DISABLE_DEPRECATED:-DGIMP_protect_DISABLE_DEPRECATED:g' -i configure.ac || die #615144
47
48
49 diff --git a/media-gfx/gimp/gimp-2.10.12.ebuild b/media-gfx/gimp/gimp-2.10.12.ebuild
50 index b3c8a9550e9..3b13abe136a 100644
51 --- a/media-gfx/gimp/gimp-2.10.12.ebuild
52 +++ b/media-gfx/gimp/gimp-2.10.12.ebuild
53 @@ -1,4 +1,4 @@
54 -# Copyright 1999-2019 Gentoo Authors
55 +# Copyright 1999-2020 Gentoo Authors
56 # Distributed under the terms of the GNU General Public License v2
57
58 EAPI=6
59 @@ -101,6 +101,10 @@ pkg_setup() {
60 }
61
62 src_prepare() {
63 + # Disable system CFLAGS suppressing on SSE{2,4.1} support tests by addition of {SSE2,SSE4_1}_EXTRA_CFLAGS: bug #702554
64 + sed -i -e 's:\$intrinsics_save_CFLAGS \$SSE2_EXTRA_CFLAGS:\$SSE2_EXTRA_CFLAGS \$intrinsics_save_CFLAGS:' \
65 + -e 's:\$intrinsics_save_CFLAGS \$SSE4_1_EXTRA_CFLAGS:\$SSE4_1_EXTRA_CFLAGS \$intrinsics_save_CFLAGS:' configure.ac || die
66 +
67 sed -i -e 's/== "xquartz"/= "xquartz"/' configure.ac || die #494864
68 sed 's:-DGIMP_DISABLE_DEPRECATED:-DGIMP_protect_DISABLE_DEPRECATED:g' -i configure.ac || die #615144
69
70
71 diff --git a/media-gfx/gimp/gimp-2.10.14.ebuild b/media-gfx/gimp/gimp-2.10.14.ebuild
72 index f1341996c4f..59020299a27 100644
73 --- a/media-gfx/gimp/gimp-2.10.14.ebuild
74 +++ b/media-gfx/gimp/gimp-2.10.14.ebuild
75 @@ -1,4 +1,4 @@
76 -# Copyright 1999-2019 Gentoo Authors
77 +# Copyright 1999-2020 Gentoo Authors
78 # Distributed under the terms of the GNU General Public License v2
79
80 EAPI=6
81 @@ -101,6 +101,10 @@ pkg_setup() {
82 }
83
84 src_prepare() {
85 + # Disable system CFLAGS suppressing on SSE{2,4.1} support tests by addition of {SSE2,SSE4_1}_EXTRA_CFLAGS: bug #702554
86 + sed -i -e 's:\$intrinsics_save_CFLAGS \$SSE2_EXTRA_CFLAGS:\$SSE2_EXTRA_CFLAGS \$intrinsics_save_CFLAGS:' \
87 + -e 's:\$intrinsics_save_CFLAGS \$SSE4_1_EXTRA_CFLAGS:\$SSE4_1_EXTRA_CFLAGS \$intrinsics_save_CFLAGS:' configure.ac || die
88 +
89 sed -i -e 's/== "xquartz"/= "xquartz"/' configure.ac || die #494864
90 sed 's:-DGIMP_DISABLE_DEPRECATED:-DGIMP_protect_DISABLE_DEPRECATED:g' -i configure.ac || die #615144
91
92
93 diff --git a/media-gfx/gimp/gimp-2.9.8-r1.ebuild b/media-gfx/gimp/gimp-2.9.8-r1.ebuild
94 index 162fd88fc46..fc0e9d31d19 100644
95 --- a/media-gfx/gimp/gimp-2.9.8-r1.ebuild
96 +++ b/media-gfx/gimp/gimp-2.9.8-r1.ebuild
97 @@ -1,4 +1,4 @@
98 -# Copyright 1999-2019 Gentoo Authors
99 +# Copyright 1999-2020 Gentoo Authors
100 # Distributed under the terms of the GNU General Public License v2
101
102 EAPI=6
103 @@ -16,6 +16,8 @@ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~x86"
104 LANGS="am ar ast az be bg br ca ca@valencia cs csb da de dz el en_CA en_GB eo es et eu fa fi fr ga gl gu he hi hr hu id is it ja ka kk km kn ko lt lv mk ml ms my nb nds ne nl nn oc pa pl pt pt_BR ro ru rw si sk sl sr sr@latin sv ta te th tr tt uk vi xh yi zh_CN zh_HK zh_TW"
105 IUSE="alsa aalib altivec aqua debug doc openexr gnome postscript cpu_flags_x86_mmx mng pdf python smp cpu_flags_x86_sse udev vector-icons webp wmf xpm"
106
107 +RESTRICT="!test? ( test )"
108 +
109 RDEPEND=">=dev-libs/glib-2.40.0:2
110 >=dev-libs/atk-2.2.0
111 >=x11-libs/gtk+-2.24.10:2
112 @@ -94,6 +96,10 @@ PATCHES=(
113 )
114
115 src_prepare() {
116 + # Disable system CFLAGS suppressing on SSE{2,4.1} support tests by addition of {SSE2,SSE4_1}_EXTRA_CFLAGS: bug #702554
117 + sed -i -e 's:\$intrinsics_save_CFLAGS \$SSE2_EXTRA_CFLAGS:\$SSE2_EXTRA_CFLAGS \$intrinsics_save_CFLAGS:' \
118 + -e 's:\$intrinsics_save_CFLAGS \$SSE4_1_EXTRA_CFLAGS:\$SSE4_1_EXTRA_CFLAGS \$intrinsics_save_CFLAGS:' configure.ac || die
119 +
120 gnome2_src_prepare
121
122 sed -i -e 's/== "xquartz"/= "xquartz"/' configure.ac || die #494864