View previous topic :: View next topic |
Author |
Message |
zBrain Apprentice
Joined: 14 Apr 2006 Posts: 199
|
Posted: Sat Oct 05, 2024 11:38 pm Post subject: What is an internal collision? And how to fix? |
|
|
Code: | * checking 485 files for package collisions
* Package 'sys-apps/shadow-4.14.2' 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/passwd
* /bin/passwd
* /usr/bin/passwd
* Differences: type, mode
*
* Package 'sys-apps/shadow-4.14.2' 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. |
[Administrator edit: added [code] tags to preserve output layout. -Hu] |
|
Back to top |
|
|
zBrain Apprentice
Joined: 14 Apr 2006 Posts: 199
|
Posted: Sun Oct 06, 2024 12:41 am Post subject: |
|
|
I just realized its likely because of split-usr being forced
Code: | [binary R ] app-alternatives/awk-4::gentoo USE="gawk (split-usr*) -busybox -mawk -nawk" 0 KiB
[binary R ] sys-apps/coreutils-9.5::gentoo USE="acl nls openssl (split-usr*) (xattr) -caps -gmp -hostname -kill -multicall (-selinux) -static -test -vanilla -verify-sig" 0 KiB
[binary R ] sys-apps/shadow-4.14.2:0/4::gentoo USE="acl nls pam (split-usr*) xattr -audit -cracklib (-selinux) -skey -su -systemd -verify-sig" 0 KiB
|
All these packages are doing it. Any ideas?
[Administrator edit: added [code] tags to preserve output layout. -Hu] |
|
Back to top |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 22480
|
Posted: Sun Oct 06, 2024 12:51 am Post subject: |
|
|
The output you quoted in the first post describes an internal collision. What is the output of emerge --info? I suspect you are pulling split-usr binaries into a merged-usr system. |
|
Back to top |
|
|
zBrain Apprentice
Joined: 14 Apr 2006 Posts: 199
|
Posted: Sun Oct 06, 2024 12:58 am Post subject: |
|
|
That answer could be complicated. I'm updating an old server using portage in a chroot.
emerge --info --root=/mnt/host --config-root=/mnt/host
Code: |
Portage 3.0.65 (python 3.12.3-final-0, !../../usr/portage/profiles/default/linux/amd64/17.1/hardened, gcc-9.3.0, glibc-2.39-r6, 4.14.83-gentoo x86_64)
=================================================================
System uname: Linux-4.14.83-gentoo-x86_64-Common_KVM_processor-with-glibc2.39
KiB Mem: 8158640 total, 1947788 free
KiB Swap: 0 total, 0 free
Timestamp of repository gentoo: Sat, 20 Jul 2024 17:45:00 +0000
Head commit of repository gentoo: 74a613d51782ffe523d0a6cdd772dfc4a1659284
Head commit of repository RHWSI: a24b5e37f303fa9368ec1913a4c0aafd783aead1
Timestamp of repository mva: Wed, 02 Oct 2024 09:19:05 +0000
Head commit of repository mva: 8cc7684b0c37911bc38a20703b9991b8dec1e177
sh bash 5.2_p26-r6
ld GNU ld (Gentoo 2.42 p3) 2.42.0
app-misc/pax-utils: 1.3.7::gentoo
app-shells/bash: 5.2_p26-r6::gentoo
dev-build/autoconf: 2.69-r5::gentoo
dev-build/automake: 1.12.6::gentoo, 1.14.1::gentoo, 1.15.1-r2::gentoo, 1.16.2-r1::gentoo
dev-build/cmake: 3.18.5::gentoo
dev-build/libtool: 2.4.6-r6::gentoo
dev-build/make: 4.4.1-r1::gentoo
dev-build/meson: 0.56.2::gentoo
dev-lang/perl: 5.38.2-r3::gentoo
dev-lang/python: 2.7.18_p9::gentoo, 3.6.11-r2::gentoo, 3.7.8-r2::gentoo, 3.8.9_p2::gentoo, 3.9.4_p1::gentoo
sys-apps/baselayout: 2.15::gentoo
sys-apps/openrc: 0.42.1-r1::gentoo
sys-apps/sandbox: 2.38::gentoo
sys-devel/binutils: 2.29.1-r1::gentoo, 2.30-r4::gentoo, 2.33.1-r1::gentoo, 2.35.2::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/gcc: 9.3.0-r1::gentoo, 10.2.0-r5::gentoo, 13.3.1_p20240614::gentoo
sys-devel/gcc-config: 2.11::gentoo
sys-kernel/linux-headers: 6.6-r1::gentoo (virtual/os-headers)
sys-libs/glibc: 2.39-r6::gentoo
Repositories:
gentoo
location: /usr/portage
sync-type: rsync
sync-uri: rsync://fresh.registeredhosting.ca/gentoo-portage
priority: -1000
volatile: True
sync-rsync-verify-metamanifest: no
sync-rsync-extra-opts:
sync-rsync-verify-max-age: 3
sync-rsync-verify-jobs: 1
RHWSI
location: /var/lib/repos/RHWSI
sync-type: git
sync-uri: https://gogs.registeredhosting.ca/RHWSI/gentoo-overlay.git
masters: gentoo
volatile: True
mva
location: /var/db/repos/mva
sync-type: git
sync-uri: https://github.com/gentoo-mirror/mva.git
masters: gentoo
volatile: False
Binary Repositories:
fresh
priority: 1
sync-uri: ssh://binpkguser@fresh.registeredhosting.ca/usr/portage/packages
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php7.4/ext-active/ /etc/php/cgi-php7.4/ext-active/ /etc/php/cli-php7.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="-j3 --with-bdeps=y --quiet-build=y --complete-graph --binpkg-changed-deps=n"
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"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles 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"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="C.UTF8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LEX="flex"
MAKEOPTS="-j7"
PKGDIR="/var/cache/binpkgs"
PORTAGE_BINHOST="ssh://binpkguser@fresh.registeredhosting.ca/usr/portage/packages"
PORTAGE_CONFIGROOT="/mnt/host/"
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"
SHELL="/bin/bash"
USE="acl amd64 bzip2 cet cli crypt dri fortran gdbm hardened iconv ipv6 libtirpc mmx multilib ncurses nls openmp pam pcre pic pie readline seccomp split-usr sse sse2 ssl ssp test-rust unicode xattr xtpax 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="mmx mmxext sse sse2" 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" 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 php8-1" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_12" PYTHON_TARGETS="python3_12" RUBY_TARGETS="ruby31 ruby32" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa dummy" 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, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
|
|
|
Back to top |
|
|
zBrain Apprentice
Joined: 14 Apr 2006 Posts: 199
|
Posted: Sun Oct 06, 2024 1:22 am Post subject: |
|
|
Just as a note - I never ran the script to merge usr.
I really hope this system isn't borked |
|
Back to top |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 22480
|
Posted: Sun Oct 06, 2024 2:07 am Post subject: |
|
|
What is the output of namei -l /mnt/host/{,usr/}{,s}bin? |
|
Back to top |
|
|
zBrain Apprentice
Joined: 14 Apr 2006 Posts: 199
|
Posted: Sun Oct 06, 2024 2:18 am Post subject: |
|
|
Quote: |
f: /mnt/host/bin
drwxr-xr-x root root /
drwxr-xr-x root root mnt
host - No such file or directory
f: /mnt/host/sbin
drwxr-xr-x root root /
drwxr-xr-x root root mnt
host - No such file or directory
f: /mnt/host/usr/bin
drwxr-xr-x root root /
drwxr-xr-x root root mnt
host - No such file or directory
f: /mnt/host/usr/sbin
drwxr-xr-x root root /
drwxr-xr-x root root mnt
host - No such file or directory
|
|
|
Back to top |
|
|
bstaletic Guru
Joined: 05 Apr 2014 Posts: 333
|
Posted: Sun Oct 06, 2024 3:20 am Post subject: |
|
|
Quote: | host - No such file or directory |
Sounds like you had been chrooted when you executed the namei command. |
|
Back to top |
|
|
zBrain Apprentice
Joined: 14 Apr 2006 Posts: 199
|
Posted: Sun Oct 06, 2024 3:33 am Post subject: |
|
|
Code: |
f: /mnt/host/bin
drwxr-xr-x root root /
drwxr-xr-x root root mnt
drwxr-xr-x root root host
drwxr-xr-x root root bin
f: /mnt/host/sbin
drwxr-xr-x root root /
drwxr-xr-x root root mnt
drwxr-xr-x root root host
drwxr-xr-x root root sbin
f: /mnt/host/usr/bin
drwxr-xr-x root root /
drwxr-xr-x root root mnt
drwxr-xr-x root root host
drwxr-xr-x root root usr
drwxr-xr-x root root bin
f: /mnt/host/usr/sbin
drwxr-xr-x root root /
drwxr-xr-x root root mnt
drwxr-xr-x root root host
drwxr-xr-x root root usr
drwxr-xr-x root root sbin
|
|
|
Back to top |
|
|
zBrain Apprentice
Joined: 14 Apr 2006 Posts: 199
|
Posted: Sun Oct 06, 2024 4:45 pm Post subject: |
|
|
Bumping this just in case anyone has an idea. |
|
Back to top |
|
|
bstaletic Guru
Joined: 05 Apr 2014 Posts: 333
|
Posted: Sun Oct 06, 2024 6:57 pm Post subject: |
|
|
That looks like a split /usr layout, but the original error seems to suggest a merged /usr layout.
Have you tried going back from merged usr to split usr? |
|
Back to top |
|
|
pjp Administrator
Joined: 16 Apr 2002 Posts: 20438
|
Posted: Mon Oct 07, 2024 3:31 am Post subject: |
|
|
zBrain wrote: | That answer could be complicated. I'm updating an old server using portage in a chroot.
emerge --info --root=/mnt/host --config-root=/mnt/host
Code: |
Portage 3.0.65 (python 3.12.3-final-0, !../../usr/portage/profiles/default/linux/amd64/17.1/hardened, gcc-9.3.0, glibc-2.39-r6, 4.14.83-gentoo x86_64) |
| Have you at any time tried to migrate to or from "split-usr" and "merged-usr" configurations?
Has this profile ever changed, excluding older profiles prior to 17.1?
What system / profile is used by the environment hosting this chroot?
What / how are the binaries generated that you are using for this update?
And to clarify, you are only trying to update the system in the chroot to be a current 17.1 profile, correct? Or are you trying to achieve a profile migration before updating 17.1?
Other than age, this profile seems fine. Because it does not specify "merged-usr" this is what would be expected of a 17.1 profile that is "split-usr" implied. Beginning with 23 profiles, "merged-usr" is implied and "split-usr" is specified. This is described in the news announcement step 6.
So "its likely because of split-usr being forced" may or may not be correct. _________________ Quis separabit? Quo animo? |
|
Back to top |
|
|
Slippery Jim Apprentice
Joined: 08 Jan 2005 Posts: 281
|
Posted: Mon Oct 07, 2024 6:49 am Post subject: |
|
|
Not sure what your situation is, but I had this error when I was building something into a target root with the --root= option once. It turned out to be because I was passing a path with a symlink in it to the --root option. In the following error message, /home/james/software/ was a symlink to /mnt/software/. It worked fine when I passed a real path instead:
Code: |
# * Package 'sys-libs/libcap-2.69' 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})):
# *
# * /home/james/software/gentoo-target/root/tcap
# * /home/james/software/gentoo-target/root/sbin/getcap
# * /home/james/software/gentoo-target/root/sbin/setcap
# * Differences: size, content
# *
# * Package 'sys-libs/libcap-2.69' 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.
# *
# * The following package has failed to build, install, or execute postinst:
# *
# * (sys-libs/libcap-2.69-3:0/0::gentoo, binary scheduled for merge to '/home/james/software/gentoo-target/root/'), Log file:
# * '/var/tmp/log/sys-libs:libcap-2.69:20230829-002548.log'
# *
|
|
|
Back to top |
|
|
zBrain Apprentice
Joined: 14 Apr 2006 Posts: 199
|
Posted: Wed Oct 09, 2024 3:37 pm Post subject: |
|
|
Thanks all for the replies. Unfortunately I ran out of time on it and just ended up reinstalling. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|