Gentoo Archives: gentoo-commits

From: Conrad Kostecki <conikost@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-libs/glibc/files/
Date: Wed, 09 Feb 2022 23:06:13
Message-Id: 1644447812.2f3d1c9c87f749e9a0081d3390934cb59fe98217.conikost@gentoo
1 commit: 2f3d1c9c87f749e9a0081d3390934cb59fe98217
2 Author: Michael Mair-Keimberger <mmk <AT> levelnine <DOT> at>
3 AuthorDate: Thu Jan 13 20:10:48 2022 +0000
4 Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
5 CommitDate: Wed Feb 9 23:03:32 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2f3d1c9c
7
8 sys-libs/glibc: remove unused patch
9
10 Closes: https://github.com/gentoo/gentoo/pull/23780
11 Package-Manager: Portage-3.0.30, Repoman-3.0.3
12 Signed-off-by: Michael Mair-Keimberger <mmk <AT> levelnine.at>
13 Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org>
14
15 .../glibc-2.34-make-clone3-syscall-optional.patch | 48 ----------------------
16 1 file changed, 48 deletions(-)
17
18 diff --git a/sys-libs/glibc/files/glibc-2.34-make-clone3-syscall-optional.patch b/sys-libs/glibc/files/glibc-2.34-make-clone3-syscall-optional.patch
19 deleted file mode 100644
20 index bbc6cabb463d..000000000000
21 --- a/sys-libs/glibc/files/glibc-2.34-make-clone3-syscall-optional.patch
22 +++ /dev/null
23 @@ -1,48 +0,0 @@
24 -From 22afb7abbfa0e2d4d168dcd2844aa9935a71cb37 Mon Sep 17 00:00:00 2001
25 -From: Sam James <sam@g.o>
26 -Date: Wed, 1 Dec 2021 14:58:40 +0000
27 -Subject: [PATCH] clone-internal.c: disable use of clone3 conditinally
28 -
29 -We're disabling clone3 for now _CONDITIONALLY_ (not by default) to allow
30 -compatibility with applications using older Electron.
31 -
32 -Use -DGENTOO_USE_CLONE3 to enable clone3 for now. In future, we will
33 -revert back to always using clone3.
34 -
35 -This was impacting e.g. Discord and Skype. This patch stops glibc from using
36 -clone3 internally (which is the only real use of it) and falls back to the old
37 -behaviour.
38 -
39 -Specifically, we want https://github.com/electron/electron/pull/31091
40 -to work its way downstream to various Electron applications.
41 -
42 -https://bugs.gentoo.org/819045
43 -https://bugs.gentoo.org/827386
44 -
45 -https://git.launchpad.net/~ubuntu-core-dev/ubuntu/+source/glibc/plain/debian/patches/ubuntu/disable-clone3.patch
46 -
47 -This is the same as the patch that was considered but ultimately rejected
48 -for 2.34 because Docker got sorted out in time:
49 -https://patchwork.ozlabs.org/project/glibc/patch/87eebkf8ph.fsf@××××××××××××××××××××.com/.
50 -
51 -Signed-off-by: Sam James <sam@g.o>
52 ----
53 - sysdeps/unix/sysv/linux/clone-internal.c | 2 +-
54 - 1 file changed, 1 insertion(+), 1 deletion(-)
55 -
56 -diff --git a/sysdeps/unix/sysv/linux/clone-internal.c b/sysdeps/unix/sysv/linux/clone-internal.c
57 -index 979f7880be..c5566daf73 100644
58 ---- a/sysdeps/unix/sysv/linux/clone-internal.c
59 -+++ b/sysdeps/unix/sysv/linux/clone-internal.c
60 -@@ -48,7 +48,7 @@ __clone_internal (struct clone_args *cl_args,
61 - int (*func) (void *arg), void *arg)
62 - {
63 - int ret;
64 --#ifdef HAVE_CLONE3_WRAPPER
65 -+#if defined(HAVE_CLONE3_WRAPPER) && defined(GENTOO_USE_CLONE3)
66 - /* Try clone3 first. */
67 - int saved_errno = errno;
68 - ret = __clone3 (cl_args, sizeof (*cl_args), func, arg);
69 ---
70 -2.34.1
71 -