1 |
commit: 4c2f2e12abcee705d727ecccbf9f6b6d07374710 |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Apr 2 12:37:49 2022 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Apr 2 12:37:49 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4c2f2e12 |
7 |
|
8 |
x11-misc/sddm: Cleanup vulnerable 0.18.1-r5 |
9 |
|
10 |
Bug: https://bugs.gentoo.org/753104 |
11 |
Package-Manager: Portage-3.0.30, Repoman-3.0.3 |
12 |
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> |
13 |
|
14 |
x11-misc/sddm/files/sddm-0.16.0-ck2-revert.patch | 20 ---- |
15 |
x11-misc/sddm/files/sddm-0.18.0-Xsession.patch | 24 ----- |
16 |
x11-misc/sddm/sddm-0.18.1-r5.ebuild | 111 ----------------------- |
17 |
3 files changed, 155 deletions(-) |
18 |
|
19 |
diff --git a/x11-misc/sddm/files/sddm-0.16.0-ck2-revert.patch b/x11-misc/sddm/files/sddm-0.16.0-ck2-revert.patch |
20 |
deleted file mode 100644 |
21 |
index bbe2a272840c..000000000000 |
22 |
--- a/x11-misc/sddm/files/sddm-0.16.0-ck2-revert.patch |
23 |
+++ /dev/null |
24 |
@@ -1,20 +0,0 @@ |
25 |
-SDDM 0.16.0 fails to start with consolekit2 because it assumes consolekit2 |
26 |
-has the same interface names as logind. |
27 |
- |
28 |
-This patch forces sddm to use legacy behaviour when consolekit2 is detected. |
29 |
- |
30 |
-Bug: https://bugs.gentoo.org/633920 |
31 |
-Bug: https://github.com/sddm/sddm/issues/903 |
32 |
-Bug: https://github.com/ConsoleKit2/ConsoleKit2/issues/99 |
33 |
- |
34 |
---- a/src/daemon/LogindDBusTypes.cpp |
35 |
-+++ b/src/daemon/LogindDBusTypes.cpp |
36 |
-@@ -60,7 +60,7 @@ |
37 |
- |
38 |
- if (QDBusConnection::systemBus().interface()->isServiceRegistered(QStringLiteral("org.freedesktop.ConsoleKit"))) { |
39 |
- qDebug() << "Console kit interface found"; |
40 |
-- available = true; |
41 |
-+ available = false; |
42 |
- serviceName = QStringLiteral("org.freedesktop.ConsoleKit"); |
43 |
- managerPath = QStringLiteral("/org/freedesktop/ConsoleKit/Manager"); |
44 |
- managerIfaceName = QStringLiteral("/org.freedesktop.ConsoleKit.Manager"); //note this doesn't match logind |
45 |
|
46 |
diff --git a/x11-misc/sddm/files/sddm-0.18.0-Xsession.patch b/x11-misc/sddm/files/sddm-0.18.0-Xsession.patch |
47 |
deleted file mode 100644 |
48 |
index 41c813a06645..000000000000 |
49 |
--- a/x11-misc/sddm/files/sddm-0.18.0-Xsession.patch |
50 |
+++ /dev/null |
51 |
@@ -1,24 +0,0 @@ |
52 |
---- a/data/scripts/Xsession 2016-08-28 14:52:04.910181422 +0200 |
53 |
-+++ b/data/scripts/Xsession 2017-10-21 15:25:47.668886596 +0200 |
54 |
-@@ -50,6 +50,10 @@ |
55 |
- ;; |
56 |
- esac |
57 |
- |
58 |
-+# Make D-Bus and ConsoleKit start properly, see: |
59 |
-+# /etc/X11/xinit/xinitrc.d/{80-dbus,90-consolekit} |
60 |
-+command="$@" |
61 |
-+ |
62 |
- [ -f /etc/xprofile ] && . /etc/xprofile |
63 |
- [ -f $HOME/.xprofile ] && . $HOME/.xprofile |
64 |
- |
65 |
-@@ -94,8 +98,8 @@ |
66 |
- . "$USERXSESSION" |
67 |
- fi |
68 |
- |
69 |
--if [ -z "$*" ]; then |
70 |
-+if [ -z "$command" ]; then |
71 |
- exec xmessage -center -buttons OK:0 -default OK "Sorry, $DESKTOP_SESSION is no valid session." |
72 |
- else |
73 |
-- exec $@ |
74 |
-+ exec $command |
75 |
- fi |
76 |
|
77 |
diff --git a/x11-misc/sddm/sddm-0.18.1-r5.ebuild b/x11-misc/sddm/sddm-0.18.1-r5.ebuild |
78 |
deleted file mode 100644 |
79 |
index 52bc18534548..000000000000 |
80 |
--- a/x11-misc/sddm/sddm-0.18.1-r5.ebuild |
81 |
+++ /dev/null |
82 |
@@ -1,111 +0,0 @@ |
83 |
-# Copyright 1999-2021 Gentoo Authors |
84 |
-# Distributed under the terms of the GNU General Public License v2 |
85 |
- |
86 |
-EAPI=7 |
87 |
- |
88 |
-PLOCALES="ar bn ca cs da de es et fi fr hi_IN hu is it ja kk ko lt lv nb nl nn pl pt_BR pt_PT ro ru sk sr sr@ijekavian sr@ijekavianlatin sr@latin sv tr uk zh_CN zh_TW" |
89 |
-inherit cmake plocale systemd user |
90 |
- |
91 |
-DESCRIPTION="Simple Desktop Display Manager" |
92 |
-HOMEPAGE="https://github.com/sddm/sddm" |
93 |
-SRC_URI="https://github.com/${PN}/${PN}/releases/download/v${PV}/${P}.tar.xz" |
94 |
- |
95 |
-LICENSE="GPL-2+ MIT CC-BY-3.0 CC-BY-SA-3.0 public-domain" |
96 |
-SLOT="0" |
97 |
-KEYWORDS="amd64 ~arm arm64 ~ppc64 ~riscv x86" |
98 |
-IUSE="elogind +pam systemd test" |
99 |
-RESTRICT="!test? ( test )" |
100 |
- |
101 |
-REQUIRED_USE="?? ( elogind systemd )" |
102 |
- |
103 |
-BDEPEND=" |
104 |
- dev-python/docutils |
105 |
- >=dev-qt/linguist-tools-5.9.4:5 |
106 |
- kde-frameworks/extra-cmake-modules:5 |
107 |
- virtual/pkgconfig |
108 |
-" |
109 |
-RDEPEND=" |
110 |
- >=dev-qt/qtcore-5.9.4:5 |
111 |
- >=dev-qt/qtdbus-5.9.4:5 |
112 |
- >=dev-qt/qtdeclarative-5.9.4:5 |
113 |
- >=dev-qt/qtgui-5.9.4:5 |
114 |
- >=dev-qt/qtnetwork-5.9.4:5 |
115 |
- >=x11-base/xorg-server-1.15.1 |
116 |
- x11-libs/libxcb[xkb] |
117 |
- elogind? ( sys-auth/elogind ) |
118 |
- pam? ( sys-libs/pam ) |
119 |
- !pam? ( virtual/libcrypt:= ) |
120 |
- systemd? ( sys-apps/systemd:= ) |
121 |
- !systemd? ( sys-power/upower ) |
122 |
-" |
123 |
-DEPEND="${RDEPEND} |
124 |
- test? ( >=dev-qt/qttest-5.9.4:5 ) |
125 |
-" |
126 |
- |
127 |
-PATCHES=( |
128 |
- "${FILESDIR}/${P}-respect-user-flags.patch" |
129 |
- "${FILESDIR}/${PN}-0.18.0-Xsession.patch" # bug 611210 |
130 |
- "${FILESDIR}/${PN}-0.18.0-sddmconfdir.patch" |
131 |
- # fix for groups: https://github.com/sddm/sddm/issues/1159 |
132 |
- "${FILESDIR}/${P}-revert-honor-PAM-supplemental-groups.patch" |
133 |
- "${FILESDIR}/${P}-honor-PAM-supplemental-groups-v2.patch" |
134 |
- # fix for ReuseSession=true |
135 |
- "${FILESDIR}/${P}-only-reuse-online-sessions.patch" |
136 |
- # TODO: fix properly |
137 |
- "${FILESDIR}/${PN}-0.16.0-ck2-revert.patch" # bug 633920 |
138 |
- "${FILESDIR}/pam-1.4-substack.patch" |
139 |
- # upstream git develop branch: |
140 |
- "${FILESDIR}/${P}-qt-5.15.2.patch" |
141 |
-) |
142 |
- |
143 |
-src_prepare() { |
144 |
- cmake_src_prepare |
145 |
- |
146 |
- disable_locale() { |
147 |
- sed -e "/${1}\.ts/d" -i data/translations/CMakeLists.txt || die |
148 |
- } |
149 |
- plocale_find_changes "data/translations" "" ".ts" |
150 |
- plocale_for_each_disabled_locale disable_locale |
151 |
- |
152 |
- if ! use test; then |
153 |
- sed -e "/^find_package/s/ Test//" -i CMakeLists.txt || die |
154 |
- cmake_comment_add_subdirectory test |
155 |
- fi |
156 |
-} |
157 |
- |
158 |
-src_configure() { |
159 |
- local mycmakeargs=( |
160 |
- -DENABLE_PAM=$(usex pam) |
161 |
- -DNO_SYSTEMD=$(usex '!systemd') |
162 |
- -DUSE_ELOGIND=$(usex 'elogind') |
163 |
- -DBUILD_MAN_PAGES=ON |
164 |
- -DDBUS_CONFIG_FILENAME="org.freedesktop.sddm.conf" |
165 |
- ) |
166 |
- cmake_src_configure |
167 |
-} |
168 |
- |
169 |
-src_install() { |
170 |
- cmake_src_install |
171 |
- |
172 |
- # Create a default.conf as upstream dropped /etc/sddm.conf w/o replacement |
173 |
- local confd="/usr/share/sddm/sddm.conf.d" |
174 |
- dodir ${confd} |
175 |
- "${D}"/usr/bin/sddm --example-config > "${D}/${confd}"/00default.conf \ |
176 |
- || die "Failed to create 00default.conf" |
177 |
- |
178 |
- sed -e "/^InputMethod/s/qtvirtualkeyboard//" \ |
179 |
- -e "/^ReuseSession/s/false/true/" \ |
180 |
- -e "/^EnableHiDPI/s/false/true/" \ |
181 |
- -i "${D}/${confd}"/00default.conf || die |
182 |
-} |
183 |
- |
184 |
-pkg_postinst() { |
185 |
- elog "Starting with 0.18.0, SDDM no longer installs /etc/sddm.conf" |
186 |
- elog "Use it to override specific options. SDDM defaults are now" |
187 |
- elog "found in: /usr/share/sddm/sddm.conf.d/00default.conf" |
188 |
- |
189 |
- enewgroup ${PN} |
190 |
- enewuser ${PN} -1 -1 /var/lib/${PN} ${PN},video |
191 |
- |
192 |
- systemd_reenable sddm.service |
193 |
-} |