Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 887019 - dev-util/ccache: ACCESS DENIED: mkdir: /run/user/0/ccache-tmp
Summary: dev-util/ccache: ACCESS DENIED: mkdir: /run/user/0/ccache-tmp
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
: 891423 (view as bug list)
Depends on:
Blocks:
 
Reported: 2022-12-18 16:13 UTC by Maciej Barć
Modified: 2023-05-17 04:01 UTC (History)
6 users (show)

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


Attachments
/var/log/portage/media-libs:id3lib-3.8.3-r9:20221218-145346.log (media-libs:id3lib-3.8.3-r9:20221218-145346.log,77.20 KB, text/x-log)
2022-12-18 16:13 UTC, Maciej Barć
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Maciej Barć gentoo-dev 2022-12-18 16:13:40 UTC
Created attachment 843449 [details]
/var/log/portage/media-libs:id3lib-3.8.3-r9:20221218-145346.log

media-libs/id3lib-3.8.3-r9: fails to compile, ACCESS DENIED: mkdir: /run/user/0/ccache-tmp (CCACHE bug)
Comment 1 Maciej Barć gentoo-dev 2022-12-18 16:15:25 UTC
Portage 3.0.41 (python 3.10.9-final-0, default/linux/amd64/17.1/desktop/plasma, gcc-11, glibc-2.36-r5, 5.15.80-gentoo-magentalane-2022.12.03 x86_64)
=================================================================
System uname: Linux-5.15.80-gentoo-magentalane-2022.12.03-x86_64-AMD_Ryzen_5_3500U_with_Radeon_Vega_Mobile_Gfx-with-glibc2.36
KiB Mem:    18350344 total,   4792456 free
KiB Swap:          0 total,         0 free
Timestamp of repository guru: Sat, 10 Dec 2022 02:04:30 +0000
Head commit of repository guru: af0bd4f351443ad741b050412198f1a7c28ee2a2

sh bash 5.1_p16-r2
ld GNU ld (Gentoo 2.38 p4) 2.38
ccache version 4.7.4 [enabled]
app-misc/pax-utils:        1.3.5::gentoo
app-shells/bash:           5.1_p16-r2::gentoo
dev-java/java-config:      2.3.1::gentoo
dev-lang/perl:             5.36.0-r1::gentoo
dev-lang/python:           3.10.9::gentoo, 3.11.1::gentoo
dev-lang/rust:             1.65.0::gentoo
dev-util/ccache:           4.7.4::gentoo
dev-util/cmake:            3.24.3::gentoo
dev-util/meson:            0.63.3::gentoo
sys-apps/baselayout:       2.9::gentoo
sys-apps/openrc:           0.45.2-r2::gentoo
sys-apps/sandbox:          2.29::gentoo
sys-devel/autoconf:        2.13-r7::gentoo, 2.71-r5::gentoo
sys-devel/automake:        1.16.5::gentoo
sys-devel/binutils:        2.38-r2::gentoo
sys-devel/binutils-config: 5.4.1::gentoo
sys-devel/clang:           15.0.5::gentoo
sys-devel/gcc:             11.3.1_p20221209::gentoo
sys-devel/gcc-config:      2.8::gentoo
sys-devel/libtool:         2.4.7::gentoo
sys-devel/lld:             15.0.6::gentoo
sys-devel/llvm:            15.0.6::gentoo
sys-devel/make:            4.3::gentoo
sys-kernel/linux-headers:  5.15-r3::gentoo (virtual/os-headers)
sys-libs/glibc:            2.36-r5::gentoo
Repositories:

gentoo
    location: /home/xy/source/public/gentoo.org/repo/gentoo
    sync-umask: 022
    sync-user: xy:portage
    priority: -99

racket-overlay
    location: /home/xy/source/public/gitlab.com/gentoo-racket/gentoo-racket-overlay
    masters: gentoo
    priority: 40

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

myov
    location: /home/xy/source/public/gitlab.com/xgqt/myov
    masters: gentoo
    priority: 50

localrepo
    location: /var/db/repos/localrepo
    masters: gentoo
    priority: 60

