Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 739166

Summary: app-text/xpdf-4.02-r4 fails to install due to sandbox violation
Product: Gentoo Linux Reporter: Pacho Ramos <pacho>
Component: Current packagesAssignee: Andrew Savchenko <bircoph>
Status: RESOLVED FIXED    
Severity: normal CC: mmokrejs
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log.gz

Description Pacho Ramos gentoo-dev 2020-08-26 21:25:31 UTC
Created attachment 656978 [details]
build.log.gz

Maybe it happens only when inkscape is installed too

>>> Source compiled.
 * --------------------------- ACCESS VIOLATION SUMMARY ---------------------------
 * LOG FILE: "/var/tmp/portage/app-text/xpdf-4.02-r4/temp/sandbox.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: mkostemp
S: deny
P: /usr/share/inkscape/fonts/.uuid.TMP-XXXXXX
A: /usr/share/inkscape/fonts/.uuid.TMP-XXXXXX
R: /usr/share/inkscape/fonts/.uuid.TMP-XXXXXX
C: inkscape xpdf-icon.svg -w 16 -h 16 -o 16/xpdf.png 

F: mkostemp
S: deny
P: /usr/share/inkscape/fonts/.uuid.TMP-XXXXXX
A: /usr/share/inkscape/fonts/.uuid.TMP-XXXXXX
R: /usr/share/inkscape/fonts/.uuid.TMP-XXXXXX
C: inkscape xpdf-icon.svg -w 22 -h 22 -o 22/xpdf.png 

F: mkostemp
S: deny
P: /usr/share/inkscape/fonts/.uuid.TMP-XXXXXX
A: /usr/share/inkscape/fonts/.uuid.TMP-XXXXXX
R: /usr/share/inkscape/fonts/.uuid.TMP-XXXXXX
C: inkscape xpdf-icon.svg -w 24 -h 24 -o 24/xpdf.png 

F: mkostemp
S: deny
P: /usr/share/inkscape/fonts/.uuid.TMP-XXXXXX
A: /usr/share/inkscape/fonts/.uuid.TMP-XXXXXX
R: /usr/share/inkscape/fonts/.uuid.TMP-XXXXXX
C: inkscape xpdf-icon.svg -w 32 -h 32 -o 32/xpdf.png 

F: mkostemp
S: deny
P: /usr/share/inkscape/fonts/.uuid.TMP-XXXXXX
A: /usr/share/inkscape/fonts/.uuid.TMP-XXXXXX
R: /usr/share/inkscape/fonts/.uuid.TMP-XXXXXX
C: inkscape xpdf-icon.svg -w 36 -h 36 -o 36/xpdf.png 

F: mkostemp
S: deny
P: /usr/share/inkscape/fonts/.uuid.TMP-XXXXXX
A: /usr/share/inkscape/fonts/.uuid.TMP-XXXXXX
R: /usr/share/inkscape/fonts/.uuid.TMP-XXXXXX
C: inkscape xpdf-icon.svg -w 48 -h 48 -o 48/xpdf.png 

F: mkostemp
S: deny
P: /usr/share/inkscape/fonts/.uuid.TMP-XXXXXX
A: /usr/share/inkscape/fonts/.uuid.TMP-XXXXXX
R: /usr/share/inkscape/fonts/.uuid.TMP-XXXXXX
C: inkscape xpdf-icon.svg -w 64 -h 64 -o 64/xpdf.png 

F: mkostemp
S: deny
P: /usr/share/inkscape/fonts/.uuid.TMP-XXXXXX
A: /usr/share/inkscape/fonts/.uuid.TMP-XXXXXX
R: /usr/share/inkscape/fonts/.uuid.TMP-XXXXXX
C: inkscape xpdf-icon.svg -w 72 -h 72 -o 72/xpdf.png 

F: mkostemp
S: deny
P: /usr/share/inkscape/fonts/.uuid.TMP-XXXXXX
A: /usr/share/inkscape/fonts/.uuid.TMP-XXXXXX
R: /usr/share/inkscape/fonts/.uuid.TMP-XXXXXX
C: inkscape xpdf-icon.svg -w 96 -h 96 -o 96/xpdf.png 

