sys-libs/glibc: 2.19: remove pipe2 symbol from libc.so.
authorBenda Xu <heroxbd@gentoo.org>
Sun, 22 Dec 2019 09:35:40 +0000 (17:35 +0800)
committerBenda Xu <heroxbd@gentoo.org>
Sun, 22 Dec 2019 13:56:37 +0000 (21:56 +0800)
Package-Manager: Portage-2.3.79, Repoman-2.3.18
Signed-off-by: Benda Xu <heroxbd@gentoo.org>
sys-libs/glibc/files/2.19/glibc-2.19-kernel-2.6.16-hide-pipe2.patch [new file with mode: 0644]
sys-libs/glibc/glibc-2.19-r2.ebuild

diff --git a/sys-libs/glibc/files/2.19/glibc-2.19-kernel-2.6.16-hide-pipe2.patch b/sys-libs/glibc/files/2.19/glibc-2.19-kernel-2.6.16-hide-pipe2.patch
new file mode 100644 (file)
index 0000000..2b9ccce
--- /dev/null
@@ -0,0 +1,16 @@
+Remove the pipe2 symbol from libc.so, otherwise meson will pick it up.
+
+This is a balance.  We decide not to strip all the O_CLOEXEC, otherwise
+gtk+ will need to be patched.
+Index: glibc-2.19/sysdeps/unix/make-syscalls.sh
+===================================================================
+--- glibc-2.19.orig/sysdeps/unix/make-syscalls.sh
++++ glibc-2.19/sysdeps/unix/make-syscalls.sh
+@@ -131,6 +131,7 @@ emit_weak_aliases()
+       echo "   echo 'libc_hidden_def ($name)'; \\"
+       ;;
+       *)
++      [ $name = pipe2 ] && continue
+       echo "   echo 'weak_alias ($strong, $name)'; \\"
+       echo "   echo 'libc_hidden_weak ($name)'; \\"
+       ;;
index 2ba5fba1eef8afb9bb21fb6b70c35ec10cf60725..b30a924271ce562bda3dcfceff9be14af8914c1d 100644 (file)
@@ -717,6 +717,7 @@ src_prepare() {
        gnuconfig_update
 
        eapply "${FILESDIR}"/2.19/glibc-2.19-kernel-2.6.16-compat.patch
+       eapply "${FILESDIR}"/2.19/glibc-2.19-kernel-2.6.16-hide-pipe2.patch
 
        cd "${WORKDIR}"
        find . -name configure -exec touch {} +