Gentoo Archives: gentoo-commits

From: Jory Pratt <anarchy@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/musl:master commit in: sys-auth/elogind/files/, sys-auth/elogind/
Date: Thu, 18 Apr 2019 21:01:52
Message-Id: 1555621271.9057585df5e2dd8a3e9ac28dea580e5a3fc55de4.anarchy@gentoo
1 commit: 9057585df5e2dd8a3e9ac28dea580e5a3fc55de4
2 Author: Jory Pratt <anarchy <AT> gentoo <DOT> org>
3 AuthorDate: Thu Apr 18 21:01:11 2019 +0000
4 Commit: Jory Pratt <anarchy <AT> gentoo <DOT> org>
5 CommitDate: Thu Apr 18 21:01:11 2019 +0000
6 URL: https://gitweb.gentoo.org/proj/musl.git/commit/?id=9057585d
7
8 sys-auth/elogind: use in tree 241.2 which is fully supported
9
10 Package-Manager: Portage-2.3.63, Repoman-2.3.12
11 Signed-off-by: Jory Pratt <anarchy <AT> gentoo.org>
12
13 sys-auth/elogind/Manifest | 1 -
14 sys-auth/elogind/elogind-239.4.ebuild | 131 ---------------------
15 sys-auth/elogind/files/elogind-238.1-docs.patch | 23 ----
16 sys-auth/elogind/files/elogind-239-fix-musl.patch | 33 ------
17 .../elogind/files/elogind-239.3-broken-test.patch | 23 ----
18 sys-auth/elogind/files/elogind.conf.in | 7 --
19 sys-auth/elogind/files/elogind.init | 25 ----
20 sys-auth/elogind/metadata.xml | 13 --
21 8 files changed, 256 deletions(-)
22
23 diff --git a/sys-auth/elogind/Manifest b/sys-auth/elogind/Manifest
24 deleted file mode 100644
25 index e7890c5..0000000
26 --- a/sys-auth/elogind/Manifest
27 +++ /dev/null
28 @@ -1 +0,0 @@
29 -DIST elogind-239.4.tar.gz 1183999 BLAKE2B 3a0aa216ee565ae8f3311b16af9752a99519254ac8737de2a44821e95d05b3e2d8b82af3d397367e8804d7bc45cb942859516f195848ba0317aa73891d77903b SHA512 84e9765d7c3039478b06a683870b37ec718724f1185b56c1b74885133283ad1678f3ca8a73510cb4b0777d099c54f59e927caaae7ae988abda803150b84cf8fc
30
31 diff --git a/sys-auth/elogind/elogind-239.4.ebuild b/sys-auth/elogind/elogind-239.4.ebuild
32 deleted file mode 100644
33 index 2412d11..0000000
34 --- a/sys-auth/elogind/elogind-239.4.ebuild
35 +++ /dev/null
36 @@ -1,131 +0,0 @@
37 -# Copyright 1999-2019 Gentoo Authors
38 -# Distributed under the terms of the GNU General Public License v2
39 -
40 -EAPI=6
41 -
42 -inherit linux-info meson pam udev xdg-utils
43 -
44 -DESCRIPTION="The systemd project's logind, extracted to a standalone package"
45 -HOMEPAGE="https://github.com/elogind/elogind"
46 -SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
47 -
48 -LICENSE="CC0-1.0 LGPL-2.1+ public-domain"
49 -SLOT="0"
50 -KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86"
51 -IUSE="+acl debug doc +pam +policykit selinux"
52 -
53 -COMMON_DEPEND="
54 - sys-apps/util-linux
55 - sys-libs/libcap
56 - virtual/libudev:=
57 - acl? ( sys-apps/acl )
58 - pam? ( virtual/pam )
59 - selinux? ( sys-libs/libselinux )
60 -"
61 -DEPEND="${COMMON_DEPEND}
62 - app-text/docbook-xml-dtd:4.2
63 - app-text/docbook-xml-dtd:4.5
64 - app-text/docbook-xsl-stylesheets
65 - dev-util/gperf
66 - dev-util/intltool
67 - sys-devel/libtool
68 - virtual/pkgconfig
69 -"
70 -RDEPEND="${COMMON_DEPEND}
71 - !sys-apps/systemd
72 -"
73 -PDEPEND="
74 - sys-apps/dbus
75 - policykit? ( sys-auth/polkit )
76 -"
77 -
78 -DOCS=( src/libelogind/sd-bus/GVARIANT-SERIALIZATION )
79 -
80 -PATCHES=(
81 - "${FILESDIR}/${PN}-238.1-docs.patch"
82 - "${FILESDIR}/${PN}-239.3-broken-test.patch" # bug 669862
83 - "${FILESDIR}/${PN}-239-fix-musl.patch"
84 -)
85 -
86 -pkg_setup() {
87 - local CONFIG_CHECK="~CGROUPS ~EPOLL ~INOTIFY_USER ~SIGNALFD ~TIMERFD"
88 -
89 - use kernel_linux && linux-info_pkg_setup
90 -}
91 -
92 -src_prepare() {
93 - default
94 - xdg_environment_reset
95 -}
96 -
97 -src_configure() {
98 - local rccgroupmode="$(grep rc_cgroup_mode /etc/rc.conf | cut -d '"' -f 2)"
99 - local cgroupmode="legacy"
100 -
101 - if [[ "xhybrid" = "x${rccgroupmode}" ]] ; then
102 - cgroupmode="hybrid"
103 - elif [[ "xunified" = "x${rccgroupmode}" ]] ; then
104 - cgroupmode="unified"
105 - fi
106 -
107 - local emesonargs=(
108 - -Ddocdir="${EPREFIX}/usr/share/doc/${PF}"
109 - -Dhtmldir="${EPREFIX}/usr/share/doc/${PF}/html"
110 - -Dpamlibdir=$(getpam_mod_dir)
111 - -Dudevrulesdir="$(get_udevdir)"/rules.d
112 - --libdir="${EPREFIX}"/usr/$(get_libdir)
113 - -Drootlibdir="${EPREFIX}"/$(get_libdir)
114 - -Drootlibexecdir="${EPREFIX}"/$(get_libdir)/elogind
115 - -Drootprefix="${EPREFIX}/"
116 - -Dbashcompletiondir="${EPREFIX}/usr/share/bash-completion/completions"
117 - -Dman=auto
118 - -Dsmack=true
119 - -Dcgroup-controller=openrc
120 - -Ddefault-hierarchy=${cgroupmode}
121 - -Ddefault-kill-user-processes=false
122 - -Dacl=$(usex acl true false)
123 - --buildtype $(usex debug debug release)
124 - -Dhtml=$(usex doc auto false)
125 - -Dpam=$(usex pam true false)
126 - -Dselinux=$(usex selinux true false)
127 - -Dutmp=$(usex elibc_musl false true)
128 - )
129 -
130 - meson_src_configure
131 -}
132 -
133 -src_install() {
134 - DOCS+=( src/libelogind/sd-bus/GVARIANT-SERIALIZATION )
135 -
136 - meson_src_install
137 -
138 - newinitd "${FILESDIR}"/${PN}.init ${PN}
139 -
140 - sed -e "s/@libdir@/$(get_libdir)/" "${FILESDIR}"/${PN}.conf.in > ${PN}.conf || die
141 - newconfd ${PN}.conf ${PN}
142 -}
143 -
144 -pkg_postinst() {
145 - if [[ "$(rc-config list boot | grep elogind)" != "" ]]; then
146 - elog "elogind is currently started from boot runlevel."
147 - elif [[ "$(rc-config list default | grep elogind)" != "" ]]; then
148 - ewarn "elogind is currently started from default runlevel."
149 - ewarn "Please remove elogind from the default runlevel and"
150 - ewarn "add it to the boot runlevel by:"
151 - ewarn "# rc-update del elogind default"
152 - ewarn "# rc-update add elogind boot"
153 - else
154 - elog "elogind is currently not started from any runlevel."
155 - elog "You may add it to the boot runlevel by:"
156 - elog "# rc-update add elogind boot"
157 - elog
158 - elog "Alternatively, you can leave elogind out of any"
159 - elog "runlevel. It will then be started automatically"
160 - if use pam; then
161 - elog "when the first service calls it via dbus, or"
162 - elog "the first user logs into the system."
163 - else
164 - elog "when the first service calls it via dbus."
165 - fi
166 - fi
167 -}
168
169 diff --git a/sys-auth/elogind/files/elogind-238.1-docs.patch b/sys-auth/elogind/files/elogind-238.1-docs.patch
170 deleted file mode 100644
171 index 2288ddf..0000000
172 --- a/sys-auth/elogind/files/elogind-238.1-docs.patch
173 +++ /dev/null
174 @@ -1,23 +0,0 @@
175 ---- a/meson.build 2018-06-25 16:41:00.000000000 +0200
176 -+++ b/meson.build 2018-06-30 21:45:52.139755680 +0200
177 -@@ -2928,11 +2928,6 @@
178 - # install_data('modprobe.d/systemd.conf',
179 - # install_dir : modprobedir)
180 - #endif // 0
181 --install_data('LICENSE.GPL2',
182 -- 'LICENSE.LGPL2.1',
183 -- 'NEWS',
184 -- 'README',
185 -- 'doc/CODING_STYLE',
186 - #if 0 /// irrelevant for elogind
187 - # 'doc/DISTRO_PORTING',
188 - # 'doc/ENVIRONMENT.md',
189 -@@ -2941,8 +2936,6 @@
190 - # 'doc/TRANSLATORS',
191 - # 'doc/UIDS-GIDS.md',
192 - #endif // 0
193 -- 'src/libelogind/sd-bus/GVARIANT-SERIALIZATION',
194 -- install_dir : docdir)
195 -
196 - #if 0 /// UNNEEDED by elogind
197 - # meson.add_install_script('sh', '-c', mkdir_p.format(systemdstatedir))
198
199 diff --git a/sys-auth/elogind/files/elogind-239-fix-musl.patch b/sys-auth/elogind/files/elogind-239-fix-musl.patch
200 deleted file mode 100644
201 index ae9442f..0000000
202 --- a/sys-auth/elogind/files/elogind-239-fix-musl.patch
203 +++ /dev/null
204 @@ -1,33 +0,0 @@
205 -From 347c5bb22f8f79f339e578e30a19fed15e7f3e09 Mon Sep 17 00:00:00 2001
206 -From: Jory Pratt <anarchy@g.o>
207 -Date: Thu, 4 Apr 2019 18:59:18 -0500
208 -Subject: [PATCH] fix musl libc compile
209 -
210 ----
211 - src/test/test-hexdecoct.c | 10 ++++++++++
212 - 1 file changed, 10 insertions(+)
213 -
214 -diff --git a/src/test/test-hexdecoct.c b/src/test/test-hexdecoct.c
215 -index 101a78b..dc4e09b 100644
216 ---- a/src/test/test-hexdecoct.c
217 -+++ b/src/test/test-hexdecoct.c
218 -@@ -10,6 +10,16 @@
219 - /// Additional includes needed by elogind
220 - #include "musl_missing.h"
221 -
222 -+#define strndupa(s, n) \
223 -+ ({ \
224 -+ const char *__in = (s); \
225 -+ size_t __len = strnlen(__in, (n)); \
226 -+ char *__out = (char *)alloca(__len + 1); \
227 -+ __out[__len] = '\0'; \
228 -+ (char *)memcpy(__out, __in, __len); \
229 -+ })
230 -+
231 -+
232 - static void test_hexchar(void) {
233 - assert_se(hexchar(0xa) == 'a');
234 - assert_se(hexchar(0x0) == '0');
235 ---
236 -2.21.0
237 -
238
239 diff --git a/sys-auth/elogind/files/elogind-239.3-broken-test.patch b/sys-auth/elogind/files/elogind-239.3-broken-test.patch
240 deleted file mode 100644
241 index 601d1cb..0000000
242 --- a/sys-auth/elogind/files/elogind-239.3-broken-test.patch
243 +++ /dev/null
244 @@ -1,23 +0,0 @@
245 ---- a/src/test/meson.build 2018-12-07 07:36:50.000000000 +0100
246 -+++ b/src/test/meson.build 2019-02-15 00:50:23.254064681 +0100
247 -@@ -947,13 +947,13 @@
248 - # [['src/libsystemd/sd-resolve/test-resolve.c'],
249 - # [],
250 - # [threads]],
251 --#endif // 0
252 --
253 -- [['src/libelogind/sd-login/test-login.c'],
254 -- [],
255 -- []],
256 --
257 --#if 0 /// UNNEEDED in elogind
258 -+#
259 -+#
260 -+# [['src/libelogind/sd-login/test-login.c'],
261 -+# [],
262 -+# []],
263 -+#
264 -+#
265 - # [['src/libsystemd/sd-device/test-udev-device-thread.c'],
266 - # [libbasic,
267 - # libshared_static,
268
269 diff --git a/sys-auth/elogind/files/elogind.conf.in b/sys-auth/elogind/files/elogind.conf.in
270 deleted file mode 100644
271 index 7b05b35..0000000
272 --- a/sys-auth/elogind/files/elogind.conf.in
273 +++ /dev/null
274 @@ -1,7 +0,0 @@
275 -# /etc/conf.d/elogind: config file for /etc/init.d/elogind
276 -
277 -# this is the elogind executable
278 -ELOGIND_EXEC="/@libdir@/elogind/elogind"
279 -
280 -# this is where elogind will store its pid file
281 -ELOGIND_PIDFILE="/run/elogind.pid"
282
283 diff --git a/sys-auth/elogind/files/elogind.init b/sys-auth/elogind/files/elogind.init
284 deleted file mode 100644
285 index 019c3af..0000000
286 --- a/sys-auth/elogind/files/elogind.init
287 +++ /dev/null
288 @@ -1,25 +0,0 @@
289 -#!/sbin/openrc-run
290 -# Copyright 1999-2017 Gentoo Foundation
291 -# Distributed under the terms of the GNU General Public License v2
292 -
293 -depend() {
294 - need dbus
295 -
296 - # Make sure elogind is up before xdm starts any dm
297 - before xdm
298 -}
299 -
300 -start() {
301 - ebegin "Starting elogind"
302 -
303 - start-stop-daemon --start --quiet \
304 - --pidfile "${ELOGIND_PIDFILE}" \
305 - --exec "${ELOGIND_EXEC}" -- --daemon
306 - eend $?
307 -}
308 -
309 -stop() {
310 - ebegin "Stopping elogind"
311 - start-stop-daemon --stop --quiet --pidfile "${ELOGIND_PIDFILE}"
312 - eend $?
313 -}
314
315 diff --git a/sys-auth/elogind/metadata.xml b/sys-auth/elogind/metadata.xml
316 deleted file mode 100644
317 index c28bf0a..0000000
318 --- a/sys-auth/elogind/metadata.xml
319 +++ /dev/null
320 @@ -1,13 +0,0 @@
321 -<?xml version='1.0' encoding='UTF-8'?>
322 -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
323 -<pkgmetadata>
324 - <maintainer type="person">
325 - <email>asturm@g.o</email>
326 - </maintainer>
327 - <maintainer type="person">
328 - <email>kensington@g.o</email>
329 - </maintainer>
330 - <upstream>
331 - <remote-id type="github">elogind/elogind</remote-id>
332 - </upstream>
333 -</pkgmetadata>