commit:     792f139668feb8c2e395be745ac7e436ad5d396d
Author:     Bernd Waibel <waebbl-gentoo <AT> posteo <DOT> net>
AuthorDate: Fri Mar 26 16:49:03 2021 +0000
Commit:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Wed Mar 31 06:29:14 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=792f1396

media-libs/ilmbase: drop 2.3.0

Security cleanup

Package-Manager: Portage-3.0.17, Repoman-3.0.2
Signed-off-by: Bernd Waibel <waebbl-gentoo <AT> posteo.net>
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>

 media-libs/ilmbase/Manifest                        |   1 -
 .../ilmbase/files/ilmbase-2.3.0-fix-bashisms.patch | 214 ---------------------
 .../ilmbase/files/ilmbase-2.3.0-testBox.patch      | 104 ----------
 media-libs/ilmbase/ilmbase-2.3.0.ebuild            |  40 ----
 4 files changed, 359 deletions(-)

diff --git a/media-libs/ilmbase/Manifest b/media-libs/ilmbase/Manifest
index ea176ee0222..a14cb246858 100644
--- a/media-libs/ilmbase/Manifest
+++ b/media-libs/ilmbase/Manifest
@@ -1,2 +1 @@
-DIST ilmbase-2.3.0.tar.gz 595490 BLAKE2B 
db956fe7dbabf94632eb98635f4ebda8e937f26e26ed69f33743069fa2bf6d5ed3711f00eb33377c98b4f8ea367bbfc51b11d4cb884ce02238b537857cc19a9c
 SHA512 
db0804a7c37c2a97f9dbf81b20f40f7fdea73242baa2759d9dc3728e6849e7ecae0e178fa1c710add980d050499151650675e4b2cda6cbbaa61aca406a1f929a
 DIST ilmbase-2.5.5.tar.gz 27536865 BLAKE2B 
d0c0b2fd39b2cfafb60b6d0de3960063ff62341cf22be519f874c0c83f05cb604c5d503bb8b88514c71c5a54a79afa80a7fd00c2df15ec2193f6b3cffdc117c6
 SHA512 
