Albeit I feel this is more of a last-rites candidate, misbehaves
without working /dev/dsp (OSS), and forever stuck on gtk2 (debian
did the gtk1->gtk2 migration, but has now dropped the package).
Closes: https://bugs.gentoo.org/874693
Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
Noticed on ChromeOS when installing a large number of font packages in
parallel:
/usr/share/fonts/noto/NotoSerifThai-Regular.ttf#new' from 0004 (------r--) to 2440 (r--r-S---)
* ERROR: media-fonts/ipaex-004.01-r1::chromiumos failed (postinst phase):
* failed to fix font files perms
The "#new" filename is the hint. Portage uses "#new" suffixes when
copying files to the system, and then renames them to their final
filenames.
This code was executing while another font was in the process of being
copied to the system. Font packages should just ensure that they install
files with correct permissions to begin with, and all except
media-fonts/x11fonts-jmk already use 0644 permissions.
media-fonts/x11fonts-jmk used 0444 (which was probably fine) until the
previous commit which changes its installed files to 0644.
Bug: https://bugs.gentoo.org/187774
Signed-off-by: Matt Turner <mattst88@gentoo.org>
font.eclass has some racy code in pkg_postinst() that changes
permissions of already-installed files. I want to remove that to avoid
the race. This is the only package that installs fonts with permissions
other than 0644, so override that in src_install().
The claim in font.eclass is that fontconfig segfaults if fonts are
unreadable, but that claim dates to 2007 (bug #187774). Additionally,
0444 is readable, but who knows. Let's just keep things working how they
have been since 2007.
Bug: https://bugs.gentoo.org/187774
Signed-off-by: Matt Turner <mattst88@gentoo.org>
Clang 16.x will make -Wimplicit-int, -Wimplicit-function-declaration, and
-Wincompatible-function-pointer-type error by default.
Clang 15.x+ also warns on -Wdeprecated-non-prototype but it's not becoming
fatal yet. It'll be an error when the defaults in compilers change to C23.
There's a LOT of breakage with -Werror=deprecated-non-prototype, and we do
care about it, but the first batch of errors mentioned above are more
important for the time being. We need to be able to triage and prioritise
the bugs.
So:
* Clang 15 USE=stricter: only -Wimplict-int -Wimplicit-function-declaration
and -Wincompatible-function-pointer-type are errors.
* Clang 16 USE=stricter: upstream defaults (which include ^ as we're
doing for clang 15) + -Wdeprecated-non-prototype as an error, because presumably
if you set USE=stricter on *16*, you want something harsher than already
will ship upstream.
This more accurately lets developers in Gentoo set USE=stricter on clang-common
for 15.x and get Clang 16.x behaviour rather than scaring the life out of them.
Thanks to Ionen for talking this out with me.
Bug: https://bugs.gentoo.org/876985
See: 930fe2268c
Signed-off-by: Sam James <sam@gentoo.org>