F: mkostemp
S: deny
P: /usr/share/inkscape/fonts/.uuid.TMP-XXXXXX
A: /usr/share/inkscape/fonts/.uuid.TMP-XXXXXX
R: /usr/share/inkscape/fonts/.uuid.TMP-XXXXXX
C: inkscape xpdf-icon.svg -w 128 -h 128 -o 128/xpdf.png 

F: mkostemp
S: deny
P: /usr/share/inkscape/fonts/.uuid.TMP-XXXXXX
A: /usr/share/inkscape/fonts/.uuid.TMP-XXXXXX
R: /usr/share/inkscape/fonts/.uuid.TMP-XXXXXX
C: inkscape xpdf-icon.svg -w 192 -h 192 -o 192/xpdf.png 

F: mkostemp
S: deny
P: /usr/share/inkscape/fonts/.uuid.TMP-XXXXXX
A: /usr/share/inkscape/fonts/.uuid.TMP-XXXXXX
R: /usr/share/inkscape/fonts/.uuid.TMP-XXXXXX
C: inkscape xpdf-icon.svg -w 256 -h 256 -o 256/xpdf.png 

F: mkostemp
S: deny
P: /usr/share/inkscape/fonts/.uuid.TMP-XXXXXX
A: /usr/share/inkscape/fonts/.uuid.TMP-XXXXXX
R: /usr/share/inkscape/fonts/.uuid.TMP-XXXXXX
C: inkscape xpdf-icon.svg -w 512 -h 512 -o 512/xpdf.png 
 * --------------------------------------------------------------------------------

>>> Failed to emerge app-text/xpdf-4.02-r4, Log file:
Comment 1 Andrew Savchenko gentoo-dev 2020-08-27 12:51:11 UTC
Inkscape is being used only with USE="png" to generate png images, otherwise only vector ones will be available. So you can disable USE="png" as a workaround.

What is your inkcscape version? I tested images generation with 0.92 and 1.0 without any problems.
Comment 2 Andrew Savchenko gentoo-dev 2020-08-27 12:54:20 UTC
I can add /usr/share/inkscape/fonts/.uuid.TMP-* to addpredict as a workaround, but really it looks like to me that something is wrong with inkscape on your setup: it should not write cache data to /usr/share.
Comment 3 Pacho Ramos gentoo-dev 2020-08-27 16:19:21 UTC
I have
[ebuild   R    ] media-gfx/inkscape-1.0-r1::gentoo  USE="cdr dbus exif jpeg lcms openmp postscript spell visio wpg -dia -graphicsmagick -imagemagick -inkjar (-jemalloc) -static-libs -svg2" PYTHON_SINGLE_TARGET="python3_7 -python3_8" 0 KiB

Maybe the difference is because I was merging xpdf from a regular X session becoming root as "su -" (sometimes I saw this kind of things being different when people use console and login in as root directly)
Comment 4 Pacho Ramos gentoo-dev 2020-08-27 16:19:44 UTC
and my emerge --info
Portage 3.0.3 (python 3.8.5-final-0, default/linux/amd64/17.0/desktop/gnome/systemd, gcc-9.3.0, glibc-2.31-r6, 5.7.15-gentoo x86_64)
=================================================================
System uname: Linux-5.7.15-gentoo-x86_64-Intel-R-_Core-TM-_i7-7700HQ_CPU_@_2.80GHz-with-glibc2.2.5
KiB Mem:    16104304 total,   4057436 free
KiB Swap:    5240828 total,    699792 free
Timestamp of repository gentoo: Tue, 18 Aug 2020 10:30:01 +0000
Head commit of repository gentoo: 0c3a0bfeb45bc6bbb87d4e16f6a35f9333e7fd86
sh bash 5.0_p17
ld GNU ld (Gentoo 2.33.1 p2) 2.33.1
ccache version 3.7.11 [enabled]
app-shells/bash:          5.0_p17::gentoo
dev-java/java-config:     2.3.1::gentoo
dev-lang/perl:            5.30.3::gentoo
dev-lang/python:          2.7.18-r1::gentoo, 3.6.11-r2::gentoo, 3.7.8-r2::gentoo, 3.8.5::gentoo, 3.9.0_rc1::gentoo
dev-util/ccache:          3.7.11::gentoo
dev-util/cmake:           3.16.5::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/openrc:          0.42.1::gentoo
sys-apps/sandbox:         2.18::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.16.1-r2::gentoo
sys-devel/binutils:       2.33.1-r1::gentoo
sys-devel/gcc:            8.4.0-r1::gentoo, 9.3.0-r1::gentoo
sys-devel/gcc-config:     2.3.1::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 5.4-r1::gentoo (virtual/os-headers)
sys-libs/glibc:           2.31-r6::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-metamanifest: no
    sync-rsync-extra-opts: 
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-max-age: 24

