commit:     9beefd404cce7e0cc11942c5c151ad8e85adc2f2
Author:     Nicholas Vinson <nvinson234 <AT> gmail <DOT> com>
AuthorDate: Wed Dec  3 21:27:31 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Dec  4 02:45:06 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9beefd40

app-text/texlive-core: Update CXXFLAGS in 2024-r1

Update CXXFLAGS to include -std=c++17 if the compiler understands the
flag. This works around a bug in the configure scripts. The updating the
CXXFLAGS approach was chosen because it's significantly faster than
rebuilding the various configure scripts.

[sam: Add Bug tag.]

Bug: https://bugs.gentoo.org/966834
Signed-off-by: Nicholas Vinson <nvinson234 <AT> gmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/44880
Closes: https://github.com/gentoo/gentoo/pull/44880
Signed-off-by: Sam James <sam <AT> gentoo.org>

 app-text/texlive-core/texlive-core-2024-r1.ebuild | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/app-text/texlive-core/texlive-core-2024-r1.ebuild 
b/app-text/texlive-core/texlive-core-2024-r1.ebuild
index 683a4aea1d67..167c01f3e2ae 100644
--- a/app-text/texlive-core/texlive-core-2024-r1.ebuild
+++ b/app-text/texlive-core/texlive-core-2024-r1.ebuild
@@ -255,6 +255,11 @@ src_configure() {
        # thus open, but hey, at least it's not a regression...
        append-cflags -Wno-incompatible-pointer-types
 
+       # bug #966834
+       # running reautoconf would also fix the issue; however, there are 
several
+       # configure scripts, so adding the flag is a much faster approach.
+       append-cxxflags $(test-flags-CXX -std=gnu++17)
+
        # It fails on alpha without this
        use alpha && append-ldflags "-Wl,--no-relax"
 

Reply via email to