1 |
commit: 6fb906ef2da01327d64cea263887ef34c97c1bbf |
2 |
Author: Alfredo Tupone <tupone <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Sep 18 07:15:53 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Sep 30 00:13:22 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=6fb906ef |
7 |
|
8 |
10.3.0: backport glibc 2.36, gettext/msgfmt patch from 10.4.0 |
9 |
|
10 |
Bug: https://bugs.gentoo.org/295480 |
11 |
Bug: https://bugs.gentoo.org/372377 |
12 |
Bug: https://bugs.gentoo.org/843119 |
13 |
Bug: https://bugs.gentoo.org/864717 |
14 |
Bug: https://bugs.gentoo.org/865879 |
15 |
Closes: https://github.com/gentoo/gcc-patches/pull/2 |
16 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
17 |
|
18 |
10.3.0/gentoo/36_all_msgfmt-libstdc++-link.patch | 39 ++++++++++++++ |
19 |
10.3.0/gentoo/37_all_glibc_236.patch | 68 ++++++++++++++++++++++++ |
20 |
10.3.0/gentoo/README.history | 4 ++ |
21 |
3 files changed, 111 insertions(+) |
22 |
|
23 |
diff --git a/10.3.0/gentoo/36_all_msgfmt-libstdc++-link.patch b/10.3.0/gentoo/36_all_msgfmt-libstdc++-link.patch |
24 |
new file mode 100644 |
25 |
index 0000000..0d2f113 |
26 |
--- /dev/null |
27 |
+++ b/10.3.0/gentoo/36_all_msgfmt-libstdc++-link.patch |
28 |
@@ -0,0 +1,39 @@ |
29 |
+Ensure that msgfmt doesn't encounter problems during gcc bootstrapping. |
30 |
+ |
31 |
+Solves error messages like the following: |
32 |
+ |
33 |
+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) |
34 |
+ |
35 |
+The libgcc_s.so used during build doesn't satisfy the needs of the |
36 |
+libstdc++.so that msgfmt is linked against. On the other hand, msgfmt |
37 |
+is used as a stand-alone application here, and what library it uses |
38 |
+behind the scenes is of no concern to the gcc build process. |
39 |
+Therefore, simply invoking it "as usual", i.e. without any special |
40 |
+library path, will make it work as expected here. |
41 |
+ |
42 |
+2011-09-19 Martin von Gagern |
43 |
+ |
44 |
+References: |
45 |
+https://bugs.gentoo.org/372377 |
46 |
+https://bugs.gentoo.org/295480 |
47 |
+https://bugs.gentoo.org/843119 |
48 |
+--- a/libstdc++-v3/po/Makefile.am |
49 |
++++ b/libstdc++-v3/po/Makefile.am |
50 |
+@@ -39,6 +39,7 @@ MSGFMT = msgfmt |
51 |
+ EXTRA_DIST = string_literals.cc POTFILES.in $(PACKAGE).pot $(LOCALE_IN) |
52 |
+ |
53 |
+ .po.mo: |
54 |
++ env --unset=LD_LIBRARY_PATH \ |
55 |
+ $(MSGFMT) -o $@ $< |
56 |
+ |
57 |
+ all-local: all-local-$(USE_NLS) |
58 |
+--- a/libstdc++-v3/po/Makefile.in |
59 |
++++ b/libstdc++-v3/po/Makefile.in |
60 |
+@@ -419,6 +419,7 @@ uninstall-am: uninstall-info-am |
61 |
+ |
62 |
+ |
63 |
+ .po.mo: |
64 |
++ env --unset=LD_LIBRARY_PATH \ |
65 |
+ $(MSGFMT) -o $@ $< |
66 |
+ |
67 |
+ all-local: all-local-$(USE_NLS) |
68 |
|
69 |
diff --git a/10.3.0/gentoo/37_all_glibc_236.patch b/10.3.0/gentoo/37_all_glibc_236.patch |
70 |
new file mode 100644 |
71 |
index 0000000..7a0f7d3 |
72 |
--- /dev/null |
73 |
+++ b/10.3.0/gentoo/37_all_glibc_236.patch |
74 |
@@ -0,0 +1,68 @@ |
75 |
+https://gcc.gnu.org/git/?p=gcc.git;a=commitdiff;h=6bd956e31b2fb6fe1eee4eb1bf309247dcd19b23 |
76 |
+https://gcc.gnu.org/git/?p=gcc.git;a=commitdiff;h=8c3238510ce63c75024c0288eade5c933f6d322e |
77 |
+https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106266 |
78 |
+https://bugs.gentoo.org/864717 |
79 |
+https://bugs.gentoo.org/865879 |
80 |
+ |
81 |
+From 6bd956e31b2fb6fe1eee4eb1bf309247dcd19b23 Mon Sep 17 00:00:00 2001 |
82 |
+From: Martin Liska <mliska@××××.cz> |
83 |
+Date: Mon, 11 Jul 2022 22:03:14 +0200 |
84 |
+Subject: [PATCH] libsanitizer: cherry-pick 9cf13067cb5088626ba7 from upstream |
85 |
+ |
86 |
+9cf13067cb5088626ba7ee1ec4c42ec59c7995a0 [sanitizer] Remove #include <linux/fs.h> to resolve fsconfig_command/mount_attr conflict with glibc 2.36 |
87 |
+ |
88 |
+(cherry picked from commit 2701442d0cf6292f6624443c15813d6d1a3562fe) |
89 |
+--- a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp |
90 |
++++ b/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp |
91 |
+@@ -72,7 +72,9 @@ |
92 |
+ #include <sys/vt.h> |
93 |
+ #include <linux/cdrom.h> |
94 |
+ #include <linux/fd.h> |
95 |
++#if SANITIZER_ANDROID |
96 |
+ #include <linux/fs.h> |
97 |
++#endif |
98 |
+ #include <linux/hdreg.h> |
99 |
+ #include <linux/input.h> |
100 |
+ #include <linux/ioctl.h> |
101 |
+@@ -822,10 +824,10 @@ unsigned struct_ElfW_Phdr_sz = sizeof(Elf_Phdr); |
102 |
+ unsigned IOCTL_EVIOCGPROP = IOCTL_NOT_PRESENT; |
103 |
+ unsigned IOCTL_EVIOCSKEYCODE_V2 = IOCTL_NOT_PRESENT; |
104 |
+ #endif |
105 |
+- unsigned IOCTL_FS_IOC_GETFLAGS = FS_IOC_GETFLAGS; |
106 |
+- unsigned IOCTL_FS_IOC_GETVERSION = FS_IOC_GETVERSION; |
107 |
+- unsigned IOCTL_FS_IOC_SETFLAGS = FS_IOC_SETFLAGS; |
108 |
+- unsigned IOCTL_FS_IOC_SETVERSION = FS_IOC_SETVERSION; |
109 |
++ unsigned IOCTL_FS_IOC_GETFLAGS = _IOR('f', 1, long); |
110 |
++ unsigned IOCTL_FS_IOC_GETVERSION = _IOR('v', 1, long); |
111 |
++ unsigned IOCTL_FS_IOC_SETFLAGS = _IOW('f', 2, long); |
112 |
++ unsigned IOCTL_FS_IOC_SETVERSION = _IOW('v', 2, long); |
113 |
+ unsigned IOCTL_GIO_CMAP = GIO_CMAP; |
114 |
+ unsigned IOCTL_GIO_FONT = GIO_FONT; |
115 |
+ unsigned IOCTL_GIO_UNIMAP = GIO_UNIMAP; |
116 |
+ |
117 |
+From 8c3238510ce63c75024c0288eade5c933f6d322e Mon Sep 17 00:00:00 2001 |
118 |
+From: Ian Lance Taylor <iant@××××××.org> |
119 |
+Date: Tue, 12 Jul 2022 19:42:43 -0700 |
120 |
+Subject: [PATCH] libgo: don't include <linux/fs.h> when building |
121 |
+ gen-sysinfo.go |
122 |
+ |
123 |
+Removing this doesn't change anything at least with glibc 2.33. |
124 |
+The include was added in https://go.dev/cl/6100049 but it's not |
125 |
+clear why. |
126 |
+ |
127 |
+Fixes PR go/106266 |
128 |
+ |
129 |
+Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/417294 |
130 |
+(cherry picked from commit f35d65517a59565758107c5b1a51a5fa382f8d1a) |
131 |
+--- a/libgo/sysinfo.c |
132 |
++++ b/libgo/sysinfo.c |
133 |
+@@ -150,9 +150,6 @@ |
134 |
+ #if defined(HAVE_LINUX_ETHER_H) |
135 |
+ #include <linux/ether.h> |
136 |
+ #endif |
137 |
+-#if defined(HAVE_LINUX_FS_H) |
138 |
+-#include <linux/fs.h> |
139 |
+-#endif |
140 |
+ #if defined(HAVE_LINUX_REBOOT_H) |
141 |
+ #include <linux/reboot.h> |
142 |
+ #endif |
143 |
|
144 |
diff --git a/10.3.0/gentoo/README.history b/10.3.0/gentoo/README.history |
145 |
index 4487403..6420b44 100644 |
146 |
--- a/10.3.0/gentoo/README.history |
147 |
+++ b/10.3.0/gentoo/README.history |
148 |
@@ -1,3 +1,7 @@ |
149 |
+4 17 Sep 2022 |
150 |
+ + 36_all_msgfmt-libstdc++-link.patch |
151 |
+ + 37_all_glibc_236.patch |
152 |
+ |
153 |
3 05 July 2021 |
154 |
+ 35_all_remove-cyclades.patch |