F§2023-09-13

  1. Part 1 to 5 of the Gentoo Handbook, Gentoo Handbook for an amd64 platform.

¶2. X server installation

VIDEO_CARDS="fbdev vc4 v3d"
INPUT_device="evdev synaptics"

Please go to



GNOME is a popular desktop environment capable launching Xorg and Wayland sessions. This guide attempts to describe all aspects of GNOME, including installation, configuration, and usage.

&apra; 1. Installation

 $ ls -l /etc/portage/make.profile/
total 12
-rw-r--r-- 1 root root    2 Oct  7  2017 eapi
drwxr-xr-x 2 root root 4096 Sep 11 08:40 merged-usr
-rw-r--r-- 1 root root   37 Oct  7  2017 parent
$ sudo eselect profile list
Password: 
Available profile symlink targets:
  [1]   default/linux/arm64/17.0 (stable)
  [2]   default/linux/arm64/17.0/hardened (exp)
  [3]   default/linux/arm64/17.0/hardened/selinux (dev)
  [4]   default/linux/arm64/17.0/desktop (stable)
  [5]   default/linux/arm64/17.0/desktop/gnome (stable)
  [6]   default/linux/arm64/17.0/desktop/gnome/systemd (stable)
  [7]   default/linux/arm64/17.0/desktop/gnome/systemd/merged-usr (stable)
  [8]   default/linux/arm64/17.0/desktop/plasma (stable)
  [9]   default/linux/arm64/17.0/desktop/plasma/systemd (stable)
  [10]  default/linux/arm64/17.0/desktop/plasma/systemd/merged-usr (stable)
  [11]  default/linux/arm64/17.0/desktop/systemd (stable) *
  [12]  default/linux/arm64/17.0/desktop/systemd/merged-usr (stable)
  [13]  default/linux/arm64/17.0/developer (exp)
  [14]  default/linux/arm64/17.0/systemd (stable)
  [15]  default/linux/arm64/17.0/systemd/merged-usr (stable)
  [16]  default/linux/arm64/17.0/systemd/selinux (exp)
  [17]  default/linux/arm64/17.0/systemd/selinux/merged-usr (exp)
  [18]  default/linux/arm64/17.0/llvm (exp)
  [19]  default/linux/arm64/17.0/systemd/llvm (exp)
  [20]  default/linux/arm64/17.0/systemd/llvm/merged-usr (exp)
  [21]  default/linux/arm64/17.0/big-endian (exp)
  [22]  default/linux/arm64/17.0/big-endian/systemd (exp)
  [23]  default/linux/arm64/17.0/big-endian/systemd/merged-usr (exp)
  [24]  default/linux/arm64/17.0/musl (dev)
  [25]  default/linux/arm64/17.0/musl/llvm (exp)
  [26]  default/linux/arm64/17.0/musl/hardened (exp)
  [27]  default/linux/arm64/17.0/musl/hardened/selinux (exp)
  • the differences between

>you could eselct set 5 and latteron to upgrade it to 6 or 7

- Remember that when you switch profiles, you may need to update your system and packages to match the new profile's configuration. You can do this with the following commands:
- Update the package manager (Portage):
    - `sudo emerge --sync`
- Update all installed packages:
    - `sudo emerge -avuDN @world`

$ sudo eselect profile set 5 --> looks like I could not use termail as root user to set it. or I sudo eselect first and DB was locked by me

eselect profile set 4

ls -l /etc/portage/make.profile

lrwxrwxrwx 1 root root 67 Sep 15 06:06 /etc/portage/make.profile -> ../../var/db/repos/gentoo/profiles/default/linux/arm64/17.0/desktop

- verify

$ sudo eselect profile show Current /etc/portage/make.profile symlink: default/linux/arm64/17.0/desktop/gnome

$ ls -l /etc/portage/make.profile lrwxrwxrwx 1 root root 73 Sep 15 03:54 /etc/portage/make.profile -> ../../var/db/repos/gentoo/profiles/default/linux/arm64/17.0/desktop/gnome

emerge --ask --update --deep --newuse @world
$ sudo emerge --ask --update --deep --newuse @world

 * IMPORTANT: 12 news items need reading for repository 'gentoo'.
 * Use eselect news read to view new items.


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

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