x-portage
    location: /usr/local/portage
    masters: gentoo
    priority: 0

guru
    location: /hdd/portage/local/layman/guru
    masters: gentoo
    priority: 50

maggu2810-overlay
    location: /hdd/portage/local/layman/maggu2810-overlay
    masters: gentoo
    priority: 50

rion
    location: /hdd/portage/local/layman/rion
    masters: gentoo
    priority: 50

science
    location: /hdd/portage/local/layman/science
    masters: gentoo
    priority: 50

torbrowser
    location: /hdd/portage/local/layman/torbrowser
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native -fno-stack-protector"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /opt/cxoffice/etc/cxoffice.conf /usr/share/config /usr/share/gnupg/qualified.txt"
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 -march=native -fno-stack-protector"
DISTDIR="/hdd/distfiles"
EMERGE_DEFAULT_OPTS="--quiet-build=n --autounmask-write --keep-going --autounmask=y --with-test-deps"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs ccache cgroup compress-build-logs compressdebug config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms sign split-log strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="es_ES.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu"
LINGUAS="es es_ES en en_US fr fr_FR"
MAKEOPTS="-j9"
PKGDIR="/hdd/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 --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="7z 7zip X a52 aac acl acpi alsa amd64 appindicator applet archive aribsub avahi avx avx256 ayatana bash-completion berkdb bluetooth bluray branding btrfs bzip2 cairo ccache cdda cddb cdr chm chrome chromecast chromium cli colord crypt cuda cups cvs dbus dell djvu dot dri dts dvd dvdr dvi ebook eds emboss enchant encode epub equalizer ethernet evince evo excel exif fat ffmpeg firefox flac flash fortran fuse games gdbm gdk-pixbuf gdm gedit gif gimp git gnome gnome-keyring gnome-online-accounts gnome-shell gnumeric google googledrive gphoto2 gpm grammar gromacs gstreamer gtk gtk3 gtkstyle gui heif hfs html http hwaccel ico icons iconv icu indicator inkscape inotify introspection ios ipod irc iso jabber jpeg jumbo-build kate kpathsea latex lcms ldap libass libdrm libglvnd libindicate libnotify librtmp libsecret libtirpc libv4l libvisual lm_sensors lyx lz4 lzma lzo mad math matroska media mediaplayer metric microdns mms mmx mmxext mng mobi monolithic-build mp3 mp4 mpeg mtp multilib music musicbrainz nautilus ncurses network network-cron networkmanager nls nptl ntfs ntp numa nvidia nvme oauth offensive ogg opengl openmp openvpn optimized-qmake opus pam pango pch pdf pdfimport pipelight png policykit postscript ppapi ppds pptx projectm proprietary-codecs pstricks publishers pulseaudio qt5 rar raw rdp readline reiserfs rtf rtmp scanner sdl seccomp sendto sftp skins smp sna snmp sox spell split-usr squashfs sse sse2 sse3 sse4 sse4_1 ssh ssl ssse3 startup-notification subtitles svg systemd t1lib tcpd theora thesaurus threads tiff totem tracker truetype udev udisks uefi unicode update_drivedb upnp upnp-av upower usb user-session v4l vaapi vala vcd vdpau vector-icons vimeo visio vlc vnc vorbis vpx webp wifi wma wmf wpg wxwidgets x264 x265 xattr xcb xfs xft xml xmp xmpp xpm xps xv xvid xz youtube zeroconf zfs zlib zstd" ABI_X86="64" ADA_TARGET="gnat_2018" ALSA_CARDS="hda-intel" 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="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput" KERNEL="linux" L10N="es es-ES en en-US fr fr-FR" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2 php7-3" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_7" PYTHON_TARGETS="python2_7 python3_7 python3_8 python3_9" RUBY_TARGETS="ruby25" USERLAND="GNU" VIDEO_CARDS="fbdev vesa intel i965 nouveau nvidia" 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:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 5 Martin Mokrejš 2020-09-18 12:45:20 UTC
Same here via "su -" to root to compile or when logged in as root through framebuffer console.

