| Summary: | eclass/font.eclass - broken fontconfig cache generation with custom ROOT | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Łukasz Mierzwa <l.mierzwa> |
| Component: | Eclasses | Assignee: | Gentoo Fonts Team <fonts> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | ||
| Priority: | High | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
Łukasz, please, try the following modification and tell us if it works for you:
- HOME="/root" fc-cache -f "${D}${FONTDIR}"
+ fc-cache -sf "${D}${FONTDIR}"
above fix works for me as expected Thank you Łukasz. Fixed. |
When emerging fonts to custom ROOT I got sandbox issues, this is caused by missing ${D} in font.eclass. Patch below will fix this: --- font.eclass.org 2008-11-21 13:27:45.000000000 +0000 +++ font.eclass 2008-11-21 13:24:59.000000000 +0000 @@ -81,7 +81,7 @@ # create fontconfig cache einfo "Creating fontconfig cache ..." # Mac OS X has fc-cache at /usr/X11R6/bin - HOME="/root" fc-cache -f "${D}${FONTDIR}" + HOME="${D}/root" fc-cache -f "${D}${FONTDIR}" fi } Reproducible: Always Steps to Reproduce: 1. ROOT=$SOMEDIR emerge media-fonts/ttf-bitstream-vera 2. 3.