I was doing a cross-compile and emerging a new system from ground up and encountered a sandbox violation while trying to install fonts. The full toolchain was freshly setup via crossdev. The errors were all similar to this one: ACCESS DENIED unlink: /var/cache/fontconfig/ad0a95bb9246fa81341cd13082dd22b6-x86-64.cache-2 --------------------------- ACCESS VIOLATION SUMMARY --------------------------- LOG FILE = "/var/log/sandbox/sandbox-13176.log" unlink: /var/cache/fontconfig/ad0a95bb9246fa81341cd13082dd22b6-x86-64.cache-2 -------------------------------------------------------------------------------- the fonts affected were those: media-fonts/liberation-fonts-1.04 for /usr/armv4tl-softfloat-linux-gnueabi/ media-fonts/arkpandora-2.04 for /usr/armv4tl-softfloat-linux-gnueabi/ media-fonts/corefonts-1-r4 for /usr/armv4tl-softfloat-linux-gnueabi/ media-fonts/ttf-bitstream-vera-1.10-r3 for /usr/armv4tl-softfloat-linux-gnueabi/ and here is my emerge --info: # emerge-armv4tl-softfloat-linux-gnueabi --info Portage 2.2_rc26 (!/usr/portage/local/layman/openmoko/trunk/openmoko-target/profiles/openmoko, gcc-4.1.2, glibc-2.8_p20080602-r1, 2.6.28-tuxonice-r4 x86_64) ================================================================= System uname: Linux-2.6.28-tuxonice-r4-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T5450_@_1.66GHz-with-glibc2.2.5 Timestamp of tree: Thu, 19 Mar 2009 03:15:03 +0000 distcc 3.1 x86_64-pc-linux-gnu [disabled] ccache version 2.4 [enabled] app-shells/bash: 3.2_p39 dev-java/java-config: 1.3.7-r1, 2.1.7 dev-lang/python: 2.5.2-r8 dev-util/ccache: 2.4-r7 dev-util/cmake: 2.6.2-r1 sys-apps/baselayout: 2.0.0 sys-apps/openrc: 0.4.3-r1 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.13, 2.63 sys-devel/automake: 1.4_p6, 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2 sys-devel/binutils: 2.18-r3 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 2.2.6a virtual/os-headers: 2.6.27-r2 ACCEPT_KEYWORDS="arm" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-Os -pipe -march=armv4t -mtune=arm920t -fomit-frame-pointer -I/usr/armv4tl-softfloat-linux-gnueabi/usr/include/ -I/usr/armv4tl-softfloat-linux-gnueabi/include/" CHOST="armv4tl-softfloat-linux-gnueabi" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/lib/hsqldb" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d" CXXFLAGS="-Os -pipe -march=armv4t -mtune=arm920t -fomit-frame-pointer -I/usr/armv4tl-softfloat-linux-gnueabi/usr/include/ -I/usr/armv4tl-softfloat-linux-gnueabi/include/" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="--jobs=5 --load-average=2.5" FEATURES="buildpkg ccache distlocks fixpackages nodoc noinfo noman parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" INSTALL_MASK="HACKING.gz TODO.gz *.keep*" LANG="de_DE.UTF-8" LDFLAGS="-L/usr/armv4tl-softfloat-linux-gnueabi/lib -L/usr/armv4tl-softfloat-linux-gnueabi/usr/lib" LINGUAS="en" MAKEOPTS="-j6 --load-average=2.5" PKGDIR="/usr/armv4tl-softfloat-linux-gnueabi/packages/" PORTAGE_CONFIGROOT="/usr/armv4tl-softfloat-linux-gnueabi/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/usr/armv4tl-softfloat-linux-gnueabi/tmp/" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/portage/local/layman/openmoko/trunk/openmoko-target /usr/portage/local/layman/sunrise /usr/armv4tl-softfloat-linux-gnueabi/usr/portage/local/mine" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X alsa apm arm cracklib dbus directfb dri eet fbcon fontconfig gif gsm gstreamer jpeg kdrive make-symlinks minimal mng multicall nptl opengl pcf pda png sdl threads threadsafe tiff truetype tslib xrandr zlib" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse tslib" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" USERLAND="GNU" VIDEO_CARDS="fbdev glamo dummy" Unset: CPPFLAGS, CTARGET, FFLAGS, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Pardon, forgot to mention i circumvented it by installing fontconfig - and so I'd recommend making fontconfig a part of DEPEND. with kind regards, tomboy64
That's odd. Font packages depend on font.eclass which DEPENDs on media-libs/fontconfig when USE=X, which you already have set globally. I assume for now that the eclass is broken.
Thank you for report. Actually I'm not sure what's broken here. font.eclass already has fontconfig in DEPEND: DEPEND="X? ( x11-apps/mkfontdir media-fonts/encodings ) media-libs/fontconfig" So I don't know why it was not installed. I suppose this is something embedded related. @embedded: does there exist any know issue with crossdev-emerge that it does not respect eclass DEPEND's?
(In reply to comment #3) > @embedded: does there exist any know issue with crossdev-emerge that it does > not respect eclass DEPEND's? If using ROOT= somedir and emerge -pvq pkg ; it will try to put the depends on / first. If the dep is on / and coming from an eclass then portage might not see the need to install it in $ROOT. Bug #222895 touches on the topic a little. And the labels idea aims to solve some of it. But I'm not sure it's the right solution for us however.
Thank you solar. So basically the problem here is that portage currently has no way to define cross-compile dependencies correctly. This is build-time dependency which is required at ROOT and not on /. Fonts can nothing to do here. Reassigning. I'm not sure if this is dup of bug 201499 (since lables were introduce there) or not...
*** This bug has been marked as a duplicate of bug 317337 ***