Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Systemd to openRC
View unanswered posts
View posts from last 24 hours

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
NichtDerHans
Tux's lil' helper
Tux's lil' helper


Joined: 27 Jan 2023
Posts: 131

PostPosted: Wed Aug 23, 2023 2:17 pm    Post subject: Systemd to openRC Reply with quote

Hello not the Hans is here,

I have a Gentoo VM with LXDE to try switching from systemd to openrc.

I followed this tutorial:

https://www.reddit.com/r/Gentoo/comments/gee60a/moving_from_systemd_to_openrc

I started a Gentoo Live DVD and logged in with chroot.

Code:
eselect profile list


is now:

Code:
[1] default/linux/amd64/17.1 (stable) *


I force uninstalled two packages:

Code:
emerge -C gentoo-systemd-integration
emerge -C systemd


Now I started emerge with:

Code:

(chroot) livecd / # emerge -auDNv --with-bdeps=y @world

These are the packages that would be merged, in order:

Calculating dependencies... done!
Dependency resolution took 9.13 s.

[ebuild   R    ] app-alternatives/awk-4::gentoo  USE="gawk (split-usr*) -busybox -mawk -nawk" 0 KiB
[ebuild   R    ] app-arch/xz-utils-5.4.3::gentoo  USE="extra-filters nls (split-usr*) -doc -static-libs -verify-sig" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild   R    ] sys-libs/zlib-1.2.13-r1:0/1::gentoo  USE="(split-usr*) -minizip -static-libs -verify-sig" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild   R    ] net-libs/libtirpc-1.3.3:0/3::gentoo  USE="(split-usr*) -kerberos -static-libs" ABI_X86="(64) -32 (-x32)" 0 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)" 0 KiB
[ebuild   R    ] dev-libs/libpcre2-10.42-r1:0/3::gentoo  USE="bzip2 jit pcre16 readline (split-usr*) unicode zlib -libedit -pcre32 -static-libs -valgrind -verify-sig" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild   R    ] app-alternatives/bzip2-1::gentoo  USE="reference (split-usr*) -lbzip2 -pbzip2" 0 KiB
[ebuild   R    ] app-alternatives/gzip-0::gentoo  USE="reference (split-usr*) -pigz" 0 KiB
[ebuild   R    ] app-alternatives/cpio-0::gentoo  USE="gnu (split-usr*) -libarchive" 0 KiB
[ebuild   R    ] sys-apps/attr-2.5.1-r2::gentoo  USE="nls (split-usr*) -debug -static-libs" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild   R    ] sys-libs/glibc-2.37-r3:2.2::gentoo  USE="multiarch (multilib) ssp stack-realign (static-libs) -audit -caps (-cet) -compile-locales (-crypt) (-custom-cflags) -doc -gd -hash-sysv-compat -headers-only -multilib-bootstrap -nscd -perl -profile (-selinux) -suid -systemd* -systemtap -test (-vanilla)" 0 KiB
[ebuild   R    ] sys-apps/acl-2.3.1-r2::gentoo  USE="nls (split-usr*) -static-libs" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild   R    ] sys-libs/libxcrypt-4.4.33:0/1::gentoo  USE="(compat) (split-usr*) (system) -headers-only -static-libs -test" ABI_X86="32 (64) (-x32)" 0 KiB
[ebuild   R    ] sys-libs/pam-1.5.3::gentoo  USE="filecaps (split-usr*) -audit -berkdb -debug -nis (-selinux)" 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 (split-usr*) su suid (unicode) -audit -build -caps -cryptsetup -fdformat -kill -magic -python (-rtas) (-selinux) -slang -static-libs -systemd* -test -tty-helpers -udev* -verify-sig" ABI_X86="(64) -32 (-x32)" PYTHON_TARGETS="python3_11 -python3_10" 0 KiB
[ebuild   R    ] sys-libs/libcap-2.69::gentoo  USE="pam (split-usr*) -static-libs -tools" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild   R    ] sys-apps/coreutils-9.3-r3::gentoo  USE="acl nls openssl (split-usr*) xattr -caps -gmp -hostname -kill -multicall (-selinux) -static -test -vanilla -verify-sig" 0 KiB
[ebuild   R    ] app-crypt/p11-kit-0.24.1-r1::gentoo  USE="asn1 libffi trust -debug -systemd*" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild   R    ] sys-fs/e2fsprogs-1.47.0-r2::gentoo  USE="nls (split-usr*) tools -cron -fuse -static-libs -test" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild   R    ] net-firewall/iptables-1.8.9:0/1.8.3::gentoo  USE="(split-usr*) -conntrack -netlink -nftables -pcap -static-libs" 0 KiB
[ebuild   R    ] sys-apps/iproute2-6.4.0::gentoo  USE="iptables (split-usr*) -atm -berkdb -bpf -caps -elf -libbsd -minimal -nfs (-selinux)" 0 KiB
[ebuild  N     ] sys-apps/sysvinit-3.07::gentoo  USE="nls (-ibm) (-selinux) -static -verify-sig" 0 KiB
[ebuild   R    ] sys-apps/dbus-1.15.6::gentoo  USE="X -debug -doc -elogind (-selinux) -static-libs -systemd* -test -valgrind" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild   R    ] app-arch/zstd-1.5.5:0/1::gentoo  USE="lzma (split-usr*) zlib -lz4 -static-libs -test" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild   R    ] dev-qt/qtcore-5.15.10-r1:5/5.15.10::gentoo  USE="icu -debug -old-kernel -systemd* -test" 0 KiB
[ebuild   R    ] app-accessibility/at-spi2-core-2.48.3:2::gentoo  USE="X introspection -dbus-broker -gtk-doc -systemd* -test" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild   R    ] sys-apps/xdg-desktop-portal-1.16.0-r1::gentoo  USE="-geolocation -screencast -systemd*" 0 KiB
[ebuild  N     ] sys-apps/systemd-utils-253.6::gentoo  USE="acl kmod (split-usr) tmpfiles udev -boot -secureboot (-selinux) -sysusers -test" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild   R    ] virtual/libudev-232-r8:0/1::gentoo  USE="-systemd*" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild   R    ] virtual/udev-217-r6::gentoo  USE="-systemd*" 0 KiB
[ebuild   R    ] virtual/tmpfiles-0-r5::gentoo  USE="-systemd*" 0 KiB
[ebuild   R    ] sys-fs/lvm2-2.03.21::gentoo  USE="readline udev -lvm -sanlock (-selinux) -static -static-libs -systemd* -thin -valgrind" 0 KiB
[ebuild  N     ] net-misc/dhcpcd-10.0.2::gentoo  USE="embedded ipv6 udev -debug -privsep" 0 KiB
[ebuild  N     ] sys-power/upower-0.99.20:0/3::gentoo  USE="introspection -doc -ios (-selinux) -test" 0 KiB
[ebuild  N     ] sys-auth/elogind-246.10-r3::gentoo  USE="acl cgroup-hybrid pam policykit -audit -debug -doc (-selinux) -test" 0 KiB
[ebuild   R    ] sys-auth/pambase-20220214::gentoo  USE="elogind* nullok passwdqc sha512 -caps -debug -gnome-keyring -homed -minimal -mktemp -pam_krb5 -pam_ssh -pwhistory -pwquality -securetty (-selinux) -systemd* -yescrypt" 0 KiB
[ebuild   R    ] sys-auth/polkit-122-r1::gentoo  USE="daemon duktape introspection pam -examples -gtk -kde (-selinux) -systemd* -test" 0 KiB
[ebuild   R    ] sys-apps/shadow-4.13-r4:0/4::gentoo  USE="acl nls pam (split-usr*) xattr -audit -bcrypt -cracklib (-selinux) -skey -su -verify-sig" 0 KiB
[ebuild   R    ] x11-base/xorg-server-21.1.8:0/21.1.8::gentoo  USE="elogind* udev xorg -debug -minimal (-selinux) -suid -systemd* -test -unwind -xcsecurity -xephyr -xnest -xvfb" 0 KiB
[ebuild   R    ] x11-misc/sddm-0.18.1-r8::gentoo  USE="elogind* pam -systemd* -test" 0 KiB
[ebuild   R    ] sys-fs/udisks-2.9.4-r3:2::gentoo  USE="acl daemon introspection nls -debug -elogind -lvm (-selinux) -systemd* -vdo -zram" 0 KiB
[ebuild   R    ] app-alternatives/tar-0::gentoo  USE="gnu (split-usr*) -libarchive" 0 KiB
[ebuild   R    ] app-crypt/gcr-3.41.1-r2:0/1::gentoo  USE="gtk introspection vala -gtk-doc -systemd* -test" 0 KiB
[ebuild   R    ] gnome-base/gnome-keyring-42.1-r2::gentoo  USE="pam ssh-agent (-selinux) -systemd* -test -valgrind" 0 KiB
[ebuild   R    ] gnome-base/gvfs-1.50.4-r1::gentoo  USE="http udev -afp -archive -bluray -cdda -elogind -fuse -gnome-online-accounts -google -gphoto2 -ios -keyring -mtp -nfs -policykit -samba -systemd* -test -udisks -zeroconf" 0 KiB
[ebuild  N     ] sys-apps/openrc-0.47.1::gentoo  USE="ncurses netifrc pam unicode -audit -bash -debug -newnet (-selinux) -sysv-utils" 0 KiB
[ebuild  N     ] net-misc/netifrc-0.7.5::gentoo  USE="dhcp" 0 KiB