[ebuild     U  ] media-gfx/inkscape-1.0.1::gentoo [1.0-r1::gentoo] USE="cdr dbus jpeg lcms openmp -dia -exif -graphicsmagick -imagemagick -inkjar (-jemalloc) -postscript -spell -static-libs -svg2 -visio -wpg" PYTHON_SINGLE_TARGET="python3_7 -python3_8" 31 301 KiB

[ebuild   R    ] app-text/xpdf-4.02-r4::gentoo  USE="cmyk* cups fontconfig i18n* icons* libpaper metric* png textselect utils* -opi" 0 KiB

# emerge --info
Portage 3.0.5 (python 3.7.9-final-0, default/linux/amd64/17.1/no-multilib, gcc-10.2.0, glibc-2.32-r1, 5.4.58 x86_64)
=================================================================
System uname: Linux-5.4.58-x86_64-Intel-R-_Core-TM-_i7-7820HQ_CPU_@_2.90GHz-with-gentoo-2.7
KiB Mem:    32814408 total,   7208696 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Fri, 18 Sep 2020 11:30:01 +0000
Head commit of repository gentoo: 0020436c633db06b89f6b150564c8b1427b12ce7
sh bash 5.0_p18
ld GNU ld (Gentoo 2.34 p6) 2.34.0
app-shells/bash:          5.0_p18::gentoo
dev-java/java-config:     2.3.1::gentoo
dev-lang/perl:            5.30.3-r1::gentoo
dev-lang/python:          2.7.18-r100::stefantalpalaru, 3.6.12::gentoo, 3.7.9::gentoo, 3.8.5::gentoo, 3.9.0_rc2::gentoo
dev-util/cmake:           3.18.2::gentoo
sys-apps/baselayout:      2.7::gentoo
sys-apps/openrc:          0.42.1::gentoo
sys-apps/sandbox:         2.20::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r5::gentoo
sys-devel/automake:       1.11.6-r3::gentoo, 1.13.4-r2::gentoo, 1.14.1-r2::gentoo, 1.15.1-r2::gentoo, 1.16.2::gentoo
sys-devel/binutils:       2.32-r1::gentoo, 2.33.1-r1::gentoo, 2.34-r2::gentoo
sys-devel/gcc:            9.2.0-r4::gentoo, 9.3.0-r1::gentoo, 10.2.0-r1::gentoo
sys-devel/gcc-config:     2.3.2::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.8::gentoo (virtual/os-headers)
sys-libs/glibc:           2.32-r1::gentoo
Repositories:

gentoo
    location: /scratch/usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-extra-opts: 
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-max-age: 24

x-portage
    location: /usr/local/portage
    masters: gentoo
    priority: 0

layman
    location: /var/lib/layman
    masters: gentoo
    priority: 1

haskell
    location: /var/lib/layman/haskell
    masters: gentoo
    priority: 50

science
    location: /data/mmokrejs/proj/sci
    masters: gentoo
    priority: 50

