Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 555936 - sci-physics/cernlib-montecarlo-2006-r3: sandbox violation: at call: mkdir ././var/cache/fonts/tfm
Summary: sci-physics/cernlib-montecarlo-2006-r3: sandbox violation: at call: mkdir ./....
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Science Physics related packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-26 09:23 UTC by Toralf Förster
Modified: 2015-08-02 22:14 UTC (History)
3 users (show)

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


Attachments
sandbox log (sandbox-919.log,326 bytes, text/plain)
2015-07-26 09:23 UTC, Toralf Förster
Details
emerge log (sci-physics-cernlib-montecarlo-2006-r3-20150726-052257.log,380.96 KB, text/plain)
2015-07-26 09:23 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2015-07-26 09:23:07 UTC
Created attachment 407640 [details]
sandbox log

! Font OT1/cmr/m/n/12=cmr12 at 12.0pt not loadable: Metric (TFM) file not found
.
<to be read again> 
                   relax 
l.69 \normalsize
                
? 
! Emergency stop.
<to be read again> 
                   relax 
l.69 \normalsize
                
No pages of output.
Transcript written on isajet.log.
Makefile:41: recipe for target 'cernlib-mc-docs' failed
make[1]: *** [cernlib-mc-docs] Error 1
make[1]: Leaving directory '/var/tmp/portage/sci-physics/cernlib-montecarlo-2006-r3/work/mclibs-20061220+dfsg3.orig'
//usr/share/cernlib/cernlib.mk:63: recipe for target 'stampdir/cernlib-arch-stamp' failed
make: *** [stampdir/cernlib-arch-stamp] Error 2
 * ERROR: sci-physics/cernlib-montecarlo-2006-r3::gentoo failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=sci-physics/cernlib-montecarlo-2006-r3::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=sci-physics/cernlib-montecarlo-2006-r3::gentoo'`.
 * The complete build log is located at '/var/log/portage/sci-physics:cernlib-montecarlo-2006-r3:20150726-052257.log'.
 * For convenience, a symlink to the build log is located at '/var/tmp/portage/sci-physics/cernlib-montecarlo-2006-r3/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sci-physics/cernlib-montecarlo-2006-r3/temp/environment'.
 * Working directory: '/var/tmp/portage/sci-physics/cernlib-montecarlo-2006-r3/work/mclibs-20061220+dfsg3.orig'
 * S: '/var/tmp/portage/sci-physics/cernlib-montecarlo-2006-r3/work/mclibs-20061220+dfsg3.orig'
 (null)*(null) --------------------------- ACCESS VIOLATION SUMMARY ---------------------------
 (null)*(null) LOG FILE: "/var/log/sandbox/sandbox-919.log"
 (null)*(null) 
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: mkdir
S: deny
P: ././var/cache/fonts/tfm
A: /var/cache/fonts/tfm
R: /var/cache/fonts/tfm
C: mkdir ././var/cache/fonts/tfm 
 (null)*(null) --------------------------------------------------------------------------------

  -----------------------------------------------------------------

  This is an unstable amd64 chroot image (named amd64-gnome-unstable_20150719-194535) at a hardened host acting as a tinderbox.

Portage 2.2.20 (python 2.7.10-final-0, default/linux/amd64/13.0/desktop/gnome, gcc-4.9.3, glibc-2.21-r1, 4.0.8-hardened x86_64)
=================================================================
System uname: Linux-4.0.8-hardened-x86_64-Intel-R-_Core-TM-_i7-3770_CPU_@_3.40GHz-with-gentoo-2.2
KiB Mem:    16164692 total,    973644 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Sun, 26 Jul 2015 01:45:01 +0000
sh bash 4.3_p39
ld GNU ld (Gentoo 2.25 p1.2) 2.25
ccache version 3.2.2 [disabled]
app-shells/bash:          4.3_p39::gentoo
dev-java/java-config:     2.2.0::gentoo
dev-lang/perl:            5.22.0::gentoo
dev-lang/python:          2.7.10::gentoo, 3.3.5-r1::gentoo, 3.4.3::gentoo
dev-util/ccache:          3.2.2::gentoo
dev-util/cmake:           3.2.3::gentoo
dev-util/pkgconfig:       0.28-r3::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.17::gentoo
sys-apps/sandbox:         2.6-r1::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r1::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.12.6::gentoo, 1.13.4::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25-r1::gentoo
sys-devel/gcc:            4.8.4::gentoo, 4.9.3::gentoo
sys-devel/gcc-config:     1.8::gentoo
sys-devel/libtool:        2.4.6-r1::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.1::gentoo (virtual/os-headers)
sys-libs/glibc:           2.21-r1::gentoo
Repositories:

