summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2022-04-17 12:03:53 +0100
committerSam James <sam@gentoo.org>2022-04-17 13:08:58 +0100
commitab42ea869b7ed7f8739f3620728a4b5bddee68c9 (patch)
treec50035aad8b5120e450056229564aa1166f5692a /app-text
parentnet-ftp/pure-ftpd: add GPL-2 license (diff)
downloadgentoo-ab42ea869b7ed7f8739f3620728a4b5bddee68c9.tar.gz
gentoo-ab42ea869b7ed7f8739f3620728a4b5bddee68c9.tar.bz2
gentoo-ab42ea869b7ed7f8739f3620728a4b5bddee68c9.zip
app-text/ghostscript-gpl: fix build w/ libcxx (don't force libstdc++)
Closes: https://bugs.gentoo.org/784173 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'app-text')
-rw-r--r--app-text/ghostscript-gpl/files/ghostscript-gpl-9.55.0-no-force-libstdcxx.patch12
-rw-r--r--app-text/ghostscript-gpl/ghostscript-gpl-9.55.0-r1.ebuild6
2 files changed, 17 insertions, 1 deletions
diff --git a/app-text/ghostscript-gpl/files/ghostscript-gpl-9.55.0-no-force-libstdcxx.patch b/app-text/ghostscript-gpl/files/ghostscript-gpl-9.55.0-no-force-libstdcxx.patch
new file mode 100644
index 000000000000..e10522af9017
--- /dev/null
+++ b/app-text/ghostscript-gpl/files/ghostscript-gpl-9.55.0-no-force-libstdcxx.patch
@@ -0,0 +1,12 @@
+https://bugs.gentoo.org/784173
+--- a/configure.ac
++++ b/configure.ac
+@@ -857,7 +857,7 @@
+ else
+
+ save_cxxflags="$CXXFLAGS"
+- cxxflags_to_try="-std=c++17 -stdlib=libstdc++"
++ cxxflags_to_try="-std=c++17"
+ CXXFLAGS_TO_USE=""
+
+ AC_MSG_CHECKING([supported C++ compiler flags])
diff --git a/app-text/ghostscript-gpl/ghostscript-gpl-9.55.0-r1.ebuild b/app-text/ghostscript-gpl/ghostscript-gpl-9.55.0-r1.ebuild
index 63b3a363c410..2af192b34ec5 100644
--- a/app-text/ghostscript-gpl/ghostscript-gpl-9.55.0-r1.ebuild
+++ b/app-text/ghostscript-gpl/ghostscript-gpl-9.55.0-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -60,6 +60,10 @@ RDEPEND="${DEPEND}
S="${WORKDIR}/${MY_P}"
+PATCHES=(
+ "${FILESDIR}"/${PN}-9.55.0-no-force-libstdcxx.patch
+)
+
src_prepare() {
if [[ -n "${MY_PATCHSET}" ]] ; then
# apply various patches, many borrowed from Fedora