commit:     f6f36fe9972ccbbb3562302cd4fb0e1512a2a340
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sun Mar  3 06:53:27 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Mar  3 06:53:53 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f6f36fe9

dev-debug/gdb: add 14.2

Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-debug/gdb/Manifest                             | 1 +
 dev-debug/gdb/{gdb-9999.ebuild => gdb-14.2.ebuild} | 8 ++++++++
 dev-debug/gdb/gdb-9999.ebuild                      | 8 ++++++++
 3 files changed, 17 insertions(+)

diff --git a/dev-debug/gdb/Manifest b/dev-debug/gdb/Manifest
index 363506944c7d..bc28a63793c7 100644
--- a/dev-debug/gdb/Manifest
+++ b/dev-debug/gdb/Manifest
@@ -1,2 +1,3 @@
 DIST gdb-13.2.tar.xz 23664644 BLAKE2B 
bf5216ba2286448a46f9e0a405367c5a678e6d7540204722d355b618018b7b75a2ebc5b51353304c5ded02a3979223a81781d305f5afa5be82516cdc2863d49f
 SHA512 
8185d3e11ab60dafff5860a5016577bfe7dd7547ef01ebc867bc247603d82b74ff74c4f29492c7d2aee57076f52be33e289f4c6b414a4b870d4b3004909f4c34
 DIST gdb-14.1.tar.xz 24108624 BLAKE2B 
52a07b4745f95561f360a597d6ec1d212dafc8e9134dc415cd7bcfb02c26934a60807c8400b545a756c68392e16e104178cdc1464430c53611973881e921a942
 SHA512 
575e198105076fc4a88f68591aa114ab9c1196e84386a3f7b9b58fe5f30cdeed33f6a5f957b68f08c47284ec922bb60c964627e238471419673fd913575ce427
+DIST gdb-14.2.tar.xz 24111936 BLAKE2B 
65765dfd1ed08e19bb881fc7ae98d6ee4914f38a9a2bb0d0ca73bef472669664f807fe9c04e8dffd7025be98e736ac52f88ff5851ceddbb01a361885b18befc8
 SHA512 
7e07941f1fe661288cc571b4964012ceabc1760624fce20320db2f470c01439b2386f859b5288da13204b758e2e3b22a74c68c012178db93b9529b06f1e22ede

diff --git a/dev-debug/gdb/gdb-9999.ebuild b/dev-debug/gdb/gdb-14.2.ebuild
similarity index 95%
copy from dev-debug/gdb/gdb-9999.ebuild
copy to dev-debug/gdb/gdb-14.2.ebuild
index 89469e978771..541bf7f8915a 100644
--- a/dev-debug/gdb/gdb-9999.ebuild
+++ b/dev-debug/gdb/gdb-14.2.ebuild
@@ -131,6 +131,14 @@ src_prepare() {
        # Avoid using ancient termcap from host on Prefix systems
        sed -i -e 's/termcap tinfow/tinfow/g' \
                gdb/configure{.ac,} || die
+       if [[ ${CHOST} == *-solaris* ]] ; then
+               # code relies on C++11, so make sure we get that selected
+               # due to Python 3.11 pymacro.h doing stuff to work around
+               # versioning mess based on the C version, while we're compiling
+               # C++ here, so we need to make it clear we're doing C++11/C11
+               # because Solaris system headers act on these
+               sed -i -e 's/-x c++/-std=c++11/' gdb/Makefile.in || die
+       fi
 }
 
 gdb_branding() {

diff --git a/dev-debug/gdb/gdb-9999.ebuild b/dev-debug/gdb/gdb-9999.ebuild
index 89469e978771..541bf7f8915a 100644
--- a/dev-debug/gdb/gdb-9999.ebuild
+++ b/dev-debug/gdb/gdb-9999.ebuild
@@ -131,6 +131,14 @@ src_prepare() {
        # Avoid using ancient termcap from host on Prefix systems
        sed -i -e 's/termcap tinfow/tinfow/g' \
                gdb/configure{.ac,} || die
+       if [[ ${CHOST} == *-solaris* ]] ; then
+               # code relies on C++11, so make sure we get that selected
+               # due to Python 3.11 pymacro.h doing stuff to work around
+               # versioning mess based on the C version, while we're compiling
+               # C++ here, so we need to make it clear we're doing C++11/C11
+               # because Solaris system headers act on these
+               sed -i -e 's/-x c++/-std=c++11/' gdb/Makefile.in || die
+       fi
 }
 
 gdb_branding() {

Reply via email to