Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 247968 - eclass/font.eclass - broken fontconfig cache generation with custom ROOT
Summary: eclass/font.eclass - broken fontconfig cache generation with custom ROOT
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Fonts Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-21 13:32 UTC by Łukasz Mierzwa
Modified: 2009-01-01 09:36 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Łukasz Mierzwa 2008-11-21 13:32:26 UTC
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.
Comment 1 Peter Volkov (RETIRED) gentoo-dev 2008-12-16 00:11:07 UTC
Ł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}"
Comment 2 Łukasz Mierzwa 2008-12-26 13:05:48 UTC
above fix works for me as expected
Comment 3 Peter Volkov (RETIRED) gentoo-dev 2009-01-01 09:36:50 UTC
Thank you Łukasz. Fixed.