Total: 47 packages (7 new, 40 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/glibc-2.37-r3

>>> Running pre-merge checks for sys-libs/libxcrypt-4.4.33

>>> Running pre-merge checks for sys-apps/util-linux-2.38.1-r2

>>> Running pre-merge checks for dev-qt/qtcore-5.15.10-r1

>>> Emerging (1 of 47) app-alternatives/awk-4::gentoo
>>> Unpacking source...
>>> Source unpacked in /var/tmp/portage/app-alternatives/awk-4/work
>>> Preparing source in /var/tmp/portage/app-alternatives/awk-4/work ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/app-alternatives/awk-4/work ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/app-alternatives/awk-4/work ...
>>> Source compiled.
>>> Test phase [not enabled]: app-alternatives/awk-4

>>> Install app-alternatives/awk-4 into /var/tmp/portage/app-alternatives/awk-4/image
>>> Completed installing app-alternatives/awk-4 into /var/tmp/portage/app-alternatives/awk-4/image

 * Final size of build directory:  4 KiB
 * Final size of installed tree:  32 KiB


>>> Installing (1 of 47) app-alternatives/awk-4::gentoo
 * checking 3 files for package collisions
 * Package 'app-alternatives/awk-4' 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/awk
 *              /bin/awk
 *              /usr/bin/awk
 *                      Differences: size, content
 *
 * Package 'app-alternatives/awk-4' 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 47) app-alternatives/awk-4::gentoo

>>> Failed to install app-alternatives/awk-4, Log file:

>>>  '/var/tmp/portage/app-alternatives/awk-4/temp/build.log'

 * Messages for package app-alternatives/awk-4:

 * Package 'app-alternatives/awk-4' 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/awk
 *              /bin/awk
 *              /usr/bin/awk
 *                      Differences: size, content
 *
 * Package 'app-alternatives/awk-4' 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.

 * GNU info directory index is up-to-date.

