Luckily, this is only a back-up installation
Anyway, I have done what wiki have stated
https://wiki.gentoo.org/wiki/Merge-usr
What I have done
added split-usr in /etc/portage/profile/use.mask
added
UNINSTALL_IGNORE="split-usr" in make.conf
switch to su
and ran emerge -avDuN @world
after some package
>>> Failed to emerge app-arch/xz-utils-5.4.1
Code: Select all
Gen2-Plasma /home/ja # emerge -uDN @world
These are the packages that would be merged, in order:
Calculating dependencies ... done!
Dependency resolution took 9.53 s.
[ebuild R ] sys-apps/baselayout-2.13-r1::gentoo USE="-build (-split-usr*)" 0 KiB
[ebuild R ] dev-libs/lzo-2.10:2::gentoo USE="-examples (-split-usr*) -static-libs" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild R ] net-libs/libnftnl-1.2.4:0/11::gentoo USE="-examples (-split-usr*) -static-libs -test -verify-sig" 0 KiB
[ebuild R ] app-arch/xz-utils-5.4.1::gentoo USE="extra-filters nls (-split-usr*) -static-libs -verify-sig" ABI_X86="(64) -32 (-x32)" 2,470 KiB
[ebuild R ] net-libs/libtirpc-1.3.3:0/3::gentoo USE="-kerberos (-split-usr*) -static-libs" ABI_X86="(64) -32 (-x32)" 559 KiB
[ebuild R ] app-arch/bzip2-1.0.8-r4:0/1::gentoo USE="(-split-usr*) -static -static-libs -verify-sig" ABI_X86="(64) -32 (-x32)" 792 KiB
[ebuild R ] app-alternatives/bzip2-1::gentoo USE="reference -lbzip2 -pbzip2 (-split-usr*)" 0 KiB
[ebuild R ] app-alternatives/gzip-0::gentoo USE="reference -pigz (-split-usr*)" 0 KiB
[ebuild R ] app-alternatives/cpio-0::gentoo USE="gnu -libarchive (-split-usr*)" 0 KiB
[ebuild R ] app-alternatives/awk-4::gentoo USE="gawk -busybox -mawk -nawk (-split-usr*)" 0 KiB
[ebuild R ] sys-libs/zlib-1.2.13-r1:0/1::gentoo USE="minizip (-split-usr*) -static-libs -verify-sig" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild R ] sys-apps/attr-2.5.1-r2::gentoo USE="nls -debug (-split-usr*) -static-libs" ABI_X86="(64) -32 (-x32)" 311 KiB
[ebuild R ] sys-libs/libxcrypt-4.4.33:0/1::gentoo USE="(compat) (system) -headers-only (-split-usr*) -static-libs -test" ABI_X86="32 (64) (-x32)" 0 KiB
[ebuild R ] app-arch/zstd-1.5.4-r2:0/1::gentoo USE="lzma zlib -lz4 (-split-usr*) -static-libs -test" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild R ] sys-apps/acl-2.3.1-r1::gentoo USE="nls (-split-usr*) -static-libs" ABI_X86="(64) -32 (-x32)" 348 KiB
[ebuild R ] sys-apps/coreutils-9.1-r2::gentoo USE="acl nls openssl xattr -caps -gmp -hostname -kill -multicall (-selinux) (-split-usr*) -static -test -vanilla -verify-sig" 5,585 KiB
[ebuild R ] sys-libs/ncurses-6.4:0/6::gentoo USE="cxx gpm stack-realign (tinfo) -ada -debug -doc -minimal -profile (-split-usr*) -static-libs -test -trace -verify-sig" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild R ] sys-libs/pam-1.5.2-r3::gentoo USE="filecaps -audit -berkdb -debug -nis (-selinux) (-split-usr*)" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild R ] sys-libs/libcap-2.67::gentoo USE="pam (-split-usr*) -static-libs -tools" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild R ] sys-libs/readline-8.2_p1:0/8::gentoo USE="(unicode) (-split-usr*) -static-libs -utils -verify-sig" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild R ] sys-libs/gpm-1.20.7-r5::gentoo USE="(-selinux) (-split-usr*)" ABI_X86="(64) -32 (-x32)" 812 KiB
[ebuild R ] dev-libs/libpcre2-10.42-r1:0/3::gentoo USE="bzip2 jit pcre16 readline unicode zlib -libedit -pcre32 (-split-usr*) -static-libs -verify-sig" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild R ] sys-apps/util-linux-2.38.1-r2::gentoo USE="cramfs hardlink logger ncurses nls pam readline su suid systemd udev (unicode) -audit -build -caps -cryptsetup -fdformat -kill -magic -python (-rtas) (-selinux) -slang (-split-usr*) -static-libs -test -tty-helpers -verify-sig" ABI_X86="(64) -32 (-x32)" PYTHON_TARGETS="python3_10 -python3_9 -python3_11" 0 KiB
[ebuild R ] sys-apps/systemd-252.5:0/2::gentoo USE="acl apparmor dns-over-tls gcrypt kmod lz4 openssl pam pcre (policykit) resolvconf seccomp sysv-utils zstd -audit -cgroup-hybrid -cryptsetup -curl -elfutils -fido2 -gnuefi -gnutls -homed -http -idn -importd -iptables -lzma -pkcs11 -pwquality -qrcode (-selinux) (-split-usr*) -test -tpm -vanilla -xkb" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild R ] sys-fs/e2fsprogs-1.47.0::gentoo USE="fuse nls tools -cron (-split-usr*) -static-libs -test" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild R ] sys-process/audit-3.0.9-r1::gentoo USE="-gssapi -ldap -python (-split-usr*) -static-libs -test" ABI_X86="(64) -32 (-x32)" PYTHON_TARGETS="python3_10 -python3_9 -python3_11" 0 KiB
[ebuild R ] dev-libs/libpcre-8.45-r1:3::gentoo USE="bzip2 cxx jit readline (unicode) zlib -libedit -pcre16 -pcre32 (-split-usr*) -static-libs" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild R ] dev-libs/libusb-1.0.26:1::gentoo USE="udev -debug -doc -examples (-split-usr*) -static-libs -test" ABI_X86="(64) -32 (-x32)" 606 KiB
[ebuild R ] sys-apps/iproute2-6.1.0-r1::gentoo USE="-atm -berkdb -bpf -caps -elf -iptables -libbsd -minimal -nfs (-selinux) (-split-usr*)" 0 KiB
[ebuild R ] sys-process/procps-3.3.17-r1:0/8::gentoo USE="kill ncurses nls systemd (unicode) (-elogind) -modern-top (-selinux) (-split-usr*) -static-libs -test" ABI_X86="(64) -32 (-x32)" 985 KiB
[ebuild R ] sys-apps/shadow-4.13-r1:0/4::gentoo USE="acl nls pam xattr -audit -bcrypt -cracklib (-selinux) -skey (-split-usr*) -su -verify-sig" 1,722 KiB
[ebuild R ] net-firewall/iptables-1.8.9:0/1.8.3::gentoo USE="nftables -conntrack -netlink -pcap (-split-usr*) -static-libs" 0 KiB
[ebuild R ] app-alternatives/tar-0::gentoo USE="gnu -libarchive (-split-usr*)" 0 KiB
Total: 33 packages (33 reinstalls), Size of downloads: 14,186 KiB
Would you like to merge these packages? [Yes/No]
>>> Verifying ebuild manifests
>>> Running pre-merge checks for sys-libs/libxcrypt-4.4.33
>>> Running pre-merge checks for sys-libs/gpm-1.20.7-r5
* Determining the location of the kernel source code
* Found kernel source directory:
* /usr/src/linux
* Found sources for kernel version:
* 6.1.12-gentoo-Ja-SyS
* Checking for suitable kernel configuration options ... [ ok ]
>>> Running pre-merge checks for sys-apps/util-linux-2.38.1-r2
>>> Running pre-merge checks for sys-apps/systemd-252.5
* Determining the location of the kernel source code
* Found kernel source directory:
* /usr/src/linux
* Found sources for kernel version:
* 6.1.12-gentoo-Ja-SyS
* Checking for suitable kernel configuration options ... [ ok ]
>>> Emerging (1 of 33) sys-apps/baselayout-2.13-r1::gentoo
>>> Emerging (2 of 33) dev-libs/lzo-2.10::gentoo
>>> Emerging (3 of 33) net-libs/libnftnl-1.2.4::gentoo
>>> Emerging (4 of 33) app-arch/bzip2-1.0.8-r4::gentoo
>>> Emerging (5 of 33) app-alternatives/gzip-0::gentoo
>>> Installing (3 of 33) net-libs/libnftnl-1.2.4::gentoo
>>> Installing (1 of 33) sys-apps/baselayout-2.13-r1::gentoo
>>> Installing (5 of 33) app-alternatives/gzip-0::gentoo
>>> Installing (4 of 33) app-arch/bzip2-1.0.8-r4::gentoo
>>> Installing (2 of 33) dev-libs/lzo-2.10::gentoo
>>> Emerging (6 of 33) app-arch/xz-utils-5.4.1::gentoo
>>> Failed to emerge app-arch/xz-utils-5.4.1
>>> Jobs: 5 of 33 complete, 1 failed Load avg: 4.11, 2.36, 1.17
* Messages for package sys-apps/baselayout-2.13-r1:
* Log file: /var/log/portage/sys-apps:baselayout-2.13-r1:20230216-091012.log
* After updating /etc/profile, please run
* env-update && . /etc/profile
* Please run env-update then log out and back in to
* update your path.
* Messages for package app-arch/xz-utils-5.4.1:
* GNU info directory index is up-to-date.
* IMPORTANT: config file '/etc/hosts' needs updating.
* See the CONFIGURATION FILES and CONFIGURATION FILES UPDATE TOOLS
* sections of the emerge man page to learn how to update config files.
* After world updates, it is important to remove obsolete packages with
* emerge --depclean. Refer to `man emerge` for more information.
Gen2-Plasma /home/ja #
re-ran emerge -avDuN @world again
same thing.
I did env-update && . /etc/profile
log out and log in.
I cannot log in as root with command su
I can however switch to sudo su
after sudo su re-ran emerge avDUN @world
then here is the error
Code: Select all
Gen2-Plasma /home/ja # emerge -avDuN @world
These are the packages that would be merged, in order:
Calculating dependencies ... done!
Dependency resolution took 9.61 s.
[ebuild R ] app-arch/xz-utils-5.4.1::gentoo USE="extra-filters nls (-split-usr*) -static-libs -verify-sig" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild R ] net-libs/libtirpc-1.3.3:0/3::gentoo USE="-kerberos (-split-usr*) -static-libs" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild R ] app-alternatives/bzip2-1::gentoo USE="reference -lbzip2 -pbzip2 (-split-usr*)" 0 KiB
[ebuild R ] app-alternatives/cpio-0::gentoo USE="gnu -libarchive (-split-usr*)" 0 KiB
[ebuild R ] app-alternatives/awk-4::gentoo USE="gawk -busybox -mawk -nawk (-split-usr*)" 0 KiB
[ebuild R ] sys-libs/zlib-1.2.13-r1:0/1::gentoo USE="minizip (-split-usr*) -static-libs -verify-sig" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild R ] sys-apps/attr-2.5.1-r2::gentoo USE="nls -debug (-split-usr*) -static-libs" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild R ] sys-libs/libxcrypt-4.4.33:0/1::gentoo USE="(compat) (system) -headers-only (-split-usr*) -static-libs -test" ABI_X86="32 (64) (-x32)" 0 KiB
[ebuild R ] app-arch/zstd-1.5.4-r2:0/1::gentoo USE="lzma zlib -lz4 (-split-usr*) -static-libs -test" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild R ] sys-apps/acl-2.3.1-r1::gentoo USE="nls (-split-usr*) -static-libs" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild R ] sys-apps/coreutils-9.1-r2::gentoo USE="acl nls openssl xattr -caps -gmp -hostname -kill -multicall (-selinux) (-split-usr*) -static -test -vanilla -verify-sig" 0 KiB
[ebuild R ] sys-libs/ncurses-6.4:0/6::gentoo USE="cxx gpm stack-realign (tinfo) -ada -debug -doc -minimal -profile (-split-usr*) -static-libs -test -trace -verify-sig" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild R ] sys-libs/pam-1.5.2-r3::gentoo USE="filecaps -audit -berkdb -debug -nis (-selinux) (-split-usr*)" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild R ] sys-libs/libcap-2.67::gentoo USE="pam (-split-usr*) -static-libs -tools" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild R ] sys-libs/readline-8.2_p1:0/8::gentoo USE="(unicode) (-split-usr*) -static-libs -utils -verify-sig" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild R ] sys-libs/gpm-1.20.7-r5::gentoo USE="(-selinux) (-split-usr*)" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild R ] dev-libs/libpcre2-10.42-r1:0/3::gentoo USE="bzip2 jit pcre16 readline unicode zlib -libedit -pcre32 (-split-usr*) -static-libs -verify-sig" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild R ] sys-apps/util-linux-2.38.1-r2::gentoo USE="cramfs hardlink logger ncurses nls pam readline su suid systemd udev (unicode) -audit -build -caps -cryptsetup -fdformat -kill -magic -python (-rtas) (-selinux) -slang (-split-usr*) -static-libs -test -tty-helpers -verify-sig" ABI_X86="(64) -32 (-x32)" PYTHON_TARGETS="python3_10 -python3_9 -python3_11" 0 KiB
[ebuild R ] sys-apps/systemd-252.5:0/2::gentoo USE="acl apparmor dns-over-tls gcrypt kmod lz4 openssl pam pcre (policykit) resolvconf seccomp sysv-utils zstd -audit -cgroup-hybrid -cryptsetup -curl -elfutils -fido2 -gnuefi -gnutls -homed -http -idn -importd -iptables -lzma -pkcs11 -pwquality -qrcode (-selinux) (-split-usr*) -test -tpm -vanilla -xkb" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild R ] sys-fs/e2fsprogs-1.47.0::gentoo USE="fuse nls tools -cron (-split-usr*) -static-libs -test" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild R ] sys-process/audit-3.0.9-r1::gentoo USE="-gssapi -ldap -python (-split-usr*) -static-libs -test" ABI_X86="(64) -32 (-x32)" PYTHON_TARGETS="python3_10 -python3_9 -python3_11" 0 KiB
[ebuild R ] dev-libs/libpcre-8.45-r1:3::gentoo USE="bzip2 cxx jit readline (unicode) zlib -libedit -pcre16 -pcre32 (-split-usr*) -static-libs" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild R ] dev-libs/libusb-1.0.26:1::gentoo USE="udev -debug -doc -examples (-split-usr*) -static-libs -test" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild R ] sys-apps/iproute2-6.1.0-r1::gentoo USE="-atm -berkdb -bpf -caps -elf -iptables -libbsd -minimal -nfs (-selinux) (-split-usr*)" 0 KiB
[ebuild R ] sys-process/procps-3.3.17-r1:0/8::gentoo USE="kill ncurses nls systemd (unicode) (-elogind) -modern-top (-selinux) (-split-usr*) -static-libs -test" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild R ] sys-apps/shadow-4.13-r1:0/4::gentoo USE="acl nls pam xattr -audit -bcrypt -cracklib (-selinux) -skey (-split-usr*) -su -verify-sig" 0 KiB
[ebuild R ] net-firewall/iptables-1.8.9:0/1.8.3::gentoo USE="nftables -conntrack -netlink -pcap (-split-usr*) -static-libs" 0 KiB
[ebuild R ] app-alternatives/tar-0::gentoo USE="gnu -libarchive (-split-usr*)" 0 KiB
Total: 28 packages (28 reinstalls), Size of downloads: 0 KiB
Would you like to merge these packages? [Yes/No]
>>> Verifying ebuild manifests
>>> Running pre-merge checks for sys-libs/libxcrypt-4.4.33
/usr/bin/env: ‘bash’: No such file or directory
/usr/bin/env: ‘bash’: No such file or directory
/usr/bin/env: ‘bash’: No such file or directory
/usr/bin/env: ‘bash’: No such file or directory
>>> Failed to emerge sys-libs/libxcrypt-4.4.33, Log file:
>>> '/var/log/portage/sys-libs:libxcrypt-4.4.33:20230216-091235.log'
>>> Running pre-merge checks for sys-libs/gpm-1.20.7-r5
/usr/bin/env: ‘bash’: No such file or directory
/usr/bin/env: ‘bash’: No such file or directory
/usr/bin/env: ‘bash’: No such file or directory
/usr/bin/env: ‘bash’: No such file or directory
>>> Failed to emerge sys-libs/gpm-1.20.7-r5, Log file:
>>> '/var/log/portage/sys-libs:gpm-1.20.7-r5:20230216-091235.log'
>>> Running pre-merge checks for sys-apps/util-linux-2.38.1-r2
/usr/bin/env: ‘bash’: No such file or directory
/usr/bin/env: ‘bash’: No such file or directory
/usr/bin/env: ‘bash’: No such file or directory
/usr/bin/env: ‘bash’: No such file or directory
>>> Failed to emerge sys-apps/util-linux-2.38.1-r2, Log file:
>>> '/var/log/portage/sys-apps:util-linux-2.38.1-r2:20230216-091235.log'
>>> Running pre-merge checks for sys-apps/systemd-252.5
/usr/bin/env: ‘bash’: No such file or directory
/usr/bin/env: ‘bash’: No such file or directory
/usr/bin/env: ‘bash’: No such file or directory
/usr/bin/env: ‘bash’: No such file or directory
>>> Failed to emerge sys-apps/systemd-252.5, Log file:
>>> '/var/log/portage/sys-apps:systemd-252.5:20230216-091235.log'
* Messages for package sys-libs/libxcrypt-4.4.33:
* Log file: /var/log/portage/sys-libs:libxcrypt-4.4.33:20230216-091235.log
* The ebuild phase 'pretend' has exited unexpectedly. This type of
* behavior is known to be triggered by things such as failed variable
* assignments (bug #190128) or bad substitution errors (bug #200313).
* Normally, before exiting, bash should have displayed an error message
* above. If bash did not produce an error message above, it's possible
* that the ebuild has called `exit` when it should have called `die`
* instead. This behavior may also be triggered by a corrupt bash binary or
* a hardware problem such as memory or cpu malfunction. If the problem is
* not reproducible or it appears to occur randomly, then it is likely to
* be triggered by a hardware problem. If you suspect a hardware problem
* then you should try some basic hardware diagnostics such as memtest.
* Please do not report this as a bug unless it is consistently
* reproducible and you are sure that your bash binary and hardware are
* functioning properly.
* Messages for package sys-libs/gpm-1.20.7-r5:
* Log file: /var/log/portage/sys-libs:gpm-1.20.7-r5:20230216-091235.log
* The ebuild phase 'pretend' has exited unexpectedly. This type of
* behavior is known to be triggered by things such as failed variable
* assignments (bug #190128) or bad substitution errors (bug #200313).
* Normally, before exiting, bash should have displayed an error message
* above. If bash did not produce an error message above, it's possible
* that the ebuild has called `exit` when it should have called `die`
* instead. This behavior may also be triggered by a corrupt bash binary or
* a hardware problem such as memory or cpu malfunction. If the problem is
* not reproducible or it appears to occur randomly, then it is likely to
* be triggered by a hardware problem. If you suspect a hardware problem
* then you should try some basic hardware diagnostics such as memtest.
* Please do not report this as a bug unless it is consistently
* reproducible and you are sure that your bash binary and hardware are
* functioning properly.
* Messages for package sys-apps/util-linux-2.38.1-r2:
* Log file: /var/log/portage/sys-apps:util-linux-2.38.1-r2:20230216-091235.log
* The ebuild phase 'pretend' has exited unexpectedly. This type of
* behavior is known to be triggered by things such as failed variable
* assignments (bug #190128) or bad substitution errors (bug #200313).
* Normally, before exiting, bash should have displayed an error message
* above. If bash did not produce an error message above, it's possible
* that the ebuild has called `exit` when it should have called `die`
* instead. This behavior may also be triggered by a corrupt bash binary or
* a hardware problem such as memory or cpu malfunction. If the problem is
* not reproducible or it appears to occur randomly, then it is likely to
* be triggered by a hardware problem. If you suspect a hardware problem
* then you should try some basic hardware diagnostics such as memtest.
* Please do not report this as a bug unless it is consistently
* reproducible and you are sure that your bash binary and hardware are
* functioning properly.
* Messages for package sys-apps/systemd-252.5:
* Log file: /var/log/portage/sys-apps:systemd-252.5:20230216-091235.log
* The ebuild phase 'pretend' has exited unexpectedly. This type of
* behavior is known to be triggered by things such as failed variable
* assignments (bug #190128) or bad substitution errors (bug #200313).
* Normally, before exiting, bash should have displayed an error message
* above. If bash did not produce an error message above, it's possible
* that the ebuild has called `exit` when it should have called `die`
* instead. This behavior may also be triggered by a corrupt bash binary or
* a hardware problem such as memory or cpu malfunction. If the problem is
* not reproducible or it appears to occur randomly, then it is likely to
* be triggered by a hardware problem. If you suspect a hardware problem
* then you should try some basic hardware diagnostics such as memtest.
* Please do not report this as a bug unless it is consistently
* reproducible and you are sure that your bash binary and hardware are
* functioning properly.
*
* The following 4 packages have failed to build, install, or execute
* postinst:
*
* (sys-libs/libxcrypt-4.4.33:0/1::gentoo, ebuild scheduled for merge), Log file:
* '/var/log/portage/sys-libs:libxcrypt-4.4.33:20230216-091235.log'
* (sys-libs/gpm-1.20.7-r5:0/0::gentoo, ebuild scheduled for merge), Log file:
* '/var/log/portage/sys-libs:gpm-1.20.7-r5:20230216-091235.log'
* (sys-apps/util-linux-2.38.1-r2:0/0::gentoo, ebuild scheduled for merge), Log file:
* '/var/log/portage/sys-apps:util-linux-2.38.1-r2:20230216-091235.log'
* (sys-apps/systemd-252.5:0/2::gentoo, ebuild scheduled for merge), Log file:
* '/var/log/portage/sys-apps:systemd-252.5:20230216-091235.log'
*
Gen2-Plasma /home/ja #
TIA
heres the merge-usr --dryrun
Code: Select all
ja@Gen2-Plasma ~ $ merge-usr --dryrun
INFO: Migrating files from '/bin' to '/usr/bin'
INFO: Skipping symlink '/bin/awk'; '/usr/bin/awk' already exists
INFO: No problems found for '/bin'
INFO: Migrating files from '/sbin' to '/usr/bin'
INFO: No problems found for '/sbin'
INFO: Migrating files from '/usr/sbin' to '/usr/bin'
INFO: No problems found for '/usr/sbin'
INFO: Migrating files from '/lib' to '/usr/lib'
INFO: No problems found for '/lib'
INFO: Migrating files from '/lib64' to '/usr/lib64'
INFO: No problems found for '/lib64'
ja@Gen2-Plasma ~ $