e511af26a8fe2175a641fd25d2dcc6ef807e00bee2aff06a4784125f916ffd47fe376fe0621d385b604180a239bbfee063f8ceee3f7b731fde3c38558e9fdcdf

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
deleted file mode 100644
index 21428529391..00000000000
--- a/media-libs/ilmbase/files/ilmbase-2.3.0-fix-bashisms.patch
+++ /dev/null
@@ -1,214 +0,0 @@
---- a/configure
-+++ b/configure
-@@ -15253,7 +15253,7 @@ else
- fi
- 
- 
--if test "${cxxstd}" == 17 ; then
-+if test "${cxxstd}" = 17 ; then
-       ax_cxx_compile_alternatives="17 1z"    
ax_cxx_compile_cxx17_required=true
-   ac_ext=cpp
- ac_cpp='$CXXCPP $CPPFLAGS'
-@@ -16966,7 +16966,7 @@ $as_echo "$as_me: WARNING: C++17 is not
- 
-       CXXFLAGS="$CXXFLAGS -std=c++17"
- else
--  if test "${cxxstd}" == 14 ; then
-+  if test "${cxxstd}" = 14 ; then
-         ax_cxx_compile_alternatives="14 1y"    
ax_cxx_compile_cxx14_required=true
-   ac_ext=cpp
- ac_cpp='$CXXCPP $CPPFLAGS'
-@@ -17874,7 +17874,7 @@ $as_echo "#define HAVE_CXX14 1" >>confde
- 
-       CXXFLAGS="$CXXFLAGS -std=c++14"
-   else
--    if test "${cxxstd}" == 11 ; then
-+    if test "${cxxstd}" = 11 ; then
-         ax_cxx_compile_alternatives="11 0x"    
ax_cxx_compile_cxx11_required=true
-   ac_ext=cpp
- ac_cpp='$CXXCPP $CPPFLAGS'
-@@ -18542,7 +18542,7 @@ $as_echo "#define HAVE_CXX11 1" >>confde
- 
-       CXXFLAGS="$CXXFLAGS -std=c++11"
-     else
--      if test "${cxxstd}" == 03 ; then
-+      if test "${cxxstd}" = 03 ; then
-         $as_echo "#define ILMBASE_FORCE_CXX03 1" >>confdefs.h
- 
-         CXXFLAGS="$CXXFLAGS -std=c++03"
-@@ -21827,11 +21827,11 @@ $as_echo "#define HAVE_CXX17 1" >>confde
-   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++17 is not yet 
standardized, so the checks may change in incompatible ways anytime" >&5
- $as_echo "$as_me: WARNING: C++17 is not yet standardized, so the checks may 
change in incompatible ways anytime" >&2;}
- 
--        if test "$HAVE_CXX14" == 1 ; then
-+        if test "$HAVE_CXX14" = 1 ; then
-             CXXFLAGS="$CXXFLAGS -std=c++14"
-           cxxstd = 14
-         else
--          if test "$HAVE_CXX11" == 1 ; then
-+          if test "$HAVE_CXX11" = 1 ; then
-               CXXFLAGS="$CXXFLAGS -std=c++11"
-             cxxstd = 11
-           fi
-@@ -22768,7 +22768,7 @@ LIB_SUFFIX=""
- lib_suffix_valid="no"
- 
- lib_namespace=""
--if test "x${library_namespace_versioning}" == xyes ; then
-+if test "x${library_namespace_versioning}" = xyes ; then
-     cat >>confdefs.h <<_ACEOF
- #define IMATH_INTERNAL_NAMESPACE Imath_${ILMBASE_VERSION_API}
- _ACEOF
-@@ -22787,7 +22787,7 @@ _ACEOF
-     lib_namespace="${ILMBASE_VERSION_API}"
-     LIB_SUFFIX="${ILMBASE_VERSION_API}"
-     lib_suffix_valid="yes"
--elif test "x${library_namespace_versioning}" == xno ; then
-+elif test "x${library_namespace_versioning}" = xno ; then
-     cat >>confdefs.h <<_ACEOF
- #define IMATH_INTERNAL_NAMESPACE Imath
- _ACEOF
-@@ -22823,7 +22823,7 @@ _ACEOF
- fi
- 
- 
--if test "x${lib_suffix_valid}" == xyes ; then
-+if test "x${lib_suffix_valid}" = xyes ; then
- LIB_SUFFIX_DASH="-${LIB_SUFFIX}"
- 
-  if true; then
-@@ -22858,7 +22858,7 @@ else
- fi
- 
- 
--if test "x${custom_public_namespace}" == xyes ; then
-+if test "x${custom_public_namespace}" = xyes ; then
-     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Enabling 'custom user 
namespace' requires an additional argument, reverting to default" >&5
- $as_echo "$as_me: WARNING: Enabling 'custom user namespace' requires an 
additional argument, reverting to default" >&2;}
-     $as_echo "#define IMATH_NAMESPACE Imath" >>confdefs.h
-@@ -22870,7 +22870,7 @@ $as_echo "$as_me: WARNING: Enabling 'cus
- 
-     public_namespace=""
-     custom_public_namespace=no
--elif test "x${custom_public_namespace}" == xno ; then
-+elif test "x${custom_public_namespace}" = xno ; then
-     $as_echo "#define IMATH_NAMESPACE Imath" >>confdefs.h
- 
-     $as_echo "#define IEX_NAMESPACE Iex" >>confdefs.h
-@@ -22912,12 +22912,11 @@ fi
- 
- 
-   if test "${osx_arch}" != default ; then
--          osx_arch_flags="-arch ${osx_arch// / -arch }"
-+     osx_arch_flags=$(printf ' -arch %s' ${osx_arch})
-      CXXFLAGS="$CXXFLAGS $osx_arch_flags"
- 
-           if test "$enable_dependency_tracking" != no ; then
--        osx_arch_array=( ${osx_arch} )
--        if test ${#osx_arch_array[@]} -gt 1 ; then
-+      if echo "$osx_arch" | grep >/dev/null " " ; then
-           as_fn_error $? "building multiple OS X architectures requires 
--disable-dependency-tracking.
- Please re-run configure with these options:
-   --enable-osx-arch=\"${osx_arch}\" --disable-dependency-tracking
---- a/configure.ac
-+++ b/configure.ac
-@@ -45,19 +45,19 @@ AC_ARG_ENABLE(cxxstd,
-                              [enable ISO c++ standard 11/14 
[[default=auto]]]),
-               [cxxstd="${enableval}"], [cxxstd=14])
- 
--if test "${cxxstd}" == 17 ; then
-+if test "${cxxstd}" = 17 ; then
-     AX_CXX_COMPILE_STDCXX([17], [noext], [mandatory])
-       CXXFLAGS="$CXXFLAGS -std=c++17"
- else
--  if test "${cxxstd}" == 14 ; then
-+  if test "${cxxstd}" = 14 ; then
-       AX_CXX_COMPILE_STDCXX([14], [noext], [mandatory])
-       CXXFLAGS="$CXXFLAGS -std=c++14"
-   else
--    if test "${cxxstd}" == 11 ; then
-+    if test "${cxxstd}" = 11 ; then
-       AX_CXX_COMPILE_STDCXX([11], [noext], [mandatory])
-       CXXFLAGS="$CXXFLAGS -std=c++11"
-     else
--      if test "${cxxstd}" == 03 ; then
-+      if test "${cxxstd}" = 03 ; then
-         AC_DEFINE(ILMBASE_FORCE_CXX03)
-         CXXFLAGS="$CXXFLAGS -std=c++03"
-       else
-@@ -65,11 +65,11 @@ else
-         AX_CXX_COMPILE_STDCXX([11], [noext], [optional])
-         AX_CXX_COMPILE_STDCXX([14], [noext], [optional])
-         AX_CXX_COMPILE_STDCXX([17], [noext], [optional])
--        if test "$HAVE_CXX14" == 1 ; then
-+        if test "$HAVE_CXX14" = 1 ; then
-             CXXFLAGS="$CXXFLAGS -std=c++14"
-           cxxstd = 14
-         else
--          if test "$HAVE_CXX11" == 1 ; then
-+          if test "$HAVE_CXX11" = 1 ; then
-               CXXFLAGS="$CXXFLAGS -std=c++11"
-             cxxstd = 11
-           fi
-@@ -212,7 +212,7 @@ lib_suffix_valid="no"
- dnl Internal library namespace
- dnl 
- lib_namespace=""
--if test "x${library_namespace_versioning}" == xyes ; then
-+if test "x${library_namespace_versioning}" = xyes ; then
-     AC_DEFINE_UNQUOTED(IMATH_INTERNAL_NAMESPACE,     
Imath_${ILMBASE_VERSION_API})
-     AC_DEFINE_UNQUOTED(IEX_INTERNAL_NAMESPACE,       
Iex_${ILMBASE_VERSION_API})
-     AC_DEFINE_UNQUOTED(ILMTHREAD_INTERNAL_NAMESPACE, 
IlmThread_${ILMBASE_VERSION_API})
-@@ -221,7 +221,7 @@ if test "x${library_namespace_versioning
-     lib_namespace="${ILMBASE_VERSION_API}"
-     LIB_SUFFIX="${ILMBASE_VERSION_API}"
-     lib_suffix_valid="yes"
--elif test "x${library_namespace_versioning}" == xno ; then
-+elif test "x${library_namespace_versioning}" = xno ; then
-     AC_DEFINE_UNQUOTED(IMATH_INTERNAL_NAMESPACE,     Imath)
-     AC_DEFINE_UNQUOTED(IEX_INTERNAL_NAMESPACE,       Iex)
-     AC_DEFINE_UNQUOTED(ILMTHREAD_INTERNAL_NAMESPACE, IlmThread)
-@@ -238,7 +238,7 @@ else
- fi
- AC_SUBST(LIB_SUFFIX)
- 
--if test "x${lib_suffix_valid}" == xyes ; then
-+if test "x${lib_suffix_valid}" = xyes ; then
- AC_SUBST(LIB_SUFFIX_DASH,"-${LIB_SUFFIX}")
- AM_CONDITIONAL(LIB_SUFFIX_EXISTS,true)
- else
-@@ -257,7 +257,7 @@ AC_ARG_ENABLE(customusernamespace,
-         [custom_public_namespace="${enableval}"], 
-         [custom_public_namespace=no])
- 
--if test "x${custom_public_namespace}" == xyes ; then
-+if test "x${custom_public_namespace}" = xyes ; then
-     AC_MSG_WARN([Enabling 'custom user namespace' requires an additional 
argument, reverting to default])
-     AC_DEFINE(IMATH_NAMESPACE,     Imath)
-     AC_DEFINE(IEX_NAMESPACE,       Iex)
-@@ -265,7 +265,7 @@ if test "x${custom_public_namespace}" ==
- 
-     public_namespace=""
-     custom_public_namespace=no
--elif test "x${custom_public_namespace}" == xno ; then
-+elif test "x${custom_public_namespace}" = xno ; then
-     AC_DEFINE(IMATH_NAMESPACE,     Imath)
-     AC_DEFINE(IEX_NAMESPACE,       Iex)
-     AC_DEFINE(ILMTHREAD_NAMESPACE, IlmThread)
-@@ -296,14 +296,12 @@ case "$host" in
-             [osx_arch="${enableval}"], [osx_arch=default])
- 
-   if test "${osx_arch}" != default ; then
--     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.
--     osx_arch_flags="-arch ${osx_arch// / -arch }"
-+     osx_arch_flags=$(printf ' -arch %s' ${osx_arch})
-      CXXFLAGS="$CXXFLAGS $osx_arch_flags"
- 
-      dnl If multiple archs specified, make sure that 
--disable-dependency-tracking was also specified
-      if test "$enable_dependency_tracking" != no ; then
--        osx_arch_array=( ${osx_arch} )
--        if test ${#osx_arch_array[@]} -gt 1 ; then
-+      if echo "$osx_arch" | grep >/dev/null " " ; then
-           AC_MSG_ERROR([building multiple OS X architectures requires 
--disable-dependency-tracking.
- Please re-run configure with these options:
-   --enable-osx-arch="${osx_arch}" --disable-dependency-tracking

diff --git a/media-libs/ilmbase/files/ilmbase-2.3.0-testBox.patch 
b/media-libs/ilmbase/files/ilmbase-2.3.0-testBox.patch
deleted file mode 100644
index 8211846b09b..00000000000
--- a/media-libs/ilmbase/files/ilmbase-2.3.0-testBox.patch
+++ /dev/null
@@ -1,104 +0,0 @@
-Subject: testBox: allow fuzzy comparison of floats, doubles
-From: Steven Chamberlain <[email protected]>
-Date: Wed, 24 Feb 2016 01:10:11 +0000
-
-Allow for inexact values, as long as the error is smaller than the
-epsilon of the data type.
-
-On 32-bit x86, allow even greater discrepency at double
-precision, due to possible double-rounding.  See
-https://lists.nongnu.org/archive/html/openexr-devel/2015-12/msg00001.html
-
-Index: ilmbase/ImathTest/testBox.cpp
-===================================================================
---- ilmbase.orig/ImathTest/testBox.cpp
-+++ ilmbase/ImathTest/testBox.cpp
-@@ -47,6 +47,58 @@ using namespace IMATH_INTERNAL_NAMESPACE
- 
- namespace {
- 
-+template <class T>
-+bool
-+approximatelyEqual (const T &p1, const T &p2)
-+{
-+      /* int and short should be exact */
-+      return (p1 == p2);
-+}
-+
-+bool
-+approximatelyEqual (const Vec2<float> &p1, const Vec2<float> &p2)
-+{
-+    float e = limits<float>::epsilon();
-+    float m = 0;
-+
-+    for (int i = 0; i < 2; ++i)
-+    {
-+      m = max (m, abs (p1[i]));
-+      m = max (m, abs (p2[i]));
-+    }
-+
-+    for (int i = 0; i < 2; ++i)
-+      if (!equalWithAbsError (p1[i], p2[i], m * e))
-+          return false;
-+
-+    return true;
-+}
-+
-+bool
-+approximatelyEqual (const Vec2<double> &p1, const Vec2<double> &p2)
-+{
-+#if defined(__i386__) || defined(_M_IX86)
-+    /* double-rounding on 32-bit x86 may cause larger error:
-+       use epsilon of float rather than double */
-+    double e = limits<float>::epsilon();
-+#else
-+    double e = limits<double>::epsilon();
-+#endif
-+    double m = 0;
-+
-+    for (int i = 0; i < 2; ++i)
-+    {
-+      m = max (m, abs (p1[i]));
-+      m = max (m, abs (p2[i]));
-+    }
-+
-+    for (int i = 0; i < 2; ++i)
-+      if (!equalWithAbsError (p1[i], p2[i], m * e))
-+          return false;
-+
-+    return true;
-+}
-+
- //
- // Test case generation utility - create a vector of 
IMATH_INTERNAL_NAMESPACE::Vec{2,3,4}
- // with all permutations of integers 1..T::dimensions().
-@@ -250,7 +302,8 @@ testExtendByPoint(const char *type)
-                               
-         IMATH_INTERNAL_NAMESPACE::Box<T> b;
-         b.extendBy(p);
--        assert(b.min == p && b.max == p);
-+        assert (approximatelyEqual (b.min, p));
-+        assert (approximatelyEqual (b.max, p));
-     }
- 
-     //
-@@ -283,7 +336,8 @@ testExtendByPoint(const char *type)
- 
-             b.extendBy(p);
- 
--            assert(b.min == min && b.max == max);
-+            assert (approximatelyEqual (b.min, min));
-+            assert (approximatelyEqual (b.max, max));
-         }
-     }
- }
-@@ -358,7 +412,8 @@ testExtendByBox(const char *type)
-             }
-             b.extendBy(IMATH_INTERNAL_NAMESPACE::Box<T>(p0, p1));
- 
--            assert(b.min == min && b.max == max);
-+            assert (approximatelyEqual (b.min, min));
-+            assert (approximatelyEqual (b.max, max));
-         }
-     }
- }