!!! existing preserved libs:
>>> package: sys-apps/systemd-253.6
 *  - /usr/lib64/libsystemd.so.0
 *  - /usr/lib64/libsystemd.so.0.36.0
 *      used by /usr/bin/Xorg (x11-base/xorg-server-21.1.8)
 *      used by /usr/bin/dbus-daemon (sys-apps/dbus-1.15.6)
 *      used by /usr/bin/gnome-keyring-daemon (gnome-base/gnome-keyring-42.1-r2)
 *      used by /usr/bin/logger (sys-apps/util-linux-2.38.1-r2)
 *      used by /usr/bin/lslogins (sys-apps/util-linux-2.38.1-r2)
 *      used by /usr/bin/sddm (x11-misc/sddm-0.18.1-r8)
 *      used by /usr/bin/sddm-greeter (x11-misc/sddm-0.18.1-r8)
 *      used by /usr/lib/polkit-1/polkitd (sys-auth/polkit-122-r1)
 *      used by /usr/lib64/libQt5Core.so.5.15.10 (dev-qt/qtcore-5.15.10-r1)
 *      used by /usr/lib64/libdbus-1.so.3.37.0 (sys-apps/dbus-1.15.6)
 *      used by /usr/lib64/libpolkit-gobject-1.so.0.0.0 (sys-auth/polkit-122-r1)
 *      used by /usr/lib64/udisks2/modules/libudisks2_btrfs.so (sys-fs/udisks-2.9.4-r3)
 *      used by /usr/libexec/dbus-daemon-launch-helper (sys-apps/dbus-1.15.6)
 *      used by /usr/libexec/p11-kit/p11-kit-server (app-crypt/p11-kit-0.24.1-r1)
 *      used by /usr/libexec/sddm-helper (x11-misc/sddm-0.18.1-r8)
 *      used by /usr/libexec/udisks2/udisksd (sys-fs/udisks-2.9.4-r3)
 *      used by /usr/libexec/xdg-desktop-portal (sys-apps/xdg-desktop-portal-1.16.0-r1)
 *      used by /usr/libexec/xdg-document-portal (sys-apps/xdg-desktop-portal-1.16.0-r1)
 *      used by /usr/libexec/xdg-permission-store (sys-apps/xdg-desktop-portal-1.16.0-r1)
 *      used by /usr/sbin/uuidd (sys-apps/util-linux-2.38.1-r2)
 *  - /usr/lib64/libudev.so.1
 *  - /usr/lib64/libudev.so.1.7.6
 *      used by /bin/findmnt (sys-apps/util-linux-2.38.1-r2)
 *      used by /bin/lsblk (sys-apps/util-linux-2.38.1-r2)
 *      used by /lib64/libdevmapper.so.1.02 (sys-fs/lvm2-2.03.21)
 *      used by /usr/bin/Xorg (x11-base/xorg-server-21.1.8)
 *      used by /usr/bin/libinput (dev-libs/libinput-1.23.0)
 *      used by /usr/bin/lxqt-config-input (lxqt-base/lxqt-config-1.3.0)
 *      used by /usr/bin/lxqt-session (lxqt-base/lxqt-session-1.3.0)
 *      used by /usr/lib/udev/libinput-device-group (dev-libs/libinput-1.23.0)
 *      used by /usr/lib/udev/libinput-fuzz-extract (dev-libs/libinput-1.23.0)
 *      used by /usr/lib/udev/libinput-fuzz-to-zero (dev-libs/libinput-1.23.0)
 *      used by /usr/lib64/libKF5CoreAddons.so.5.108.0 (kde-frameworks/kcoreaddons-5.108.0-r1)
 *      used by /usr/lib64/libKF5Solid.so.5.108.0 (kde-frameworks/solid-5.108.0)
 *      used by /usr/lib64/libatasmart.so.4.0.5 (dev-libs/libatasmart-0.19_p5)
 *      used by /usr/lib64/libbd_utils.so.2.1.0 (sys-libs/libblockdev-2.28-r1)
 *      used by /usr/lib64/libgudev-1.0.so.0.3.0 (dev-libs/libgudev-237-r1)
 *      used by /usr/lib64/libinput.so.10.13.0 (dev-libs/libinput-1.23.0)
 *      used by /usr/lib64/libpci.so.3.10.0 (sys-apps/pciutils-3.10.0)
 *      used by /usr/lib64/qt5/plugins/generic/libqlibinputplugin.so (dev-qt/qtgui-5.15.10-r1)
 *      used by /usr/lib64/xorg/modules/drivers/modesetting_drv.so (x11-base/xorg-server-21.1.8)
 *      used by /usr/lib64/xorg/modules/drivers/qxl_drv.so (x11-drivers/xf86-video-qxl-0.1.6)
 *      used by /usr/libexec/libinput/libinput-analyze (dev-libs/libinput-1.23.0)
 *      used by /usr/libexec/libinput/libinput-debug-events (dev-libs/libinput-1.23.0)
 *      used by /usr/libexec/libinput/libinput-debug-tablet (dev-libs/libinput-1.23.0)
 *      used by /usr/libexec/libinput/libinput-list-devices (dev-libs/libinput-1.23.0)
 *      used by /usr/libexec/libinput/libinput-measure (dev-libs/libinput-1.23.0)
 *      used by /usr/libexec/libinput/libinput-quirks (dev-libs/libinput-1.23.0)
 *      used by /usr/libexec/libinput/libinput-record (dev-libs/libinput-1.23.0)
 *      used by /usr/libexec/libinput/libinput-test (dev-libs/libinput-1.23.0)
Use emerge @preserved-rebuild to rebuild packages using these libraries
 * After world updates, it is important to remove obsolete packages with
 * emerge --depclean. Refer to `man emerge` for more information.
(chroot) livecd / #


Of course programs still want systemd, there are still dependencies.

