Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 278476 - all type1 fonts and font-bh-ttf fail if trying to build inside a sandbox
Summary: all type1 fonts and font-bh-ttf fail if trying to build inside a sandbox
Status: RESOLVED DUPLICATE of bug 278221
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-20 14:42 UTC by Radu Benea
Modified: 2009-07-23 05:13 UTC (History)
1 user (show)

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 Radu Benea 2009-07-20 14:42:19 UTC
all type1 fonts and the truetype font font-bh-ttf fail because of privilege problems and need to be built using FEATURES="-sandbox -usersandbox" to work
xorg-x11 fails to build because of this.

excerpt from one of the build logs
make  install-data-hook
make[2]: Entering directory `/var/tmp/portage/media-fonts/font-bh-type1-1.0.0/work/font-bh-type1-1.0.0'
/usr/bin/mkfontscale /var/tmp/portage/media-fonts/font-bh-type1-1.0.0/image/"/usr/share/fonts/Type1"
/usr/bin/mkfontdir /var/tmp/portage/media-fonts/font-bh-type1-1.0.0/image/"/usr/share/fonts/Type1"
/usr/bin/fc-cache /var/tmp/portage/media-fonts/font-bh-type1-1.0.0/image/"/usr/share/fonts/Type1"
ACCESS DENIED  chmod:        /var/cache/fontconfig
make[2]: Leaving directory `/var/tmp/portage/media-fonts/font-bh-type1-1.0.0/work/font-bh-type1-1.0.0'
make[1]: Leaving directory `/var/tmp/portage/media-fonts/font-bh-type1-1.0.0/work/font-bh-type1-1.0.0'
>>> Completed installing font-bh-type1-1.0.0 into /var/tmp/portage/media-fonts/font-bh-type1-1.0.0/image/

--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE "/var/log/sandbox/sandbox-26321.log"

VERSION 1.0
FORMAT: F - Function called
FORMAT: S - Access Status
FORMAT: P - Path as passed to function
FORMAT: A - Absolute Path (not canonical)
FORMAT: R - Canonical Path
FORMAT: C - Command Line

F: chmod
S: deny
P: /var/cache/fontconfig
A: /var/cache/fontconfig
R: /var/cache/fontconfig
C: /usr/bin/fc-cache /var/tmp/portage/media-fonts/font-bh-type1-1.0.0/image//usr/share/fonts/Type1
--------------------------------------------------------------------------------
 *
 * The following package has failed to build or install:
 *
 *      ('ebuild', '/', 'media-fonts/font-bh-type1-1.0.0', 'merge')
 *


Reproducible: Always




let me know if you need anything more, I'll be happy to provide any necessary details
Comment 1 Wormo (RETIRED) gentoo-dev 2009-07-23 05:13:24 UTC
Thanks for the report  -- looks like this is actually the same issue as bug 278221. The eclass patch should be committed to the tree soon, but if you want to try it out before then... make sure to apply the diff after doing 'emerge --sync' 

*** This bug has been marked as a duplicate of bug 278221 ***