Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 766255 - media-fonts/font-util doesn't update font cache (was: sys-apps/fwupd-1.5.5: build fails due to sandbox violation using mkostemp for /usr/share/fonts/util/.uuid.TMP-XXXXXX)
Summary: media-fonts/font-util doesn't update font cache (was: sys-apps/fwupd-1.5.5: b...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-01-20 09:13 UTC by Niko Böckerman
Modified: 2022-07-04 18:33 UTC (History)
3 users (show)

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


Attachments
Build log (sys-apps:fwupd-1.5.5:20210120-090430.log.xz,18.60 KB, application/x-xz)
2021-01-20 09:14 UTC, Niko Böckerman
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Niko Böckerman 2021-01-20 09:13:47 UTC
I attempted to upgrade from stable sys-apps/fwupd to unstable 1.5.5. However, the build failed due to sandbox violation.

Relevant failure from build log:
Running custom install script '/var/tmp/portage/sys-apps/fwupd-1.5.5/work/fwupd-1.5.5/po/make-images.sh /usr/share/locale /var/tmp/portage/sys-apps/fwupd-1.5.5/temp/python3.8/bin/python3'
/var/tmp/portage/sys-apps/fwupd-1.5.5/work/fwupd-1.5.5/po/make-images:47: DeprecationWarning: bind_textdomain_codeset() is deprecated
  gettext.bind_textdomain_codeset(self.domain, 'UTF8')
 * ACCESS DENIED:  mkostemp:     /usr/share/fonts/util/.uuid.TMP-XXXXXX
Writing /usr/share/locale/en/LC_IMAGES/fwupd-7680-4320.bmp
Running custom install script '/var/tmp/portage/sys-apps/fwupd-1.5.5/work/fwupd-1.5.5/meson_post_install.sh /lib/systemd/system /var'
Updating systemd deps
>>> Completed installing sys-apps/fwupd-1.5.5 into /var/tmp/portage/sys-apps/fwupd-1.5.5/image

 * Final size of build directory: 28896 KiB (28.2 MiB)
 * Final size of installed tree:   8532 KiB ( 8.3 MiB)

 * --------------------------- ACCESS VIOLATION SUMMARY ---------------------------
 * LOG FILE: "/var/tmp/portage/sys-apps/fwupd-1.5.5/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/fonts/util/.uuid.TMP-XXXXXX
A: /usr/share/fonts/util/.uuid.TMP-XXXXXX
R: /usr/share/fonts/util/.uuid.TMP-XXXXXX
C: /usr/bin/python3.8 /var/tmp/portage/sys-apps/fwupd-1.5.5/work/fwupd-1.5.5/po/make-images Installing firmware update… /var/tmp/portage/sys-apps/fwupd-1.5.5/image/usr/share/locale /var/tmp/portage/sys-apps/fwupd-1.5.5/work/fwupd-1.5.5/po/LINGUAS
 * --------------------------------------------------------------------------------

Reproducible: Always




# emerge -pv sys-apps/fwupd

These are the packages that would be merged, in order:

Calculating dependencies  ...... done!
[ebuild     U ~] sys-apps/fwupd-1.5.5::gentoo [1.4.6::gentoo] USE="amt dell man nvme systemd thunderbolt tpm uefi -agent (-elogind) -flashrom% -gtk-doc -introspection -minimal -policykit% -synaptics -test (-redfish%)" PYTHON_SINGLE_TARGET="python3_8 -python3_7 -python3_9% (-python3_6%)" 0 KiB

Total: 1 package (1 upgrade), Size of downloads: 0 KiB