Code:

(chroot) livecd / # emerge --depclean

 * Always study the list of packages to be cleaned for any obvious
 * mistakes. Packages that are part of the world set will always
 * be kept.  They can be manually added to this set with
 * `emerge --noreplace <atom>`.  Packages that are listed in
 * package.provided (see portage(5)) will be removed by
 * depclean, even if they are part of the world set.
 *
 * As a safety measure, depclean will not remove any packages
 * unless *all* required dependencies have been resolved.  As a
 * consequence of this, it often becomes necessary to run
 * `emerge --update --newuse --deep @world` prior to depclean.

Calculating dependencies... done!
 * Dependencies could not be completely resolved due to
 * the following required packages not being installed:
 *
 *   >=sys-apps/systemd-206:0/2= pulled in by:
 *     gnome-base/gvfs-1.50.4-r1
 *
 *   sys-apps/systemd pulled in by:
 *     virtual/tmpfiles-0-r5
 *
 *   sys-apps/openrc pulled in by:
 *     virtual/service-manager-1-r1
 *
 *   >=sys-apps/systemd-206:0= pulled in by:
 *     gnome-base/gvfs-1.50.4-r1
 *
 *   sys-apps/systemd:0=[policykit] pulled in by:
 *     sys-auth/polkit-122-r1
 *
 *   sys-apps/systemd:0/2= pulled in by:
 *     app-crypt/p11-kit-0.24.1-r1
 *
 *   sys-apps/systemd:= pulled in by:
 *     app-crypt/gcr-3.41.1-r2
 *
 *   sys-apps/systemd:0= pulled in by:
 *     sys-apps/dbus-1.15.6
 *
 *   sys-apps/systemd:0/2= pulled in by:
 *     sys-apps/dbus-1.15.6
 *
 *   >=sys-apps/systemd-232:0/2[abi_x86_64(-)] pulled in by:
 *     virtual/libudev-232-r8
 *
 *   sys-apps/systemd:0/2= pulled in by:
 *     dev-qt/qtcore-5.15.10-r1
 *
 *   sys-apps/systemd:0/2= pulled in by:
 *     x11-misc/sddm-0.18.1-r8
 *
 *   sys-apps/systemd pulled in by:
 *     sys-apps/xdg-desktop-portal-1.16.0-r1
 *
 *   >=sys-apps/systemd-217 pulled in by:
 *     virtual/udev-217-r6
 *
 *   sys-apps/systemd:0/2=[policykit] pulled in by:
 *     sys-auth/polkit-122-r1
 *
 *   sys-apps/systemd:= pulled in by:
 *     app-crypt/p11-kit-0.24.1-r1
 *
 *   sys-apps/systemd[abi_x86_64(-)] pulled in by:
 *     app-accessibility/at-spi2-core-2.48.3
 *
 *   sys-apps/systemd pulled in by:
 *     x11-base/xorg-server-21.1.8
 *
 *   sys-apps/systemd pulled in by:
 *     sys-apps/util-linux-2.38.1-r2
 *
 *   sys-apps/systemd:= pulled in by:
 *     x11-misc/sddm-0.18.1-r8
 *
 *   >=sys-apps/sysvinit-2.87-r3 pulled in by:
 *     sys-kernel/dracut-057-r3
 *
 *   >=sys-apps/systemd-209 pulled in by:
 *     sys-fs/udisks-2.9.4-r3
 *
 *   sys-apps/systemd:= pulled in by:
 *     dev-qt/qtcore-5.15.10-r1
 *
 *   sys-apps/systemd[pam] pulled in by:
 *     sys-auth/pambase-20220214
 *
 *   sys-apps/systemd:0/2= pulled in by:
 *     app-crypt/gcr-3.41.1-r2
 *
 * Have you forgotten to do a complete update prior to depclean? The
 * most comprehensive command for this purpose is as follows:
 *
 *   emerge --update --newuse --deep --with-bdeps=y @world
 *
 * Note that the --with-bdeps=y option is not required in many
 * situations. Refer to the emerge manual page (run `man emerge`)
 * for more information about --with-bdeps.
 *
 * Also, note that it may be necessary to manually uninstall
 * packages that no longer exist in the repository, since it may not
 * be possible to satisfy their dependencies.
(chroot) livecd / #



How should I proceed now? I would prefer to just force install. But I do not know how. I also tried to set USE=-systemd.


Thank you very much :)
Back to top
View user's profile Send private message
NichtDerHans
Tux's lil' helper
Tux's lil' helper


Joined: 27 Jan 2023
Posts: 131

PostPosted: Wed Aug 23, 2023 2:35 pm    Post subject: Reply with quote

Code:

