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-libs/ilmbase/, media-libs/ilmbase/files/
Date: Wed, 31 Mar 2021 06:31:53
Message-Id: 1617172154.792f139668feb8c2e395be745ac7e436ad5d396d.juippis@gentoo
1 commit: 792f139668feb8c2e395be745ac7e436ad5d396d
2 Author: Bernd Waibel <waebbl-gentoo <AT> posteo <DOT> net>
3 AuthorDate: Fri Mar 26 16:49:03 2021 +0000
4 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
5 CommitDate: Wed Mar 31 06:29:14 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=792f1396
7
8 media-libs/ilmbase: drop 2.3.0
9
10 Security cleanup
11
12 Package-Manager: Portage-3.0.17, Repoman-3.0.2
13 Signed-off-by: Bernd Waibel <waebbl-gentoo <AT> posteo.net>
14 Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
15
16 media-libs/ilmbase/Manifest | 1 -
17 .../ilmbase/files/ilmbase-2.3.0-fix-bashisms.patch | 214 ---------------------
18 .../ilmbase/files/ilmbase-2.3.0-testBox.patch | 104 ----------
19 media-libs/ilmbase/ilmbase-2.3.0.ebuild | 40 ----
20 4 files changed, 359 deletions(-)
21
22 diff --git a/media-libs/ilmbase/Manifest b/media-libs/ilmbase/Manifest
23 index ea176ee0222..a14cb246858 100644
24 --- a/media-libs/ilmbase/Manifest
25 +++ b/media-libs/ilmbase/Manifest
26 @@ -1,2 +1 @@
27 -DIST ilmbase-2.3.0.tar.gz 595490 BLAKE2B db956fe7dbabf94632eb98635f4ebda8e937f26e26ed69f33743069fa2bf6d5ed3711f00eb33377c98b4f8ea367bbfc51b11d4cb884ce02238b537857cc19a9c SHA512 db0804a7c37c2a97f9dbf81b20f40f7fdea73242baa2759d9dc3728e6849e7ecae0e178fa1c710add980d050499151650675e4b2cda6cbbaa61aca406a1f929a
28 DIST ilmbase-2.5.5.tar.gz 27536865 BLAKE2B d0c0b2fd39b2cfafb60b6d0de3960063ff62341cf22be519f874c0c83f05cb604c5d503bb8b88514c71c5a54a79afa80a7fd00c2df15ec2193f6b3cffdc117c6 SHA512 e511af26a8fe2175a641fd25d2dcc6ef807e00bee2aff06a4784125f916ffd47fe376fe0621d385b604180a239bbfee063f8ceee3f7b731fde3c38558e9fdcdf
29
30 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
31 deleted file mode 100644
32 index 21428529391..00000000000
33 --- a/media-libs/ilmbase/files/ilmbase-2.3.0-fix-bashisms.patch
34 +++ /dev/null
35 @@ -1,214 +0,0 @@
36 ---- a/configure
37 -+++ b/configure
38 -@@ -15253,7 +15253,7 @@ else
39 - fi
40 -
41 -
42 --if test "${cxxstd}" == 17 ; then
43 -+if test "${cxxstd}" = 17 ; then
44 - ax_cxx_compile_alternatives="17 1z" ax_cxx_compile_cxx17_required=true
45 - ac_ext=cpp
46 - ac_cpp='$CXXCPP $CPPFLAGS'
47 -@@ -16966,7 +16966,7 @@ $as_echo "$as_me: WARNING: C++17 is not
48 -
49 - CXXFLAGS="$CXXFLAGS -std=c++17"
50 - else
51 -- if test "${cxxstd}" == 14 ; then
52 -+ if test "${cxxstd}" = 14 ; then
53 - ax_cxx_compile_alternatives="14 1y" ax_cxx_compile_cxx14_required=true
54 - ac_ext=cpp
55 - ac_cpp='$CXXCPP $CPPFLAGS'
56 -@@ -17874,7 +17874,7 @@ $as_echo "#define HAVE_CXX14 1" >>confde
57 -
58 - CXXFLAGS="$CXXFLAGS -std=c++14"
59 - else
60 -- if test "${cxxstd}" == 11 ; then
61 -+ if test "${cxxstd}" = 11 ; then
62 - ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
63 - ac_ext=cpp
64 - ac_cpp='$CXXCPP $CPPFLAGS'
65 -@@ -18542,7 +18542,7 @@ $as_echo "#define HAVE_CXX11 1" >>confde
66 -
67 - CXXFLAGS="$CXXFLAGS -std=c++11"
68 - else
69 -- if test "${cxxstd}" == 03 ; then
70 -+ if test "${cxxstd}" = 03 ; then
71 - $as_echo "#define ILMBASE_FORCE_CXX03 1" >>confdefs.h
72 -
73 - CXXFLAGS="$CXXFLAGS -std=c++03"
74 -@@ -21827,11 +21827,11 @@ $as_echo "#define HAVE_CXX17 1" >>confde
75 - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++17 is not yet standardized, so the checks may change in incompatible ways anytime" >&5
76 - $as_echo "$as_me: WARNING: C++17 is not yet standardized, so the checks may change in incompatible ways anytime" >&2;}
77 -
78 -- if test "$HAVE_CXX14" == 1 ; then
79 -+ if test "$HAVE_CXX14" = 1 ; then
80 - CXXFLAGS="$CXXFLAGS -std=c++14"
81 - cxxstd = 14
82 - else
83 -- if test "$HAVE_CXX11" == 1 ; then
84 -+ if test "$HAVE_CXX11" = 1 ; then
85 - CXXFLAGS="$CXXFLAGS -std=c++11"
86 - cxxstd = 11
87 - fi
88 -@@ -22768,7 +22768,7 @@ LIB_SUFFIX=""
89 - lib_suffix_valid="no"
90 -
91 - lib_namespace=""
92 --if test "x${library_namespace_versioning}" == xyes ; then
93 -+if test "x${library_namespace_versioning}" = xyes ; then
94 - cat >>confdefs.h <<_ACEOF
95 - #define IMATH_INTERNAL_NAMESPACE Imath_${ILMBASE_VERSION_API}
96 - _ACEOF
97 -@@ -22787,7 +22787,7 @@ _ACEOF
98 - lib_namespace="${ILMBASE_VERSION_API}"
99 - LIB_SUFFIX="${ILMBASE_VERSION_API}"
100 - lib_suffix_valid="yes"
101 --elif test "x${library_namespace_versioning}" == xno ; then
102 -+elif test "x${library_namespace_versioning}" = xno ; then
103 - cat >>confdefs.h <<_ACEOF
104 - #define IMATH_INTERNAL_NAMESPACE Imath
105 - _ACEOF
106 -@@ -22823,7 +22823,7 @@ _ACEOF
107 - fi
108 -
109 -
110 --if test "x${lib_suffix_valid}" == xyes ; then
111 -+if test "x${lib_suffix_valid}" = xyes ; then
112 - LIB_SUFFIX_DASH="-${LIB_SUFFIX}"
113 -
114 - if true; then
115 -@@ -22858,7 +22858,7 @@ else
116 - fi
117 -
118 -
119 --if test "x${custom_public_namespace}" == xyes ; then
120 -+if test "x${custom_public_namespace}" = xyes ; then
121 - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Enabling 'custom user namespace' requires an additional argument, reverting to default" >&5
122 - $as_echo "$as_me: WARNING: Enabling 'custom user namespace' requires an additional argument, reverting to default" >&2;}
123 - $as_echo "#define IMATH_NAMESPACE Imath" >>confdefs.h
124 -@@ -22870,7 +22870,7 @@ $as_echo "$as_me: WARNING: Enabling 'cus
125 -
126 - public_namespace=""
127 - custom_public_namespace=no
128 --elif test "x${custom_public_namespace}" == xno ; then
129 -+elif test "x${custom_public_namespace}" = xno ; then
130 - $as_echo "#define IMATH_NAMESPACE Imath" >>confdefs.h
131 -
132 - $as_echo "#define IEX_NAMESPACE Iex" >>confdefs.h
133 -@@ -22912,12 +22912,11 @@ fi
134 -
135 -
136 - if test "${osx_arch}" != default ; then
137 -- osx_arch_flags="-arch ${osx_arch// / -arch }"
138 -+ osx_arch_flags=$(printf ' -arch %s' ${osx_arch})
139 - CXXFLAGS="$CXXFLAGS $osx_arch_flags"
140 -
141 - if test "$enable_dependency_tracking" != no ; then
142 -- osx_arch_array=( ${osx_arch} )
143 -- if test ${#osx_arch_array[@]} -gt 1 ; then
144 -+ if echo "$osx_arch" | grep >/dev/null " " ; then
145 - as_fn_error $? "building multiple OS X architectures requires --disable-dependency-tracking.
146 - Please re-run configure with these options:
147 - --enable-osx-arch=\"${osx_arch}\" --disable-dependency-tracking
148 ---- a/configure.ac
149 -+++ b/configure.ac
150 -@@ -45,19 +45,19 @@ AC_ARG_ENABLE(cxxstd,
151 - [enable ISO c++ standard 11/14 [[default=auto]]]),
152 - [cxxstd="${enableval}"], [cxxstd=14])
153 -
154 --if test "${cxxstd}" == 17 ; then
155 -+if test "${cxxstd}" = 17 ; then
156 - AX_CXX_COMPILE_STDCXX([17], [noext], [mandatory])
157 - CXXFLAGS="$CXXFLAGS -std=c++17"
158 - else
159 -- if test "${cxxstd}" == 14 ; then
160 -+ if test "${cxxstd}" = 14 ; then
161 - AX_CXX_COMPILE_STDCXX([14], [noext], [mandatory])
162 - CXXFLAGS="$CXXFLAGS -std=c++14"
163 - else
164 -- if test "${cxxstd}" == 11 ; then
165 -+ if test "${cxxstd}" = 11 ; then
166 - AX_CXX_COMPILE_STDCXX([11], [noext], [mandatory])
167 - CXXFLAGS="$CXXFLAGS -std=c++11"
168 - else
169 -- if test "${cxxstd}" == 03 ; then
170 -+ if test "${cxxstd}" = 03 ; then
171 - AC_DEFINE(ILMBASE_FORCE_CXX03)
172 - CXXFLAGS="$CXXFLAGS -std=c++03"
173 - else
174 -@@ -65,11 +65,11 @@ else
175 - AX_CXX_COMPILE_STDCXX([11], [noext], [optional])
176 - AX_CXX_COMPILE_STDCXX([14], [noext], [optional])
177 - AX_CXX_COMPILE_STDCXX([17], [noext], [optional])
178 -- if test "$HAVE_CXX14" == 1 ; then
179 -+ if test "$HAVE_CXX14" = 1 ; then
180 - CXXFLAGS="$CXXFLAGS -std=c++14"
181 - cxxstd = 14
182 - else
183 -- if test "$HAVE_CXX11" == 1 ; then
184 -+ if test "$HAVE_CXX11" = 1 ; then
185 - CXXFLAGS="$CXXFLAGS -std=c++11"
186 - cxxstd = 11
187 - fi
188 -@@ -212,7 +212,7 @@ lib_suffix_valid="no"
189 - dnl Internal library namespace
190 - dnl
191 - lib_namespace=""
192 --if test "x${library_namespace_versioning}" == xyes ; then
193 -+if test "x${library_namespace_versioning}" = xyes ; then
194 - AC_DEFINE_UNQUOTED(IMATH_INTERNAL_NAMESPACE, Imath_${ILMBASE_VERSION_API})
195 - AC_DEFINE_UNQUOTED(IEX_INTERNAL_NAMESPACE, Iex_${ILMBASE_VERSION_API})
196 - AC_DEFINE_UNQUOTED(ILMTHREAD_INTERNAL_NAMESPACE, IlmThread_${ILMBASE_VERSION_API})
197 -@@ -221,7 +221,7 @@ if test "x${library_namespace_versioning
198 - lib_namespace="${ILMBASE_VERSION_API}"
199 - LIB_SUFFIX="${ILMBASE_VERSION_API}"
200 - lib_suffix_valid="yes"
201 --elif test "x${library_namespace_versioning}" == xno ; then
202 -+elif test "x${library_namespace_versioning}" = xno ; then
203 - AC_DEFINE_UNQUOTED(IMATH_INTERNAL_NAMESPACE, Imath)
204 - AC_DEFINE_UNQUOTED(IEX_INTERNAL_NAMESPACE, Iex)
205 - AC_DEFINE_UNQUOTED(ILMTHREAD_INTERNAL_NAMESPACE, IlmThread)
206 -@@ -238,7 +238,7 @@ else
207 - fi
208 - AC_SUBST(LIB_SUFFIX)
209 -
210 --if test "x${lib_suffix_valid}" == xyes ; then
211 -+if test "x${lib_suffix_valid}" = xyes ; then
212 - AC_SUBST(LIB_SUFFIX_DASH,"-${LIB_SUFFIX}")
213 - AM_CONDITIONAL(LIB_SUFFIX_EXISTS,true)
214 - else
215 -@@ -257,7 +257,7 @@ AC_ARG_ENABLE(customusernamespace,
216 - [custom_public_namespace="${enableval}"],
217 - [custom_public_namespace=no])
218 -
219 --if test "x${custom_public_namespace}" == xyes ; then
220 -+if test "x${custom_public_namespace}" = xyes ; then
221 - AC_MSG_WARN([Enabling 'custom user namespace' requires an additional argument, reverting to default])
222 - AC_DEFINE(IMATH_NAMESPACE, Imath)
223 - AC_DEFINE(IEX_NAMESPACE, Iex)
224 -@@ -265,7 +265,7 @@ if test "x${custom_public_namespace}" ==
225 -
226 - public_namespace=""
227 - custom_public_namespace=no
228 --elif test "x${custom_public_namespace}" == xno ; then
229 -+elif test "x${custom_public_namespace}" = xno ; then
230 - AC_DEFINE(IMATH_NAMESPACE, Imath)
231 - AC_DEFINE(IEX_NAMESPACE, Iex)
232 - AC_DEFINE(ILMTHREAD_NAMESPACE, IlmThread)
233 -@@ -296,14 +296,12 @@ case "$host" in
234 - [osx_arch="${enableval}"], [osx_arch=default])
235 -
236 - if test "${osx_arch}" != default ; then
237 -- 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.
238 -- osx_arch_flags="-arch ${osx_arch// / -arch }"
239 -+ osx_arch_flags=$(printf ' -arch %s' ${osx_arch})
240 - CXXFLAGS="$CXXFLAGS $osx_arch_flags"
241 -
242 - dnl If multiple archs specified, make sure that --disable-dependency-tracking was also specified
243 - if test "$enable_dependency_tracking" != no ; then
244 -- osx_arch_array=( ${osx_arch} )
245 -- if test ${#osx_arch_array[@]} -gt 1 ; then
246 -+ if echo "$osx_arch" | grep >/dev/null " " ; then
247 - AC_MSG_ERROR([building multiple OS X architectures requires --disable-dependency-tracking.
248 - Please re-run configure with these options:
249 - --enable-osx-arch="${osx_arch}" --disable-dependency-tracking
250
251 diff --git a/media-libs/ilmbase/files/ilmbase-2.3.0-testBox.patch b/media-libs/ilmbase/files/ilmbase-2.3.0-testBox.patch
252 deleted file mode 100644
253 index 8211846b09b..00000000000
254 --- a/media-libs/ilmbase/files/ilmbase-2.3.0-testBox.patch
255 +++ /dev/null
256 @@ -1,104 +0,0 @@
257 -Subject: testBox: allow fuzzy comparison of floats, doubles
258 -From: Steven Chamberlain <steven@×××××××.org>
259 -Date: Wed, 24 Feb 2016 01:10:11 +0000
260 -
261 -Allow for inexact values, as long as the error is smaller than the
262 -epsilon of the data type.
263 -
264 -On 32-bit x86, allow even greater discrepency at double
265 -precision, due to possible double-rounding. See
266 -https://lists.nongnu.org/archive/html/openexr-devel/2015-12/msg00001.html
267 -
268 -Index: ilmbase/ImathTest/testBox.cpp
269 -===================================================================
270 ---- ilmbase.orig/ImathTest/testBox.cpp
271 -+++ ilmbase/ImathTest/testBox.cpp
272 -@@ -47,6 +47,58 @@ using namespace IMATH_INTERNAL_NAMESPACE
273 -
274 - namespace {
275 -
276 -+template <class T>
277 -+bool
278 -+approximatelyEqual (const T &p1, const T &p2)
279 -+{
280 -+ /* int and short should be exact */
281 -+ return (p1 == p2);
282 -+}
283 -+
284 -+bool
285 -+approximatelyEqual (const Vec2<float> &p1, const Vec2<float> &p2)
286 -+{
287 -+ float e = limits<float>::epsilon();
288 -+ float m = 0;
289 -+
290 -+ for (int i = 0; i < 2; ++i)
291 -+ {
292 -+ m = max (m, abs (p1[i]));
293 -+ m = max (m, abs (p2[i]));
294 -+ }
295 -+
296 -+ for (int i = 0; i < 2; ++i)
297 -+ if (!equalWithAbsError (p1[i], p2[i], m * e))
298 -+ return false;
299 -+
300 -+ return true;
301 -+}
302 -+
303 -+bool
304 -+approximatelyEqual (const Vec2<double> &p1, const Vec2<double> &p2)
305 -+{
306 -+#if defined(__i386__) || defined(_M_IX86)
307 -+ /* double-rounding on 32-bit x86 may cause larger error:
308 -+ use epsilon of float rather than double */
309 -+ double e = limits<float>::epsilon();
310 -+#else
311 -+ double e = limits<double>::epsilon();
312 -+#endif
313 -+ double m = 0;
314 -+
315 -+ for (int i = 0; i < 2; ++i)
316 -+ {
317 -+ m = max (m, abs (p1[i]));
318 -+ m = max (m, abs (p2[i]));
319 -+ }
320 -+
321 -+ for (int i = 0; i < 2; ++i)
322 -+ if (!equalWithAbsError (p1[i], p2[i], m * e))
323 -+ return false;
324 -+
325 -+ return true;
326 -+}
327 -+
328 - //
329 - // Test case generation utility - create a vector of IMATH_INTERNAL_NAMESPACE::Vec{2,3,4}
330 - // with all permutations of integers 1..T::dimensions().
331 -@@ -250,7 +302,8 @@ testExtendByPoint(const char *type)
332 -
333 - IMATH_INTERNAL_NAMESPACE::Box<T> b;
334 - b.extendBy(p);
335 -- assert(b.min == p && b.max == p);
336 -+ assert (approximatelyEqual (b.min, p));
337 -+ assert (approximatelyEqual (b.max, p));
338 - }
339 -
340 - //
341 -@@ -283,7 +336,8 @@ testExtendByPoint(const char *type)
342 -
343 - b.extendBy(p);
344 -
345 -- assert(b.min == min && b.max == max);
346 -+ assert (approximatelyEqual (b.min, min));
347 -+ assert (approximatelyEqual (b.max, max));
348 - }
349 - }
350 - }
351 -@@ -358,7 +412,8 @@ testExtendByBox(const char *type)
352 - }
353 - b.extendBy(IMATH_INTERNAL_NAMESPACE::Box<T>(p0, p1));
354 -
355 -- assert(b.min == min && b.max == max);
356 -+ assert (approximatelyEqual (b.min, min));
357 -+ assert (approximatelyEqual (b.max, max));
358 - }
359 - }
360 - }
361
362 diff --git a/media-libs/ilmbase/ilmbase-2.3.0.ebuild b/media-libs/ilmbase/ilmbase-2.3.0.ebuild
363 deleted file mode 100644
364 index e994e236f28..00000000000
365 --- a/media-libs/ilmbase/ilmbase-2.3.0.ebuild
366 +++ /dev/null
367 @@ -1,40 +0,0 @@
368 -# Copyright 1999-2020 Gentoo Authors
369 -# Distributed under the terms of the GNU General Public License v2
370 -
371 -EAPI=6
372 -inherit multilib-minimal
373 -
374 -DESCRIPTION="OpenEXR ILM Base libraries"
375 -HOMEPAGE="http://openexr.com/"
376 -SRC_URI="https://github.com/openexr/openexr/releases/download/v${PV}/${P}.tar.gz"
377 -
378 -LICENSE="BSD"
379 -SLOT="0/24" # based on SONAME
380 -KEYWORDS="amd64 -arm arm64 hppa ~ia64 ~mips ppc ppc64 sparc x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-solaris"
381 -IUSE="static-libs"
382 -
383 -DEPEND="virtual/pkgconfig"
384 -
385 -PATCHES=(
386 - "${FILESDIR}"/${PN}-2.3.0-testBox.patch
387 - "${FILESDIR}"/${PN}-2.3.0-fix-bashisms.patch
388 -)
389 -
390 -DOCS=( AUTHORS ChangeLog NEWS README.md )
391 -MULTILIB_WRAPPED_HEADERS=( /usr/include/OpenEXR/IlmBaseConfig.h )
392 -
393 -multilib_src_configure() {
394 - # Disable use of ucontext.h wrt #482890
395 - if use hppa || use ppc || use ppc64; then
396 - export ac_cv_header_ucontext_h=no
397 - fi
398 -
399 - ECONF_SOURCE=${S} econf "$(use_enable static-libs static)"
400 -}
401 -
402 -multilib_src_install_all() {
403 - einstalldocs
404 -
405 - # package provides pkg-config files
406 - find "${D}" -name '*.la' -delete || die
407 -}