local
    location: /usr/local/portage
    masters: gentoo

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: 9999

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/stunnel/stunnel.conf /usr/share/config /usr/share/easy-rsa /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0 /var/lib/hsqldb /var/lib/redmine/config /var/spool/torque"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /var/lib/redmine/config/locales /var/lib/redmine/config/settings.yml"
CXXFLAGS="-O2 -pipe"
DISTDIR="/var/tmp/distfiles"
EMERGE_DEFAULT_OPTS="--nospinner --tree --quiet-build --accept-properties=-interactive --accept-restrict=-fetch --accept-restrict=-cdinstall"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync network-sandbox news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://ftp.uni-erlangen.de/pub/mirrors/gentoo rsync://mirror.netcologne.de/gentoo/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gor.bytemark.co.uk/gentoo/ rsync://ftp.snt.utwente.nl/gentoo"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac acl acpi aes-ni alsa amd64 apache2 avx avx2 berkdb bluetooth branding btrfs bzip2 cairo cdda cdr cgi cli colord consolekit corefonts cracklib crypt cups curl cxx dbus designer dnssec dot dri drmkms dts dvd dvdr ecc eds emboss encode evo exif extraengine fam firefox flac fortran fpm gdbm gif glamor gnome gnome-keyring gnome-online-accounts gpm gstreamer gtk gudev gui iconv icu inifile introspection ipv6 jadetex jpeg lcms libkms libnotify libsecret logrotate mad mbox minizip mmx mmxext mng modules mp3 mp4 mpeg multilib nautilus ncurses nls nptl ogg opengl openmp pam pango pax_kernel pcre pcre16 pdf plasma policykit postgres ppds pulseaudio qemu qml qt3support qt4 readline sdl session spell spice sqlite sqlite3 sse sse2 sse4 sse4_1 sse4_2 ssl ssse3 startup-notification svg tcl tcpd tiff tracker truetype udev udisks uml unicode upower usb usbredir vorbis wxwidgets x264 xcb xkb xml xslt xv xvfb xvid xvmc zenmap zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104 v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en en_GB" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga nouveau nv r128 radeon savage sis tdfx trident vesa via vmware dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Toralf Förster gentoo-dev 2015-07-26 09:23:22 UTC
Created attachment 407642 [details]
emerge log
Comment 2 Andrew Savchenko gentoo-dev 2015-07-26 23:31:15 UTC
This is strange, I can't reproduce this issue: on a system without /var/cache/fonts/tfm cernlib-montecarlo-2006-r3 emerges fine.

Could you please run
# rm -rf /var/cache/fonts/tfm
# texmf-update
and then emerge the package again?
Comment 3 Toralf Förster gentoo-dev 2015-07-27 12:24:55 UTC
Hhm, did not help :


This is pdfTeX, Version 3.14159265-2.6-1.40.16 (TeX Live 2015) (preloaded format=latex)
 restricted \write18 enabled.