(chroot) livecd / # emerge --info
Portage 3.0.49 (python 3.11.4-final-0, default/linux/amd64/17.1, gcc-12, glibc-2.37-r3, 6.1.41-gentoo-x86_64 x86_64)
=================================================================
System uname: Linux-6.1.41-gentoo-x86_64-x86_64-11th_Gen_Intel-R-_Core-TM-_i7-1165G7_@_2.80GHz-with-glibc2.37
KiB Mem:     8112936 total,   4430916 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Tue, 22 Aug 2023 00:45:01 +0000
Head commit of repository gentoo: cd98bb25989a12fb6d7bea3fe6d6c0e2490c2ecd
sh bash 5.1_p16-r6
ld GNU ld (Gentoo 2.40 p5) 2.40.0
app-misc/pax-utils:        1.3.5::gentoo
app-shells/bash:           5.1_p16-r6::gentoo
dev-lang/perl:             5.36.1-r3::gentoo
dev-lang/python:           3.11.4::gentoo
dev-lang/rust-bin:         1.69.0-r1::gentoo
dev-util/cmake:            3.26.5-r2::gentoo
dev-util/meson:            1.1.1::gentoo
sys-apps/baselayout:       2.14::gentoo
sys-apps/sandbox:          2.37::gentoo
sys-devel/autoconf:        2.71-r6::gentoo
sys-devel/automake:        1.16.5-r1::gentoo
sys-devel/binutils:        2.40-r5::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/gcc:             12.3.1_p20230526::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-devel/libtool:         2.4.7-r1::gentoo
sys-devel/llvm:            16.0.6::gentoo
sys-devel/make:            4.4.1-r1::gentoo
sys-kernel/linux-headers:  6.1::gentoo (virtual/os-headers)
sys-libs/glibc:            2.37-r3::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    volatile: False
    sync-rsync-extra-opts:
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-jobs: 1

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
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/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe"
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="-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 multilib-strict network-sandbox news parallel-fetch pid-sandbox 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="https://ftp.uni-hannover.de/gentoo/     http://mirrors.gethosted.online/gentoo     https://ftp.agdsn.de/gentoo     http://ftp.uni-hannover.de/gentoo/"
LANG="C.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LEX="flex"
MAKEOPTS="--jobs 2"
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"
SHELL="/bin/bash"
USE="X acl amd64 bzip2 cli crypt dri fortran gdbm iconv ipv6 libtirpc multilib ncurses nls nptl openmp pam pcre readline seccomp split-usr ssl test-rust unicode xattr 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="mmx mmxext sse sse2" 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" INPUT_DEVICES="libinput" KERNEL="linux" 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="php8-1" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11" RUBY_TARGETS="ruby31" VIDEO_CARDS="qxl" 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, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS


Back to top
View user's profile Send private message
grknight
Retired Dev
Retired Dev


Joined: 20 Feb 2015
Posts: 1663

PostPosted: Wed Aug 23, 2023 3:08 pm    Post subject: Reply with quote

This looks to be coming from a merged-usr profile.

It is a bit difficult to move from a merged-usr profile to a split-usr one.

In this case, creating a custom profile will be necessary to avoid issues.
Following the link above and its first example, this is the minimum parent file for default/linux/amd64/17.1 to gain merged-usr:
Code:
gentoo:default/linux/amd64/17.1
gentoo:features/merged-usr


Edit: Fixed example
Back to top
View user's profile Send private message
NichtDerHans
Tux's lil' helper
Tux's lil' helper


Joined: 27 Jan 2023
Posts: 131

PostPosted: Wed Aug 23, 2023 6:56 pm    Post subject: Reply with quote

Thank you, fingers crossed. ;)

Code:

(chroot) livecd /var/db/repos/local/profiles # emerge -auDNv --with-bdeps=y @world

These are the packages that would be merged, in order:

Calculating dependencies... done!
Dependency resolution took 9.67 s.

[ebuild   R    ] sys-libs/ncurses-6.4_p20230401:0/6::gentoo  USE="cxx stack-realign (tinfo) -ada -debug -doc -gpm -minimal -profile (-split-usr*) -static-libs -test -trace -verify-sig" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild   R    ] sys-apps/baselayout-2.14::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    ] sys-libs/readline-8.1_p2-r1:0/8::gentoo  USE="(unicode) (-split-usr*) -static-libs -utils -verify-sig" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild   R    ] sys-process/procps-3.3.17-r2:0/8::gentoo  USE="kill ncurses nls (unicode) -elogind -modern-top (-selinux) (-split-usr*) -static-libs -systemd -test" 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 (unicode) -audit -build -caps -cryptsetup -fdformat -kill -magic -python (-rtas) (-selinux) -slang (-split-usr) -static-libs -systemd* -test -tty-helpers -udev* -verify-sig" ABI_X86="(64) -32 (-x32)" PYTHON_TARGETS="python3_11 -python3_10" 0 KiB
[ebuild   R    ] sys-libs/glibc-2.37-r3:2.2::gentoo  USE="multiarch (multilib) ssp stack-realign (static-libs) -audit -caps (-cet) -compile-locales (-crypt) (-custom-cflags) -doc -gd -hash-sysv-compat -headers-only -multilib-bootstrap -nscd -perl -profile (-selinux) -suid -systemd* -systemtap -test (-vanilla)" 0 KiB
[ebuild   R    ] app-crypt/p11-kit-0.24.1-r1::gentoo  USE="asn1 libffi trust -debug -systemd*" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild  N     ] sys-apps/sysvinit-3.07::gentoo  USE="nls (-ibm) (-selinux) -static -verify-sig" 0 KiB
[ebuild   R    ] sys-apps/dbus-1.15.6::gentoo  USE="X -debug -doc -elogind (-selinux) -static-libs -systemd* -test -valgrind" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild   R    ] dev-qt/qtcore-5.15.10-r1:5/5.15.10::gentoo  USE="icu -debug -old-kernel -systemd* -test" 0 KiB
[ebuild   R    ] app-accessibility/at-spi2-core-2.48.3:2::gentoo  USE="X introspection -dbus-broker -gtk-doc -systemd* -test" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild   R    ] sys-apps/xdg-desktop-portal-1.16.0-r1::gentoo  USE="-geolocation -screencast -systemd*" 0 KiB
[ebuild  N     ] sys-apps/systemd-utils-253.6::gentoo  USE="acl kmod tmpfiles udev -boot -secureboot (-selinux) (-split-usr) -sysusers -test" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild   R    ] virtual/libudev-232-r8:0/1::gentoo  USE="-systemd*" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild   R    ] virtual/udev-217-r6::gentoo  USE="-systemd*" 0 KiB
[ebuild   R    ] virtual/tmpfiles-0-r5::gentoo  USE="-systemd*" 0 KiB
[ebuild   R    ] sys-fs/lvm2-2.03.21::gentoo  USE="readline udev -lvm -sanlock (-selinux) -static -static-libs -systemd* -thin -valgrind" 0 KiB
[ebuild  N     ] net-misc/dhcpcd-10.0.2::gentoo  USE="embedded ipv6 udev -debug -privsep" 0 KiB
[ebuild  N     ] sys-power/upower-0.99.20:0/3::gentoo  USE="introspection -doc -ios (-selinux) -test" 0 KiB
[ebuild  N     ] sys-auth/elogind-246.10-r3::gentoo  USE="acl cgroup-hybrid pam policykit -audit -debug -doc (-selinux) -test" 0 KiB
[ebuild   R    ] sys-auth/pambase-20220214::gentoo  USE="elogind* nullok passwdqc sha512 -caps -debug -gnome-keyring -homed -minimal -mktemp -pam_krb5 -pam_ssh -pwhistory -pwquality -securetty (-selinux) -systemd* -yescrypt" 0 KiB
[ebuild   R    ] sys-auth/polkit-122-r1::gentoo  USE="daemon duktape introspection pam -examples -gtk -kde (-selinux) -systemd* -test" 0 KiB
[ebuild   R    ] sys-fs/udisks-2.9.4-r3:2::gentoo  USE="acl daemon introspection nls -debug -elogind -lvm (-selinux) -systemd* -vdo -zram" 0 KiB
[ebuild   R    ] x11-base/xorg-server-21.1.8:0/21.1.8::gentoo  USE="elogind* udev xorg -debug -minimal (-selinux) -suid -systemd* -test -unwind -xcsecurity -xephyr -xnest -xvfb" 0 KiB
[ebuild   R    ] x11-misc/sddm-0.18.1-r8::gentoo  USE="elogind* pam -systemd* -test" 0 KiB
[ebuild   R    ] app-crypt/gcr-3.41.1-r2:0/1::gentoo  USE="gtk introspection vala -gtk-doc -systemd* -test" 0 KiB
[ebuild   R    ] gnome-base/gnome-keyring-42.1-r2::gentoo  USE="pam ssh-agent (-selinux) -systemd* -test -valgrind" 0 KiB
[ebuild   R    ] gnome-base/gvfs-1.50.4-r1::gentoo  USE="http udev -afp -archive -bluray -cdda -elogind -fuse -gnome-online-accounts -google -gphoto2 -ios -keyring -mtp -nfs -policykit -samba -systemd* -test -udisks -zeroconf" 0 KiB
[ebuild  N     ] sys-apps/openrc-0.47.1::gentoo  USE="ncurses netifrc pam unicode -audit -bash -debug -newnet (-selinux) -sysv-utils" 0 KiB
[ebuild  N     ] net-misc/netifrc-0.7.5::gentoo  USE="dhcp" 0 KiB

