Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 629260 - x11-libs/gdk-pixbuf-2.36.9: touch: cannot touch '/var/tmp/portage/x11-libs/gdk-pixbuf-2.36.9/image//usr/lib32/iso-codes-2.0/2.10.0/loaders.cache': No such file or directory
Summary: x11-libs/gdk-pixbuf-2.36.9: touch: cannot touch '/var/tmp/portage/x11-libs/g...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-08-29 09:18 UTC by Anton Gubarkov
Modified: 2017-09-19 10:26 UTC (History)
2 users (show)

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


Attachments
build log collection (629260.zip,50.74 KB, application/zip)
2017-08-29 09:21 UTC, Anton Gubarkov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Anton Gubarkov 2017-08-29 09:18:46 UTC
install phase for x11-libs/gdk-pixbuf-2.36.9 fails when using makeopts=-j10

 * abi_x86_32.x86: running multilib_pkg_preinst
touch: cannot touch '/var/tmp/portage/x11-libs/gdk-pixbuf-2.36.9/image//usr/lib32/iso-codes-2.0/2.10.0/loaders.cache': No such file or directory
 * ERROR: x11-libs/gdk-pixbuf-2.36.9::gentoo failed (preinst phase):
 *   (no error message)
 *
 * Call stack:
 *     ebuild.sh, line  115:  Called pkg_preinst
 *   environment, line 3248:  Called multilib_foreach_abi 'multilib_pkg_preinst'
 *   environment, line 2883:  Called multibuild_foreach_variant '_multilib_multibuild_wrapper' 'multilib_pkg_preinst'
 *   environment, line 2561:  Called _multibuild_run '_multilib_multibuild_wrapper' 'multilib_pkg_preinst'
 *   environment, line 2559:  Called _multilib_multibuild_wrapper 'multilib_pkg_preinst'
 *   environment, line  431:  Called multilib_pkg_preinst
 *   environment, line 3245:  Called die
 * The specific snippet of code:
 *               touch "${ED}"/${cache} || die;
