commit: ab42ea869b7ed7f8739f3620728a4b5bddee68c9 Author: Sam James <sam <AT> gentoo <DOT> org> AuthorDate: Sun Apr 17 11:03:53 2022 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Sun Apr 17 12:08:58 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ab42ea86
app-text/ghostscript-gpl: fix build w/ libcxx (don't force libstdc++) Closes: https://bugs.gentoo.org/784173 Signed-off-by: Sam James <sam <AT> gentoo.org> .../files/ghostscript-gpl-9.55.0-no-force-libstdcxx.patch | 12 ++++++++++++ app-text/ghostscript-gpl/ghostscript-gpl-9.55.0-r1.ebuild | 6 +++++- 2 files changed, 17 insertions(+), 1 deletion(-) 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