Total: 31 packages (7 new, 24 reinstalls), Size of downloads: 0 KiB

Would you like to merge these packages? [Yes/No]


After that I have to build again without merged-user?
Back to top
View user's profile Send private message
grknight
Retired Dev
Retired Dev


Joined: 20 Feb 2015
Posts: 1663

PostPosted: Wed Aug 23, 2023 7:04 pm    Post subject: Reply with quote

NichtDerHans wrote:
After that I have to build again without merged-user?

No, this setting is permanent and has to last if or until the main profile is set with merged-usr.
If/when that does happen, everyone else will have to migrate while this machine will already have it applied.
Back to top
View user's profile Send private message
stefan11111
l33t
l33t


Joined: 29 Jan 2023
Posts: 922
Location: Romania

PostPosted: Wed Aug 23, 2023 7:27 pm    Post subject: Reply with quote

grknight wrote:
NichtDerHans wrote:
After that I have to build again without merged-user?

If/when that does happen, everyone else will have to migrate while this machine will already have it applied.

Please tell me you're joking and this isn't really a proposed change.
_________________
My overlay: https://github.com/stefan11111/stefan_overlay
INSTALL_MASK="/etc/systemd /lib/systemd /usr/lib/systemd /usr/lib/modules-load.d *udev* /usr/lib/tmpfiles.d *tmpfiles* /var/lib/dbus /usr/bin/gdbus /lib/udev"
Back to top
View user's profile Send private message
grknight
Retired Dev
Retired Dev


Joined: 20 Feb 2015
Posts: 1663

PostPosted: Wed Aug 23, 2023 7:33 pm    Post subject: Reply with quote

stefan11111 wrote:
grknight wrote:
NichtDerHans wrote:
After that I have to build again without merged-user?

If/when that does happen, everyone else will have to migrate while this machine will already have it applied.

Please tell me you're joking and this isn't really a proposed change.

Proposed for the next major profile change. Bug 876881
Edit: Though there may be concessions to leave split-usr as an alternative. The basics are already there but hidden.


Last edited by grknight on Wed Aug 23, 2023 7:43 pm; edited 1 time in total
Back to top
View user's profile Send private message
NichtDerHans
Tux's lil' helper
Tux's lil' helper


Joined: 27 Jan 2023
Posts: 131

PostPosted: Wed Aug 23, 2023 7:34 pm    Post subject: Reply with quote

stefan11111: What is the problem with merged-usr?



Quote:

No, this setting is permanent and has to last if or until the main profile is set with merged-usr.


So at this point there is absolutely no problem? No strange behavior is to be expected either?
Back to top
View user's profile Send private message
grknight
Retired Dev
Retired Dev


Joined: 20 Feb 2015
Posts: 1663

PostPosted: Wed Aug 23, 2023 7:45 pm    Post subject: Reply with quote

NichtDerHans wrote:
Quote:

No, this setting is permanent and has to last if or until the main profile is set with merged-usr.


So at this point there is absolutely no problem? No strange behavior is to be expected either?

