1 |
commit: 864218ba6be7a2e13717267705e87447475a1be1 |
2 |
Author: Rémi Cardona <remi <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Jun 28 09:16:01 2020 +0000 |
4 |
Commit: Rémi Cardona <remi <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jul 2 06:02:00 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=864218ba |
7 |
|
8 |
media-libs/ilmbase: fix bashisms in configure script |
9 |
|
10 |
Closes: https://bugs.gentoo.org/728222 |
11 |
Package-Manager: Portage-2.3.102, Repoman-2.3.23 |
12 |
Signed-off-by: Rémi Cardona <remi <AT> gentoo.org> |
13 |
|
14 |
.../ilmbase/files/ilmbase-2.3.0-fix-bashisms.patch | 214 +++++++++++++++++++++ |
15 |
media-libs/ilmbase/ilmbase-2.3.0.ebuild | 7 +- |
16 |
2 files changed, 219 insertions(+), 2 deletions(-) |
17 |
|
18 |
diff --git a/media-libs/ilmbase/files/ilmbase-2.3.0-fix-bashisms.patch b/media-libs/ilmbase/files/ilmbase-2.3.0-fix-bashisms.patch |
19 |
new file mode 100644 |
20 |
index 00000000000..21428529391 |
21 |
--- /dev/null |
22 |
+++ b/media-libs/ilmbase/files/ilmbase-2.3.0-fix-bashisms.patch |
23 |
@@ -0,0 +1,214 @@ |
24 |
+--- a/configure |
25 |
++++ b/configure |
26 |
+@@ -15253,7 +15253,7 @@ else |
27 |
+ fi |
28 |
+ |
29 |
+ |
30 |
+-if test "${cxxstd}" == 17 ; then |
31 |
++if test "${cxxstd}" = 17 ; then |
32 |
+ ax_cxx_compile_alternatives="17 1z" ax_cxx_compile_cxx17_required=true |
33 |
+ ac_ext=cpp |
34 |
+ ac_cpp='$CXXCPP $CPPFLAGS' |
35 |
+@@ -16966,7 +16966,7 @@ $as_echo "$as_me: WARNING: C++17 is not |
36 |
+ |
37 |
+ CXXFLAGS="$CXXFLAGS -std=c++17" |
38 |
+ else |
39 |
+- if test "${cxxstd}" == 14 ; then |
40 |
++ if test "${cxxstd}" = 14 ; then |
41 |
+ ax_cxx_compile_alternatives="14 1y" ax_cxx_compile_cxx14_required=true |
42 |
+ ac_ext=cpp |
43 |
+ ac_cpp='$CXXCPP $CPPFLAGS' |
44 |
+@@ -17874,7 +17874,7 @@ $as_echo "#define HAVE_CXX14 1" >>confde |
45 |
+ |
46 |
+ CXXFLAGS="$CXXFLAGS -std=c++14" |
47 |
+ else |
48 |
+- if test "${cxxstd}" == 11 ; then |
49 |
++ if test "${cxxstd}" = 11 ; then |
50 |
+ ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true |
51 |
+ ac_ext=cpp |
52 |
+ ac_cpp='$CXXCPP $CPPFLAGS' |
53 |
+@@ -18542,7 +18542,7 @@ $as_echo "#define HAVE_CXX11 1" >>confde |
54 |
+ |
55 |
+ CXXFLAGS="$CXXFLAGS -std=c++11" |
56 |
+ else |
57 |
+- if test "${cxxstd}" == 03 ; then |
58 |
++ if test "${cxxstd}" = 03 ; then |
59 |
+ $as_echo "#define ILMBASE_FORCE_CXX03 1" >>confdefs.h |
60 |
+ |
61 |
+ CXXFLAGS="$CXXFLAGS -std=c++03" |
62 |
+@@ -21827,11 +21827,11 @@ $as_echo "#define HAVE_CXX17 1" >>confde |
63 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++17 is not yet standardized, so the checks may change in incompatible ways anytime" >&5 |
64 |
+ $as_echo "$as_me: WARNING: C++17 is not yet standardized, so the checks may change in incompatible ways anytime" >&2;} |
65 |
+ |
66 |
+- if test "$HAVE_CXX14" == 1 ; then |
67 |
++ if test "$HAVE_CXX14" = 1 ; then |
68 |
+ CXXFLAGS="$CXXFLAGS -std=c++14" |
69 |
+ cxxstd = 14 |
70 |
+ else |
71 |
+- if test "$HAVE_CXX11" == 1 ; then |
72 |
++ if test "$HAVE_CXX11" = 1 ; then |
73 |
+ CXXFLAGS="$CXXFLAGS -std=c++11" |
74 |
+ cxxstd = 11 |
75 |
+ fi |
76 |
+@@ -22768,7 +22768,7 @@ LIB_SUFFIX="" |
77 |
+ lib_suffix_valid="no" |
78 |
+ |
79 |
+ lib_namespace="" |
80 |
+-if test "x${library_namespace_versioning}" == xyes ; then |
81 |
++if test "x${library_namespace_versioning}" = xyes ; then |
82 |
+ cat >>confdefs.h <<_ACEOF |
83 |
+ #define IMATH_INTERNAL_NAMESPACE Imath_${ILMBASE_VERSION_API} |
84 |
+ _ACEOF |
85 |
+@@ -22787,7 +22787,7 @@ _ACEOF |
86 |
+ lib_namespace="${ILMBASE_VERSION_API}" |
87 |
+ LIB_SUFFIX="${ILMBASE_VERSION_API}" |
88 |
+ lib_suffix_valid="yes" |
89 |
+-elif test "x${library_namespace_versioning}" == xno ; then |
90 |
++elif test "x${library_namespace_versioning}" = xno ; then |
91 |
+ cat >>confdefs.h <<_ACEOF |
92 |
+ #define IMATH_INTERNAL_NAMESPACE Imath |
93 |
+ _ACEOF |
94 |
+@@ -22823,7 +22823,7 @@ _ACEOF |
95 |
+ fi |
96 |
+ |
97 |
+ |
98 |
+-if test "x${lib_suffix_valid}" == xyes ; then |
99 |
++if test "x${lib_suffix_valid}" = xyes ; then |
100 |
+ LIB_SUFFIX_DASH="-${LIB_SUFFIX}" |
101 |
+ |
102 |
+ if true; then |
103 |
+@@ -22858,7 +22858,7 @@ else |
104 |
+ fi |
105 |
+ |
106 |
+ |
107 |
+-if test "x${custom_public_namespace}" == xyes ; then |
108 |
++if test "x${custom_public_namespace}" = xyes ; then |
109 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Enabling 'custom user namespace' requires an additional argument, reverting to default" >&5 |
110 |
+ $as_echo "$as_me: WARNING: Enabling 'custom user namespace' requires an additional argument, reverting to default" >&2;} |
111 |
+ $as_echo "#define IMATH_NAMESPACE Imath" >>confdefs.h |
112 |
+@@ -22870,7 +22870,7 @@ $as_echo "$as_me: WARNING: Enabling 'cus |
113 |
+ |
114 |
+ public_namespace="" |
115 |
+ custom_public_namespace=no |
116 |
+-elif test "x${custom_public_namespace}" == xno ; then |
117 |
++elif test "x${custom_public_namespace}" = xno ; then |
118 |
+ $as_echo "#define IMATH_NAMESPACE Imath" >>confdefs.h |
119 |
+ |
120 |
+ $as_echo "#define IEX_NAMESPACE Iex" >>confdefs.h |
121 |
+@@ -22912,12 +22912,11 @@ fi |
122 |
+ |
123 |
+ |
124 |
+ if test "${osx_arch}" != default ; then |
125 |
+- osx_arch_flags="-arch ${osx_arch// / -arch }" |
126 |
++ osx_arch_flags=$(printf ' -arch %s' ${osx_arch}) |
127 |
+ CXXFLAGS="$CXXFLAGS $osx_arch_flags" |
128 |
+ |
129 |
+ if test "$enable_dependency_tracking" != no ; then |
130 |
+- osx_arch_array=( ${osx_arch} ) |
131 |
+- if test ${#osx_arch_array[@]} -gt 1 ; then |
132 |
++ if echo "$osx_arch" | grep >/dev/null " " ; then |
133 |
+ as_fn_error $? "building multiple OS X architectures requires --disable-dependency-tracking. |
134 |
+ Please re-run configure with these options: |
135 |
+ --enable-osx-arch=\"${osx_arch}\" --disable-dependency-tracking |
136 |
+--- a/configure.ac |
137 |
++++ b/configure.ac |
138 |
+@@ -45,19 +45,19 @@ AC_ARG_ENABLE(cxxstd, |
139 |
+ [enable ISO c++ standard 11/14 [[default=auto]]]), |
140 |
+ [cxxstd="${enableval}"], [cxxstd=14]) |
141 |
+ |
142 |
+-if test "${cxxstd}" == 17 ; then |
143 |
++if test "${cxxstd}" = 17 ; then |
144 |
+ AX_CXX_COMPILE_STDCXX([17], [noext], [mandatory]) |
145 |
+ CXXFLAGS="$CXXFLAGS -std=c++17" |
146 |
+ else |
147 |
+- if test "${cxxstd}" == 14 ; then |
148 |
++ if test "${cxxstd}" = 14 ; then |
149 |
+ AX_CXX_COMPILE_STDCXX([14], [noext], [mandatory]) |
150 |
+ CXXFLAGS="$CXXFLAGS -std=c++14" |
151 |
+ else |
152 |
+- if test "${cxxstd}" == 11 ; then |
153 |
++ if test "${cxxstd}" = 11 ; then |
154 |
+ AX_CXX_COMPILE_STDCXX([11], [noext], [mandatory]) |
155 |
+ CXXFLAGS="$CXXFLAGS -std=c++11" |
156 |
+ else |
157 |
+- if test "${cxxstd}" == 03 ; then |
158 |
++ if test "${cxxstd}" = 03 ; then |
159 |
+ AC_DEFINE(ILMBASE_FORCE_CXX03) |
160 |
+ CXXFLAGS="$CXXFLAGS -std=c++03" |
161 |
+ else |
162 |
+@@ -65,11 +65,11 @@ else |
163 |
+ AX_CXX_COMPILE_STDCXX([11], [noext], [optional]) |
164 |
+ AX_CXX_COMPILE_STDCXX([14], [noext], [optional]) |
165 |
+ AX_CXX_COMPILE_STDCXX([17], [noext], [optional]) |
166 |
+- if test "$HAVE_CXX14" == 1 ; then |
167 |
++ if test "$HAVE_CXX14" = 1 ; then |
168 |
+ CXXFLAGS="$CXXFLAGS -std=c++14" |
169 |
+ cxxstd = 14 |
170 |
+ else |
171 |
+- if test "$HAVE_CXX11" == 1 ; then |
172 |
++ if test "$HAVE_CXX11" = 1 ; then |
173 |
+ CXXFLAGS="$CXXFLAGS -std=c++11" |
174 |
+ cxxstd = 11 |
175 |
+ fi |
176 |
+@@ -212,7 +212,7 @@ lib_suffix_valid="no" |
177 |
+ dnl Internal library namespace |
178 |
+ dnl |
179 |
+ lib_namespace="" |
180 |
+-if test "x${library_namespace_versioning}" == xyes ; then |
181 |
++if test "x${library_namespace_versioning}" = xyes ; then |
182 |
+ AC_DEFINE_UNQUOTED(IMATH_INTERNAL_NAMESPACE, Imath_${ILMBASE_VERSION_API}) |
183 |
+ AC_DEFINE_UNQUOTED(IEX_INTERNAL_NAMESPACE, Iex_${ILMBASE_VERSION_API}) |
184 |
+ AC_DEFINE_UNQUOTED(ILMTHREAD_INTERNAL_NAMESPACE, IlmThread_${ILMBASE_VERSION_API}) |
185 |
+@@ -221,7 +221,7 @@ if test "x${library_namespace_versioning |
186 |
+ lib_namespace="${ILMBASE_VERSION_API}" |
187 |
+ LIB_SUFFIX="${ILMBASE_VERSION_API}" |
188 |
+ lib_suffix_valid="yes" |
189 |
+-elif test "x${library_namespace_versioning}" == xno ; then |
190 |
++elif test "x${library_namespace_versioning}" = xno ; then |
191 |
+ AC_DEFINE_UNQUOTED(IMATH_INTERNAL_NAMESPACE, Imath) |
192 |
+ AC_DEFINE_UNQUOTED(IEX_INTERNAL_NAMESPACE, Iex) |
193 |
+ AC_DEFINE_UNQUOTED(ILMTHREAD_INTERNAL_NAMESPACE, IlmThread) |
194 |
+@@ -238,7 +238,7 @@ else |
195 |
+ fi |
196 |
+ AC_SUBST(LIB_SUFFIX) |
197 |
+ |
198 |
+-if test "x${lib_suffix_valid}" == xyes ; then |
199 |
++if test "x${lib_suffix_valid}" = xyes ; then |
200 |
+ AC_SUBST(LIB_SUFFIX_DASH,"-${LIB_SUFFIX}") |
201 |
+ AM_CONDITIONAL(LIB_SUFFIX_EXISTS,true) |
202 |
+ else |
203 |
+@@ -257,7 +257,7 @@ AC_ARG_ENABLE(customusernamespace, |
204 |
+ [custom_public_namespace="${enableval}"], |
205 |
+ [custom_public_namespace=no]) |
206 |
+ |
207 |
+-if test "x${custom_public_namespace}" == xyes ; then |
208 |
++if test "x${custom_public_namespace}" = xyes ; then |
209 |
+ AC_MSG_WARN([Enabling 'custom user namespace' requires an additional argument, reverting to default]) |
210 |
+ AC_DEFINE(IMATH_NAMESPACE, Imath) |
211 |
+ AC_DEFINE(IEX_NAMESPACE, Iex) |
212 |
+@@ -265,7 +265,7 @@ if test "x${custom_public_namespace}" == |
213 |
+ |
214 |
+ public_namespace="" |
215 |
+ custom_public_namespace=no |
216 |
+-elif test "x${custom_public_namespace}" == xno ; then |
217 |
++elif test "x${custom_public_namespace}" = xno ; then |
218 |
+ AC_DEFINE(IMATH_NAMESPACE, Imath) |
219 |
+ AC_DEFINE(IEX_NAMESPACE, Iex) |
220 |
+ AC_DEFINE(ILMTHREAD_NAMESPACE, IlmThread) |
221 |
+@@ -296,14 +296,12 @@ case "$host" in |
222 |
+ [osx_arch="${enableval}"], [osx_arch=default]) |
223 |
+ |
224 |
+ if test "${osx_arch}" != default ; then |
225 |
+- dnl Replace "a b c" with "-arch a -arch b -arch c". Should probably use an all-whitespace regexp rather than a single character for the search string. |
226 |
+- osx_arch_flags="-arch ${osx_arch// / -arch }" |
227 |
++ osx_arch_flags=$(printf ' -arch %s' ${osx_arch}) |
228 |
+ CXXFLAGS="$CXXFLAGS $osx_arch_flags" |
229 |
+ |
230 |
+ dnl If multiple archs specified, make sure that --disable-dependency-tracking was also specified |
231 |
+ if test "$enable_dependency_tracking" != no ; then |
232 |
+- osx_arch_array=( ${osx_arch} ) |
233 |
+- if test ${#osx_arch_array[@]} -gt 1 ; then |
234 |
++ if echo "$osx_arch" | grep >/dev/null " " ; then |
235 |
+ AC_MSG_ERROR([building multiple OS X architectures requires --disable-dependency-tracking. |
236 |
+ Please re-run configure with these options: |
237 |
+ --enable-osx-arch="${osx_arch}" --disable-dependency-tracking |
238 |
|
239 |
diff --git a/media-libs/ilmbase/ilmbase-2.3.0.ebuild b/media-libs/ilmbase/ilmbase-2.3.0.ebuild |
240 |
index 8e86f6eadb1..e994e236f28 100644 |
241 |
--- a/media-libs/ilmbase/ilmbase-2.3.0.ebuild |
242 |
+++ b/media-libs/ilmbase/ilmbase-2.3.0.ebuild |
243 |
@@ -1,4 +1,4 @@ |
244 |
-# Copyright 1999-2019 Gentoo Authors |
245 |
+# Copyright 1999-2020 Gentoo Authors |
246 |
# Distributed under the terms of the GNU General Public License v2 |
247 |
|
248 |
EAPI=6 |
249 |
@@ -15,7 +15,10 @@ IUSE="static-libs" |
250 |
|
251 |
DEPEND="virtual/pkgconfig" |
252 |
|
253 |
-PATCHES=( "${FILESDIR}"/${PN}-2.3.0-testBox.patch ) |
254 |
+PATCHES=( |
255 |
+ "${FILESDIR}"/${PN}-2.3.0-testBox.patch |
256 |
+ "${FILESDIR}"/${PN}-2.3.0-fix-bashisms.patch |
257 |
+) |
258 |
|
259 |
DOCS=( AUTHORS ChangeLog NEWS README.md ) |
260 |
MULTILIB_WRAPPED_HEADERS=( /usr/include/OpenEXR/IlmBaseConfig.h ) |