public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/gcc-patches:master commit in: 8.5.0/gentoo/
Date: Sun, 12 Feb 2023 02:39:16 +0000 (UTC)	[thread overview]
Message-ID: <1675818494.bddbb0244be56ccdd3827ee418c651e59f7a0c11.sam@gentoo> (raw)

commit:     bddbb0244be56ccdd3827ee418c651e59f7a0c11
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Wed Feb  8 01:08:06 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Feb  8 01:08:14 2023 +0000
URL:        https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=bddbb024

8.5.0: add 33_all_msgfmt-libstdc++-link.patch

Bug: https://bugs.gentoo.org/892816
Signed-off-by: Sam James <sam <AT> gentoo.org>

 8.5.0/gentoo/33_all_msgfmt-libstdc++-link.patch | 39 +++++++++++++++++++++++++
 8.5.0/gentoo/README.history                     |  3 +-
 2 files changed, 41 insertions(+), 1 deletion(-)

diff --git a/8.5.0/gentoo/33_all_msgfmt-libstdc++-link.patch b/8.5.0/gentoo/33_all_msgfmt-libstdc++-link.patch
new file mode 100644
index 0000000..0d2f113
--- /dev/null
+++ b/8.5.0/gentoo/33_all_msgfmt-libstdc++-link.patch
@@ -0,0 +1,39 @@
+Ensure that msgfmt doesn't encounter problems during gcc bootstrapping.
+
+Solves error messages like the following:
+
+msgfmt: /var/tmp/portage/sys-devel/gcc-4.1.2/work/build/./gcc/libgcc_s.so.1: version `GCC_4.2.0' not found (required by /usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/libstdc++.so.6)
+
+The libgcc_s.so used during build doesn't satisfy the needs of the
+libstdc++.so that msgfmt is linked against. On the other hand, msgfmt
+is used as a stand-alone application here, and what library it uses
+behind the scenes is of no concern to the gcc build process.
+Therefore, simply invoking it "as usual", i.e. without any special
+library path, will make it work as expected here.
+
+2011-09-19 Martin von Gagern
+
+References:
+https://bugs.gentoo.org/372377
+https://bugs.gentoo.org/295480
+https://bugs.gentoo.org/843119
+--- a/libstdc++-v3/po/Makefile.am
++++ b/libstdc++-v3/po/Makefile.am
+@@ -39,6 +39,7 @@ MSGFMT = msgfmt
+ EXTRA_DIST = string_literals.cc POTFILES.in $(PACKAGE).pot $(LOCALE_IN)
+ 
+ .po.mo:
++	env --unset=LD_LIBRARY_PATH \
+ 	$(MSGFMT) -o $@ $<
+ 
+ all-local: all-local-$(USE_NLS)
+--- a/libstdc++-v3/po/Makefile.in
++++ b/libstdc++-v3/po/Makefile.in
+@@ -419,6 +419,7 @@ uninstall-am: uninstall-info-am
+ 
+ 
+ .po.mo:
++	env --unset=LD_LIBRARY_PATH \
+ 	$(MSGFMT) -o $@ $<
+ 
+ all-local: all-local-$(USE_NLS)

diff --git a/8.5.0/gentoo/README.history b/8.5.0/gentoo/README.history
index b2d4c99..1466fd7 100644
--- a/8.5.0/gentoo/README.history
+++ b/8.5.0/gentoo/README.history
@@ -1,6 +1,7 @@
-3		TODO
+4		08 Feb 2023
 	+ 31_all_powerpcspe-pie-crt.patch
 	+ 32_all_powerpcspe-march-PLATFORM.patch
+	+ 33_all_msgfmt-libstdc++-link.patch
 
 2		05 July 2021
 	+ 30_all_remove-cyclades.patch


             reply	other threads:[~2023-02-12  2:39 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-02-12  2:39 Sam James [this message]
  -- strict thread matches above, loose matches on Subject: below --
2021-07-19 22:31 [gentoo-commits] proj/gcc-patches:master commit in: 8.5.0/gentoo/ Sergei Trofimovich
2021-07-05 20:45 Sergei Trofimovich
2021-07-05 20:30 Sergei Trofimovich
2021-05-16 10:29 Sergei Trofimovich

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=1675818494.bddbb0244be56ccdd3827ee418c651e59f7a0c11.sam@gentoo \
    --to=sam@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