[ebuild  N     ] gui-libs/display-manager-init-1.1.2 
[ebuild   R    ] virtual/libudev-251-r1  USE="-systemd*" 
[ebuild   R    ] sys-apps/util-linux-2.38.1-r2  USE="-systemd*" 
[ebuild   R    ] sys-libs/glibc-2.37-r3  USE="-systemd*" 
[ebuild  N     ] sys-apps/systemd-utils-253.6  USE="acl kmod (split-usr) tmpfiles udev -boot -secureboot (-selinux) -sysusers -test" 
[ebuild   R    ] virtual/udev-217-r6  USE="-systemd*" 
[ebuild   R    ] app-crypt/p11-kit-0.25.0-r1  USE="-systemd*" 
[ebuild   R    ] virtual/tmpfiles-0-r5  USE="-systemd*" 
[ebuild   R    ] dev-qt/qtcore-5.15.10-r1  USE="-systemd*" 
[ebuild  N     ] sys-auth/elogind-246.10-r3  USE="acl cgroup-hybrid pam policykit -audit -debug -doc (-selinux) -test" 
[ebuild   R    ] sys-auth/pambase-20220214  USE="elogind* -systemd*" 
[ebuild   R    ] sys-process/procps-3.3.17-r2  USE="elogind* -systemd*" 
[ebuild   R    ] sys-auth/polkit-122-r1  USE="-systemd*" 
[ebuild   R    ] app-accessibility/at-spi2-core-2.48.3  USE="-systemd*" 
[ebuild   R    ] net-print/cups-2.4.6  USE="-systemd*" 
[ebuild   R    ] media-libs/mesa-23.1.6  VIDEO_CARDS="v3d*" 
[ebuild   R    ] x11-base/xorg-server-21.1.8-r2  USE="elogind* -systemd*" 
[ebuild   R    ] app-crypt/gcr-3.41.1-r2  USE="-systemd*" 
[ebuild   R    ] gnome-base/gnome-keyring-42.1-r2  USE="-systemd*" 
[blocks B      ] sys-apps/systemd ("sys-apps/systemd" is soft blocking sys-apps/systemd-utils-253.6)
[blocks B      ] sys-apps/systemd ("sys-apps/systemd" is soft blocking sys-auth/elogind-246.10-r3)
[blocks B      ] sys-apps/gentoo-systemd-integration ("sys-apps/gentoo-systemd-integration" is soft blocking sys-apps/systemd-utils-253.6)

 * Error: The above package list contains packages which cannot be
 * installed at the same time on the same system.

  (sys-apps/systemd-253.6-2:0/2::gentoo, installed) pulled in by
    sys-apps/systemd:0= required by (sys-apps/dbus-1.15.6-3:0/0::gentoo, installed) USE="X systemd -debug -doc -elogind (-selinux) -static-libs -test -valgrind"
    sys-apps/systemd required by (virtual/service-manager-1-r1-1:0/0::gentoo, installed) USE=""
    >=sys-apps/systemd-207 required by (sys-apps/gentoo-systemd-integration-9-1:0/0::gentoo, installed) USE=""
    >=sys-apps/systemd-38 required by (virtual/logger-0-r1:0/0::gentoo, installed) USE=""
    sys-apps/systemd:0/2= required by (sys-apps/dbus-1.15.6-3:0/0::gentoo, installed) USE="X systemd -debug -doc -elogind (-selinux) -static-libs -test -valgrind"

  (sys-apps/systemd-utils-253.6:0/0::gentoo, ebuild scheduled for merge) pulled in by
    sys-apps/systemd-utils[udev] required by (virtual/udev-217-r6:0/0::gentoo, ebuild scheduled for merge) USE="-systemd"
    >=sys-apps/systemd-utils-251[udev,abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?,abi_s390_32(-)?,abi_s390_64(-)?] (>=sys-apps/systemd-utils-251[udev]) required by (virtual/libudev-251-r1:0/1::gentoo, ebuild scheduled for merge) USE="sticky-tags (-eudev) -systemd"
    sys-apps/systemd-utils[tmpfiles] required by (virtual/tmpfiles-0-r5:0/0::gentoo, ebuild scheduled for merge) USE="-systemd"

  (sys-auth/elogind-246.10-r3:0/0::gentoo, ebuild scheduled for merge) pulled in by
    sys-auth/elogind[pam] required by (sys-auth/pambase-20220214:0/0::gentoo, ebuild scheduled for merge) USE="elogind nullok passwdqc sha512 -caps -debug -gnome-keyring -homed -minimal -mktemp (-pam_krb5) (-pam_ssh) -pwhistory -pwquality -securetty (-selinux) -systemd -yescrypt"
    sys-auth/elogind[pam] required by (x11-base/xorg-server-21.1.8-r2:0/21.1.8::gentoo, ebuild scheduled for merge) USE="elogind udev xorg -debug -minimal (-selinux) -suid -systemd -test -unwind -xcsecurity -xephyr -xnest -xvfb"
    sys-auth/elogind required by (sys-process/procps-3.3.17-r2:0/8::gentoo, ebuild scheduled for merge) USE="elogind kill ncurses nls (split-usr) (unicode) -modern-top (-selinux) -static-libs -systemd -test"
    sys-auth/elogind required by (sys-auth/polkit-122-r1:0/0::gentoo, ebuild scheduled for merge) USE="daemon duktape gtk introspection pam -examples -kde (-selinux) -systemd -test"


