From: "Rémi Cardona" <remi@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/openexr/files/, media-libs/openexr/
Date: Thu, 2 Jul 2020 06:03:16 +0000 (UTC) [thread overview]
Message-ID: <1593669721.f2fb5c7d2eb5ec24b001e5ff04891750695f323f.remi@gentoo> (raw)
commit: f2fb5c7d2eb5ec24b001e5ff04891750695f323f
Author: Rémi Cardona <remi <AT> gentoo <DOT> org>
AuthorDate: Sun Jun 28 10:21:17 2020 +0000
Commit: Rémi Cardona <remi <AT> gentoo <DOT> org>
CommitDate: Thu Jul 2 06:02:01 2020 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f2fb5c7d
media-libs/openexr: fix bashisms in configure script
Bug: https://bugs.gentoo.org/724092
Package-Manager: Portage-2.3.102, Repoman-2.3.23
Signed-off-by: Rémi Cardona <remi <AT> gentoo.org>
.../openexr/files/openexr-2.3.0-fix-bashisms.patch | 117 +++++++++++++++++++++
media-libs/openexr/openexr-2.3.0.ebuild | 1 +
2 files changed, 118 insertions(+)
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
new file mode 100644
index 00000000000..f633eb0e49f
--- /dev/null
+++ b/media-libs/openexr/files/openexr-2.3.0-fix-bashisms.patch
@@ -0,0 +1,117 @@
+From ba329cba788d4f320e6fc455919233222c27a0dd Mon Sep 17 00:00:00 2001
+From: Kimball Thurston <kdt3rd@gmail.com>
+Date: Sun, 21 Jul 2019 23:07:01 +1200
+Subject: [PATCH] Fixes #139
+
+Removes bash-isms from the autoconf bootstrap / configure.ac files
+
+Signed-off-by: Kimball Thurston <kdt3rd@gmail.com>
+---
+ IlmBase/bootstrap | 4 ++--
+ IlmBase/configure.ac | 22 ++++++++++------------
+ OpenEXR/bootstrap | 4 ++--
+ OpenEXR/configure.ac | 26 +++++++++++++-------------
+ OpenEXR_Viewers/bootstrap | 4 ++--
+ OpenEXR_Viewers/configure.ac | 15 +++++++--------
+ PyIlmBase/bootstrap | 4 ++--
+ PyIlmBase/configure.ac | 15 +++++++--------
+ 8 files changed, 45 insertions(+), 49 deletions(-)
+
+diff --git a/configure.ac b/configure.ac
+--- a/configure.ac
++++ b/configure.ac
+@@ -76,30 +76,30 @@ 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
+ CXXFLAGS="$CXXFLAGS -std=c++03"
+ else
+ dnl automatically determine...
+ 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
+@@ -216,7 +216,7 @@ AC_COMPILE_IFELSE(
+ [sysconf_nproc="no"]
+ )
+ AC_MSG_RESULT([$sysconf_nproc])
+-if test "x${sysconf_nproc}" == xyes ; then
++if test "x${sysconf_nproc}" = xyes ; then
+ AC_DEFINE([OPENEXR_IMF_HAVE_SYSCONF_NPROCESSORS_ONLN], [1], [Define if sysconf(_SC_NPROCESSORS_ONLN) can be used for CPU count])
+ fi
+
+@@ -297,14 +297,14 @@ LIB_SUFFIX=""
+ lib_suffix_valid="no"
+
+ lib_namespace="Imf"
+-if test "x${library_namespace_versioning}" == xyes ; then
++if test "x${library_namespace_versioning}" = xyes ; then
+ AC_DEFINE_UNQUOTED([OPENEXR_IMF_INTERNAL_NAMESPACE], [Imf_${OPENEXR_VERSION_API}], [OpenEXR])
+ AC_DEFINE([OPENEXR_IMF_INTERNAL_NAMESPACE_CUSTOM], [1], [OpenEXR])
+
+ lib_namespace="Imf_${OPENEXR_VERSION_API}"
+ LIB_SUFFIX="${OPENEXR_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([OPENEXR_IMF_INTERNAL_NAMESPACE], [Imf], [OpenEXR])
+
+ lib_namespace="Imf"
+@@ -318,7 +318,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
+@@ -338,11 +338,11 @@ AC_ARG_ENABLE(customusernamespace,
+ [custom_usr_namespace="${enableval}"],
+ [custom_usr_namespace=no])
+
+-if test "x${custom_usr_namespace}" == xyes ; then
++if test "x${custom_usr_namespace}" = xyes ; then
+ AC_MSG_WARN([Enabling 'custom user namespace' requires an additional argument, reverting to 'Imf'])
+ AC_DEFINE_UNQUOTED([OPENEXR_IMF_NAMESPACE], [Imf], [OpenEXR])
+ usr_namespace="Imf"
+-elif test "x${custom_usr_namespace}" == xno ; then
++elif test "x${custom_usr_namespace}" = xno ; then
+ AC_DEFINE_UNQUOTED([OPENEXR_IMF_NAMESPACE], [Imf], [OpenEXR])
+ usr_namespace="Imf"
+ else
+@@ -386,7 +386,7 @@ enable large stack optimizations $large_stack
+ internal library namespace $lib_namespace
+ user-client namespace $usr_namespace])
+
+-if test "x$build_osxuniversal" == xyes; then
++if test "x$build_osxuniversal" = xyes; then
+ AC_MSG_RESULT([
+ build OS X universal binaries $build_osxuniversal])
+ fi
diff --git a/media-libs/openexr/openexr-2.3.0.ebuild b/media-libs/openexr/openexr-2.3.0.ebuild
index 5cb1f98b83b..69309c6d201 100644
--- a/media-libs/openexr/openexr-2.3.0.ebuild
+++ b/media-libs/openexr/openexr-2.3.0.ebuild
@@ -33,6 +33,7 @@ PATCHES=(
"${FILESDIR}/${PN}-2.2.0-fix-config.h-collision.patch"
"${FILESDIR}/${PN}-2.2.0-Install-missing-header-files.patch"
"${FILESDIR}/${P}-fix-build-system.patch"
+ "${FILESDIR}/${P}-fix-bashisms.patch"
# From Debian
"${FILESDIR}/${PN}-2.3.0-tests-32bits.patch"
"${FILESDIR}/${PN}-2.3.0-skip-bogus-tests.patch"
next reply other threads:[~2020-07-02 6:03 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-07-02 6:03 Rémi Cardona [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-10-04 17:37 [gentoo-commits] repo/gentoo:master commit in: media-libs/openexr/files/, media-libs/openexr/ Andreas Sturmlechner
2024-02-21 1:45 Sam James
2023-01-28 11:27 Andreas Sturmlechner
2022-09-15 18:39 Sam James
2021-08-12 6:45 Joonas Niilola
2021-07-21 21:57 Marek Szuba
2021-03-31 6:31 Joonas Niilola
2019-06-04 2:51 Andreas K. Hüttel
2018-10-13 9:05 Mikle Kolyada
2017-09-28 12:50 Alexis Ballier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1593669721.f2fb5c7d2eb5ec24b001e5ff04891750695f323f.remi@gentoo \
--to=remi@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox