Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: profiles/base/
Date: Mon, 24 Jan 2022 14:38:28
Message-Id: 1643035010.ff567fa404228cb9a302b379e88f553497ea38d6.sam@gentoo
1 commit: ff567fa404228cb9a302b379e88f553497ea38d6
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jan 24 14:36:50 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Mon Jan 24 14:36:50 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ff567fa4
7
8 profiles/base: mask sys-libs/glibc[custom-cflags]
9
10 It's far too dangerous and leads to both build-time failures
11 for glibc itself and runtime crashes for other programs depending
12 on the flags used.
13
14 Mask it so people have to actually unmask it in order to footgun
15 themselves.
16
17 (USE=custom-cflags in make.conf may or may not be advisible
18 (rather than setting it per-package in package.use), but it's
19 generally not going to be as dangerous for most/all packages
20 as it is for glibc, so it makes sense to make it harder to
21 do it for just glibc.)
22
23 Signed-off-by: Sam James <sam <AT> gentoo.org>
24
25 profiles/base/package.use.mask | 7 +++++++
26 1 file changed, 7 insertions(+)
27
28 diff --git a/profiles/base/package.use.mask b/profiles/base/package.use.mask
29 index 8bb3a942ab06..67d7c4ca7ca1 100644
30 --- a/profiles/base/package.use.mask
31 +++ b/profiles/base/package.use.mask
32 @@ -6,6 +6,13 @@
33 # This file is only for generic masks. For arch-specific masks (i.e.
34 # mask everywhere, unmask on arch/*) use arch/base.
35
36 +# Sam James <sam@g.o> (2021-01-24)
37 +# USE=custom-cflags is _particularly_ dangerous on sys-libs/glibc and
38 +# can result in not just build-time failures for glibc itself, but
39 +# runtime crashes. The effect of using USE=custom-cflags globally in make.conf
40 +# isn't the same as it is for just glibc specifically.
41 +sys-libs/glibc custom-cflags
42 +
43 # Sam James <sam@g.o> (2022-01-23)
44 # Java bindings are broken with OpenJDK 11+ and we're not
45 # aware of any consumers. bug #713866