For more information about Blocked Packages, please refer to the following
section of the Gentoo Linux x86 Handbook (architecture is irrelevant):

https://wiki.gentoo.org/wiki/Handbook:X86/Working/Portage#Blocked_packages

if,

alexlai@rpi4bGenoo ~ $ sudo eselect profile set 6
alexlai@rpi4bGenoo ~ $ sudo eselect profile show
Current /etc/portage/make.profile symlink:
  default/linux/arm64/17.0/desktop/gnome/systemd
alexlai@rpi4bGenoo ~ $ ls -l /etc/portage/make.profile/
total 12
-rw-r--r-- 1 root root    2 Jul 27  2019 eapi
drwxr-xr-x 2 root root 4096 Sep 11 08:40 merged-usr
-rw-r--r-- 1 root root   54 Jul 27  2019 parent
$ ls -l /etc/portage/make.profile
lrwxrwxrwx 1 root root 81 Sep 16 12:58 /etc/portage/make.profile -> ../../var/db/repos/gentoo/profiles/default/linux/arm64/17.0/desktop/gnome/systemd

$ cat /etc/portage/make.conf 
# These settings were set by the catalyst build script that automatically
# built this stage.
# Please consult /usr/share/portage/config/make.conf.example for a more
# detailed example.
COMMON_FLAGS="-O2 -pipe"
CFLAGS="${COMMON_FLAGS}"
CXXFLAGS="${COMMON_FLAGS}"
FCFLAGS="${COMMON_FLAGS}"
FFLAGS="${COMMON_FLAGS}"

# WARNING: Changing your CHOST is not something that should be done lightly.
# Please consult https://wiki.gentoo.org/wiki/Changing_the_CHOST_variable before changing.
CHOST="aarch64-unknown-linux-gnu"

# NOTE: This stage was built with the bindist Use flag enabled

# This sets the language of build output to English.
# Please keep this setting intact when reporting bugs.
LC_MESSAGES=C.utf8


# Xorg
VIDEO_CARDS="fbdev vc4 v3d"
INPUT_device="evdev synaptics"

# emerge --ask sys-boot/raspberrypi-firmware
# sys-boot/raspberrypi-firmware-1.20230106::gentoo (masked by: raspberrypi-videocore-bin license(s))
ACCEPT_LICENSE="raspberrypi-videocore-bin"

# for gnome3
# `USE`代表編譯軟體用的全域FLAG,不寫就是按照軟體預設值編譯
# nls- native language support, cjk- chinesr, korean abd japanese

USE="nls cjk"

# 設定輸入裝置,libinput是滑鼠+鍵盤,synaptics是觸控板,wacom是繪圖板
INPUT_DEVICES="libinput synaptics wacom"

