moldy tries to compile some docs with TeX; these docs use fonts that cause generation of tfm and pk files in /var/cache/fonts. That of course fails when sandbox is used.
Works for me. app-text/tetex-1.0.7-r12 emerge info: Portage 2.0.47-r10 (default-x86-1.4, gcc-3.2.2, glibc-2.3.1-r4) ================================================================= System uname: 2.4.20-xfs_pre6 i686 Intel(R) Celeron(R) CPU 1.80GHz [ ... ] COMPILER="gcc3" CHOST="i686-pc-linux-gnu" CFLAGS="-march=i686 -mcpu=pentium3 -O3 -pipe" CXXFLAGS="-march=i686 -mcpu=pentium3 -O3 -pipe" ACCEPT_KEYWORDS="x86" MAKEOPTS="-j2" AUTOCLEAN="yes" SYNC="rsync://rsync.uk.gentoo.org/gentoo-portage" FEATURES="ccache sandbox"
try it w/o any fonts already in /var/cache/fonts, with tetex-2.0.2.
When trying to merge moldy i got a sandbox violation (quoted below). To get it installed i added a line 'addwrite /var/cache/fonts' to ebuild.sh. Now the merge went good. Then i removed the addwrite line and remerged moldy. This time it also went good since the required font was now in cache. The error isn't really moldys fault ( as far as i can tell ), but that tex and portage doesn't mix in it's current configuration. It appears as if any use of any font not already present in the cache will provoke a sandbox violation. --------------------------- ACCESS VIOLATION SUMMARY --------------------------- LOG FILE = "/tmp/sandbox-moldy-2.16e-31819.log" rename: /var/cache/fonts/tfm/jknappen/tc/tfm474.tmp open_wr: /var/cache/fonts/tfm/jknappen/tc/tfm474.tmp open_wr: /var/cache/fonts/source/jknappen/tc/mf647.tmp unlink: /var/cache/fonts/source/jknappen/tc/tctt0800.mf open_wr: /var/cache/fonts/source/jknappen/tc/mf822.tmp unlink: /var/cache/fonts/source/jknappen/tc/tctt1000.mf --------------------------------------------------------------------------------
Donnie, I don't want to mess with your ebuild, but I think this addwrite line is just fine.
I don't find it optimal that we need to add to the sandbox, but it seems we can't change the way TeX works. Patrick, go ahead and mess all you want as long as you don't break it. =)
Already on sci alias, pulling CC.
Version with addwrite line is in portage.