Created attachment 902593 [details] build.log I did emerge -1 bcc to update bcc from 0.30.0-r1 to 0.31.0, and it failed with the following error. >>> Installing (1 of 1) dev-util/bcc-0.31.0::gentoo * Package 'dev-util/bcc-0.31.0' has internal collisions between non- * identical files (located in separate directories in the installation * image (${D}) corresponding to merged directories in the target * filesystem (${ROOT})): * * /usr/bin/argdist * /usr/bin/argdist * /usr/sbin/argdist * Differences: size, content * * /usr/bin/bashreadline * /usr/bin/bashreadline * /usr/sbin/bashreadline * Differences: content * [over 500 lines of this] * * /usr/bin/zfsslower * /usr/bin/zfsslower * /usr/sbin/zfsslower * Differences: size, content * * Package 'dev-util/bcc-0.31.0' NOT merged due to internal collisions * between non-identical files. If necessary, refer to your elog messages * for the whole content of the above message. >>> Completed (1 of 1) dev-util/bcc-0.31.0::gentoo >>> Failed to install dev-util/bcc-0.31.0, Log file: >>> '/var/tmp/portage/dev-util/bcc-0.31.0/temp/build.log' emerge --info bcc for the installed 0.30.0-r1 Portage 3.0.65 (python 3.12.6-final-0, default/linux/amd64/23.0/desktop, gcc-14, glibc-2.40, 6.6.35-gentoo-dist x86_64) ================================================================= System Settings ================================================================= System uname: Linux-6.6.35-gentoo-dist-x86_64-Intel-R-_Core-TM-_i5-2520M_CPU_@_2.50GHz-with-glibc2.40 KiB Mem: 8012712 total, 5143836 free KiB Swap: 12582908 total, 10561532 free Timestamp of repository gentoo: Tue, 10 Sep 2024 19:36:23 +0000 Head commit of repository gentoo: db61070b063e9a9e5090ed004b78b8d60a66ea15 Timestamp of repository guru: Tue, 10 Sep 2024 19:36:13 +0000 Head commit of repository guru: a55d9f4daece880528519749c6b8c610daf0d7cd Head commit of repository emanuele6: 471fb5781cc205d358027e2faf173a12b2c4f387 sh bash 5.2_p32-r1 ld GNU ld (Gentoo 2.43 p2) 2.43.1 app-misc/pax-utils: 1.3.7::gentoo app-shells/bash: 5.2_p32-r1::gentoo dev-build/autoconf: 2.72-r1::gentoo dev-build/automake: 1.17-r1::gentoo dev-build/cmake: 3.30.3::gentoo dev-build/libtool: 2.4.7-r4::gentoo dev-build/make: 4.4.1-r1::gentoo dev-build/meson: 1.5.1::gentoo dev-lang/perl: 5.40.0::gentoo dev-lang/python: 3.12.6::gentoo, 3.13.0_rc2::gentoo dev-lang/rust-bin: 1.80.1::gentoo sys-apps/baselayout: 2.15::gentoo sys-apps/openrc: 0.54.2::gentoo sys-apps/sandbox: 2.39::gentoo sys-devel/binutils: 2.43-r1::gentoo sys-devel/binutils-config: 5.5.2::gentoo sys-devel/clang: 18.1.8::gentoo sys-devel/gcc: 14.2.1_p20240817::gentoo sys-devel/gcc-config: 2.11::gentoo sys-devel/llvm: 18.1.8-r4::gentoo sys-kernel/linux-headers: 6.10::gentoo (virtual/os-headers) sys-libs/glibc: 2.40::gentoo Repositories: gentoo location: /var/db/repos/gentoo sync-type: git sync-uri: https://github.com/gentoo-mirror/gentoo.git priority: -1000 volatile: False guru location: /var/db/repos/guru sync-type: git sync-uri: https://github.com/gentoo-mirror/guru.git masters: gentoo volatile: False emanuele6 location: /g/repos/emanuele6 sync-type: git sync-uri: https://github.com/emanuele6/gentoo.git masters: gentoo priority: 99999 volatile: True Binary Repositories: gentoobinhost priority: 9999 sync-uri: https://gentoo.mirror.garr.it/releases/amd64/binpackages/23.0/x86-64 ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="@FREE" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=native -O3 -pipe -ggdb3" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/bind" 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="-march=native -O3 -pipe -ggdb3" DISTDIR="/var/cache/distfiles" 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="-march=native -O3 -pipe" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live compressdebug config-protect-if-modified distlocks ebuild-locks fixlafiles getbinpkg installsources ipc-sandbox merge-sync merge-wait multilib-strict network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-march=native -O3 -pipe" GENTOO_MIRRORS="https://gentoo.mirror.garr.it/ http://gentoo.mirror.garr.it/ https://mirror.init7.net/gentoo/ http://mirror.init7.net/gentoo/ rsync://mirror.init7.net/gentoo/" LANG="C.UTF8" LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs" LEX="flex" MAKEFLAGS="-j -l5" 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 target-cpu=native -C opt-level=3 -C debuginfo=2" SHELL="/bin/bash" USE="X a52 aac acl acpi alsa amd64 asm bluetooth branding brotli bzip2 cairo cdda cdr cet crypt cups dbus dri dts dvd dvdr elogind encode exif flac fontconfig gdbm gif gpm graphviz gtk gui iconv icu ipv6 jpeg kf6compat lcms libnotify libtirpc mad man mng mp3 mp4 mpeg multilib ncurses nls ogg opengl openmp opus pam pango pcre pdf png policykit ppds pulseaudio qt5 qt6 readline sdl seccomp sound spell ssl startup-notification svg test-rust theora threads tiff truetype udev udisks unicode upower usb vorbis vulkan webp wxwidgets x264 xattr xcb xft xml xv xvid zlib" ABI_X86="64" ADA_TARGET="gcc_12" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_anon authn_dbm authn_file authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers include info log_config logio 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 mmx mmxext pclmul 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 ntrip navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" GRUB_PLATFORMS="efi-64" GUILE_SINGLE_TARGET="3-0" GUILE_TARGETS="3-0" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-2" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_12" PYTHON_TARGETS="python3_12" RUBY_TARGETS="ruby31 ruby32" VIDEO_CARDS="intel" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto logmark ipmark dhcpmac delude chaos account" Unset: ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEOPTS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, RANLIB, READELF, SIZE, STRINGS, STRIP, YACC, YFLAGS ================================================================= Package Settings ================================================================= dev-util/bcc-0.30.0-r1::gentoo was built with the following: USE="lua -test" ABI_X86="(64)" LUA_SINGLE_TARGET="luajit" PYTHON_TARGETS="python3_12 -python3_10 -python3_11" CFLAGS="-march=native -O3 -pipe" CXXFLAGS="-march=native -O3 -pipe" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles getbinpkg ipc-sandbox merge-sync merge-wait multilib-strict network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
Created attachment 902594 [details] environment
As far as I can tell /usr/sbin is the intended path, so whatever happened previously in 0.30 was wrong.
Even more curiously, if I "ebuild bcc-0.30.0-r1.ebuild clean install" stuff ends up in /usr/sbin too: $ll /tmp/portage/dev-util/bcc-0.30.0-r1/image/usr/sbin total 0 lrwxrwxrwx 1 holger users 26 Sep 11 10:35 argdist -> ../share/bcc/tools/argdist* lrwxrwxrwx 1 holger users 31 Sep 11 10:35 bashreadline -> ../share/bcc/tools/bashreadline* lrwxrwxrwx 1 holger users 24 Sep 11 10:35 bcc-trace -> ../share/bcc/tools/trace* ..etc.. No idea what happened here.
Not really looked but 0.30.0-r1 vs 0.31.0 has a rewrite of the Python handling and now Python gets trusted to install a bunch of things now, so I imagine that that's where the other copy comes from.
(In reply to Sam James from comment #4) > Not really looked but 0.30.0-r1 vs 0.31.0 has a rewrite of the Python > handling and now Python gets trusted to install a bunch of things now, so I > imagine that that's where the other copy comes from. ... if that's right, dropping the dosym stuff would work.
Dropped the dosym hackery. https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2fb9949576f5f55b416d25682b4bfe9c89500df9
*** Bug 939470 has been marked as a duplicate of this bug. ***