1 |
commit: 1a5882abf01ae085e999ddcf4d208105e21e1a0d |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Jul 3 02:03:18 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jul 3 02:22:11 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=1a5882ab |
7 |
|
8 |
10.4.0, 11.3.0, 11.4.0, 12.1.0: add gettext/msgfmt libstdc++ patch |
9 |
|
10 |
Fixes building w/ USE=nls using a newer GCC. |
11 |
|
12 |
Bug: https://bugs.gentoo.org/843119 |
13 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
14 |
|
15 |
10.4.0/gentoo/33_all_msgfmt-libstdc++-link.patch | 39 ++++++++++++++++++++++++ |
16 |
10.4.0/gentoo/README.history | 3 ++ |
17 |
11.3.0/gentoo/27_all_msgfmt-libstdc++-link.patch | 39 ++++++++++++++++++++++++ |
18 |
11.3.0/gentoo/README.history | 3 ++ |
19 |
11.4.0/gentoo/27_all_msgfmt-libstdc++-link.patch | 39 ++++++++++++++++++++++++ |
20 |
11.4.0/gentoo/README.history | 3 ++ |
21 |
12.1.0/gentoo/29_all_msgfmt-libstdc++-link.patch | 39 ++++++++++++++++++++++++ |
22 |
12.1.0/gentoo/README.history | 3 ++ |
23 |
8 files changed, 168 insertions(+) |
24 |
|
25 |
diff --git a/10.4.0/gentoo/33_all_msgfmt-libstdc++-link.patch b/10.4.0/gentoo/33_all_msgfmt-libstdc++-link.patch |
26 |
new file mode 100644 |
27 |
index 0000000..0d2f113 |
28 |
--- /dev/null |
29 |
+++ b/10.4.0/gentoo/33_all_msgfmt-libstdc++-link.patch |
30 |
@@ -0,0 +1,39 @@ |
31 |
+Ensure that msgfmt doesn't encounter problems during gcc bootstrapping. |
32 |
+ |
33 |
+Solves error messages like the following: |
34 |
+ |
35 |
+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) |
36 |
+ |
37 |
+The libgcc_s.so used during build doesn't satisfy the needs of the |
38 |
+libstdc++.so that msgfmt is linked against. On the other hand, msgfmt |
39 |
+is used as a stand-alone application here, and what library it uses |
40 |
+behind the scenes is of no concern to the gcc build process. |
41 |
+Therefore, simply invoking it "as usual", i.e. without any special |
42 |
+library path, will make it work as expected here. |
43 |
+ |
44 |
+2011-09-19 Martin von Gagern |
45 |
+ |
46 |
+References: |
47 |
+https://bugs.gentoo.org/372377 |
48 |
+https://bugs.gentoo.org/295480 |
49 |
+https://bugs.gentoo.org/843119 |
50 |
+--- a/libstdc++-v3/po/Makefile.am |
51 |
++++ b/libstdc++-v3/po/Makefile.am |
52 |
+@@ -39,6 +39,7 @@ MSGFMT = msgfmt |
53 |
+ EXTRA_DIST = string_literals.cc POTFILES.in $(PACKAGE).pot $(LOCALE_IN) |
54 |
+ |
55 |
+ .po.mo: |
56 |
++ env --unset=LD_LIBRARY_PATH \ |
57 |
+ $(MSGFMT) -o $@ $< |
58 |
+ |
59 |
+ all-local: all-local-$(USE_NLS) |
60 |
+--- a/libstdc++-v3/po/Makefile.in |
61 |
++++ b/libstdc++-v3/po/Makefile.in |
62 |
+@@ -419,6 +419,7 @@ uninstall-am: uninstall-info-am |
63 |
+ |
64 |
+ |
65 |
+ .po.mo: |
66 |
++ env --unset=LD_LIBRARY_PATH \ |
67 |
+ $(MSGFMT) -o $@ $< |
68 |
+ |
69 |
+ all-local: all-local-$(USE_NLS) |
70 |
|
71 |
diff --git a/10.4.0/gentoo/README.history b/10.4.0/gentoo/README.history |
72 |
index 7b129d1..0f6b049 100644 |
73 |
--- a/10.4.0/gentoo/README.history |
74 |
+++ b/10.4.0/gentoo/README.history |
75 |
@@ -1,3 +1,6 @@ |
76 |
+2 03 Jul 2022 |
77 |
+ + 33_all_msgfmt-libstdc++-link.patch |
78 |
+ |
79 |
1 22 May 2022 |
80 |
U 22_all_libstdcxx-no-vtv.patch |
81 |
|
82 |
|
83 |
diff --git a/11.3.0/gentoo/27_all_msgfmt-libstdc++-link.patch b/11.3.0/gentoo/27_all_msgfmt-libstdc++-link.patch |
84 |
new file mode 100644 |
85 |
index 0000000..0d2f113 |
86 |
--- /dev/null |
87 |
+++ b/11.3.0/gentoo/27_all_msgfmt-libstdc++-link.patch |
88 |
@@ -0,0 +1,39 @@ |
89 |
+Ensure that msgfmt doesn't encounter problems during gcc bootstrapping. |
90 |
+ |
91 |
+Solves error messages like the following: |
92 |
+ |
93 |
+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) |
94 |
+ |
95 |
+The libgcc_s.so used during build doesn't satisfy the needs of the |
96 |
+libstdc++.so that msgfmt is linked against. On the other hand, msgfmt |
97 |
+is used as a stand-alone application here, and what library it uses |
98 |
+behind the scenes is of no concern to the gcc build process. |
99 |
+Therefore, simply invoking it "as usual", i.e. without any special |
100 |
+library path, will make it work as expected here. |
101 |
+ |
102 |
+2011-09-19 Martin von Gagern |
103 |
+ |
104 |
+References: |
105 |
+https://bugs.gentoo.org/372377 |
106 |
+https://bugs.gentoo.org/295480 |
107 |
+https://bugs.gentoo.org/843119 |
108 |
+--- a/libstdc++-v3/po/Makefile.am |
109 |
++++ b/libstdc++-v3/po/Makefile.am |
110 |
+@@ -39,6 +39,7 @@ MSGFMT = msgfmt |
111 |
+ EXTRA_DIST = string_literals.cc POTFILES.in $(PACKAGE).pot $(LOCALE_IN) |
112 |
+ |
113 |
+ .po.mo: |
114 |
++ env --unset=LD_LIBRARY_PATH \ |
115 |
+ $(MSGFMT) -o $@ $< |
116 |
+ |
117 |
+ all-local: all-local-$(USE_NLS) |
118 |
+--- a/libstdc++-v3/po/Makefile.in |
119 |
++++ b/libstdc++-v3/po/Makefile.in |
120 |
+@@ -419,6 +419,7 @@ uninstall-am: uninstall-info-am |
121 |
+ |
122 |
+ |
123 |
+ .po.mo: |
124 |
++ env --unset=LD_LIBRARY_PATH \ |
125 |
+ $(MSGFMT) -o $@ $< |
126 |
+ |
127 |
+ all-local: all-local-$(USE_NLS) |
128 |
|
129 |
diff --git a/11.3.0/gentoo/README.history b/11.3.0/gentoo/README.history |
130 |
index 850c02b..49c754f 100644 |
131 |
--- a/11.3.0/gentoo/README.history |
132 |
+++ b/11.3.0/gentoo/README.history |
133 |
@@ -1,3 +1,6 @@ |
134 |
+5 3 July 2022 |
135 |
+ + 27_all_msgfmt-libstdc++-link.patch |
136 |
+ |
137 |
4 8 January 2022 |
138 |
+ 76_all_all_PR103910_12_ICE-on-PCH.patch |
139 |
|
140 |
|
141 |
diff --git a/11.4.0/gentoo/27_all_msgfmt-libstdc++-link.patch b/11.4.0/gentoo/27_all_msgfmt-libstdc++-link.patch |
142 |
new file mode 100644 |
143 |
index 0000000..0d2f113 |
144 |
--- /dev/null |
145 |
+++ b/11.4.0/gentoo/27_all_msgfmt-libstdc++-link.patch |
146 |
@@ -0,0 +1,39 @@ |
147 |
+Ensure that msgfmt doesn't encounter problems during gcc bootstrapping. |
148 |
+ |
149 |
+Solves error messages like the following: |
150 |
+ |
151 |
+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) |
152 |
+ |
153 |
+The libgcc_s.so used during build doesn't satisfy the needs of the |
154 |
+libstdc++.so that msgfmt is linked against. On the other hand, msgfmt |
155 |
+is used as a stand-alone application here, and what library it uses |
156 |
+behind the scenes is of no concern to the gcc build process. |
157 |
+Therefore, simply invoking it "as usual", i.e. without any special |
158 |
+library path, will make it work as expected here. |
159 |
+ |
160 |
+2011-09-19 Martin von Gagern |
161 |
+ |
162 |
+References: |
163 |
+https://bugs.gentoo.org/372377 |
164 |
+https://bugs.gentoo.org/295480 |
165 |
+https://bugs.gentoo.org/843119 |
166 |
+--- a/libstdc++-v3/po/Makefile.am |
167 |
++++ b/libstdc++-v3/po/Makefile.am |
168 |
+@@ -39,6 +39,7 @@ MSGFMT = msgfmt |
169 |
+ EXTRA_DIST = string_literals.cc POTFILES.in $(PACKAGE).pot $(LOCALE_IN) |
170 |
+ |
171 |
+ .po.mo: |
172 |
++ env --unset=LD_LIBRARY_PATH \ |
173 |
+ $(MSGFMT) -o $@ $< |
174 |
+ |
175 |
+ all-local: all-local-$(USE_NLS) |
176 |
+--- a/libstdc++-v3/po/Makefile.in |
177 |
++++ b/libstdc++-v3/po/Makefile.in |
178 |
+@@ -419,6 +419,7 @@ uninstall-am: uninstall-info-am |
179 |
+ |
180 |
+ |
181 |
+ .po.mo: |
182 |
++ env --unset=LD_LIBRARY_PATH \ |
183 |
+ $(MSGFMT) -o $@ $< |
184 |
+ |
185 |
+ all-local: all-local-$(USE_NLS) |
186 |
|
187 |
diff --git a/11.4.0/gentoo/README.history b/11.4.0/gentoo/README.history |
188 |
index 7d9195d..695ab6a 100644 |
189 |
--- a/11.4.0/gentoo/README.history |
190 |
+++ b/11.4.0/gentoo/README.history |
191 |
@@ -1,3 +1,6 @@ |
192 |
+1 3 July 2022 |
193 |
+ + 27_all_msgfmt-libstdc++-link.patch |
194 |
+ |
195 |
0 22 May 2022 |
196 |
+ 01_all_default-fortify-source.patch |
197 |
+ 02_all_default-warn-format-security.patch |
198 |
|
199 |
diff --git a/12.1.0/gentoo/29_all_msgfmt-libstdc++-link.patch b/12.1.0/gentoo/29_all_msgfmt-libstdc++-link.patch |
200 |
new file mode 100644 |
201 |
index 0000000..0d2f113 |
202 |
--- /dev/null |
203 |
+++ b/12.1.0/gentoo/29_all_msgfmt-libstdc++-link.patch |
204 |
@@ -0,0 +1,39 @@ |
205 |
+Ensure that msgfmt doesn't encounter problems during gcc bootstrapping. |
206 |
+ |
207 |
+Solves error messages like the following: |
208 |
+ |
209 |
+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) |
210 |
+ |
211 |
+The libgcc_s.so used during build doesn't satisfy the needs of the |
212 |
+libstdc++.so that msgfmt is linked against. On the other hand, msgfmt |
213 |
+is used as a stand-alone application here, and what library it uses |
214 |
+behind the scenes is of no concern to the gcc build process. |
215 |
+Therefore, simply invoking it "as usual", i.e. without any special |
216 |
+library path, will make it work as expected here. |
217 |
+ |
218 |
+2011-09-19 Martin von Gagern |
219 |
+ |
220 |
+References: |
221 |
+https://bugs.gentoo.org/372377 |
222 |
+https://bugs.gentoo.org/295480 |
223 |
+https://bugs.gentoo.org/843119 |
224 |
+--- a/libstdc++-v3/po/Makefile.am |
225 |
++++ b/libstdc++-v3/po/Makefile.am |
226 |
+@@ -39,6 +39,7 @@ MSGFMT = msgfmt |
227 |
+ EXTRA_DIST = string_literals.cc POTFILES.in $(PACKAGE).pot $(LOCALE_IN) |
228 |
+ |
229 |
+ .po.mo: |
230 |
++ env --unset=LD_LIBRARY_PATH \ |
231 |
+ $(MSGFMT) -o $@ $< |
232 |
+ |
233 |
+ all-local: all-local-$(USE_NLS) |
234 |
+--- a/libstdc++-v3/po/Makefile.in |
235 |
++++ b/libstdc++-v3/po/Makefile.in |
236 |
+@@ -419,6 +419,7 @@ uninstall-am: uninstall-info-am |
237 |
+ |
238 |
+ |
239 |
+ .po.mo: |
240 |
++ env --unset=LD_LIBRARY_PATH \ |
241 |
+ $(MSGFMT) -o $@ $< |
242 |
+ |
243 |
+ all-local: all-local-$(USE_NLS) |
244 |
|
245 |
diff --git a/12.1.0/gentoo/README.history b/12.1.0/gentoo/README.history |
246 |
index 04019c0..1602600 100644 |
247 |
--- a/12.1.0/gentoo/README.history |
248 |
+++ b/12.1.0/gentoo/README.history |
249 |
@@ -1,3 +1,6 @@ |
250 |
+9 3 Jul 2022 |
251 |
+ + 29_all_msgfmt-libstdc++-link.patch |
252 |
+ |
253 |
8 26 Jun 2022 |
254 |
|
255 |
+ 28_all_drop_CFLAGS_sed.patch |