I'm not really sure how this has happened, tbh. This is on a machine which is mostly a binpkg consumer. ``` * checking 7603 files for package collisions >>> Merging app-editors/emacs-29.0.9999-r1 to / mv: cannot stat '/var/tmp/portage/app-editors/emacs-29.0.9999-r1/image/usr/share/info/emacs-29-vcs/dir.orig': No such file or directory * ERROR: app-editors/emacs-29.0.9999-r1::gentoo failed (preinst phase): * (no error message) * * Call stack: * ebuild.sh, line 136: Called pkg_preinst * environment, line 2787: Called die * The specific snippet of code: * mv "${ED}"/usr/share/info/${EMACS_SUFFIX}/dir{.orig,} || die; ``` ---- Portage 3.0.45.1 (python 3.10.10-final-0, default/linux/amd64/17.1/hardened, gcc-12, glibc-2.36-r5, 6.1.15-gentoo-dist x86_64) ================================================================= System uname: Linux-6.1.15-gentoo-dist-x86_64-Intel-R-_Core-TM-_M-5Y10c_CPU_@_0.80GHz-with-glibc2.36 KiB Mem: 8033284 total, 991800 free KiB Swap: 4016636 total, 2534476 free Timestamp of repository gentoo: Sun, 05 Mar 2023 06:46:57 +0000 Timestamp of repository sam_c: Thu, 23 Feb 2023 13:47:31 +0000 Head commit of repository sam_c: 773861c99846701b491643352eff7c537da946be sh bash 5.1_p16-r2 ld GNU ld (Gentoo 2.39 p5) 2.39.0 ccache version 4.7.4 [disabled] 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.10_p2::gentoo, 3.11.2_p1::gentoo dev-lang/rust-bin: 1.66.1-r1::gentoo dev-util/ccache: 4.7.4::gentoo dev-util/cmake: 3.25.2::gentoo dev-util/meson: 1.0.0::gentoo sys-apps/baselayout: 2.13-r1::gentoo sys-apps/sandbox: 2.29::gentoo sys-apps/systemd: 252.4-r1::gentoo sys-devel/autoconf: 2.71-r5::gentoo sys-devel/automake: 1.16.5::gentoo sys-devel/binutils: 2.39-r4::gentoo sys-devel/binutils-config: 5.5::gentoo sys-devel/clang: 15.0.7-r1::gentoo sys-devel/gcc: 12.2.1_p20230121-r1::gentoo sys-devel/gcc-config: 2.10::gentoo sys-devel/libtool: 2.4.7-r1::gentoo sys-devel/llvm: 15.0.7::gentoo sys-devel/make: 4.3::gentoo sys-kernel/linux-headers: 6.1::gentoo (virtual/os-headers) sys-libs/glibc: 2.36-r5::gentoo Repositories: gentoo location: /var/db/repos/gentoo sync-type: git sync-uri: https://github.com/gentoo-mirror/gentoo.git priority: -1000 volatile: False sync-git-clone-extra-opts: -b stable -c gc.reflogExpire=0 -c gc.reflogExpireUnreachable=0 -c gc.rerereresolved=0 -c gc.rerereunresolved=0 -c gc.pruneExpire=now sync-git-verify-commit-signature: yes local location: /var/db/repos/local masters: gentoo volatile: False sam_c location: /var/db/repos/sam_c sync-type: git sync-uri: https://github.com/gentoo-mirror/sam_c.git masters: gentoo volatile: False Binary Repositories: binhost priority: 10 sync-uri: http://127.0.0.1:8000/Packages Installed sets: @emacs ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="@FREE" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe -march=native -fdiagnostics-color=always -frecord-gcc-switches" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /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" CXXFLAGS="-O2 -pipe -march=native -fdiagnostics-color=always -frecord-gcc-switches" DISTDIR="/var/cache/distfiles" EMERGE_DEFAULT_OPTS="--keep-going=y --complete-graph --deep --changed-deps-report=y --getbinpkg --usepkg-exclude gentoo-kernel --usepkg-exclude zfs --usepkg-exclude zfs-kmod --usepkg-exclude dist-kernel" ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE 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="-O2 -pipe -march=native -fdiagnostics-color=always -frecord-gcc-switches" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance binpkg-request-signature buildpkg-live clean-logs config-protect-if-modified distlocks fixlafiles gpg-keepalive ipc-sandbox mount-sandbox multilib-strict network-sandbox news parallel-fetch parallel-install pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms split-log strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2 -pipe -march=native -fdiagnostics-color=always -frecord-gcc-switches" GENTOO_MIRRORS="http://distfiles.gentoo.org" LANG="en_GB.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -Wl,-z,pack-relative-relocs" LEX="flex" LINGUAS="en en_GB" MAKEOPTS="-j2" PKGDIR="/var/cache/binpkgs" PORTAGE_COMPRESS="xz" 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 target-cpu=native" SHELL="/bin/bash" USE="PIC X a52 aac acl acpi activities aes alsa amd64 avx avx2 bluetooth branding bzip2 cairo caps cdda cdr cet cli crypt dbus declarative dist-kernel dri dts dvd dvdr emacs encode exif f16c flac fma3 fortran gdbm gif gles2 gmp graphite gtk gui hardened hunspell iconv icu ipv6 iwd jit jpeg kde kwallet lcms libglvnd libnotify libtirpc mad mmx mmxext mng mp3 mp4 mpeg multilib ncurses networkmanager nptl ogg opengl openmp pam pango pclmul pcre pdf pic pie pipewire plasma png policykit popcnt ppds pulseaudio qml qt5 rdrand readline screencast sdl seccomp semantic-desktop smartcard sound spell sse sse2 sse3 sse4_1 sse4_2 ssl ssp ssse3 startup-notification svg system-av1 system-binutils system-boost system-bootstrap system-cairo system-clang system-digest system-ffmpeg system-harfbuzz system-heimdal system-icu system-jpeg system-jsoncpp system-leveldb system-libevent system-libs system-libvpx system-libyaml system-lz4 system-mitkrb5 system-sqlite system-ssl system-tbb system-uulib system-webp system-zlib systemd test-rust threads tiff truetype udev udisks unicode upower usb verify-sig vorbis vulkan wayland widgets x264 xattr xcb xft xml xtpax xv xvid 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 rdrand 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" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="libinput" KERNEL="linux" L10N="en en-GB" 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 php8-0" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_10" PYTHON_TARGETS="python3_10" QEMU_SOFTMMU_TARGETS="x86_64 aarch64 arm" QEMU_USER_TARGETS="x86_64 aarch64 arm" RUBY_TARGETS="ruby27 ruby30" USERLAND="GNU" VIDEO_CARDS="intel i965 iris" 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, LFLAGS, LIBTOOL, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, SIZE, STRINGS, STRIP, YACC, YFLAGS
$ ls /var/tmp/portage/app-editors/emacs-29.0.9999-r1/image/usr/share/info/ emacs-29-vcs I could probably upload the binpkg if it's really needed.
(In reply to Sam James from comment #1) > $ ls /var/tmp/portage/app-editors/emacs-29.0.9999-r1/image/usr/share/info/ > emacs-29-vcs What is inside the emacs-29-vcs subdir? Especially, does it contain any dir* file? > I could probably upload the binpkg if it's really needed. I don't think that's necessary. (In reply to Sam James from comment #0) > Unset: [...] INSTALL_MASK, [...] Is this the same on the binpkg build host and consumer?
Created attachment 856188 [details] tree /var/tmp/portage/app-editors/emacs-29.0.9999-r1/image/usr/share/info/emacs-29-vcs/ Producer: # emerge --info | grep -i MASK 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" 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, LFLAGS, LIBTOOL, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, SIZE, STRINGS, STRIP, YACC, YFLAGS Consumer: # emerge --info | grep -i MASK 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" 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, LFLAGS, LIBTOOL, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, SIZE, STRINGS, STRIP, YACC, YFLAGS
I cannot reproduce this when I create the binary package with emerge --buildpkgonly. However, I can reproduce it when I create the binpkg with quickpkg. In this case, I suspect that pkg_preinst is executed twice.
(In reply to Ulrich Müller from comment #4) > > However, I can reproduce it when I create the binpkg with quickpkg. In this > case, I suspect that pkg_preinst is executed twice. This also explains another bug I hit the other day with sys-kernel/gentoo-kernel, actually.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=004d9a56c6b7cc0867735791e54f07a2981c7d93 commit 004d9a56c6b7cc0867735791e54f07a2981c7d93 Author: Ulrich Müller <ulm@gentoo.org> AuthorDate: 2023-03-05 10:08:34 +0000 Commit: Ulrich Müller <ulm@gentoo.org> CommitDate: 2023-03-05 10:11:21 +0000 app-editors/emacs: Workaround for non-idempotent pkg_preinst Closes: https://bugs.gentoo.org/899648 Signed-off-by: Ulrich Müller <ulm@gentoo.org> app-editors/emacs/emacs-18.59-r15.ebuild | 12 +++++++++--- app-editors/emacs/emacs-25.3-r16.ebuild | 10 ++++++++-- app-editors/emacs/emacs-26.3-r13.ebuild | 10 ++++++++-- app-editors/emacs/emacs-27.2-r11.ebuild | 10 ++++++++-- app-editors/emacs/emacs-28.2-r6.ebuild | 10 ++++++++-- app-editors/emacs/emacs-28.3_rc1.ebuild | 10 ++++++++-- app-editors/emacs/emacs-29.0.9999-r1.ebuild | 10 ++++++++-- app-editors/emacs/emacs-30.0.9999.ebuild | 10 ++++++++-- 8 files changed, 65 insertions(+), 17 deletions(-)