# 自動同意所有授權條款
ACCEPT_LICENSE="*"

# 指定安裝正體中文的軟體
# L10N="zh-TW"

# 指定安裝amd64架構的穩定版軟體,「~amd64」不穩定但會獲得最新版軟體
ACCEPT_KEYWORDS="arm64"

# 設定要安裝的顯示卡驅動
# VIDEO_CARDS="intel nvidia"

$ sudo emerge --ask --update --deep --newuse @world

 * IMPORTANT: 12 news items need reading for repository 'gentoo'.
 * Use eselect news read to view new items.


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

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

[ebuild  N     ] acct-group/colord-0-r1 
[ebuild  N     ] acct-user/colord-0-r1 
[ebuild   R    ] x11-base/xorg-drivers-21.1-r2  INPUT_DEVICES="synaptics*" 
[ebuild  N     ] x11-drivers/xf86-input-synaptics-1.9.2 
[ebuild  N     ] dev-perl/X11-Protocol-0.560.0-r2  USE="-examples -test" 
[ebuild  N     ] dev-perl/Text-Iconv-1.700.0-r3  USE="-test" 
[ebuild  N     ] virtual/perl-Time-HiRes-1.977.500 
[ebuild  N     ] dev-perl/Tie-IxHash-1.230.0-r1  USE="-test" 
[ebuild  N     ] dev-perl/XML-XPath-1.480.0  USE="-examples -test" 
[ebuild  N     ] dev-perl/XML-Twig-3.520.0-r1  USE="nls -test" 
[ebuild  N     ] kde-frameworks/extra-cmake-modules-5.108.0  USE="-doc -test" 
[ebuild  N     ] dev-perl/Net-DBus-1.2.0  USE="-test" 
[ebuild  N     ] dev-util/wayland-scanner-1.22.0 
[ebuild  N     ] dev-libs/wayland-1.22.0  USE="-doc -test" 
[ebuild  N     ] dev-libs/wayland-protocols-1.32  USE="-test" 
[ebuild  N     ] dev-qt/qtconcurrent-5.15.10  USE="-debug -test" 
[ebuild  N     ] dev-qt/qtnetwork-5.15.10-r3  USE="ssl -debug -gssapi -libproxy -sctp -test" 
[ebuild  N     ] dev-qt/qttest-5.15.10  USE="-debug -test" 
[ebuild  N     ] dev-qt/qtwaylandscanner-5.15.10  USE="-debug -test" 
[ebuild   R    ] x11-misc/xdg-utils-1.1.3_p20210805-r1  USE="gnome*" 
[ebuild  N     ] kde-frameworks/kf-env-5 
[ebuild  N     ] dev-libs/plasma-wayland-protocols-1.10.0  USE="-debug" 
[ebuild  N     ] dev-libs/libgudev-238-r1  USE="introspection -test" 
[ebuild  N     ] dev-libs/json-glib-1.6.6-r1  USE="introspection -gtk-doc -test" 
[ebuild  N     ] dev-libs/libgusb-0.4.6  USE="introspection vala -gtk-doc -test" 
[ebuild   R    ] media-libs/mesa-23.1.6  USE="wayland*" VIDEO_CARDS="v3d*" 
[ebuild   R    ] x11-libs/libxkbcommon-1.5.0  USE="wayland*" 
[ebuild   R    ] dev-qt/qtgui-5.15.10-r1  USE="wayland*" 
[ebuild   R    ] app-text/poppler-23.08.0  USE="cjk*" 
[ebuild   R    ] sys-auth/pambase-20220214  USE="gnome-keyring*" 
[ebuild  N     ] x11-misc/colord-1.4.6-r1  USE="introspection systemd -argyllcms -examples -extra-print-profiles -gtk-doc -scanner (-selinux) -test -vala" 
[ebuild   R    ] x11-libs/gtk+-3.24.38  USE="colord* wayland*" 
[ebuild  N     ] dev-qt/qtdeclarative-5.15.10-r2  USE="widgets -debug -gles2-only (-jit) -localstorage -test (-vulkan)" 
[ebuild  N     ] dev-qt/qtwayland-5.15.10-r4  USE="X -debug -test (-vulkan)" 
[ebuild  N     ] kde-frameworks/kwayland-5.108.0  USE="-debug -doc -test" 
[ebuild   R    ] app-crypt/pinentry-1.2.1-r3  USE="keyring* wayland*"
...   ---> takes at least 5 hours on rpi4B
* Messages for package x11-libs/gtk+-3.24.38:

 * Please install app-text/evince for print preview functionality.
 * Alternatively, check "gtk-print-preview-command" documentation and
 * add it to your settings.ini file.

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

 * IMPORTANT: 12 news items need reading for repository 'gentoo'.
 * Use eselect news read to view new items.

 * After world updates, it is important to remove obsolete packages with
 * emerge --depclean. Refer to `man emerge` for more information.