There may be niche cases, but they should be reported as bugs. AFAIK, the recent systemd stages are using it by default.
Back to top
View user's profile Send private message
NichtDerHans
Tux's lil' helper
Tux's lil' helper


Joined: 27 Jan 2023
Posts: 131

PostPosted: Wed Aug 23, 2023 7:47 pm    Post subject: Reply with quote

> AFAIK, the recent systemd stages are using it by default.

Thats why I use it. :D
Back to top
View user's profile Send private message
NichtDerHans
Tux's lil' helper
Tux's lil' helper


Joined: 27 Jan 2023
Posts: 131

PostPosted: Wed Aug 23, 2023 8:04 pm    Post subject: Reply with quote

NichtDerHans wrote:
fingers crossed. ;)


The test VM starts!!!! And the GUI too (after set sddm as service).



There are still some error messages at startup. I will have a close look at that.

Now I have to think about whether I do the same with my real laptop. Maybe I copy the SSD to an image, start a copy of the image in a VM and rebuild Gentoo there and then copy the openRC image back to the SSD. Is a little more effort, but seems to me the safest.
Back to top
View user's profile Send private message
stefan11111
l33t
l33t


Joined: 29 Jan 2023
Posts: 922
Location: Romania

PostPosted: Wed Aug 23, 2023 8:49 pm    Post subject: Reply with quote

NichtDerHans wrote:
stefan11111: What is the problem with merged-usr?

Things that now are possible, /usr on a separate partition and /usr over the network, will become impossible.
You might laugh at, but remember linux is not run only by people with a single pc/ a few pc's.
Imagine some institution, business, school, etc, wants to have /usr over the network, to save space and improve ease of management.
It's also yet another thing conceded to Lennart. Such things prove that he can do away with any standard he pleases.
_________________
My overlay: https://github.com/stefan11111/stefan_overlay
INSTALL_MASK="/etc/systemd /lib/systemd /usr/lib/systemd /usr/lib/modules-load.d *udev* /usr/lib/tmpfiles.d *tmpfiles* /var/lib/dbus /usr/bin/gdbus /lib/udev"
Back to top
View user's profile Send private message
stefan11111
l33t
l33t


Joined: 29 Jan 2023
Posts: 922
Location: Romania

PostPosted: Wed Aug 23, 2023 8:50 pm    Post subject: Reply with quote

grknight wrote:

Edit: Though there may be concessions to leave split-usr as an alternative. The basics are already there but hidden.

What do you mean by that?
_________________
My overlay: https://github.com/stefan11111/stefan_overlay
INSTALL_MASK="/etc/systemd /lib/systemd /usr/lib/systemd /usr/lib/modules-load.d *udev* /usr/lib/tmpfiles.d *tmpfiles* /var/lib/dbus /usr/bin/gdbus /lib/udev"
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21642

PostPosted: Wed Aug 23, 2023 8:58 pm    Post subject: Reply with quote

stefan11111 wrote:
Things that now are possible, /usr on a separate partition and /usr over the network, will become impossible.
udev already broke init-script separately mounted /usr a long time ago. Anyone who wants it separate needs to mount it before starting udev, which generally means doing it in the initramfs. If you have an initramfs mounting it, then you don't need / to be at all functional before the mount, so merged-usr can still work with a /usr that is not part of /. It just means your root filesystem is more broken if /usr fails to mount.
Back to top
View user's profile Send private message
stefan11111
l33t
l33t


Joined: 29 Jan 2023
Posts: 922
Location: Romania

PostPosted: Wed Aug 23, 2023 9:03 pm    Post subject: Reply with quote

Hu wrote:
stefan11111 wrote:
Things that now are possible, /usr on a separate partition and /usr over the network, will become impossible.
udev already broke init-script separately mounted /usr a long time ago. Anyone who wants it separate needs to mount it before starting udev, which generally means doing it in the initramfs. If you have an initramfs mounting it, then you don't need / to be at all functional before the mount, so merged-usr can still work with a /usr that is not part of /. It just means your root filesystem is more broken if /usr fails to mount.

Not a problem.
Code:
$ eix -I udev
No matches found

_________________
My overlay: https://github.com/stefan11111/stefan_overlay
INSTALL_MASK="/etc/systemd /lib/systemd /usr/lib/systemd /usr/lib/modules-load.d *udev* /usr/lib/tmpfiles.d *tmpfiles* /var/lib/dbus /usr/bin/gdbus /lib/udev"
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21642

PostPosted: Wed Aug 23, 2023 9:36 pm    Post subject: Reply with quote

Modern udev is provided by sys-apps/systemd-utils[udev], and eix -I udev does not match that.

My point above stands anyway: if you want to network-mount /usr, an initramfs can do that, and merged-usr should work fine with that.
Back to top
View user's profile Send private message
GDH-gentoo
Veteran
Veteran


Joined: 20 Jul 2019
Posts: 1541
Location: South America

PostPosted: Wed Aug 23, 2023 9:40 pm    Post subject: Reply with quote

Hu wrote:
udev already broke init-script separately mounted /usr a long time ago.

Currently, this is not true. What can happen is that certain udev rules in certain packages might want to run executables in /usr using e. g. the RUN key.

This is what could make it true in the future, though. I'm wondering how they plan to do that.
_________________
NeddySeagoon wrote:
I'm not a witch, I'm a retired electronics engineer :)
Ionen wrote:
As a packager I just don't want things to get messier with weird build systems and multiple toolchains requirements though :)
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21642

PostPosted: Wed Aug 23, 2023 10:16 pm    Post subject: Reply with quote

The proposed change may be as simple as the one that I was referencing above: they declare a previously supported scenario "broken" and announce intent to refuse any problem reports that are only reproducible in this "broken" setup. It may keep working, or not, for a long time afterward, but they won't take any action to address problems that only affect the "broken" setup.

