Attempting to build with USE=doc results in a huge number of sandbox violations before it terminates in failure. Without USE=doc it builds. Reproducible: Always Steps to Reproduce: 1.USE=doc emerge -1 =media-gfx/exiv2-0.27.4-r2 2. 3. Actual Results: Many sandbox errors ending with: F: mkostemp S: deny P: /usr/share/fonts/xscreensaver/.uuid.TMP-XXXXXX A: /usr/share/fonts/xscreensaver/.uuid.TMP-XXXXXX R: /usr/share/fonts/xscreensaver/.uuid.TMP-XXXXXX C: dot /var/tmp/portage/media-gfx/exiv2-0.27.4-r2/work/exiv2-0.27.4_build-abi_x86_64.amd64/doc/html/structExiv2_1_1GroupInfo__inherit__graph.dot -Tcmapx -o /var/tmp/portage/media-gfx/exiv2-0.27.4-r2/work/exiv2-0.27.4_build-abi_x86_64.amd64/doc/html/structExiv2_1_1GroupInfo__inherit__grap * -------------------------------------------------------------------------------- >>> Failed to emerge media-gfx/exiv2-0.27.4-r2, Log file: Expected Results: Built the package with the extra documentation. $ emerge --info Portage 3.0.20 (python 3.9.6-final-0, default/linux/amd64/17.1/desktop, gcc-10.3.0, glibc-2.33-r1, 5.4.72-gentoo-f2 x86_64) ================================================================= System uname: Linux-5.4.72-gentoo-f2-x86_64-Intel-R-_Core-TM-_i5-2500K_CPU_@_3.30GHz-with-glibc2.33 KiB Mem: 8067724 total, 2509172 free KiB Swap: 2097148 total, 2085884 free Timestamp of repository gentoo: Fri, 10 Sep 2021 10:00:01 +0000 Head commit of repository gentoo: 6ef1d53c37cb7b1df428aa91428263d207469151 sh bash 5.1_p8 ld GNU ld (Gentoo 2.36.1 p5) 2.36.1 app-shells/bash: 5.1_p8::gentoo dev-java/java-config: 2.3.1::gentoo dev-lang/perl: 5.34.0::gentoo dev-lang/python: 3.9.6_p2::gentoo dev-lang/rust: 1.53.0::gentoo dev-util/cmake: 3.20.5::gentoo sys-apps/baselayout: 2.7::gentoo sys-apps/openrc: 0.43.5::gentoo sys-apps/sandbox: 2.24::gentoo sys-devel/autoconf: 2.13-r1::gentoo, 2.69-r5::gentoo sys-devel/automake: 1.15.1-r2::gentoo, 1.16.3-r1::gentoo sys-devel/binutils: 2.36.1-r2::gentoo sys-devel/gcc: 10.3.0-r2::gentoo sys-devel/gcc-config: 2.4::gentoo sys-devel/libtool: 2.4.6-r6::gentoo sys-devel/make: 4.3::gentoo sys-kernel/linux-headers: 5.10::gentoo (virtual/os-headers) sys-libs/glibc: 2.33-r1::gentoo Repositories: gentoo location: /usr/portage sync-type: rsync sync-uri: rsync://rsync.gentoo.org/gentoo-portage priority: -1000 sync-rsync-verify-metamanifest: yes sync-rsync-verify-jobs: 1 sync-rsync-verify-max-age: 24 sync-rsync-extra-opts: x-portage location: /usr/local/portage masters: gentoo priority: 0 ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="@FREE" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=core2 -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /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/php/apache2-php5.6/ext-active/ /etc/php/apache2-php7.0/ext-active/ /etc/php/apache2-php7.4/ext-active/ /etc/php/cgi-php5.6/ext-active/ /etc/php/cgi-php7.0/ext-active/ /etc/php/cgi-php7.4/ext-active/ /etc/php/cli-php5.6/ext-active/ /etc/php/cli-php7.0/ext-active/ /etc/php/cli-php7.4/ext-active/ /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="-march=core2 -O2 -pipe" 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" 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 parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://gentoo.mirrors.tera-byte.com/ http://gentoo.gossamerhost.com http://gentoo.osuosl.org/" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j4" 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 --exclude=/.git" PORTAGE_TMPDIR="/var/tmp" USE="X a52 aac acl acpi alsa amd64 bluetooth branding bzip2 cairo cdda cdr cli crypt cups dbus doc dri dts dvd dvdr elogind emboss encode exif flac fontconfig fortran gcj gdbm gif gpm gtk gui guile iconv icu ipv6 java jpeg kpathsea lcms libglvnd libnotify libtirpc mad mmx mng mp3 mp4 mpeg multilib ncurses nls nptl nsplugin ogg opengl openmp pam pango pcre pdf png policykit ppds pulseaudio qt5 readline sdl seccomp spell split-usr sse sse2 ssl startup-notification svg tcltk tcpd tiff truetype udev udisks unicode upower usb vorbis wxwidgets x264 xattr xcb xml xv xvid zlib" 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" CAMERAS="konica minolta 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 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" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-4" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_9" PYTHON_TARGETS="python3_9" RUBY_TARGETS="ruby26" SANE_BACKENDS="epson epson2" USERLAND="GNU" VIDEO_CARDS="intel i965" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RUSTFLAGS $ Actually I have the doc use flag enabled globally. Which is why I detected the problem.
Can you re-emerge xscreensaver please?
Created attachment 738844 [details] build log file.
(In reply to Sam James from comment #1) > Can you re-emerge xscreensaver please? emerge -1 xscreensaver successfully installed x11-misc/xscreensaver-6.01-r3 emerge -1 exiv2 # with global USE=doc flag Produces the same failure as before.
Still experimenting but could I get the build.log for xscreensaver as well? May make what happened clearer.
Actually that won't be needed (reproduced) I do assume you are using USE=-fonts on xscreensaver I couldn't at first because I use USE=gentoo-dev on portage which enables FEATURES=strict-keepdir that deletes empty directories (I imagine some other devs are in a similar situation). However, empty fonts/xscreensaver /still/ needs cache regen (for now I'll just make sure the directory is removed).
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e79eb8610ca7d5eb37a5759fbdf86181a802ed57 commit e79eb8610ca7d5eb37a5759fbdf86181a802ed57 Author: Ionen Wolkens <ionen@gentoo.org> AuthorDate: 2021-09-10 20:39:00 +0000 Commit: Ionen Wolkens <ionen@gentoo.org> CommitDate: 2021-09-10 20:53:07 +0000 x11-misc/xscreensaver: remove empty font directory Font cache regen will attempt to create fonts/xscreensaver/.uuid even if there is no fonts installed leading to sandbox violations in other packages. Revbump to ensure directory is removed if someone still hasn't done a cache update. Closes: https://bugs.gentoo.org/812473 Signed-off-by: Ionen Wolkens <ionen@gentoo.org> .../{xscreensaver-6.01-r3.ebuild => xscreensaver-6.01-r4.ebuild} | 1 + 1 file changed, 1 insertion(+)
Please drop a note here if you still have issues after updating to xscreensaver-6.01-r4
(In reply to Ionen Wolkens from comment #7) > Please drop a note here if you still have issues after updating to > xscreensaver-6.01-r4 Worked just fine. Hmm 4 h 10m opened to fixed. Not too shabby a response time at all. :-) Many thanks.