stefantalpalaru
    location: /var/lib/layman/stefantalpalaru
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="@FREE dlj-1.1 sun-bcla-java-vm Oracle-BCLA-JavaSE IBM-J1.6 Nero-EULA-US AdobeFlash-10.3 AdobeFlash-11.x OPERA-2014 RAR Intel-SDP intel-ucode Skype-TOS vmware linux-firmware fasta vienna-rna unafold GRL MSttfEULA hplip-plugin meme mRNAmarkup ApE ICS ipw3945 finchtv modeller gmap master-pdf-editor abyss swiss-prot Aladdin AVASYS truecrypt-3.0 pyvcf Non-profit-OSL-3.0 estscan bcca_2010 oncotator Adobe blat staden CeCILL-1.1 phrap STRIDE cctbx-2.0 bh-luxi ARIADNE unRAR all-rights-reserved trf annovar_personal_only stampy-academic BSD-BroadInstitute UPennState freedist free-noncomm blasr sun-jlfgr FLI-Jena PSTT netperf sun-jsr67 xv vim.org OSGi-Specification-2.0 colt mod_fastcgi googleearth ACE AFL churchill genscan no-source-code linux-fw-redistributable ISSL JSON MPEG-4"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native -ftree-vectorize"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/stunnel/stunnel.conf /usr/lib64/libreoffice/program/sofficerc /usr/share/easy-rsa /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.3/conf /usr/share/maven-bin-3.6/conf /var/lib/hsqldb"
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 /etc/vmware-installer"
CXXFLAGS="-O2 -pipe -march=native -ftree-vectorize"
DISTDIR="/usr/portage/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe -march=native -ftree-vectorize"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news nostrip parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe -march=native -ftree-vectorize"
GENTOO_MIRRORS="http://gentoo.wheel.sk/ http://ftp.fi.muni.cz/pub/linux/gentoo/ http://gentoo.mirror.web4u.cz/ rsync://gentoo.mirror.dkm.cz/gentoo/ ftp://gentoo.mirror.web4u.cz/"
LANG="cs_CZ.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en_US en_GB en cs"
MAKEOPTS="-j5"
PKGDIR="/var/cache/binpkgs"
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 --exclude=/.git"
PORTAGE_TMPDIR="/scratch/var/tmp/"
USE="X aac acpi alsa amd64 amr apache apache2 asm avx avx2 berkdb bluetooth boost bzip2 cairo caps cdda cdr cgi cli coin cracklib crypt cryptlib cryptsetup cups dbus device-mapper dhcp directfb drm dvd dvda emboss encode eselect-ldso fax fbcon ffmpeg flac fontconfig fortran gbm gcrypt gd gdbm geoip geolocation gimp glpk gmp gnutls gpm gps gtk hal hpijs hwdb iconv id3tag imaging innodb inotify ipv6 java javafx javascript jce jpeg jpg js jscript keymap ladspa lapack laptop lcms libglvnd libnotify libtirpc lm_sensors mad mariadb matroska mmx modemmanager mp3 ncurses nfs nls nptl nptlonly nscd nss ntfsprogs objc ocr ogg opengl openmp openssl opus pam parport pbs pcre pcre16 pcsc-lite pdf perl php png policykit polkit ppds pppd python qt3support qt4 qt5 readline rendering resolvconf romio scanner sctp seccomp server session slideshow smartcard sndfile split-usr sqlite sse sse2 sse3 sse4_1 sse4_2 ssl sslv3 ssse3 startup-notification suexec svg syslog tcl tcpd threads tiff tk truetype twolame udev unicode usb v4l v4l2 vim-syntax vnc vorbis wavpack wifi x11 xattr xcb xml xorg xrandr xv xvid xvmc zlib" ABI_X86="64" ADA_TARGET="gnat_2018" ALSA_CARDS="hda-intel intel8x0 intel8x0m usb-audio" APACHE2_MODULES="alias authz_host auth_basic auth_digest cgi cgid deflate dir env filter include info mem_cache mime mime_magic negotiation remoteip setenvif status userdir vhost_alias rewrite usertrack cache file_cache disk_cache charset_lite log_config log_forensic" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="gpsclock navcom ntrip rtcm104v2 rtcm104v3 ublox nmea0183 nmea2000 aivdm passthrough" GRUB_PLATFORMS="efi-64 pc" INPUT_DEVICES="libinput" KERNEL="linux" L10N="en-US en-GB en cs" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" OPENMPI_RM="pbs" PHP_TARGETS="php5-4 php5-5" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6 python3_7" RUBY_TARGETS="ruby25 ruby27" USERLAND="GNU" VIDEO_CARDS="vesa vmware fbdev intel i915" 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:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 6 Andrew Savchenko gentoo-dev 2020-09-18 17:56:48 UTC
The strange thing is that I also use su - from the X session to build xpdf and can't reproduce this…