...
Calculating dependencies... done!
>>> No packages selected for removal by depclean
>>> To see reverse dependencies, use --verbose
Packages installed:   556
Packages in world:    7
Packages in system:   49
Required packages:    556
Number removed:       0

¶2. equery to list all installed software packages

$ sudo emerge --ask app-portage/gentoolkit
$ qlist gentoolkit |grep bin
/usr/bin/revdep-rebuild.sh
/usr/bin/equery
/usr/bin/imlate
/usr/bin/eclean-dist
/usr/bin/epkginfo
/usr/bin/merge-driver-ekeyword
/usr/bin/euse
/usr/bin/eread
/usr/bin/eclean
/usr/bin/enalyze
/usr/bin/ekeyword
/usr/bin/ebump
/usr/bin/revdep-rebuild
/usr/bin/eclean-pkg
/usr/bin/eshowkw

¶3. sddm gdm has circular dependence problem

$ sudo emerge -av sddm 

 * IMPORTANT: 12 news items need reading for repository 'gentoo'.
 * Use eselect news read to view new items.


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

$ sudo emerge -av sddm

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

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

[ebuild N ] acct-group/sddm-0-r1::gentoo 0 KiB [ebuild N ] acct-user/sddm-0-r1::gentoo 0 KiB [ebuild N ] dev-qt/linguist-tools-5.15.10:5::gentoo USE="-debug -qml -test" 8694 KiB [ebuild N ] x11-misc/sddm-0.20.0-r1::gentoo USE="systemd (-elogind) -test" 3470 KiB

Total: 4 packages (4 new), Size of downloads: 12164 KiB

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

