summaryrefslogtreecommitdiff
path: root/gnome-base
diff options
context:
space:
mode:
authorroot <root@alpha.trunkmasters.com>2026-06-16 10:53:11 -0500
committerroot <root@alpha.trunkmasters.com>2026-06-16 10:53:11 -0500
commit8e65dc62f3f9f6b8f7b890fefedbf4ac05dfde0b (patch)
treebb1e83c18d1cc77cdebfc5aeb9b12ad39c9787b5 /gnome-base
parentf997c3ee588099e4f43e9ec845935868e3e60b8e (diff)
downloadbaldeagleos-repo-8e65dc62f3f9f6b8f7b890fefedbf4ac05dfde0b.tar.gz
baldeagleos-repo-8e65dc62f3f9f6b8f7b890fefedbf4ac05dfde0b.tar.xz
baldeagleos-repo-8e65dc62f3f9f6b8f7b890fefedbf4ac05dfde0b.zip
Adding metadata
Diffstat (limited to 'gnome-base')
-rw-r--r--gnome-base/gdm/files/90-nvidia-acl.conf3
-rw-r--r--gnome-base/gdm/gdm-49.2-r1.ebuild224
-rw-r--r--gnome-base/gnome-session-openrc/Manifest1
-rw-r--r--gnome-base/gnome-session-openrc/gnome-session-openrc-49.2.ebuild34
-rw-r--r--gnome-base/gnome-shell/gnome-shell-48.8.ebuild2
5 files changed, 263 insertions, 1 deletions
diff --git a/gnome-base/gdm/files/90-nvidia-acl.conf b/gnome-base/gdm/files/90-nvidia-acl.conf
new file mode 100644
index 000000000000..e197b41180a8
--- /dev/null
+++ b/gnome-base/gdm/files/90-nvidia-acl.conf
@@ -0,0 +1,3 @@
+[Service]
+# Execute the initialization sequence and apply ACLs only if the Nvidia kernel module is loaded.
+ExecStartPre=+/bin/sh -c 'if [ -d /sys/module/nvidia ]; then /usr/bin/nvidia-modprobe -m && /usr/bin/nvidia-smi -L && /usr/bin/setfacl -m g:gdm:rw- /dev/nvidia0 /dev/nvidiactl /dev/nvidia-modeset 2>/dev/null || true; fi' \ No newline at end of file
diff --git a/gnome-base/gdm/gdm-49.2-r1.ebuild b/gnome-base/gdm/gdm-49.2-r1.ebuild
new file mode 100644
index 000000000000..aa2aa09c779a
--- /dev/null
+++ b/gnome-base/gdm/gdm-49.2-r1.ebuild
@@ -0,0 +1,224 @@
+# Copyright 2023-2026 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit desktop gnome.org gnome2-utils meson pam readme.gentoo-r1 systemd udev xdg
+
+DESCRIPTION="GNOME Display Manager for managing graphical display servers and user logins"
+HOMEPAGE="https://gitlab.gnome.org/GNOME/gdm"
+
+SRC_URI="${SRC_URI}
+ branding? ( https://www.mail-archive.com/tango-artists@lists.freedesktop.org/msg00043/tango-gentoo-v1.1.tar.gz )
+"
+
+LICENSE="
+ GPL-2+
+ branding? ( CC-BY-SA-4.0 )
+"
+
+SLOT="0"
+
+KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86"
+
+IUSE="audit debug bluetooth-sound branding elogind fprint plymouth selinux systemd tcpd test video_cards_nvidia +X"
+
+RESTRICT="!test? ( test )"
+REQUIRED_USE="^^ ( elogind systemd )"
+
+# dconf, dbus and g-s-d are needed at install time for dconf update
+# keyutils is automagic dep that makes autologin unlock login keyring
+# when all the passwords match (disk encryption, user pw and login keyring)
+# dbus-run-session used at runtime.
+COMMON_DEPEND="
+ virtual/udev
+ >=dev-libs/libgudev-232:=
+ >=dev-libs/glib-2.68:2
+ >=dev-libs/json-glib-1.2.0
+ >=sys-apps/accountsservice-0.6.35
+ sys-apps/keyutils:=
+ selinux? ( sys-libs/libselinux )
+
+ X? (
+ x11-libs/libxcb
+ x11-libs/libX11
+ x11-libs/libXau
+ x11-base/xorg-server[-minimal]
+ x11-libs/libXdmcp
+ >=x11-libs/gtk+-2.91.1:3
+ )
+ tcpd? ( >=sys-apps/tcp-wrappers-7.6 )
+
+ systemd? ( >=sys-apps/systemd-257:0=[pam] )
+ elogind? ( >=sys-auth/elogind-239.3[pam] )
+
+ plymouth? ( sys-boot/plymouth )
+ audit? ( sys-process/audit )
+
+ sys-libs/pam
+ sys-auth/pambase[elogind?,systemd?]
+
+ >=gnome-base/dconf-0.20
+ >=gnome-base/gnome-settings-daemon-3.1.4
+ gnome-base/gsettings-desktop-schemas
+ sys-apps/dbus
+
+ >=x11-misc/xdg-utils-1.0.2-r3
+
+ >=dev-libs/gobject-introspection-1.82.0-r2:=
+"
+# XXX: These deps are from session and desktop files in data/ directory
+# fprintd is used via dbus by gdm-fingerprint-extension
+RDEPEND="${COMMON_DEPEND}
+ acct-group/gdm
+ acct-user/gdm
+ >=gnome-base/gnome-shell-49
+ x11-apps/xhost
+
+ fprint? ( sys-auth/fprintd[pam] )
+ systemd? (
+ video_cards_nvidia? (
+ x11-drivers/nvidia-drivers
+ sys-apps/acl
+ )
+ )
+"
+# This is a 'workaround' built into gdm 49, as elogind does not yet have
+# 'working' userdb support in stable or testing.
+# https://github.com/elogind/elogind/issues/323
+RDEPEND+="elogind? ( acct-user/gdm-greeter )"
+DEPEND="${COMMON_DEPEND}
+ x11-base/xorg-proto
+"
+BDEPEND="
+ dev-util/gdbus-codegen
+ dev-util/glib-utils
+ dev-util/itstool
+ >=gnome-base/dconf-0.20
+ >=sys-devel/gettext-0.19.8
+ virtual/pkgconfig
+ test? ( >=dev-libs/check-0.9.4 )
+"
+
+DOC_CONTENTS="
+ To start GDM at boot with systemd, run:\n
+ # systemctl enable gdm.service\n
+ \n
+ To start GDM at boot with OpenRC, set DISPLAYMANAGER=\"gdm\"\n
+ in /etc/conf.d/display-manager and enable the display-manager service:\n
+ # rc-update add display-manager\n
+ \n
+ For passwordless login to unlock your keyring, you need to install
+ sys-auth/pambase with USE=gnome-keyring and set an empty password
+ on your keyring. Use app-crypt/seahorse for that.\n
+ \n
+ You may need to install app-crypt/coolkey and sys-auth/pam_pkcs11
+ for smartcard support
+"
+
+src_prepare() {
+ default
+
+ # Show logo when branding is enabled
+ use branding && eapply "${FILESDIR}/${PN}-3.30.3-logo.patch"
+ eapply "${FILESDIR}/gdm-pam-openrc.patch"
+}
+
+src_configure() {
+ # --with-initial-vt=7 conflicts with plymouth, bug #453392
+ # gdm-3.30 now reaps (stops) the login screen when the login VT isn't active, which
+ # saves on memory. However this means if we don't start on VT1, gdm doesn't start up
+ # before user manually goes to VT7. Thus as-is we can not keep gdm away from VT1,
+ # so lets try always having it in VT1 and see if that is an issue for people before
+ # hacking up workarounds for the initial start case.
+ local emesonargs=(
+ --localstatedir /var
+
+ -Ddefault-pam-config=exherbo
+ -Dgdm-xsession=true
+ -Dgroup=gdm
+ -Dipv6=true
+ $(meson_feature audit libaudit)
+ -Dlogind-provider=$(usex systemd systemd elogind)
+ -Dpam-mod-dir=$(getpam_mod_dir)
+ $(meson_feature plymouth)
+ -Drun-dir=/run/gdm
+ $(meson_feature selinux)
+ $(meson_use systemd systemd-journal)
+ $(meson_use tcpd tcp-wrappers)
+ -Dudev-dir=$(get_udevdir)/rules.d
+ -Duser=gdm
+ -Duser-display-server=true
+ $(meson_use X x11-support)
+ $(meson_feature X xdmcp)
+ )
+
+ if use elogind; then
+ emesonargs+=(
+ -Dinitial-vt=7 # TODO: Revisit together with startDM.sh and other xinit talks; also ignores plymouth possibility
+ -Dsystemdsystemunitdir=no
+ -Dsystemduserunitdir=no
+ )
+ else
+ emesonargs+=(
+ -Dinitial-vt=1
+ -Dsystemdsystemunitdir="$(systemd_get_systemunitdir)"
+ -Dsystemduserunitdir="$(systemd_get_userunitdir)"
+ )
+ fi
+
+ meson_src_configure
+}
+
+src_install() {
+ meson_src_install
+
+ if ! use bluetooth-sound ; then
+ # Workaround https://gitlab.freedesktop.org/pulseaudio/pulseaudio/merge_requests/10
+ # bug #679526
+ insinto /var/lib/gdm/.config/pulse
+ doins "${FILESDIR}"/default.pa
+ fi
+
+ # Ensure that gdm-greeter-XXX dynamic users have the needed
+ # permissions on nvidia systems, bug #973590
+ if use systemd && use video_cards_nvidia; then
+ insinto /usr/lib/systemd/system/gdm.service.d
+ doins "${FILESDIR}/90-nvidia-acl.conf"
+ fi
+
+ # install XDG_DATA_DIRS gdm changes
+ echo 'XDG_DATA_DIRS="/usr/share/gdm"' > 99xdg-gdm
+ doenvd 99xdg-gdm
+
+ use branding && newicon "${WORKDIR}/tango-gentoo-v1.1/scalable/gentoo.svg" gentoo-gdm.svg
+
+ readme.gentoo_create_doc
+}
+
+pkg_postinst() {
+ xdg_pkg_postinst
+ gnome2_schemas_update
+
+ local d ret
+
+ # bug #669146; gdm may crash if /var/lib/gdm subdirs are not owned by gdm:gdm
+ ret=0
+ ebegin "Fixing ${EROOT}/var/lib/gdm ownership"
+ chown --no-dereference gdm:gdm "${EROOT}/var/lib/gdm" || ret=1
+ for d in "${EROOT}/var/lib/gdm/"{.cache,.color,.config,.dbus,.local}; do
+ [[ ! -e "${d}" ]] || chown --no-dereference -R gdm:gdm "${d}" || ret=1
+ done
+ eend ${ret}
+
+ systemd_reenable gdm.service
+ readme.gentoo_print_elog
+
+ udev_reload
+}
+
+pkg_postrm() {
+ xdg_pkg_postrm
+ gnome2_schemas_update
+ udev_reload
+}
diff --git a/gnome-base/gnome-session-openrc/Manifest b/gnome-base/gnome-session-openrc/Manifest
index 8d0c8de763a2..86edacb65748 100644
--- a/gnome-base/gnome-session-openrc/Manifest
+++ b/gnome-base/gnome-session-openrc/Manifest
@@ -1 +1,2 @@
DIST gnome-session-openrc-49.1.tar.gz 16074 BLAKE2B 3d961d7976e850f0e81200e8026478b5762026c90c28141ef2445e8849cdae1ab6a266433e6a79e1b98cbae001456077cf1f68b8aeaa85e36d8104e72857e6c6 SHA512 746ac9b4b04c13f955e84a1511ca869997342c7c968c0cfbfb37926bbaaa6afe9f9cf30b692f629c30368813a76ef45e8927193f1f3bd1dc804d6d8e223530a9
+DIST gnome-session-openrc-49.2.tar.gz 16244 BLAKE2B 63c93dff4534e301b6b982be9430bf9f431d492e874ced901a4528ef407629da58edcdc9d8d1181ac15a9d3aab3af865d6ab4bec342665bb7837ab1f4c88377a SHA512 90ae0c748aea08aa7cc5b858e951c1825d77f28e7ba681e99e85249bed33214cbe793d85b09475b613ede23d49d8625359054d49e66bfe60f541c271f4b0b46f
diff --git a/gnome-base/gnome-session-openrc/gnome-session-openrc-49.2.ebuild b/gnome-base/gnome-session-openrc/gnome-session-openrc-49.2.ebuild
new file mode 100644
index 000000000000..4f6a939d21c2
--- /dev/null
+++ b/gnome-base/gnome-session-openrc/gnome-session-openrc-49.2.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2026 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+inherit meson
+
+DESCRIPTION="Gnome session leader for OpenRC"
+HOMEPAGE="https://github.com/swagtoy/gnome-session-openrc"
+SRC_URI="https://github.com/swagtoy/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86"
+IUSE="X"
+
+COMMON_DEPEND="
+ >=dev-libs/glib-2.82.0:2
+ >=sys-auth/elogind-242
+"
+RDEPEND="${COMMON_DEPEND}
+ sys-apps/dbus[X?]
+ !<gnome-base/gnome-session-49
+"
+DEPEND="${COMMON_DEPEND}"
+BDEPEND="
+ virtual/pkgconfig
+"
+
+src_configure() {
+ local emesonargs=(
+ $(meson_use X x11)
+ )
+ meson_src_configure
+}
diff --git a/gnome-base/gnome-shell/gnome-shell-48.8.ebuild b/gnome-base/gnome-shell/gnome-shell-48.8.ebuild
index b2934b86b99b..ba2897b30bb8 100644
--- a/gnome-base/gnome-shell/gnome-shell-48.8.ebuild
+++ b/gnome-base/gnome-shell/gnome-shell-48.8.ebuild
@@ -11,7 +11,7 @@ HOMEPAGE="https://gitlab.gnome.org/GNOME/gnome-shell"
LICENSE="GPL-2+ LGPL-2+"
SLOT="0"
-KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc64 ~riscv ~x86"
+KEYWORDS="amd64 ~arm ~arm64 ~loong ~ppc64 ~riscv ~x86"
IUSE="X elogind gtk-doc +ibus +networkmanager pipewire systemd test wayland"
REQUIRED_USE="${PYTHON_REQUIRED_USE}