On the other hand, it seems like merged-usr automatically breaks any system which (1) has /usr separate from / and (2) does not mount /usr from an initramfs, since a merged-usr system has almost no usable programs in /, so even basic tools like bash will be unavailable until /usr is mounted.
Back to top
View user's profile Send private message
szatox
Advocate
Advocate


Joined: 27 Aug 2013
Posts: 3140

PostPosted: Wed Aug 23, 2023 10:17 pm    Post subject: Reply with quote

That usr-merge, does it mean we're going to have all executables under /usr and a set of compatibility links like
/bin -> /usr/bin
/sbin -> /usr/sbin
etc, just like systemd-only distribuitons?

So, there was an argument that /usr/bin came to be due to disks being at some point too small to fit all executables in root, so the non-critical stuff had to be moved to user's directory, and is not needed anymore, but I really wonder why not do it the other way. Like:
/usr/bin -> /bin
/usr/sbin -> /sbin
/usr/lib -> /lib

I mean, if the argument for removing a feature is that it's difficult to maintain and it does doesn't do us any good anymore, then why expand the no-longer-necessary change by stuffing MORE things into /usr instead of moving them BACK where they belonged in the first place, and calling it "paying back technological debt"?
Is there an actual, technical reason behind going forward with madness instead of turning back? 'Cus it feels like systemd-folks were just toying with us.

Also, wouldn't moving executables back to / actually allow us to keep /usr on a different device while keeping udev happy?
/usr/src and cross-arch-prefix chroots can take quite a bit of space and are not necessary for running a linux. These things can reside on an NFS, and there is no need to mount them during early boot.
Back to top
View user's profile Send private message
GDH-gentoo
Veteran
Veteran


Joined: 20 Jul 2019
Posts: 1541
Location: South America

PostPosted: Wed Aug 23, 2023 10:39 pm    Post subject: Reply with quote

Hu wrote:
The proposed change may be as simple as the one that I was referencing above: they declare a previously supported scenario "broken" and announce intent to refuse any problem reports that are only reproducible in this "broken" setup."
Yes, but declaring something unsupported is not the same as saying that it is broken. I assume the meaning of the latter is "it doesn' t work".

Hu wrote:
On the other hand, it seems like merged-usr automatically breaks any system which (1) has /usr separate from / and (2) does not mount /usr from an initramfs, since a merged-usr system has almost no usable programs in /, so even basic tools like bash will be unavailable until /usr is mounted.
Unlike the previous statement about (current) udev, this one is actually true. But the blame here would be on the /usr-merge, not on a split /usr and no initramfs setup per se.
_________________
NeddySeagoon wrote:
I'm not a witch, I'm a retired electronics engineer :)
Ionen wrote:
As a packager I just don't want things to get messier with weird build systems and multiple toolchains requirements though :)
Back to top
View user's profile Send private message
NichtDerHans
Tux's lil' helper
Tux's lil' helper


Joined: 27 Jan 2023
Posts: 131

PostPosted: Sat Aug 26, 2023 9:21 am    Post subject: Reply with quote

Sooo..... systemd is gone and openrc is in da house. Works as expected. :D





One question:

https://wiki.gentoo.org/wiki/Handbook:AMD64/Full/Installation#System_logger

I want to use "app-admin/sysklogd" as system logger. But "app-admin/metalog" is installed. "metalog" is a depency for "virtual/logger". "virtual/logger" is a depency for "sys-apps/lm-sensors". ... etc

How can I replace the metalog? In the ebuild for "virtual/logger" is sysklogd as an option.

https://gitweb.gentoo.org/repo/gentoo.git/tree/virtual/logger/logger-0-r1.ebuild
Back to top
View user's profile Send private message
szatox
Advocate
Advocate


Joined: 27 Aug 2013
Posts: 3140

PostPosted: Sat Aug 26, 2023 9:54 am    Post subject: Reply with quote

That's simple, virtuals exist specifically to allow drop-in replacements:
emerge --deselect metalog
emerge your logger of choice
emerge -ac

You may need to fix your openrc services afterwards as well (like in: make sure your new logger actually starts after reboot), though I think your new logger should be pulled in as dependency
Back to top
View user's profile Send private message
NichtDerHans
Tux's lil' helper
Tux's lil' helper


Joined: 27 Jan 2023
Posts: 131

PostPosted: Sat Aug 26, 2023 10:00 am    Post subject: Reply with quote

szatox wrote:

emerge --deselect metalog


Code:
~ # emerge --deselect metalog
>>> No matching atoms found in "world" favorites file...


It was installed as an depency.

The only way I know now is the crowbar:

Code:
emerge -C metalog
Back to top
View user's profile Send private message
NichtDerHans
Tux's lil' helper
Tux's lil' helper


Joined: 27 Jan 2023
Posts: 131

PostPosted: Sat Aug 26, 2023 10:08 am    Post subject: Reply with quote

Ok, problem solved. I emerged "app-admin/sysklogd" and "app-admin/metalog".

after then: "emerge --deselect metalog"

and "emerge --ask depclean" to remove metalog.

Is there a smarter way?
Back to top
View user's profile Send private message
szatox
Advocate
Advocate


Joined: 27 Aug 2013
Posts: 3140

PostPosted: Sat Aug 26, 2023 10:24 am    Post subject: Reply with quote

Quote:
~ # emerge --deselect metalog
>>> No matching atoms found in "world" favorites file...
Good, so consider step 1 done.


A smarter way? I honestly have no idea what would be smarter than just replacing a program when you want to replace a program.
If virtuals had use flags for selecting their dependencies, well, maybe it could be considered smarter, but IMO complicating a process for no benefit whatsoever is quite dumb :lol:
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
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