Summary: | font permissions problem causes firefox to segfault | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Daniel Frey <djqfrey> |
Component: | Current packages | Assignee: | Gentoo Fonts Team <fonts> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | sam, usefuljunk |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | x86 | ||
OS: | Linux | ||
See Also: | https://bugs.gentoo.org/show_bug.cgi?id=878897 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Daniel Frey
2007-08-05 02:54:07 UTC
I did forget to mention that running: $ chmod -R 644 /usr/share/fonts/* $ fc-cache -fv fixes it. Not a fonts bug. And not a Gentoo-specific bug at all, for that matter. Please report such things upstream - https://bugzilla.mozilla.org/enter_bug.cgi?product=Firefox&format=guided jakub, please leave bugs alone after they've been assigned. *** Bug 187634 has been marked as a duplicate of this bug. *** this might actually be the cause of several bugs we have open. i'll look into adding some checks to be sure all the fonts we install have the correct permissions. i'm not sure what we can do about user-installed fonts though. maybe i can make a case to fontconfig upstream to filter out fonts that aren't world readable. Please do so. As I said in my other bug, I never did install any fonts manually - the error crept in elsewhere. I only wish at the time I had a way to figure out quickly which fonts were unreadable - too late now. In a thread on the forums someone had this issue and konqueror was also affected; in that case media-fonts/arphicfonts is one of the packages that had incorrect permissions. There could be more than one package at fault though. m.nawaz: did you have arphicfonts installed? I don't, maybe I'll try emerging them right now. OK, I tried media-fonts/arphicfonts-0.1.20060928 and the permissions are OK. font.eclass now forces 0644 on all installed font files. thanks. The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e4a9c7da92382416ba4a25b2bc04a47820f116c1 commit e4a9c7da92382416ba4a25b2bc04a47820f116c1 Author: Matt Turner <mattst88@gentoo.org> AuthorDate: 2022-11-08 01:01:54 +0000 Commit: Matt Turner <mattst88@gentoo.org> CommitDate: 2022-11-08 23:48:51 +0000 font.eclass: Remove racy pkg_postinst code 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> eclass/font.eclass | 6 ------ 1 file changed, 6 deletions(-) https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4fe5fff7e18111b0eb547177c52016744f2f0011 commit 4fe5fff7e18111b0eb547177c52016744f2f0011 Author: Matt Turner <mattst88@gentoo.org> AuthorDate: 2022-11-08 00:57:01 +0000 Commit: Matt Turner <mattst88@gentoo.org> CommitDate: 2022-11-08 23:48:51 +0000 media-fonts/x11fonts-jmk: Install files with 0644 permissions 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> media-fonts/x11fonts-jmk/x11fonts-jmk-3.0-r4.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) |