summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenda Xu <heroxbd@gentoo.org>2019-12-22 17:35:40 +0800
committerBenda Xu <heroxbd@gentoo.org>2019-12-22 21:56:37 +0800
commit0b8021731a66814473118c2cff1bb7dcf38ad5d4 (patch)
tree3d2c0249ac22ec4d1e6cab978ef58ec3ce01a02c /sys-libs
parentnet-im/skypeforlinux: Stable for amd64 (diff)
downloadgentoo-0b8021731a66814473118c2cff1bb7dcf38ad5d4.tar.gz
gentoo-0b8021731a66814473118c2cff1bb7dcf38ad5d4.tar.bz2
gentoo-0b8021731a66814473118c2cff1bb7dcf38ad5d4.zip
sys-libs/glibc: 2.19: remove pipe2 symbol from libc.so.
Package-Manager: Portage-2.3.79, Repoman-2.3.18 Signed-off-by: Benda Xu <heroxbd@gentoo.org>
Diffstat (limited to 'sys-libs')
-rw-r--r--sys-libs/glibc/files/2.19/glibc-2.19-kernel-2.6.16-hide-pipe2.patch16
-rw-r--r--sys-libs/glibc/glibc-2.19-r2.ebuild1
2 files changed, 17 insertions, 0 deletions
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
index 000000000000..2b9ccceced22
--- /dev/null
+++ b/sys-libs/glibc/files/2.19/glibc-2.19-kernel-2.6.16-hide-pipe2.patch
@@ -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)'; \\"
+ ;;
diff --git a/sys-libs/glibc/glibc-2.19-r2.ebuild b/sys-libs/glibc/glibc-2.19-r2.ebuild
index 2ba5fba1eef8..b30a924271ce 100644
--- a/sys-libs/glibc/glibc-2.19-r2.ebuild
+++ b/sys-libs/glibc/glibc-2.19-r2.ebuild
@@ -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 {} +