# emerge --info sys-apps/fwupd
Portage 3.0.13 (python 3.8.6-final-0, default/linux/amd64/17.1/systemd, gcc-9.3.0, glibc-2.32-r5, 5.10.8-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-5.10.8-gentoo-x86_64-Intel-R-_Core-TM-_i7-10610U_CPU_@_1.80GHz-with-glibc2.2.5
KiB Mem:    32539816 total,    396792 free
KiB Swap:   32767996 total,  32767996 free
Timestamp of repository gentoo: Wed, 20 Jan 2021 07:00:01 +0000
Head commit of repository gentoo: fcb201320292ec4d5b9015425a3069c2fb6835bb
Timestamp of repository dlang: Tue, 05 Jan 2021 23:58:26 +0000
Head commit of repository dlang: b01c71546841e729edf9a8a087d23d8b995b909f

Timestamp of repository guru: Tue, 19 Jan 2021 15:02:48 +0000
Head commit of repository guru: ba35660cd27b5fc8a3ddf423496703a75359ae4b

sh dash 0.5.11.3-r1
ld GNU ld (Gentoo 2.34 p6) 2.34.0
app-shells/bash:          5.0_p18::gentoo
dev-lang/perl:            5.30.3::gentoo
dev-lang/python:          3.8.6-r1::gentoo
dev-util/cmake:           3.17.4-r1::gentoo
sys-apps/baselayout:      2.7::gentoo
sys-apps/sandbox:         2.20::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r5::gentoo
sys-devel/automake:       1.16.2-r1::gentoo
sys-devel/binutils:       2.34-r2::gentoo
sys-devel/gcc:            9.3.0-r2::gentoo
sys-devel/gcc-config:     2.3.2-r1::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.4-r1::gentoo (virtual/os-headers)
sys-libs/glibc:           2.32-r5::gentoo
Repositories:

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

dlang
    location: /var/db/repos/dlang
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/dlang.git
    masters: gentoo

guru
    location: /var/db/repos/guru
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/guru.git
    masters: gentoo

Installed sets: @enabled-sets
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -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/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--quiet-build=y --nospinner --oneshot --with-bdeps=y --autounmask-write=n --usepkg --binpkg-respect-use=y --binpkg-changed-deps --buildpkg-exclude "virtual/* sys-kernel/*-sources sys-kernel/linux-firmware" --jobs=3"
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="-march=native -O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg cgroup config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch parallel-install 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="-march=native -O2 -pipe"
GENTOO_MIRRORS="https://mirror.mdfnet.se/gentoo"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j6 -l6"
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="/var/tmp"
USE="acl amd64 berkdb bzip2 cli crypt dri fortran gdbm iconv idn ipv6 kerberos libglvnd libtirpc lzma man multilib ncurses nls nptl openmp pam pcre pulseaudio readline seccomp split-usr ssl systemd tcpd udev unicode wayland xattr zlib" ABI_X86="64" ADA_TARGET="gnat_2018" 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="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" 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-3 php7-4" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_8" PYTHON_TARGETS="python3_8" RUBY_TARGETS="ruby26" USERLAND="GNU" VIDEO_CARDS="intel i965 iris" 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, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

sys-apps/fwupd-1.4.6::gentoo was built with the following:
USE="amt dell man nvme systemd thunderbolt tpm uefi -agent (-elogind) -gtk-doc -introspection -minimal -redfish -synaptics -test" ABI_X86="(64)" PYTHON_SINGLE_TARGET="python3_8 -python3_6 -python3_7"
CFLAGS="-O2 -pipe"
CXXFLAGS="-O2 -pipe"
FEATURES="protect-owned unknown-features-warn fixlafiles usersandbox distlocks unmerge-orphans binpkg-dostrip binpkg-docompress userfetch multilib-strict parallel-fetch binpkg-logs xattr ebuild-locks cgroup parallel-install sfperms assume-digests preserve-libs qa-unresolved-soname-deps unmerge-logs strict usersync config-protect-if-modified network-sandbox merge-sync userpriv sandbox pid-sandbox ipc-sandbox buildpkg news"
Comment 1 Niko Böckerman 2021-01-20 09:14:48 UTC
Created attachment 683833 [details]
Build log
Comment 2 Ionen Wolkens gentoo-dev 2021-01-20 10:17:54 UTC
You can workaround this by running 'fc-cache -fs' then emerge fwupd again.

Not really a fwupd bug (affects many packages using fontconfig), I'll take the liberty to re-assign to font-util given installing in a fonts dir and, looking at xorg-3, not using font.eclass for the uuid nonsense.

Steps to reproduce (with sandbox):
1. rm /usr/share/font/util/.uuid
2. emerge -C font-util      # /usr/share/fonts/util entirely cleaned out
3. emerge -1 font-util
4. USE=uefi emerge -1 fwupd # fails
5. fc-cache -fs
6. USE=uefi emerge -1 fwupd # works
Comment 3 Niko Böckerman 2021-01-20 17:20:18 UTC
Thanks for the quick response. I applied the proposed workaround and got fwupd installed.
Comment 4 Ionen Wolkens gentoo-dev 2022-07-04 18:33:16 UTC
This doesn't happen anymore with current >=fontconfig-2.14 and X font directories