(In reply to Andrew Savchenko from comment #1)
> Inkscape is being used only with USE="png" to generate png images, otherwise
> only vector ones will be available. So you can disable USE="png" as a
> workaround.

Sorry, mistake above. USE="-icons" should work as workaround.

I can't find inkscape flag to control font cache dir location. So its heuristics of selecting one are obscure to me.

Please try the following patch (with USE=icons):

diff --git a/app-text/xpdf/xpdf-4.02-r4.ebuild b/app-text/xpdf/xpdf-4.02-r4.ebuild
index 4311f1b32efa..f99f58e3068f 100644
--- a/app-text/xpdf/xpdf-4.02-r4.ebuild
+++ b/app-text/xpdf/xpdf-4.02-r4.ebuild
@@ -87,6 +87,7 @@ src_compile() {
        cmake-utils_src_compile

        if use icons; then
+               addpredict /usr/share/inkscape/fonts
                local inkarg="-e"
                has_version -b '>media-gfx/inkscape-0.99' && inkarg="-o"
Comment 7 Pacho Ramos gentoo-dev 2020-09-19 08:45:45 UTC
addpredict works... is the workaround I used to install it at the end :)
Comment 8 Martin Mokrejš 2020-09-19 10:18:23 UTC
(In reply to Pacho Ramos from comment #7)
> addpredict works... is the workaround I used to install it at the end :)

For me too, thanks @bircoph.

[ebuild   R    ] app-text/xpdf-4.02-r4::gentoo  USE="cmyk cups fontconfig i18n icons libpaper metric png textselect utils -opi" 0 KiB
Comment 9 Larry the Git Cow gentoo-dev 2020-09-19 10:21:21 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3f535c7636d53f04ddf69e514f9a2b9e9009ed61

commit 3f535c7636d53f04ddf69e514f9a2b9e9009ed61
Author:     Andrew Savchenko <bircoph@gentoo.org>
AuthorDate: 2020-09-19 10:18:32 +0000
Commit:     Andrew Savchenko <bircoph@gentoo.org>
CommitDate: 2020-09-19 10:21:08 +0000

    app-text/xpdf: workaround inkscape sandbox violations
    
    Closes: https://bugs.gentoo.org/739166
    Package-Manager: Portage-3.0.6, Repoman-3.0.1
    Signed-off-by: Andrew Savchenko <bircoph@gentoo.org>

 app-text/xpdf/xpdf-4.02-r4.ebuild | 3 +++
 1 file changed, 3 insertions(+)
Comment 10 Andrew Savchenko gentoo-dev 2020-09-19 10:22:46 UTC
Pacho, Martin, thanks for letting me know. Fixed in the tree now.
Comment 11 Larry the Git Cow gentoo-dev 2020-11-09 18:05:02 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=33385b46bea50e05915917ebdb14f6adb97a8797

commit 33385b46bea50e05915917ebdb14f6adb97a8797
Author:     Andrew Savchenko <bircoph@gentoo.org>
AuthorDate: 2020-11-09 18:02:02 +0000
Commit:     Andrew Savchenko <bircoph@gentoo.org>
CommitDate: 2020-11-09 18:04:48 +0000

    app-text/xpdf: switch from inkscape to rsvg-convert
    
    rsvg-convert is faster, more lightweight and less troublesome
    dependency than inkscape, so use it for png generation.
    This is a better fix of bug 739166.
    
    Bug: https://bugs.gentoo.org/739166
    Package-Manager: Portage-3.0.9, Repoman-3.0.2
    Signed-off-by: Andrew Savchenko <bircoph@gentoo.org>

 app-text/xpdf/xpdf-4.02-r4.ebuild | 10 ++--------
 1 file changed, 2 insertions(+), 8 deletions(-)