tce-load -i compiletc meson dbus-glib-dev gnome-desktop-dev json-glib-dev upower-dev xmlto gettext https://ftp.gnome.org/pub/GNOME/sources/gnome-session/3.36/gnome-session-3.36.0.tar.xz https://gitweb.gentoo.org/repo/gentoo.git/tree/gnome-base/gnome-session/files/3.30.1-elogind-support.patch cd gnome-session-3.36.0 patch -Np0 -i ../gnome-session-3.28.1_elogind_meson.patch patch -Np0 -i ../gnome-session-3.28.1_elogind_gsm-autostart-app.patch patch -Np1 -i ../gnome-session-3.28.1_elogind_gsm-systemd.c.patch [patch -Np0 -i ../gnome-session-3.36.0_1.patch patch -Np0 -i ../gnome-session-3.36.0_2.patch] mkdir build cd build CC="gcc -flto -fuse-linker-plugin -mtune=generic -Os -pipe" CXX="g++ -flto -fuse-linker-plugin -mtune=generic -Os -pipe -fno-exceptions -fno-rtti" meson --prefix=/usr/local --libexecdir=/usr/local/lib/gnome-session --localstatedir=/var --buildtype=plain -Dsystemd_journal=false -Dman=false -Ddocbook=false [-Delogind=true -Dsystemd_session=disable -Dsystemd=false]=with only libelogind mod ninja[0m 7.16s] sudo ninja install gnome-session-binary [30410]: WARNING: Could not get session id for session. Check that logind is properly installed and pam_systemd is getting used at login. gnome-session-binary [30410]: WARNING: Unable to find required component `org.gnome.SettingsDaemon.UsbProtection` Unable to init session: Could not connect: connection refused ** (gnome-session-failed: 30436): Warning ** : Could not open display gnome-session 3.36.0 ==================== prefix: /usr/local exec_prefix: /usr/local/lib/gnome-session libdir: /usr/local/lib bindir: /usr/local/bin sbindir: /usr/local/sbin sysconfdir: /usr/local/etc localstatedir: /var datadir: /usr/local/share source code location: /usr/src/gnome-session-3.36.0 compiler: gcc cflags: Debug mode: false Use *_DISABLE_DEPRECATED: false Session tracking: elogind Build Docbook: false Build manpages: false