0009-Ensure-that-msgfmt-doesn-t-encounter-problems-during.patch (1759B)
1 From 83bf2a316222e2fe0b72968cadf4e334d41173f6 Mon Sep 17 00:00:00 2001 2 From: Ariadne Conill <ariadne@dereferenced.org> 3 Date: Fri, 21 Aug 2020 06:50:33 +0000 4 Subject: [PATCH] Ensure that msgfmt doesn't encounter problems during gcc 5 bootstrapping. 6 7 Solves error messages like the following: 8 9 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) 10 11 The libgcc_s.so used during build doesn't satisfy the needs of the 12 libstdc++.so that msgfmt is linked against. On the other hand, msgfmt 13 is used as a stand-alone application here, and what library it uses 14 behind the scenes is of no concern to the gcc build process. 15 Therefore, simply invoking it "as usual", i.e. without any special 16 library path, will make it work as expected here. 17 18 2011-09-19 Martin von Gagern 19 20 References: 21 https://bugs.gentoo.org/372377 22 https://bugs.gentoo.org/295480 23 --- 24 libstdc++-v3/po/Makefile.am | 1 + 25 libstdc++-v3/po/Makefile.in | 1 + 26 2 files changed, 2 insertions(+) 27 28 diff --git a/libstdc++-v3/po/Makefile.am b/libstdc++-v3/po/Makefile.am 29 index 8f51544989e..5329804d136 100644 30 --- a/libstdc++-v3/po/Makefile.am 31 +++ b/libstdc++-v3/po/Makefile.am 32 @@ -38,6 +38,7 @@ MSGFMT = msgfmt 33 EXTRA_DIST = string_literals.cc POTFILES.in $(PACKAGE).pot $(LOCALE_IN) 34 35 .po.mo: 36 + env --unset=LD_LIBRARY_PATH \ 37 $(MSGFMT) -o $@ $< 38 39 all-local: all-local-$(USE_NLS) 40 diff --git a/libstdc++-v3/po/Makefile.in b/libstdc++-v3/po/Makefile.in 41 index 243f3db7b72..822210781fa 100644 42 --- a/libstdc++-v3/po/Makefile.in 43 +++ b/libstdc++-v3/po/Makefile.in 44 @@ -561,6 +561,7 @@ uninstall-am: 45 46 47 .po.mo: 48 + env --unset=LD_LIBRARY_PATH \ 49 $(MSGFMT) -o $@ $< 50 51 all-local: all-local-$(USE_NLS)