entering extended mode
(./isajet.tex
LaTeX2e <2015/01/01> patch level 2
Babel <3.9l> and hyphenation patterns for 29 languages loaded.
(/usr/share/texmf-dist/tex/latex/base/latex209.def

          Entering LaTeX 2.09 COMPATIBILITY MODE
 *************************************************************
    !!WARNING!!    !!WARNING!!    !!WARNING!!    !!WARNING!!   
 
 This mode attempts to provide an emulation of the LaTeX 2.09
 author environment so that OLD documents can be successfully
 processed. It should NOT be used for NEW documents!
 
 New documents should use Standard LaTeX conventions and start
 with the \documentclass command.
 
 Compatibility mode is UNLIKELY TO WORK with LaTeX 2.09 style
 files that change any internal macros, especially not with
 those that change the FONT SELECTION or OUTPUT ROUTINES.
 
 Therefore such style files MUST BE UPDATED to use
          Current Standard LaTeX: LaTeX2e.
 If you suspect that you may be using such a style file, which
 is probably very, very old by now, then you should attempt to
 get it updated by sending a copy of this error message to the
 author of that file.
 *************************************************************

(/usr/share/texmf-dist/tex/latex/base/tracefnt.sty)
(/usr/share/texmf-dist/tex/latex/base/latexsym.sty))
(/usr/share/texmf-dist/tex/latex/base/article.cls
Document Class: article 2014/09/29 v1.4h Standard LaTeX document class
(/usr/share/texmf-dist/tex/latex/base/size12.clo
kpathsea: Running mktextfm cmr12
mkdir: cannot create directory '././var/cache/fonts/tfm': Permission denied
mktextfm: mktexdir /var/cache/fonts/tfm/public/cm failed.
kpathsea: Appending font creation commands to missfont.log.

! Font OT1/cmr/m/n/12=cmr12 at 12.0pt not loadable: Metric (TFM) file not found
.
<to be read again> 
                   relax 
l.69 \normalsize
                
? 
! Emergency stop.
<to be read again> 
                   relax 
l.69 \normalsize
                
No pages of output.
Transcript written on isajet.log.
Makefile:41: recipe for target 'cernlib-mc-docs' failed
make[1]: *** [cernlib-mc-docs] Error 1
make[1]: Leaving directory '/var/tmp/portage/sci-physics/cernlib-montecarlo-2006-r3/work/mclibs-20061220+dfsg3.orig'
//usr/share/cernlib/cernlib.mk:63: recipe for target 'stampdir/cernlib-arch-stamp' failed
make: *** [stampdir/cernlib-arch-stamp] Error 2
 * ERROR: sci-physics/cernlib-montecarlo-2006-r3::gentoo failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=sci-physics/cernlib-montecarlo-2006-r3::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=sci-physics/cernlib-montecarlo-2006-r3::gentoo'`.
 * The complete build log is located at '/var/log/portage/sci-physics:cernlib-montecarlo-2006-r3:20150727-121539.log'.
 * For convenience, a symlink to the build log is located at '/var/tmp/portage/sci-physics/cernlib-montecarlo-2006-r3/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sci-physics/cernlib-montecarlo-2006-r3/temp/environment'.
 * Working directory: '/var/tmp/portage/sci-physics/cernlib-montecarlo-2006-r3/work/mclibs-20061220+dfsg3.orig'
 * S: '/var/tmp/portage/sci-physics/cernlib-montecarlo-2006-r3/work/mclibs-20061220+dfsg3.orig'
 (null)*(null) --------------------------- ACCESS VIOLATION SUMMARY ---------------------------
 (null)*(null) LOG FILE: "/var/log/sandbox/sandbox-30992.log"
 (null)*(null)
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: mkdir
S: deny
P: ././var/cache/fonts/tfm
A: /var/cache/fonts/tfm
R: /var/cache/fonts/tfm
C: mkdir ././var/cache/fonts/tfm
 (null)*(null) --------------------------------------------------------------------------------
Comment 4 Toralf Förster gentoo-dev 2015-07-28 13:05:00 UTC
Pff - I do see a similar error with different packages at different chroot images - always looking like :



C: mkdir ././var/cache/fonts/tfm 

F: mkdir
S: deny
P: ././var/cache/fonts/tfm
A: /var/cache/fonts/tfm
R: /var/cache/fonts/tfm
C: mkdir ././var/cache/fonts/tfm 

F: mkdir
S: deny
P: ././var/cache/fonts/tfm
A: /var/cache/fonts/tfm
R: /var/cache/fonts/tfm
C: mkdir ././var/cache/fonts/tfm 

F: mkdir
S: deny
P: ././var/cache/fonts/tfm
A: /var/cache/fonts/tfm
R: /var/cache/fonts/tfm
C: mkdir ././var/cache/fonts/tfm 

F: mkdir
S: deny
P: ././var/cache/fonts/tfm
A: /var/cache/fonts/tfm
R: /var/cache/fonts/tfm
C: mkdir ././var/cache/fonts/tfm 

F: mkdir
S: deny
P: ././var/cache/fonts/tfm
A: /var/cache/fonts/tfm
R: /var/cache/fonts/tfm
C: mkdir ././var/cache/fonts/tfm 

F: mkdir
S: deny
P: ././var/cache/fonts/tfm
A: /var/cache/fonts/tfm
R: /var/cache/fonts/tfm
C: mkdir ././var/cache/fonts/tfm 

F: mkdir
S: deny
P: ././var/cache/fonts/tfm
A: /var/cache/fonts/tfm
R: /var/cache/fonts/tfm
C: mkdir ././var/cache/fonts/tfm 

F: mkdir
S: deny
P: ././var/cache/fonts/tfm
A: /var/cache/fonts/tfm
R: /var/cache/fonts/tfm
C: mkdir ././var/cache/fonts/tfm 

F: mkdir
S: deny
P: ././var/cache/fonts/tfm
A: /var/cache/fonts/tfm
R: /var/cache/fonts/tfm
C: mkdir ././var/cache/fonts/tfm 
 (null)*(null) --------------------------------------------------------------------------------

  -----------------------------------------------------------------

  This is an unstable amd64 chroot image (named amd64-desktop-unstable_20150723-224316/) at a hardened host acting as a tinderbox.

Portage 2.2.20 (python 2.7.10-final-0, default/linux/amd64/13.0/desktop, gcc-4.9.3, glibc-2.21-r1, 4.0.8-hardened x86_64)
=================================================================
System uname: Linux-4.0.8-hardened-x86_64-Intel-R-_Core-TM-_i7-3770_CPU_@_3.40GHz-with-gentoo-2.2
KiB Mem:    16164692 total,   1570052 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Tue, 28 Jul 2015 09:45:02 +0000
sh bash 4.3_p39
ld GNU ld (Gentoo 2.25.1 p1.0) 2.25.1
distcc 3.2rc1 x86_64-pc-linux-gnu [disabled]
app-shells/bash:          4.3_p39::gentoo
dev-java/java-config:     2.2.0::gentoo
dev-lang/perl:            5.22.0::gentoo
dev-lang/python:          2.7.10::gentoo, 3.3.5-r1::gentoo, 3.4.3::gentoo
dev-util/cmake:           3.3.0::gentoo
dev-util/pkgconfig:       0.28-r3::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.17::gentoo
sys-apps/sandbox:         2.6-r1::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r1::gentoo
sys-devel/automake:       1.9.6-r4::gentoo, 1.10.3-r1::gentoo, 1.11.6-r1::gentoo, 1.13.4::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25.1::gentoo
sys-devel/gcc:            4.8.4::gentoo, 4.9.3::gentoo
sys-devel/gcc-config:     1.8::gentoo
sys-devel/libtool:        2.4.6-r1::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.1::gentoo (virtual/os-headers)
sys-libs/glibc:           2.21-r1::gentoo
Repositories:

local
    location: /usr/local/portage
    masters: gentoo

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: 9999

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/entropy /usr/share/config /usr/share/gnupg/qualified.txt /var/spool/torque"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe"
DISTDIR="/var/tmp/distfiles"
EMERGE_DEFAULT_OPTS="--nospinner --tree --quiet-build --accept-properties=-interactive --accept-restrict=-fetch --accept-restrict=-cdinstall"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync network-sandbox news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://ftp.uni-erlangen.de/pub/mirrors/gentoo rsync://mirror.netcologne.de/gentoo/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gor.bytemark.co.uk/gentoo/ rsync://ftp.snt.utwente.nl/gentoo"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac acl acpi aes-ni alsa amd64 apache2 avx avx2 berkdb bluetooth branding btrfs bzip2 cairo cdda cdr cgi cli consolekit corefonts cracklib crypt cups cxx dbus designer dnssec dot dri drmkms dts dvdr ecc emboss encode exif extraengine fam ffmpeg firefox flac fortran fpm gdbm gif glamor gpm gtk gui iconv icu imap inifile ipv6 jadetex jpeg lapack lcms libkms libnotify logrotate mad mbox minizip mmx mmxext mng modules mp3 mp4 mpeg multilib mysql ncurses nls nptl ogg opengl openmp pam pango pax_kernel pcre pcre16 pdf plasma png policykit ppds qml qt4 readline sdl session smartcard spell spice sqlite sqlite3 sse sse2 sse4 sse4_1 sse4_2 ssl ssse3 startup-notification svg tcpd theora tiff truetype udev udisks uml unicode upower usb usbredir video vorbis wxwidgets x264 xcb xkb xml xscreensaver xslt xv xvfb xvid xvmc xz zenmap zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse evdev" KER NEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en en_GB" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga nouveau nv r128 radeon savage sis tdfx trident vesa via vmware dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 5 Andrew Savchenko gentoo-dev 2015-07-28 19:54:16 UTC
Something is wrong with LaTeX here (either with tex packages or with the host setup). I'm adding TeX team here and asking for their help.

Toralf, please tell us what version of dev-texlive/texlive-latex is installed on this host. Maybe full output of
$ eix -IC 'dev-tex*'
will be useful too.
Comment 6 Andrew Savchenko gentoo-dev 2015-07-28 19:59:48 UTC
Since this issue happens for multiple package and is not sci-specific, I'm reassigning it to the TeX team. Looks like mktextfm from kpathsea tool is responsible for the immediate issue, so I'm CCing maintainer of this packages as well (of course, problem may be not in mktextfm itself, but in how or when it is being called).
Comment 7 Andrew Savchenko gentoo-dev 2015-07-28 20:08:06 UTC
See also bugs:
https://bugs.gentoo.org/show_bug.cgi?id=445404
https://bugs.gentoo.org/show_bug.cgi?id=448560

But from your emerge --info sandbox-2.6-r1 is already used...
Comment 8 Andrew Savchenko gentoo-dev 2015-07-28 20:13:28 UTC
I can't find any pre-shipped *.tex file in the cernlib-motecarlo after src_prepare() stage (it uses a lot of patching), so solution form https://bugs.gentoo.org/show_bug.cgi?id=448560#c17 can't be applied.
Comment 9 Toralf Förster gentoo-dev 2015-07-28 20:29:34 UTC
(In reply to Andrew Savchenko from comment #5)
> Something is wrong with LaTeX here (either with tex packages or with the
> host setup). I'm adding TeX team here and asking for their help.
> 
> Toralf, please tell us what version of dev-texlive/texlive-latex is
> installed on this host. Maybe full output of
> $ eix -IC 'dev-tex*'
> will be useful too.

tor-relay / # qlist -Iv dev-tex*
dev-tex/aastex-5.2
dev-tex/biblatex-3.0-r1
dev-tex/biblatex-apa-6.6
dev-tex/bibtexu-3.71_p20150521
dev-tex/cpp2latex-2.3-r1
dev-tex/ellipsis-1.6
dev-tex/herm-pic-1.0.2
dev-tex/hyphen_show-20000425
dev-tex/latex2html-2008-r1
dev-tex/latex2rtf-2.3.8
dev-tex/latexmk-443a
dev-tex/metapost-1.902
dev-tex/newlfm-8.3-r1
dev-tex/pgf-3.0.0
dev-tex/pscyr-0.4d_beta9
dev-tex/revtex-4.1_p2-r1
dev-tex/tipa-1.3
dev-tex/translator-1.00
dev-tex/xcolor-2.11
dev-texlive/texlive-basic-2015
dev-texlive/texlive-bibtexextra-2015
dev-texlive/texlive-documentation-arabic-2012
dev-texlive/texlive-documentation-finnish-2012
dev-texlive/texlive-documentation-french-2012
dev-texlive/texlive-documentation-polish-2012
dev-texlive/texlive-fontsrecommended-2015
dev-texlive/texlive-fontutils-2015
dev-texlive/texlive-genericrecommended-2015
dev-texlive/texlive-langcyrillic-2015
dev-texlive/texlive-langdutch-2012
dev-texlive/texlive-langfinnish-2012
dev-texlive/texlive-langindic-2015
dev-texlive/texlive-langother-2015
dev-texlive/texlive-langportuguese-2015
dev-texlive/texlive-langspanish-2015
dev-texlive/texlive-langswedish-2012
dev-texlive/texlive-latex-2015
dev-texlive/texlive-latexextra-2015
dev-texlive/texlive-latexrecommended-2015
dev-texlive/texlive-metapost-2015
dev-texlive/texlive-pictures-2015
dev-texlive/texlive-plainextra-2015
dev-texlive/texlive-pstricks-2015
dev-texlive/texlive-science-2015
Comment 10 Alexis Ballier gentoo-dev 2015-07-29 09:12:02 UTC
(In reply to Toralf Förster from comment #4)
> F: mkdir
> S: deny
> P: ././var/cache/fonts/tfm
> A: /var/cache/fonts/tfm
> R: /var/cache/fonts/tfm
> C: mkdir ././var/cache/fonts/tfm 

(In reply to Andrew Savchenko from comment #5)
> Something is wrong with LaTeX here (either with tex packages or with the
> host setup). I'm adding TeX team here and asking for their help.


yes, that's classical font generation issue (if needed font is not present, tex system generates it from source and puts it in cache for later reuse);

solution is:

export VARTEXFONTS="${T}/fonts"
Comment 11 Alexis Ballier gentoo-dev 2015-07-29 09:13:44 UTC
btw, plz fix bug summary, I thought the bug was when installing texlive-latex itself which has always been exporting VARTEXFONTS variable
Comment 12 Andrew Savchenko gentoo-dev 2015-07-29 10:23:31 UTC
(In reply to Alexis Ballier from comment #10)
> yes, that's classical font generation issue (if needed font is not present,
> tex system generates it from source and puts it in cache for later reuse);

No, it's not than simple: why this issue is not reproducible?

I have a host with NO /var/cache/fonts/tfm directory at all. I can build cernlib-montecarlo-2006-r3 without any issue. No attempt is made to generate mentioned font during documentation build.

(In reply to Alexis Ballier from comment #11)
> btw, plz fix bug summary, I thought the bug was when installing
> texlive-latex itself which has always been exporting VARTEXFONTS variable

I'm not sure how. This issue affects multiple packages using texlive-latex during docs build. This is what reflected in the summary.
Comment 13 Alexis Ballier gentoo-dev 2015-07-29 12:45:26 UTC
(In reply to Andrew Savchenko from comment #12)
> (In reply to Alexis Ballier from comment #10)
> > yes, that's classical font generation issue (if needed font is not present,
> > tex system generates it from source and puts it in cache for later reuse);
> 
> No, it's not than simple: why this issue is not reproducible?

if the font and its metrics are found it will not regenerate it

> I have a host with NO /var/cache/fonts/tfm directory at all. I can build
> cernlib-montecarlo-2006-r3 without any issue. No attempt is made to generate
> mentioned font during documentation build.

maybe because another font is found and used ?
you'd have to compare the latex .log file to understand this

> (In reply to Alexis Ballier from comment #11)
> > btw, plz fix bug summary, I thought the bug was when installing
> > texlive-latex itself which has always been exporting VARTEXFONTS variable
> 
> I'm not sure how. This issue affects multiple packages using texlive-latex
> during docs build. This is what reflected in the summary.

see bug #221921 and bug #223077

Btw, texlive-latex is just a bunch of support files, which happen to also provide the 'latex', 'pdflatex' & friends commands. The same can happen with xetex, luatex, tex, and many others. This is inherent to how the whole tex system works.
Comment 14 Andrew Savchenko gentoo-dev 2015-08-01 19:09:19 UTC
(In reply to Alexis Ballier from comment #10)
> solution is:
> 
> export VARTEXFONTS="${T}/fonts"

Oh, ebuild already contain this, but not in src_install() where docs are build :/

Toralf, please refetch your tree and check either cernlib-montecarlo-2006-r3 or -r4. Make sure that ebuild's ChangeLog contains reference for this bug, since it was fixed without revision bump.

For all other affected packages please file separate bugs.
Feel free to reopen bug if this issue with cernlib-montecarlo is still present.

(In reply to Alexis Ballier from comment #13)
> (In reply to Andrew Savchenko from comment #12)
> > No, it's not than simple: why this issue is not reproducible?
> 
> if the font and its metrics are found it will not regenerate it

On the host with /var/cache/fonts _empty_ I still can't reproduce this issue. Does TeX use some media-fonts/* package instead? If it does, should it be added to $DEPEND instead of generating fonts on the fly?
Comment 15 Toralf Förster gentoo-dev 2015-08-01 22:22:26 UTC
bug is fixed - tested at 2 chroot images (the origin of the bug report and a new one)
Comment 16 Alexis Ballier gentoo-dev 2015-08-02 22:14:01 UTC
(In reply to Andrew Savchenko from comment #14)
> (In reply to Alexis Ballier from comment #13)
> > (In reply to Andrew Savchenko from comment #12)
> > > No, it's not than simple: why this issue is not reproducible?
> > 
> > if the font and its metrics are found it will not regenerate it
> 
> On the host with /var/cache/fonts _empty_ I still can't reproduce this
> issue. Does TeX use some media-fonts/* package instead? If it does, should
> it be added to $DEPEND instead of generating fonts on the fly?

(In reply to Alexis Ballier from comment #13)
> > I have a host with NO /var/cache/fonts/tfm directory at all. I can build
> > cernlib-montecarlo-2006-r3 without any issue. No attempt is made to generate
> > mentioned font during documentation build.
> 
> maybe because another font is found and used ?
> you'd have to compare the latex .log file to understand this

I think that answers it