Comment 1 Anton Gubarkov 2017-08-29 09:18:54 UTC
r9-008cln temp # emerge --info gdk-pixbuf
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Portage 2.3.8 (python 3.5.3-final-0, default/linux/amd64/13.0/desktop/gnome/systemd, gcc-6.4.0, glibc-2.25-r4, 4.12.8-ck-zfs x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.12.8-ck-zfs-x86_64-Intel-R-_Core-TM-_i7-4700MQ_CPU_@_2.40GHz-with-gentoo-2.4.1
KiB Mem:    16307872 total,    443100 free
KiB Swap:   20971516 total,  20889084 free
Timestamp of repository gentoo: Tue, 29 Aug 2017 07:00:01 +0000
Head commit of repository gentoo: a3c06bd14ed04319b1e98a3439c7d2750459bf79
sh bash 4.4_p12
ld GNU ld (Gentoo 2.27 p1.1) 2.27
app-shells/bash:          4.4_p12::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.24.2::gentoo
dev-lang/python:          2.7.13::gentoo, 3.4.6::gentoo, 3.5.3::gentoo, 3.6.1-r1::gentoo
dev-util/cmake:           3.9.1::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.4.1-r1::gentoo
sys-apps/openrc:          0.29::gentoo
sys-apps/sandbox:         2.10-r4::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.11.6-r2::gentoo, 1.13.4-r1::gentoo, 1.15.1-r1::gentoo
sys-devel/binutils:       2.27-r1::gentoo, 2.28-r2::gentoo, 2.28.1::gentoo
sys-devel/gcc:            5.4.0-r3::gentoo, 6.3.0::gentoo, 6.4.0::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r4::gentoo
sys-devel/make:           4.2.1-r1::gentoo
sys-kernel/linux-headers: 4.11::gentoo (virtual/os-headers)
sys-libs/glibc:           2.25-r4::gentoo
Repositories:

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

rugubara
    location: /home/anton/devel/rugubara
    masters: gentoo
    priority: 0

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

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

eclipse
    location: /var/lib/layman/eclipse
    sync-type: laymansync
    sync-uri: https://github.com/gentoo/eclipse-overlay.git
    masters: gentoo
    priority: 50

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

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

proaudio
    location: /var/lib/layman/pro-audio
    masters: gentoo
    priority: 50

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

steam-overlay
    location: /var/lib/layman/steam
    masters: gentoo
    priority: 50

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

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

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

Installed sets: @kde-frameworks-live
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=haswell -mmmx -msse -msse2 -msse3 -mssse3 -mcx16 -msahf -mmovbe -maes -mpclmul -mpopcnt -mabm -mfma -mbmi -mbmi2 -mavx -mavx2 -msse4.2 -msse4.1 -mlzcnt -mrdrnd -mf16c -mfsgsbase -mfxsr -mxsave -mxsaveopt --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=6144 -mtune=haswell -fstack-protector-strong"
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/chromium/policies/managed/chrome-gnome-shell.json /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/opt/chrome/policies/managed/chrome-gnome-shell.json /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=haswell -mmmx -msse -msse2 -msse3 -mssse3 -mcx16 -msahf -mmovbe -maes -mpclmul -mpopcnt -mabm -mfma -mbmi -mbmi2 -mavx -mavx2 -msse4.2 -msse4.1 -mlzcnt -mrdrnd -mf16c -mfsgsbase -mfxsr -mxsave -mxsaveopt --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=6144 -mtune=haswell -fstack-protector-strong"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync metadata-transfer multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j6"
PKGDIR="/usr/portage/etersoft"
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 aes alsa amd64 archive avahi avx avx2 bash-completion berkdb bluetooth bluray branding bzip2 cacert cairo cdda cdr cli cloudprint colord cracklib crypt cups cxx cycles dbus dhcpcd djvu dri dri3 dts dvd dvdr eds egl emboss encode equalizer evdev evo exif extras faac fam ffmpeg fftw firefox flac fma3 fortran fprint frei0r g711 g722 g7221 gbm gdbm gif gimp gles2 gnome gnome-keyring gnome-online-accounts gpm gstreamer gtk gtk3 http iconv idn ieee1394 introspection ipv6 jack javafx jpeg jpeg2k kms lcms ldap libnotify libsecret lv2 lxc mad midi mmx mmxext mng modules mp3 mp4 mpeg mtp multilib native-headset nautilus ncurses networkmanager nls nptl nsplugin nvenc ogg opengl openimageio openmp opus overlay pam pango pcre pdf png policykit popcnt postproc ppds pulseaudio qt3support qt4 rar raw readline realtime samba sdl seccomp sendto session smp speex spell sse sse2 sse3 sse4_1 sse4_2 ssl ssse3 startup-notification svg sync-plugin-portage systemd tcpd theora threads tiff tracker truetype udev udisks unicode upower usb user-session v4l vaapi vorbis vpx wavpack wayland winbind wxwidgets x264 x265 xa xattr xcb xinerama xml xv xvid xvmc 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" APACHE2_MPMS="prefork" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" CURL_SSL="gnutls" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="multiboot efi-64 pc" INPUT_DEVICES="libinput" KERNEL="linux" L10N="en ru" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="nlpsolver" LINGUAS="en ru" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_5" PYTHON_TARGETS="python2_7 python3_5" RUBY_TARGETS="ruby24 ruby22 ruby23" USERLAND="GNU" VIDEO_CARDS="intel i965 nvidia fbdev" XFCE_PLUGINS="brightness clock trash battery power" 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_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

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

x11-libs/gdk-pixbuf-2.36.6::gentoo was built with the following:
USE="X introspection jpeg jpeg2k tiff -debug -test" ABI_X86="32 (64) (-x32)"
Comment 2 Anton Gubarkov 2017-08-29 09:21:29 UTC
Created attachment 491046 [details]
build log collection
Comment 3 Anton Gubarkov 2017-08-29 09:22:24 UTC
Workaround: 
MAKEOPTS=-j1 emerge -1 gdk-pixbuf
Comment 4 Gilles Dartiguelongue (RETIRED) gentoo-dev 2017-08-30 06:39:09 UTC
As this is run in pkg_preinst, using -j1 should not have any effect however, reading the logs I see the path is completely wrong and most likely related to another package being built at the same time, namely iso-codes:

var/tmp/portage/x11-libs/gdk-pixbuf-2.36.9/image//usr/lib32/iso-codes-2.0/2.10.0/loaders.cache

CCing portage as I have no idea what could trigger this.
Comment 5 Gilles Dartiguelongue (RETIRED) gentoo-dev 2017-09-13 22:02:32 UTC
Confirming that either on first install or on reinstall/upgrades, I cannot reproduce this behavior.
Comment 6 Zac Medico gentoo-dev 2017-09-13 23:09:37 UTC
It does look like the ${PN} variable in multilib_pkg_preinst got corrupted somehow. I've just noticed that portage does not mark PN readonly.
Comment 7 Anton Gubarkov 2017-09-14 08:53:25 UTC
Just got this again on version 2.36.10
Comment 8 Anton Gubarkov 2017-09-14 08:53:36 UTC
Just got this again on version 2.36.10
Comment 9 Anton Gubarkov 2017-09-14 09:19:54 UTC
>>> Installing (1 of 1) x11-libs/gdk-pixbuf-2.36.10::gentoo
 * checking 107 files for package collisions
>>> Merging x11-libs/gdk-pixbuf-2.36.10 to /
Keeping  changes in snapshot gentoo-root:
Keeping  changes in snapshot var:
Keeping  changes in snapshot usr:
Keeping  changes in snapshot opt:
 * abi_x86_32.x86: running multilib_pkg_preinst
touch: cannot touch '/var/tmp/portage/x11-libs/gdk-pixbuf-2.36.10/image//usr/lib32/ck-sources-2.0/2.10.0/loaders.cache': No such file or di
rectory
Comment 10 Zac Medico gentoo-dev 2017-09-15 15:49:46 UTC
Please try it with something like this in /etc/portage/bashrc to show if the PN variable is set correctly:

if [[ ${EBUILD_PHASE} != depend ]]; then
    echo "EBUILD_PHASE: ${EBUILD_PHASE} PN: ${PN}"
fi
Comment 11 Anton Gubarkov 2017-09-19 10:26:21 UTC
Problem solved.

The root cause - my /etc/portage/bashrc had an override for function pre_pkg_preinst (to handle automatic snapper snapshots before packages are installed). It conflicted with gdk-pixbuf package.

I've removed the code and the install went smoothly.