crossdev
    location: /var/db/repos/crossdev
    masters: gentoo
    priority: 70

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS=" -march=znver1 -O3 -falign-functions=32 -fno-common -fstack-clash-protection -fstack-protector-strong -pipe -fdiagnostics-color=always -frecord-gcc-switches"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /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=" -march=znver1 -O3 -falign-functions=32 -fno-common -fstack-clash-protection -fstack-protector-strong -pipe -fdiagnostics-color=always -frecord-gcc-switches"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS=" --jobs=4 --load-average=5 --binpkg-changed-deps=y --binpkg-respect-use=y --nospinner --keep-going=y"
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 XDG_STATE_HOME"
FCFLAGS=" -march=znver1 -O3 -falign-functions=32 -fno-common -fstack-clash-protection -fstack-protector-strong -pipe -fdiagnostics-color=always -frecord-gcc-switches"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-multi-instance buildpkg-live buildsyspkg ccache cgroup config-protect-if-modified distlocks fixlafiles getbinpkg ipc-sandbox merge-sync mount-sandbox multilib-strict network-sandbox news parallel-fetch parallel-install pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms sign strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS=" -march=znver1 -O3 -falign-functions=32 -fno-common -fstack-clash-protection -fstack-protector-strong -pipe -fdiagnostics-color=always -frecord-gcc-switches"
GENTOO_MIRRORS="http://magma.home/amd64/ https://gentoo.osuosl.org/ https://distfiles.gentoo.org/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0"
MAKEOPTS="--jobs=7 --load-average=6"
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"
RUSTFLAGS=" -C opt-level=3 -C debuginfo=0"
SHELL="/bin/zsh"
USE="X a52 aac acl acpi activities alsa amd64 bluetooth branding bzip2 cairo ccache cdda cdr cli crypt cups custom-cflags custom-optimization dbus declarative dri dts dvd dvdr elogind emacs encode exif firmware flac fortran gdbm gif git gles2 gpg gtk gui guile iconv icu initramfs ipv6 jpeg kde lcms ldap libglvnd libnotify libtirpc lm-sensors lvm mad mng mp3 mp4 mpeg mtp multilib ncurses nls nptl ocamlopt ogg opengl openmp pam pango pcre pdf pie plasma png policykit ppds pulseaudio qml qt5 raw readline sdl seccomp semantic-desktop sound spell split-usr ssl startup-notification svg system-av1 system-binutils system-boost system-bootloader system-bootstrap system-cmark system-ffmpeg system-harfbuzz system-heimdal system-icu system-ipxe system-jpeg system-jsoncpp system-lcms system-leveldb system-libevent system-libs system-libvpx system-libyaml system-llvm system-lua system-lz4 system-mathjax system-mesa system-mitkrb5 system-numpy system-python system-qemu system-ssl system-webp system-wlroots system-zlib test-rust threads tiff truetype udev udisks unicode upower usb v4l vaapi vorbis vulkan wayland webp widgets wifi wxwidgets x264 xattr xcb xft xml xpm xv xvid xwayland zlib" ABI_X86="64" ADA_TARGET="gnat_2021" 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 sha sse sse2 sse3 sse4_1 sse4_2 sse4a 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="en de pl" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-4" LUA_TARGETS="lua5-4" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-4 php8-0" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_10" PYTHON_TARGETS="python3_10" RUBY_TARGETS="ruby27" USERLAND="GNU" VIDEO_CARDS="amdgpu radeon radeonsi" 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:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LEX, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, SIZE, STRINGS, STRIP, YACC, YFLAGS
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-12-23 08:06:30 UTC
Maybe we should just always patch in the thing we used to.
Comment 3 Larry the Git Cow gentoo-dev 2022-12-28 09:14:52 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8e37542842e9e85c5f6d739803c6286514a3c6fb

commit 8e37542842e9e85c5f6d739803c6286514a3c6fb
Author:     Pacho Ramos <pacho@gentoo.org>
AuthorDate: 2022-12-28 09:11:34 +0000
Commit:     Pacho Ramos <pacho@gentoo.org>
CommitDate: 2022-12-28 09:14:41 +0000

    games-arcade/blobwars: update EAPI 6 -> 8
    
    As a side effect it also avoids bug #883799
    
    Bug: https://bugs.gentoo.org/883799
    Bug: https://bugs.gentoo.org/887019
    Signed-off-by: Pacho Ramos <pacho@gentoo.org>

 games-arcade/blobwars/blobwars-2.00-r1.ebuild | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-01-19 21:52:01 UTC
*** Bug 891423 has been marked as a duplicate of this bug. ***
Comment 5 Larry the Git Cow gentoo-dev 2023-05-17 04:01:32 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=257fc52ad8a0d9fa867ed72b9e714dfe5f478555

commit 257fc52ad8a0d9fa867ed72b9e714dfe5f478555
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-05-17 04:00:57 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-05-17 04:01:22 +0000

    dev-util/ccache: avoid /run usage (again)
    
    Closes: https://bugs.gentoo.org/883799
    Closes: https://bugs.gentoo.org/887019
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-util/ccache/ccache-4.8-r2.ebuild               | 130 +++++++++++++++++++++
 .../ccache/files/ccache-4.8-avoid-run-user.patch   |  34 ++++++
 2 files changed, 164 insertions(+)