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/openexr/files/, media-libs/openexr/
Date: Wed, 31 Mar 2021 06:31:54
Message-Id: 1617172154.58d2ffc5446d020cde8d473c32485ad5f2e4c6f1.juippis@gentoo
1 commit: 58d2ffc5446d020cde8d473c32485ad5f2e4c6f1
2 Author: Bernd Waibel <waebbl-gentoo <AT> posteo <DOT> net>
3 AuthorDate: Fri Mar 26 16:46:35 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=58d2ffc5
7
8 media-libs/openexr: drop 2.3.0
9
10 Security cleanup
11
12 Bug: https://bugs.gentoo.org/770229
13 Bug: https://bugs.gentoo.org/762862
14 Bug: https://bugs.gentoo.org/746794
15 Bug: https://bugs.gentoo.org/717474
16 Bug: https://bugs.gentoo.org/656680
17 Package-Manager: Portage-3.0.17, Repoman-3.0.2
18 Signed-off-by: Bernd Waibel <waebbl-gentoo <AT> posteo.net>
19 Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
20
21 media-libs/openexr/Manifest | 1 -
22 ...penexr-2.2.0-Install-missing-header-files.patch | 60 -----------
23 .../openexr-2.2.0-fix-config.h-collision.patch | 43 --------
24 .../openexr-2.2.0-fix-cpuid-on-abi_x86_32.patch | 75 -------------
25 .../openexr/files/openexr-2.3.0-bigendian.patch | 71 -------------
26 .../openexr/files/openexr-2.3.0-bigendian2.patch | 17 ---
27 .../openexr/files/openexr-2.3.0-fix-bashisms.patch | 117 ---------------------
28 .../files/openexr-2.3.0-fix-build-system.patch | 68 ------------
29 .../files/openexr-2.3.0-skip-bogus-tests.patch | 31 ------
30 .../files/openexr-2.3.0-tests-32bits-2.patch | 17 ---
31 .../openexr/files/openexr-2.3.0-tests-32bits.patch | 36 -------
32 media-libs/openexr/openexr-2.3.0.ebuild | 79 --------------
33 12 files changed, 615 deletions(-)
34
35 diff --git a/media-libs/openexr/Manifest b/media-libs/openexr/Manifest
36 index 44ef0c20a7c..bdbd8277f8a 100644
37 --- a/media-libs/openexr/Manifest
38 +++ b/media-libs/openexr/Manifest
39 @@ -1,2 +1 @@
40 -DIST openexr-2.3.0.tar.gz 18412067 BLAKE2B c73c4db4e414010ed8cc9f9631f3e8b17f47edf89b4ecb459aa00ff54a316b3bb1489e332bc029e0917ac4ffe7e152082244102029fd375f183da6741788dab7 SHA512 003f5bb3bd010be1ad9ff1798643ef711c683c8191625fe9b59070c9cb0c649c277cd506d890c6b239d9cbab80e83e16f1c1d1d74117c916ee3a80e061953123
41 DIST openexr-2.5.5.tar.gz 27536865 BLAKE2B d0c0b2fd39b2cfafb60b6d0de3960063ff62341cf22be519f874c0c83f05cb604c5d503bb8b88514c71c5a54a79afa80a7fd00c2df15ec2193f6b3cffdc117c6 SHA512 e511af26a8fe2175a641fd25d2dcc6ef807e00bee2aff06a4784125f916ffd47fe376fe0621d385b604180a239bbfee063f8ceee3f7b731fde3c38558e9fdcdf
42
43 diff --git a/media-libs/openexr/files/openexr-2.2.0-Install-missing-header-files.patch b/media-libs/openexr/files/openexr-2.2.0-Install-missing-header-files.patch
44 deleted file mode 100644
45 index 1075cd9a30f..00000000000
46 --- a/media-libs/openexr/files/openexr-2.2.0-Install-missing-header-files.patch
47 +++ /dev/null
48 @@ -1,60 +0,0 @@
49 -From a018f82655402421a995565dd4a5192259cbc207 Mon Sep 17 00:00:00 2001
50 -From: Jonathan Scruggs <j.scruggs@×××××.com>
51 -Date: Sat, 23 Sep 2017 10:36:40 +0100
52 -Subject: [PATCH] OpenEXR: Install missing header files
53 -
54 -Some header files are not installed via Autotools, but are with
55 -CMake which breaks compatibility with certain programs. This patch
56 -enables Autotools to install these header files.
57 -
58 -Signed-off by: Jonathan Scruggs <j.scruggs@×××××.com>
59 ----
60 - OpenEXR/IlmImf/Makefile.am | 3 ++-
61 - OpenEXR/IlmImfUtil/Makefile.am | 17 +++++++++++++++++
62 - 2 files changed, 19 insertions(+), 1 deletion(-)
63 -
64 -diff --git a/IlmImf/Makefile.am b/IlmImf/Makefile.am
65 -index a7c219c..b7b96ac 100644
66 ---- a/IlmImf/Makefile.am
67 -+++ b/IlmImf/Makefile.am
68 -@@ -162,7 +162,8 @@ libIlmImfinclude_HEADERS = ImfForward.h ImfAttribute.h ImfBoxAttribute.h \
69 - ImfMisc.h \
70 - ImfPartHelper.h \
71 - ImfDeepImageState.h \
72 -- ImfDeepImageStateAttribute.h
73 -+ ImfDeepImageStateAttribute.h \
74 -+ ImfFloatVectorAttribute.h
75 -
76 - noinst_HEADERS = ImfCompressor.h \
77 - ImfRleCompressor.h \
78 -diff --git a/IlmImfUtil/Makefile.am b/IlmImfUtil/Makefile.am
79 -index 8005ee1..e1d3674 100644
80 ---- a/IlmImfUtil/Makefile.am
81 -+++ b/IlmImfUtil/Makefile.am
82 -@@ -33,6 +33,23 @@ libIlmImfUtil_la_LIBADD = -L$(top_builddir)/IlmImf $(ILMBASE_LIBS) -lIlmImf
83 -
84 - libIlmImfUtilincludedir = $(includedir)/OpenEXR
85 -
86 -+libIlmImfUtilinclude_HEADERS = ImfFlatImage.h \
87 -+ ImfDeepImage.h \
88 -+ ImfDeepImageChannel.h \
89 -+ ImfImageLevel.h \
90 -+ ImfDeepImageLevel.h \
91 -+ ImfDeepImageIO.h \
92 -+ ImfImageChannelRenaming.h \
93 -+ ImfImageIO.h \
94 -+ ImfFlatImageChannel.h \
95 -+ ImfImage.h \
96 -+ ImfFlatImageLevel.h \
97 -+ ImfImageDataWindow.h \
98 -+ ImfSampleCountChannel.h \
99 -+ ImfFlatImageIO.h \
100 -+ ImfImageChannel.h
101 -+
102 -+
103 - EXTRA_DIST = CMakeLists.txt
104 -
105 - INCLUDES = \
106 ---
107 -2.14.1
108 -
109
110 diff --git a/media-libs/openexr/files/openexr-2.2.0-fix-config.h-collision.patch b/media-libs/openexr/files/openexr-2.2.0-fix-config.h-collision.patch
111 deleted file mode 100644
112 index 53421194c2d..00000000000
113 --- a/media-libs/openexr/files/openexr-2.2.0-fix-config.h-collision.patch
114 +++ /dev/null
115 @@ -1,43 +0,0 @@
116 -Rename enum from VERSION to MYVERSION due to
117 -collision with VERSION from autoheader.
118 -
119 ---- a/IlmImf/ImfDwaCompressor.cpp
120 -+++ b/IlmImf/ImfDwaCompressor.cpp
121 -@@ -1944,7 +1944,7 @@
122 -
123 - #define OBIDX(x) (Int64 *)&_outBuffer[x * sizeof (Int64)]
124 -
125 -- Int64 *version = OBIDX (VERSION);
126 -+ Int64 *version = OBIDX (MYVERSION);
127 - Int64 *unknownUncompressedSize = OBIDX (UNKNOWN_UNCOMPRESSED_SIZE);
128 - Int64 *unknownCompressedSize = OBIDX (UNKNOWN_COMPRESSED_SIZE);
129 - Int64 *acCompressedSize = OBIDX (AC_COMPRESSED_SIZE);
130 -@@ -2356,7 +2356,7 @@
131 -
132 - const Int64 *inPtr64 = (const Int64*) inPtr;
133 -
134 -- Int64 version = *(inPtr64 + VERSION);
135 -+ Int64 version = *(inPtr64 + MYVERSION);
136 - Int64 unknownUncompressedSize = *(inPtr64 + UNKNOWN_UNCOMPRESSED_SIZE);
137 - Int64 unknownCompressedSize = *(inPtr64 + UNKNOWN_COMPRESSED_SIZE);
138 - Int64 acCompressedSize = *(inPtr64 + AC_COMPRESSED_SIZE);
139 -@@ -3142,7 +3142,7 @@
140 -
141 -
142 - //
143 --// Setup channel classification rules when reading files with VERSION < 2
144 -+// Setup channel classification rules when reading files with MYVERSION < 2
145 - //
146 -
147 - void
148 ---- a/IlmImf/ImfDwaCompressor.h
149 -+++ b/IlmImf/ImfDwaCompressor.h
150 -@@ -124,7 +124,7 @@
151 -
152 - enum DataSizesSingle
153 - {
154 -- VERSION = 0, // Version number:
155 -+ MYVERSION = 0, // Version number:
156 - // 0: classic
157 - // 1: adds "end of block" to the AC RLE
158 -
159
160 diff --git a/media-libs/openexr/files/openexr-2.2.0-fix-cpuid-on-abi_x86_32.patch b/media-libs/openexr/files/openexr-2.2.0-fix-cpuid-on-abi_x86_32.patch
161 deleted file mode 100644
162 index 1dc13c72407..00000000000
163 --- a/media-libs/openexr/files/openexr-2.2.0-fix-cpuid-on-abi_x86_32.patch
164 +++ /dev/null
165 @@ -1,75 +0,0 @@
166 -$NetBSD: patch-IlmImf_ImfSystemSpecific.cpp,v 1.2 2014/08/19 13:34:42 joerg Exp $
167 -
168 -Rework cpuid function to use gnuc __get_cpuid (requiring at least gcc 4.3)
169 -This get's over issues such as encountered with PIC builds.
170 -Upstream issue : https://github.com/openexr/openexr/issues/128
171 -
172 -https://raw.githubusercontent.com/jsonn/pkgsrc/trunk/graphics/openexr/patches/patch-IlmImf_ImfSystemSpecific.cpp
173 -https://github.com/jsonn/pkgsrc/commit/5158af44e65b6d7b9f1a8aca2eb24cb87d003724
174 -https://bugs.gentoo.org/show_bug.cgi?id=626760
175 -
176 ---- a/IlmImf/ImfSystemSpecific.cpp.orig 2014-08-10 04:23:57.000000000 +0000
177 -+++ b/IlmImf/ImfSystemSpecific.cpp
178 -@@ -40,21 +40,30 @@ OPENEXR_IMF_INTERNAL_NAMESPACE_SOURCE_EN
179 -
180 - namespace {
181 - #if defined(IMF_HAVE_SSE2) && defined(__GNUC__)
182 --
183 - // Helper functions for gcc + SSE enabled
184 -- void cpuid(int n, int &eax, int &ebx, int &ecx, int &edx)
185 -+ void cpuid(unsigned int n, unsigned int &eax, unsigned int &ebx,
186 -+ unsigned int &ecx, unsigned int &edx)
187 - {
188 -+#ifdef __i386__
189 -+ __asm__ __volatile__ (
190 -+ "pushl %%ebx; cpuid; movl %%ebx, %0; popl %%ebx"
191 -+ : /* Output */ "=m"(ebx), "=a"(eax), "=c"(ecx), "=d"(edx)
192 -+ : /* Input */ "a"(n)
193 -+ : /* Clobber */);
194 -+#else
195 - __asm__ __volatile__ (
196 - "cpuid"
197 - : /* Output */ "=a"(eax), "=b"(ebx), "=c"(ecx), "=d"(edx)
198 - : /* Input */ "a"(n)
199 - : /* Clobber */);
200 -+#endif
201 - }
202 -
203 - #else // IMF_HAVE_SSE2 && __GNUC__
204 -
205 - // Helper functions for generic compiler - all disabled
206 -- void cpuid(int n, int &eax, int &ebx, int &ecx, int &edx)
207 -+ void cpuid(unsigned int n, unsigned int &eax, unsigned int &ebx,
208 -+ unsigned int &ecx, unsigned int &edx)
209 - {
210 - eax = ebx = ecx = edx = 0;
211 - }
212 -@@ -64,7 +73,7 @@ namespace {
213 -
214 - #ifdef OPENEXR_IMF_HAVE_GCC_INLINE_ASM_AVX
215 -
216 -- void xgetbv(int n, int &eax, int &edx)
217 -+ void xgetbv(unsigned int n, unsigned int &eax, unsigned int &edx)
218 - {
219 - __asm__ __volatile__ (
220 - "xgetbv"
221 -@@ -75,7 +84,7 @@ namespace {
222 -
223 - #else // OPENEXR_IMF_HAVE_GCC_INLINE_ASM_AVX
224 -
225 -- void xgetbv(int n, int &eax, int &edx)
226 -+ void xgetbv(unsigned int n, unsigned int &eax, unsigned int &edx)
227 - {
228 - eax = edx = 0;
229 - }
230 -@@ -94,8 +103,8 @@ CpuId::CpuId():
231 - f16c(false)
232 - {
233 - bool osxsave = false;
234 -- int max = 0;
235 -- int eax, ebx, ecx, edx;
236 -+ unsigned int max = 0;
237 -+ unsigned int eax, ebx, ecx, edx;
238 -
239 - cpuid(0, max, ebx, ecx, edx);
240 - if (max > 0)
241
242 diff --git a/media-libs/openexr/files/openexr-2.3.0-bigendian.patch b/media-libs/openexr/files/openexr-2.3.0-bigendian.patch
243 deleted file mode 100644
244 index 0851fe95735..00000000000
245 --- a/media-libs/openexr/files/openexr-2.3.0-bigendian.patch
246 +++ /dev/null
247 @@ -1,71 +0,0 @@
248 -Description: Fix test-suite on some big-endian archs
249 -Author: Dennis Gilmore <dennis@×××××.us>
250 -Bug-Debian: https://bugs.debian.org/793040
251 -Origin: vendor, https://github.com/openexr/openexr/issues/81
252 -Reviewed-by: Mathieu Malaterre <malat@××××××.org>
253 -
254 -Index: openexr/IlmImfTest/testFutureProofing.cpp
255 -===================================================================
256 ---- openexr.orig/IlmImfTest/testFutureProofing.cpp
257 -+++ openexr/IlmImfTest/testFutureProofing.cpp
258 -@@ -40,6 +40,7 @@
259 - #include <stdio.h>
260 - #include <stdlib.h>
261 - #include <assert.h>
262 -+#include <byteswap.h>
263 -
264 - #include "tmpDir.h"
265 - #include "testFutureProofing.h"
266 -@@ -64,6 +65,7 @@
267 - #include <ImfNamespace.h>
268 - #include <ImathNamespace.h>
269 - #include <IlmThreadNamespace.h>
270 -+#include <ImfSystemSpecific.h>
271 -
272 - namespace IMF = OPENEXR_IMF_NAMESPACE;
273 - using namespace IMF;
274 -@@ -1234,6 +1236,12 @@ modifyType (bool modify_version)
275 -
276 - //length of attribute
277 - fread(&length,4,1,f);
278 -+ if (!GLOBAL_SYSTEM_LITTLE_ENDIAN)
279 -+ {
280 -+ int tmp = bswap_32(length);
281 -+ length = tmp;
282 -+ }
283 -+
284 - if(!modify_version && attrib_name=="type")
285 - {
286 - // modify the type of part 1 to be 'X<whatevever>'
287 -Index: openexr/IlmImfTest/testMultiPartFileMixingBasic.cpp
288 -===================================================================
289 ---- openexr.orig/IlmImfTest/testMultiPartFileMixingBasic.cpp
290 -+++ openexr/IlmImfTest/testMultiPartFileMixingBasic.cpp
291 -@@ -40,6 +40,7 @@
292 - #include <stdio.h>
293 - #include <stdlib.h>
294 - #include <assert.h>
295 -+#include <byteswap.h>
296 -
297 - #include "tmpDir.h"
298 - #include "testMultiPartFileMixingBasic.h"
299 -@@ -59,6 +60,7 @@
300 - #include <ImfDeepScanLineInputPart.h>
301 - #include <ImfPartType.h>
302 - #include <ImfMisc.h>
303 -+#include <ImfSystemSpecific.h>
304 -
305 - namespace IMF = OPENEXR_IMF_NAMESPACE;
306 - using namespace IMF;
307 -@@ -1383,6 +1385,11 @@ killOffsetTables (const std::string & fn
308 -
309 - //length of attribute
310 - fread(&length,4,1,f);
311 -+ if (!GLOBAL_SYSTEM_LITTLE_ENDIAN)
312 -+ {
313 -+ int tmp = bswap_32(length);
314 -+ length = tmp;
315 -+ }
316 -
317 - //value of attribute
318 - for(int i=0;i<length;i++)
319
320 diff --git a/media-libs/openexr/files/openexr-2.3.0-bigendian2.patch b/media-libs/openexr/files/openexr-2.3.0-bigendian2.patch
321 deleted file mode 100644
322 index cf1ad7b0902..00000000000
323 --- a/media-libs/openexr/files/openexr-2.3.0-bigendian2.patch
324 +++ /dev/null
325 @@ -1,17 +0,0 @@
326 -Description: Upstream is not interested in big endian arch
327 - Seems to only affect the test suite.
328 -Author: Mathieu Malaterre <malat@××××××.org>
329 -
330 -Index: openexr/IlmImfTest/main.cpp
331 -===================================================================
332 ---- openexr.orig/IlmImfTest/main.cpp
333 -+++ openexr/IlmImfTest/main.cpp
334 -@@ -153,7 +153,7 @@ main (int argc, char *argv[])
335 - TEST (testHuf, "core");
336 - TEST (testWav, "core");
337 - TEST (testRgba, "basic");
338 -- TEST (testSharedFrameBuffer, "basic");
339 -+ //TEST (testSharedFrameBuffer, "basic");
340 - TEST (testRgbaThreading, "basic");
341 - TEST (testChannels, "basic");
342 - TEST (testAttributes, "core");
343
344 diff --git a/media-libs/openexr/files/openexr-2.3.0-fix-bashisms.patch b/media-libs/openexr/files/openexr-2.3.0-fix-bashisms.patch
345 deleted file mode 100644
346 index f633eb0e49f..00000000000
347 --- a/media-libs/openexr/files/openexr-2.3.0-fix-bashisms.patch
348 +++ /dev/null
349 @@ -1,117 +0,0 @@
350 -From ba329cba788d4f320e6fc455919233222c27a0dd Mon Sep 17 00:00:00 2001
351 -From: Kimball Thurston <kdt3rd@×××××.com>
352 -Date: Sun, 21 Jul 2019 23:07:01 +1200
353 -Subject: [PATCH] Fixes #139
354 -
355 -Removes bash-isms from the autoconf bootstrap / configure.ac files
356 -
357 -Signed-off-by: Kimball Thurston <kdt3rd@×××××.com>
358 ----
359 - IlmBase/bootstrap | 4 ++--
360 - IlmBase/configure.ac | 22 ++++++++++------------
361 - OpenEXR/bootstrap | 4 ++--
362 - OpenEXR/configure.ac | 26 +++++++++++++-------------
363 - OpenEXR_Viewers/bootstrap | 4 ++--
364 - OpenEXR_Viewers/configure.ac | 15 +++++++--------
365 - PyIlmBase/bootstrap | 4 ++--
366 - PyIlmBase/configure.ac | 15 +++++++--------
367 - 8 files changed, 45 insertions(+), 49 deletions(-)
368 -
369 -diff --git a/configure.ac b/configure.ac
370 ---- a/configure.ac
371 -+++ b/configure.ac
372 -@@ -76,30 +76,30 @@ AC_ARG_ENABLE(cxxstd,
373 - [enable ISO c++ standard 11/14 [[default=auto]]]),
374 - [cxxstd="${enableval}"], [cxxstd=14])
375 -
376 --if test "${cxxstd}" == 17 ; then
377 -+if test "${cxxstd}" = 17 ; then
378 - AX_CXX_COMPILE_STDCXX([17], [noext], [mandatory])
379 - CXXFLAGS="$CXXFLAGS -std=c++17"
380 - else
381 -- if test "${cxxstd}" == 14 ; then
382 -+ if test "${cxxstd}" = 14 ; then
383 - AX_CXX_COMPILE_STDCXX([14], [noext], [mandatory])
384 - CXXFLAGS="$CXXFLAGS -std=c++14"
385 - else
386 -- if test "${cxxstd}" == 11 ; then
387 -+ if test "${cxxstd}" = 11 ; then
388 - AX_CXX_COMPILE_STDCXX([11], [noext], [mandatory])
389 - CXXFLAGS="$CXXFLAGS -std=c++11"
390 - else
391 -- if test "${cxxstd}" == 03 ; then
392 -+ if test "${cxxstd}" = 03 ; then
393 - CXXFLAGS="$CXXFLAGS -std=c++03"
394 - else
395 - dnl automatically determine...
396 - AX_CXX_COMPILE_STDCXX([11], [noext], [optional])
397 - AX_CXX_COMPILE_STDCXX([14], [noext], [optional])
398 - AX_CXX_COMPILE_STDCXX([17], [noext], [optional])
399 -- if test "$HAVE_CXX14" == 1 ; then
400 -+ if test "$HAVE_CXX14" = 1 ; then
401 - CXXFLAGS="$CXXFLAGS -std=c++14"
402 - cxxstd = 14
403 - else
404 -- if test "$HAVE_CXX11" == 1 ; then
405 -+ if test "$HAVE_CXX11" = 1 ; then
406 - CXXFLAGS="$CXXFLAGS -std=c++11"
407 - cxxstd = 11
408 - fi
409 -@@ -216,7 +216,7 @@ AC_COMPILE_IFELSE(
410 - [sysconf_nproc="no"]
411 - )
412 - AC_MSG_RESULT([$sysconf_nproc])
413 --if test "x${sysconf_nproc}" == xyes ; then
414 -+if test "x${sysconf_nproc}" = xyes ; then
415 - AC_DEFINE([OPENEXR_IMF_HAVE_SYSCONF_NPROCESSORS_ONLN], [1], [Define if sysconf(_SC_NPROCESSORS_ONLN) can be used for CPU count])
416 - fi
417 -
418 -@@ -297,14 +297,14 @@ LIB_SUFFIX=""
419 - lib_suffix_valid="no"
420 -
421 - lib_namespace="Imf"
422 --if test "x${library_namespace_versioning}" == xyes ; then
423 -+if test "x${library_namespace_versioning}" = xyes ; then
424 - AC_DEFINE_UNQUOTED([OPENEXR_IMF_INTERNAL_NAMESPACE], [Imf_${OPENEXR_VERSION_API}], [OpenEXR])
425 - AC_DEFINE([OPENEXR_IMF_INTERNAL_NAMESPACE_CUSTOM], [1], [OpenEXR])
426 -
427 - lib_namespace="Imf_${OPENEXR_VERSION_API}"
428 - LIB_SUFFIX="${OPENEXR_VERSION_API}"
429 - lib_suffix_valid="yes"
430 --elif test "x${library_namespace_versioning}" == xno ; then
431 -+elif test "x${library_namespace_versioning}" = xno ; then
432 - AC_DEFINE_UNQUOTED([OPENEXR_IMF_INTERNAL_NAMESPACE], [Imf], [OpenEXR])
433 -
434 - lib_namespace="Imf"
435 -@@ -318,7 +318,7 @@ else
436 - fi
437 - AC_SUBST(LIB_SUFFIX)
438 -
439 --if test "x${lib_suffix_valid}" == xyes ; then
440 -+if test "x${lib_suffix_valid}" = xyes ; then
441 - AC_SUBST(LIB_SUFFIX_DASH,"-${LIB_SUFFIX}")
442 - AM_CONDITIONAL(LIB_SUFFIX_EXISTS,true)
443 - else
444 -@@ -338,11 +338,11 @@ AC_ARG_ENABLE(customusernamespace,
445 - [custom_usr_namespace="${enableval}"],
446 - [custom_usr_namespace=no])
447 -
448 --if test "x${custom_usr_namespace}" == xyes ; then
449 -+if test "x${custom_usr_namespace}" = xyes ; then
450 - AC_MSG_WARN([Enabling 'custom user namespace' requires an additional argument, reverting to 'Imf'])
451 - AC_DEFINE_UNQUOTED([OPENEXR_IMF_NAMESPACE], [Imf], [OpenEXR])
452 - usr_namespace="Imf"
453 --elif test "x${custom_usr_namespace}" == xno ; then
454 -+elif test "x${custom_usr_namespace}" = xno ; then
455 - AC_DEFINE_UNQUOTED([OPENEXR_IMF_NAMESPACE], [Imf], [OpenEXR])
456 - usr_namespace="Imf"
457 - else
458 -@@ -386,7 +386,7 @@ enable large stack optimizations $large_stack
459 - internal library namespace $lib_namespace
460 - user-client namespace $usr_namespace])
461 -
462 --if test "x$build_osxuniversal" == xyes; then
463 -+if test "x$build_osxuniversal" = xyes; then
464 - AC_MSG_RESULT([
465 - build OS X universal binaries $build_osxuniversal])
466 - fi
467
468 diff --git a/media-libs/openexr/files/openexr-2.3.0-fix-build-system.patch b/media-libs/openexr/files/openexr-2.3.0-fix-build-system.patch
469 deleted file mode 100644
470 index 811a7af3875..00000000000
471 --- a/media-libs/openexr/files/openexr-2.3.0-fix-build-system.patch
472 +++ /dev/null
473 @@ -1,68 +0,0 @@
474 -diff --git a/configure.ac b/configure.ac
475 -index 067f9d0..fdbe2f8 100644
476 ---- a/configure.ac
477 -+++ b/configure.ac
478 -@@ -13,8 +13,7 @@ AC_SUBST(OPENEXR_VERSION_API, ${OPENEXR_VERSION_MAJOR}_${OPENEXR_VERSION_MINOR})
479 - AC_CANONICAL_HOST
480 - AC_CONFIG_SRCDIR(IlmImfTest/main.cpp)
481 - AC_CONFIG_HEADERS([config/OpenEXRConfig.h])
482 --AM_INIT_AUTOMAKE(1.6.3) dnl Require automake 1.6.3 or better
483 --AM_MAINTAINER_MODE
484 -+AM_INIT_AUTOMAKE
485 -
486 -
487 - LIBTOOL_CURRENT=24
488 -@@ -28,7 +27,7 @@ AC_PROG_CXX
489 - AC_PROG_INSTALL
490 - AC_PROG_CC
491 - AC_PROG_LN_S
492 --AC_PROG_LIBTOOL
493 -+LT_INIT
494 - AC_PROG_MAKE_SET
495 -
496 - dnl
497 -@@ -58,8 +57,8 @@ AM_PATH_PKGCONFIG(
498 - [ILMBASE])
499 -
500 - dnl Define the version string
501 --AC_DEFINE_UNQUOTED([OPENEXR_VERSION_STRING], "${VERSION}", [OpenEXR version string])
502 --AC_DEFINE_UNQUOTED([OPENEXR_PACKAGE_STRING], "${PACKAGE_STRING}", [OpenEXR version string])
503 -+AC_DEFINE_UNQUOTED([OPENEXR_VERSION_STRING], ["${VERSION}"], [OpenEXR version string])
504 -+AC_DEFINE_UNQUOTED([OPENEXR_PACKAGE_STRING], ["${PACKAGE_STRING}"], [OpenEXR version string])
505 - AC_DEFINE_UNQUOTED([OPENEXR_VERSION_MAJOR], [${OPENEXR_VERSION_MAJOR}], [OpenEXR version string])
506 - AC_DEFINE_UNQUOTED([OPENEXR_VERSION_MINOR], [${OPENEXR_VERSION_MINOR}], [OpenEXR version string])
507 - AC_DEFINE_UNQUOTED([OPENEXR_VERSION_PATCH], [${OPENEXR_VERSION_PATCH}], [OpenEXR version string])
508 -@@ -110,16 +109,7 @@ AC_ARG_ENABLE(threading,
509 - [multithread="${enableval}"], [multithread=yes])
510 -
511 - AS_IF([test "x${multithread}" != xno], [
512 -- ACX_PTHREAD(
513 -- [
514 -- AC_DEFINE(OPENEXR_IMF_HAVE_PTHREAD)
515 -- ILMBASE_LIBS="$PTHREAD_LIBS $ILMBASE_LIBS"
516 -- ILMBASE_CXXFLAGS="$ILMBASE_CXXFLAGS $PTHREAD_CFLAGS"
517 -- CC="$PTHREAD_CC"
518 --
519 -- AM_POSIX_SEM()
520 -- ],
521 -- [AC_MSG_ERROR([POSIX thread support required])])
522 -+ AX_PTHREAD
523 -
524 - AC_DEFINE([OPENEXR_IMF_HAVE_PTHREAD], [1], [Define if pthreads are available])
525 -
526 -@@ -195,15 +185,6 @@ dnl AC_MSG_RESULT($complete_iomanip)
527 - dnl AC_LANG_RESTORE
528 - AC_DEFINE([OPENEXR_IMF_HAVE_COMPLETE_IOMANIP], [1], [Define when std::right is available])
529 -
530 --AC_MSG_CHECKING(for gcc optimization flags)
531 --old_cflags=$CFLAGS
532 --CFLAGS="$CFLAGS -pipe"
533 --AC_TRY_COMPILE([#include <stdio.h>],
534 --[ printf ("hello, world"); ],
535 --[ EXTRA_OPT_CFLAGS="-pipe"],[ EXTRA_OPT_CFLAGS=""])
536 --CFLAGS=$old_cflags
537 --AC_MSG_RESULT([$EXTRA_OPT_CFLAGS])
538 --
539 -
540 - dnl Check to see if the toolset supports AVX instructions in inline asm
541 - AC_ARG_ENABLE([avx],
542
543 diff --git a/media-libs/openexr/files/openexr-2.3.0-skip-bogus-tests.patch b/media-libs/openexr/files/openexr-2.3.0-skip-bogus-tests.patch
544 deleted file mode 100644
545 index 360b9609b2d..00000000000
546 --- a/media-libs/openexr/files/openexr-2.3.0-skip-bogus-tests.patch
547 +++ /dev/null
548 @@ -1,31 +0,0 @@
549 -Description: Remove bogus test from suite
550 -Author: Mathieu Malaterre <malat@××××××.org>
551 -Bug-Debian: https://bugs.debian.org/790495
552 -Forwarded: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=790495#15
553 -
554 ---- openexr-2.2.0.orig/IlmImfTest/testSampleImages.cpp
555 -+++ openexr-2.2.0/IlmImfTest/testSampleImages.cpp
556 -@@ -162,15 +162,15 @@ testSampleImages (const std::string&)
557 - compareImages (ILM_IMF_TEST_IMAGEDIR "comp_b44.exr",
558 - ILM_IMF_TEST_IMAGEDIR "comp_b44_piz.exr");
559 -
560 -- compareImages (ILM_IMF_TEST_IMAGEDIR "comp_dwaa_v1.exr",
561 -- ILM_IMF_TEST_IMAGEDIR "comp_dwaa_piz.exr");
562 -- compareImages (ILM_IMF_TEST_IMAGEDIR "comp_dwaa_v2.exr",
563 -- ILM_IMF_TEST_IMAGEDIR "comp_dwaa_piz.exr");
564 -+// compareImages (ILM_IMF_TEST_IMAGEDIR "comp_dwaa_v1.exr",
565 -+// ILM_IMF_TEST_IMAGEDIR "comp_dwaa_piz.exr");
566 -+// compareImages (ILM_IMF_TEST_IMAGEDIR "comp_dwaa_v2.exr",
567 -+// ILM_IMF_TEST_IMAGEDIR "comp_dwaa_piz.exr");
568 -
569 -- compareImages (ILM_IMF_TEST_IMAGEDIR "comp_dwab_v1.exr",
570 -- ILM_IMF_TEST_IMAGEDIR "comp_dwab_piz.exr");
571 -- compareImages (ILM_IMF_TEST_IMAGEDIR "comp_dwab_v2.exr",
572 -- ILM_IMF_TEST_IMAGEDIR "comp_dwab_piz.exr");
573 -+// compareImages (ILM_IMF_TEST_IMAGEDIR "comp_dwab_v1.exr",
574 -+// ILM_IMF_TEST_IMAGEDIR "comp_dwab_piz.exr");
575 -+// compareImages (ILM_IMF_TEST_IMAGEDIR "comp_dwab_v2.exr",
576 -+// ILM_IMF_TEST_IMAGEDIR "comp_dwab_piz.exr");
577 -
578 -
579 - cout << "ok\n" << endl;
580
581 diff --git a/media-libs/openexr/files/openexr-2.3.0-tests-32bits-2.patch b/media-libs/openexr/files/openexr-2.3.0-tests-32bits-2.patch
582 deleted file mode 100644
583 index bb3917d7996..00000000000
584 --- a/media-libs/openexr/files/openexr-2.3.0-tests-32bits-2.patch
585 +++ /dev/null
586 @@ -1,17 +0,0 @@
587 -Description: Usual double rounding issue with x87
588 -Author: Mathieu Malaterre <malat@××××××.org>
589 -Bug-Debian: https://bugs.debian.org/909865
590 -Forwarded: https://github.com/openexr/openexr/issues/346
591 -Last-Update: 2018-12-19
592 -
593 ---- openexr-2.3.0.orig/IlmImfTest/Makefile.am
594 -+++ openexr-2.3.0/IlmImfTest/Makefile.am
595 -@@ -54,6 +54,8 @@ IlmImfTest_SOURCES = main.cpp tmpDir.h t
596 -
597 - AM_CPPFLAGS = -DILM_IMF_TEST_IMAGEDIR=\"$(srcdir)/\"
598 -
599 -+AM_CPPFLAGS += -ffloat-store
600 -+
601 - if BUILD_IMFHUGETEST
602 - IlmImfTest_SOURCES += testDeepScanLineHuge.cpp testDeepScanLineHuge.h
603 - AM_CPPFLAGS += -DENABLE_IMFHUGETEST
604
605 diff --git a/media-libs/openexr/files/openexr-2.3.0-tests-32bits.patch b/media-libs/openexr/files/openexr-2.3.0-tests-32bits.patch
606 deleted file mode 100644
607 index 430bb20bcfa..00000000000
608 --- a/media-libs/openexr/files/openexr-2.3.0-tests-32bits.patch
609 +++ /dev/null
610 @@ -1,36 +0,0 @@
611 -Description: Fix test-suite on some 32bits archs
612 -Author: Mathieu Malaterre <malat@××××××.org>
613 -Bug-Debian: https://bugs.debian.org/791478
614 -
615 -Index: openexr/IlmImfTest/Makefile.am
616 -===================================================================
617 ---- openexr.orig/IlmImfTest/Makefile.am
618 -+++ openexr/IlmImfTest/Makefile.am
619 -@@ -44,7 +44,6 @@ IlmImfTest_SOURCES = main.cpp tmpDir.h t
620 - testDeepScanLineMultipleRead.h testDeepScanLineMultipleRead.cpp \
621 - testPartHelper.h testPartHelper.cpp \
622 - testOptimized.cpp testOptimized.h \
623 -- testOptimizedInterleavePatterns.cpp testOptimizedInterleavePatterns.h \
624 - testBadTypeAttributes.cpp testBadTypeAttributes.h \
625 - testFutureProofing.cpp testFutureProofing.h \
626 - compareDwa.cpp compareDwa.h \
627 -Index: openexr/IlmImfTest/main.cpp
628 -===================================================================
629 ---- openexr.orig/IlmImfTest/main.cpp
630 -+++ openexr/IlmImfTest/main.cpp
631 -@@ -82,7 +82,6 @@
632 - #include "testCopyMultiPartFile.h"
633 - #include "testPartHelper.h"
634 - #include "testOptimized.h"
635 --#include "testOptimizedInterleavePatterns.h"
636 - #include "testBadTypeAttributes.h"
637 - #include "testFutureProofing.h"
638 - #include "testPartHelper.h"
639 -@@ -174,7 +173,6 @@ main (int argc, char *argv[])
640 - TEST (testExistingStreams, "core");
641 - TEST (testStandardAttributes, "core");
642 - TEST (testOptimized, "basic");
643 -- TEST (testOptimizedInterleavePatterns, "basic");
644 - TEST (testYca, "basic");
645 - TEST (testTiledYa, "basic");
646 - TEST (testNativeFormat, "basic");
647
648 diff --git a/media-libs/openexr/openexr-2.3.0.ebuild b/media-libs/openexr/openexr-2.3.0.ebuild
649 deleted file mode 100644
650 index 69309c6d201..00000000000
651 --- a/media-libs/openexr/openexr-2.3.0.ebuild
652 +++ /dev/null
653 @@ -1,79 +0,0 @@
654 -# Copyright 1999-2020 Gentoo Authors
655 -# Distributed under the terms of the GNU General Public License v2
656 -
657 -EAPI=6
658 -
659 -inherit autotools flag-o-matic toolchain-funcs multilib-minimal
660 -
661 -DESCRIPTION="ILM's OpenEXR high dynamic-range image file format libraries"
662 -HOMEPAGE="https://www.openexr.com/"
663 -SRC_URI="https://github.com/openexr/openexr/releases/download/v${PV}/${P}.tar.gz"
664 -
665 -LICENSE="BSD"
666 -SLOT="0/24" # based on SONAME
667 -KEYWORDS="amd64 -arm arm64 hppa ~ia64 ppc ppc64 sparc x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-solaris"
668 -IUSE="cpu_flags_x86_avx examples static-libs"
669 -
670 -RDEPEND="
671 - >=media-libs/ilmbase-${PV}:=[${MULTILIB_USEDEP}]
672 - sys-libs/zlib[${MULTILIB_USEDEP}]
673 -"
674 -DEPEND="${RDEPEND}
675 - >=sys-devel/autoconf-archive-2016.09.16
676 - virtual/pkgconfig
677 -"
678 -
679 -RESTRICT="test" # Tests broken upstream doesn't really care about them, bug #656680
680 -
681 -DOCS=( AUTHORS ChangeLog NEWS README.md )
682 -MULTILIB_WRAPPED_HEADERS=( /usr/include/OpenEXR/OpenEXRConfig.h )
683 -
684 -PATCHES=(
685 - "${FILESDIR}/${PN}-2.2.0-fix-cpuid-on-abi_x86_32.patch"
686 - "${FILESDIR}/${PN}-2.2.0-fix-config.h-collision.patch"
687 - "${FILESDIR}/${PN}-2.2.0-Install-missing-header-files.patch"
688 - "${FILESDIR}/${P}-fix-build-system.patch"
689 - "${FILESDIR}/${P}-fix-bashisms.patch"
690 - # From Debian
691 - "${FILESDIR}/${PN}-2.3.0-tests-32bits.patch"
692 - "${FILESDIR}/${PN}-2.3.0-skip-bogus-tests.patch"
693 - "${FILESDIR}/${PN}-2.3.0-bigendian.patch"
694 - "${FILESDIR}/${PN}-2.3.0-bigendian2.patch"
695 - "${FILESDIR}/${PN}-2.3.0-tests-32bits-2.patch"
696 -)
697 -
698 -src_prepare() {
699 - default
700 - # Fix path for testsuite
701 - sed -i -e "s:/var/tmp/:${T}:" IlmImfTest/tmpDir.h || die
702 - eautoreconf
703 -}
704 -
705 -multilib_src_configure() {
706 - local myeconfargs=(
707 - --disable-imffuzztest
708 - --disable-imfhugetest
709 - --enable-threading
710 - $(use_enable cpu_flags_x86_avx avx)
711 - $(use_enable examples imfexamples)
712 - $(use_enable static-libs static)
713 - )
714 -
715 - # TODO: check if this still applies on updates!
716 - # internal tool dwaLookup fails to run when linked with gold linker
717 - tc-ld-disable-gold
718 -
719 - ECONF_SOURCE="${S}" econf "${myeconfargs[@]}"
720 -}
721 -
722 -multilib_src_install_all() {
723 - einstalldocs
724 -
725 - if use examples; then
726 - docompress -x /usr/share/doc/${PF}/examples
727 - else
728 - rm -rf "${ED%/}"/usr/share/doc/${PF}/examples || die
729 - fi
730 -
731 - find "${D}" -name '*.la' -type f -delete || die
732 -}