- [SDDM](https://wiki.gentoo.org/wiki/SDDM)

sudo usermod -a -G video sddm sudo systemctl enable sddm

- sddm not working try lightdm

$ sudo emerge --ask x11-misc/lightdm

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

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

[ebuild R ] x11-misc/lightdm-1.32.0-r2

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


> try `$ sudo emerge -av gnome-base/gdm`

$ sudo emerge -av gnome-base/gdm

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

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

[nomerge ] gnome-base/gdm-44.1::gentoo USE="branding systemd wayland -accessibility -audit -bluetooth-sound (-elogind) -fprint -plymouth (-selinux) -tcpd -test" [ebuild N ] gnome-base/gnome-shell-44.3::gentoo USE="ibus networkmanager systemd (-elogind) -gtk-doc -test" PYTHON_SINGLE_TARGET="python3_11 -python3_10 (-python3_12)" 1949 KiB [ebuild N ] gnome-base/gdm-44.1::gentoo USE="branding systemd wayland -accessibility -audit -bluetooth-sound (-elogind) -fprint -plymouth (-selinux) -tcpd -test" 865 KiB [nomerge ] gnome-base/gnome-shell-44.3::gentoo USE="ibus networkmanager systemd (-elogind) -gtk-doc -test" PYTHON_SINGLE_TARGET="python3_11 -python3_10 (-python3_12)" [nomerge ] media-libs/libpulse-16.1-r2::gentoo USE="X asyncns dbus glib gtk systemd -doc (-selinux) -test -valgrind" [ebuild N ] media-sound/pulseaudio-daemon-16.1-r7::gentoo USE="X alsa alsa-plugin asyncns bluetooth dbus gdbm glib gstreamer ssl systemd udev -aptx (-elogind) -equalizer -fftw -jack -ldac (-lirc) -ofono-headset (-orc) (-oss) (-selinux) -sox (-system-wide) -tcpd -test -valgrind (-webrtc-aec) -zeroconf" 1510 KiB [ebuild N ] media-plugins/alsa-plugins-1.2.7.1-r1::gentoo USE="mix pulseaudio usb_stream -arcam_av -debug -ffmpeg -jack -libsamplerate -oss -speex" 400 KiB [ebuild N ] gnome-base/gnome-control-center-44.3:2::gentoo USE="bluetooth cups gnome-online-accounts ibus networkmanager systemd wayland -debug (-elogind) -kerberos -test" INPUT_DEVICES="(-wacom)" 7490 KiB [ebuild N ] x11-wm/mutter-44.3:0/12::gentoo USE="gnome introspection systemd udev wayland -debug (-elogind) -gtk-doc -screencast (-sysprof) -test" INPUT_DEVICES="(-wacom)" VIDEO_CARDS="(-nvidia)" 2782 KiB [ebuild N ] gnome-base/gnome-session-44.0-r1::gentoo USE="systemd -doc (-elogind)" 474 KiB [ebuild N ] gnome-base/gnome-settings-daemon-44.1::gentoo USE="colord cups networkmanager systemd wayland -debug (-elogind) -modemmanager -smartcard (-test)" INPUT_DEVICES="(-wacom)" 1425 KiB [ebuild N ] media-sound/pulseaudio-16.1::gentoo USE="bluetooth glib -daemon -jack -ofono-headset" 0 KiB [nomerge ] gnome-base/gnome-control-center-44.3:2::gentoo USE="bluetooth cups gnome-online-accounts ibus networkmanager systemd wayland -debug (-elogind) -kerberos -test" INPUT_DEVICES="(-wacom)" [nomerge ] media-libs/libpulse-16.1-r2::gentoo USE="X asyncns dbus glib gtk systemd -doc (-selinux) -test -valgrind" [ebuild N ] media-libs/libsndfile-1.2.2::gentoo USE="alsa -minimal -sqlite -test" 714 KiB [ebuild N ] media-sound/mpg123-1.31.3-r1::gentoo USE="alsa ipv6 pulseaudio sdl (-coreaudio) -int-quality -jack -nas -oss -portaudio" 1069 KiB [ebuild N ] media-libs/libsdl2-2.28.1::gentoo USE="X alsa dbus gles2 joystick opengl pulseaudio sound threads udev video vulkan wayland (-aqua) (-custom-cflags) -doc (-fcitx4) -gles1 -haptic -ibus -jack -kms -libsamplerate -nas -oss -pipewire -sndio -static-libs -xscreensaver" VIDEO_CARDS="vc4" 7920 KiB [ebuild N ] net-wireless/gnome-bluetooth-42.6:3/13::gentoo USE="introspection -gtk-doc -sendto -test" 298 KiB [nomerge ] gnome-base/gnome-shell-44.3::gentoo USE="ibus networkmanager systemd (-elogind) -gtk-doc -test" PYTHON_SINGLE_TARGET="python3_11 -python3_10 (-python3_12)" [ebuild N ] gnome-extra/evolution-data-server-3.48.4-r1:0/64-11-21-4-2-27-2-27-4-0::gentoo USE="gnome-online-accounts gtk introspection vala weather -berkdb -gtk-doc -kerberos -ldap -oauth -test" 4792 KiB [nomerge ] gnome-base/gnome-control-center-44.3:2::gentoo USE="bluetooth cups gnome-online-accounts ibus networkmanager systemd wayland -debug (-elogind) -kerberos -test" INPUT_DEVICES="(-wacom)" [ebuild N ] media-libs/gsound-1.0.3::gentoo USE="introspection vala -gtk-doc" 23 KiB [ebuild N ] media-libs/libcanberra-0.30-r7::gentoo USE="alsa gnome gstreamer gtk3 pulseaudio sound udev -gtk2 -oss -tdb" 312 KiB [ebuild N ] media-libs/libpulse-16.1-r2::gentoo USE="X asyncns dbus glib gtk systemd -doc (-selinux) -test -valgrind" 0 KiB

Total: 17 packages (17 new), Size of downloads: 32015 KiB

(media-libs/libsndfile-1.2.2:0/0::gentoo, ebuild scheduled for merge) depends on (media-sound/mpg123-1.31.3-r1:0/0::gentoo, ebuild scheduled for merge) (buildtime_slot_op) (media-libs/libpulse-16.1-r2:0/0::gentoo, ebuild scheduled for merge) (buildtime) (media-libs/libsndfile-1.2.2:0/0::gentoo, ebuild scheduled for merge) (buildtime)

It might be possible to break this cycle by applying any of the following changes:

Note that this change can be reverted, once the package has been installed.

Note that the dependency graph contains a lot of cycles. Several changes might be required to resolve all cycles. Temporarily changing some use flag for all packages might be the better option.


- to solve, put the following lines into /etc/portage.make.conf

for emerge -av gnome-base/gdm

- media-libs/libsndfile-1.2.2 (Change USE: +minimal)

- media-sound/mpg123-1.31.3-r1 (Change USE: -pulseaudio)

USE="+minimal -pulseaudio"


- try `$ sudo emerge -av x11-misc/slim`

$ sudo emerge -av x11-misc/slim

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

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

!!! All ebuilds that could satisfy "x11-misc/slim" have been masked. !!! One of the following masked packages is required to complete your request:

For more information, see the MASKED PACKAGES section in the emerge man page or refer to the Gentoo Handbook.


- try `emerge lxde-base/lxdm`

$ sudo emerge lxde-base/lxdm

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

!!! All ebuilds that could satisfy "lxde-base/lxdm" have been masked. !!! One of the following masked packages is required to complete your request:

For more information, see the MASKED PACKAGES section in the emerge man page or refer to the Gentoo Handbook.


- try  x11-misc/wdm

$ sudo emerge -av x11-misc/wdm

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

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

!!! All ebuilds that could satisfy "x11-misc/wdm" have been masked. !!! One of the following masked packages is required to complete your request:

For more information, see the MASKED PACKAGES section in the emerge man page or refer to the Gentoo Handbook.


- try `sudo emerge -av x11-apps/xdm`

$ sudo emerge -av x11-apps/xdm

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

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

[ebuild N ] x11-apps/sessreg-1.1.3::gentoo 129 KiB [ebuild N ] x11-apps/xconsole-1.0.8::gentoo 127 KiB [ebuild N ] x11-apps/xsm-1.0.5::gentoo 156 KiB [ebuild N ] x11-apps/xdm-1.1.14::gentoo USE="pam systemd truetype -xinerama -xpm" 410 KiB

Total: 4 packages (4 new), Size of downloads: 820 KiB

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

Recording x11-apps/xdm in "world" favorites file...

Completed (4 of 4) x11-apps/xdm-1.1.14::gentoo

alexlai@rpi4bGentoo ~ $ qlist xdm /usr/share/man/man8/xdm.8.bz2 /usr/share/X11/app-defaults/Chooser /usr/share/doc/xdm-1.1.14/ChangeLog.bz2 /usr/share/doc/xdm-1.1.14/AUTHORS.bz2 /usr/share/doc/xdm-1.1.14/README.md.bz2 /usr/lib64/X11/xdm/Xsetup_0 /usr/lib64/X11/xdm/Xreset /usr/lib64/X11/xdm/Xsession /usr/lib64/X11/xdm/TakeConsole /usr/lib64/X11/xdm/libXdmGreet.so /usr/lib64/X11/xdm/GiveConsole /usr/lib64/X11/xdm/pixmaps/xorg.xpm /usr/lib64/X11/xdm/pixmaps/xorg-bw.xpm /usr/lib64/X11/xdm/Xstartup /usr/lib64/X11/xdm/Xwilling /usr/lib64/X11/xdm/chooser /usr/bin/xdm /lib/systemd/system/xdm.service /etc/pam.d/xdm /etc/X11/xdm/Xresources /etc/X11/xdm/Xaccess /etc/X11/xdm/Xservers /etc/X11/xdm/xdm-config /var/lib/xdm/.keep_x11-apps_xdm-0