diff --git a/media-libs/ilmbase/ilmbase-2.3.0.ebuild 
b/media-libs/ilmbase/ilmbase-2.3.0.ebuild
deleted file mode 100644
index e994e236f28..00000000000
--- a/media-libs/ilmbase/ilmbase-2.3.0.ebuild
+++ /dev/null
@@ -1,40 +0,0 @@
-# Copyright 1999-2020 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=6
-inherit multilib-minimal
-
-DESCRIPTION="OpenEXR ILM Base libraries"
-HOMEPAGE="http://openexr.com/";
-SRC_URI="https://github.com/openexr/openexr/releases/download/v${PV}/${P}.tar.gz";
-
-LICENSE="BSD"
-SLOT="0/24" # based on SONAME
-KEYWORDS="amd64 -arm arm64 hppa ~ia64 ~mips ppc ppc64 sparc x86 ~amd64-linux 
~x86-linux ~x64-macos ~x86-solaris"
-IUSE="static-libs"
-
-DEPEND="virtual/pkgconfig"
-
-PATCHES=(
-       "${FILESDIR}"/${PN}-2.3.0-testBox.patch
-       "${FILESDIR}"/${PN}-2.3.0-fix-bashisms.patch
-)
-
-DOCS=( AUTHORS ChangeLog NEWS README.md )
-MULTILIB_WRAPPED_HEADERS=( /usr/include/OpenEXR/IlmBaseConfig.h )
-
-multilib_src_configure() {
-       # Disable use of ucontext.h wrt #482890
-       if use hppa || use ppc || use ppc64; then
-               export ac_cv_header_ucontext_h=no
-       fi
-
-       ECONF_SOURCE=${S} econf "$(use_enable static-libs static)"
-}
-
-multilib_src_install_all() {
-       einstalldocs
-
-       # package provides pkg-config files
-       find "${D}" -name '*.la' -delete || die
-}

Reply via email to