Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/dbus/
Date: Sat, 10 Sep 2022 03:06:30
Message-Id: 1662777137.9b99caf171baf7aa92e1b2632435c21046384501.sam@gentoo
1 commit: 9b99caf171baf7aa92e1b2632435c21046384501
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Sat Sep 10 02:32:17 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Sat Sep 10 02:32:17 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9b99caf1
7
8 sys-apps/dbus: drop 1.12.20-r5, 1.14.0-r2
9
10 Signed-off-by: Sam James <sam <AT> gentoo.org>
11
12 sys-apps/dbus/Manifest | 1 -
13 sys-apps/dbus/dbus-1.12.20-r5.ebuild | 284 ---------------------------------
14 sys-apps/dbus/dbus-1.14.0-r2.ebuild | 293 -----------------------------------
15 3 files changed, 578 deletions(-)
16
17 diff --git a/sys-apps/dbus/Manifest b/sys-apps/dbus/Manifest
18 index 19ec71675e81..729071e9798f 100644
19 --- a/sys-apps/dbus/Manifest
20 +++ b/sys-apps/dbus/Manifest
21 @@ -1,3 +1,2 @@
22 -DIST dbus-1.12.20.tar.gz 2095511 BLAKE2B b467526e7e0281db7b8c7c178469fe006dab29ccb1ea197c02495bd297e8de766230b68ed86c4a7e05dbe09ca30ce941a15e0bf8030fe0df66c04febf0534b3b SHA512 0964683bc6859374cc94e42e1ec0cdb542cca67971c205fcba4352500b6c0891665b0718e7d85eb060c81cb82e3346c313892bc02384da300ddd306c7eef0056
23 DIST dbus-1.12.22.tar.gz 2108231 BLAKE2B 40c30ad9e48d8ac6b5f1c67726015eb17cb3501372ef2c8ffcd8ad73e4a2f186b80a7bbba094460d4093d1d0a3f1bbb8d83a27724397a8f5312bb8542237e6b7 SHA512 0a716022f9d693fcaf871b6dfb5f242b49a8dd05d3316ec3e530f5129f1d81a2fa9caec795fa62cfdcba6ed21549fdd2f896f9bf1cc9a96e2a7d04f2c7ec7be6
24 DIST dbus-1.14.0.tar.xz 1360228 BLAKE2B ae0ebc2779e840e2d83f633029f81fba0e35969648dddce0280640dd9bee3f9508aa7fb6aef696d1c4c56d40f91b754941f847525afaee5cc3170ad23a7eddbf SHA512 9bf17a3ebb3cf44722c6fbf24ee56e9dc14d6882fc312f26c7f07459d969424bc2fb63a229139e011804ecc479a8f0eb1a0c83286f8d5a664c5979d12634179f
25
26 diff --git a/sys-apps/dbus/dbus-1.12.20-r5.ebuild b/sys-apps/dbus/dbus-1.12.20-r5.ebuild
27 deleted file mode 100644
28 index a60671c3d11e..000000000000
29 --- a/sys-apps/dbus/dbus-1.12.20-r5.ebuild
30 +++ /dev/null
31 @@ -1,284 +0,0 @@
32 -# Copyright 1999-2022 Gentoo Authors
33 -# Distributed under the terms of the GNU General Public License v2
34 -
35 -EAPI=7
36 -PYTHON_COMPAT=( python3_{8..10} )
37 -TMPFILES_OPTIONAL=1
38 -
39 -inherit autotools flag-o-matic linux-info python-any-r1 readme.gentoo-r1 systemd tmpfiles virtualx multilib-minimal
40 -
41 -DESCRIPTION="A message bus system, a simple way for applications to talk to each other"
42 -HOMEPAGE="https://dbus.freedesktop.org/"
43 -SRC_URI="https://dbus.freedesktop.org/releases/dbus/${P}.tar.gz"
44 -
45 -LICENSE="|| ( AFL-2.1 GPL-2 )"
46 -SLOT="0"
47 -KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
48 -IUSE="debug doc elogind selinux static-libs systemd test X"
49 -RESTRICT="!test? ( test )"
50 -
51 -REQUIRED_USE="?? ( elogind systemd )"
52 -
53 -BDEPEND="
54 - acct-user/messagebus
55 - app-text/xmlto
56 - app-text/docbook-xml-dtd:4.4
57 - sys-devel/autoconf-archive
58 - virtual/pkgconfig
59 - doc? ( app-doc/doxygen )
60 -"
61 -COMMON_DEPEND="
62 - >=dev-libs/expat-2.1.0
63 - elogind? ( sys-auth/elogind )
64 - selinux? ( sys-libs/libselinux )
65 - systemd? ( sys-apps/systemd:0= )
66 - X? (
67 - x11-libs/libX11
68 - x11-libs/libXt
69 - )
70 -"
71 -DEPEND="${COMMON_DEPEND}
72 - dev-libs/expat
73 - test? (
74 - ${PYTHON_DEPS}
75 - >=dev-libs/glib-2.40:2
76 - )
77 -"
78 -RDEPEND="${COMMON_DEPEND}
79 - acct-user/messagebus
80 - selinux? ( sec-policy/selinux-dbus )
81 - systemd? ( virtual/tmpfiles )
82 - X? ( sys-apps/which )
83 -"
84 -
85 -DOC_CONTENTS="
86 - Some applications require a session bus in addition to the system
87 - bus. Please see \`man dbus-launch\` for more information.
88 -"
89 -
90 -# out of sources build dir for make check
91 -TBD="${WORKDIR}/${P}-tests-build"
92 -
93 -PATCHES=(
94 - "${FILESDIR}/${PN}-enable-elogind.patch"
95 - "${FILESDIR}/${PN}-daemon-optional.patch" # bug #653136
96 -)
97 -
98 -pkg_setup() {
99 - use test && python-any-r1_pkg_setup
100 -
101 - if use kernel_linux; then
102 - CONFIG_CHECK="~EPOLL"
103 - linux-info_pkg_setup
104 - fi
105 -}
106 -
107 -src_prepare() {
108 - # Tests were restricted because of this
109 - sed -i \
110 - -e 's/.*bus_dispatch_test.*/printf ("Disabled due to excess noise\\n");/' \
111 - -e '/"dispatch"/d' \
112 - bus/test-main.c || die
113 -
114 - default
115 -
116 - if [[ ${CHOST} == *-solaris* ]]; then
117 - # fix standards conflict, due to gcc being c99 by default nowadays
118 - sed -i \
119 - -e 's/_XOPEN_SOURCE=500/_XOPEN_SOURCE=600/' \
120 - configure.ac || die
121 - fi
122 -
123 - # required for bug 263909, cross-compile so don't remove eautoreconf
124 - eautoreconf
125 -}
126 -
127 -src_configure() {
128 - local rundir=$(usex kernel_linux /run /var/run)
129 - sed -e "s;@rundir@;${EPREFIX}${rundir};g" "${FILESDIR}"/dbus.initd.in \
130 - > "${T}"/dbus.initd || die
131 - multilib-minimal_src_configure
132 -}
133 -
134 -multilib_src_configure() {
135 - local docconf myconf testconf
136 -
137 - # so we can get backtraces from apps
138 - case ${CHOST} in
139 - *-mingw*)
140 - # error: unrecognized command line option '-rdynamic' wrt #488036
141 - ;;
142 - *)
143 - append-flags -rdynamic
144 - ;;
145 - esac
146 -
147 - # libaudit is *only* used in DBus wrt SELinux support, so disable it, if
148 - # not on an SELinux profile.
149 - myconf=(
150 - --localstatedir="${EPREFIX}/var"
151 - $(use_enable static-libs static)
152 - $(use_enable debug verbose-mode)
153 - --disable-asserts
154 - --disable-checks
155 - $(use_enable selinux)
156 - $(use_enable selinux libaudit)
157 - --disable-apparmor
158 - $(use_enable kernel_linux inotify)
159 - --disable-kqueue
160 - $(use_enable elogind)
161 - $(use_enable systemd)
162 - $(use_enable systemd user-session)
163 - --disable-embedded-tests
164 - --disable-modular-tests
165 - $(use_enable debug stats)
166 - --with-session-socket-dir="${EPREFIX}"/tmp
167 - --with-system-pid-file="${EPREFIX}${rundir}"/dbus.pid
168 - --with-system-socket="${EPREFIX}${rundir}"/dbus/system_bus_socket
169 - --with-systemdsystemunitdir="$(systemd_get_systemunitdir)"
170 - --with-systemduserunitdir="$(systemd_get_userunitdir)"
171 - --with-dbus-user=messagebus
172 - $(use_with X x)
173 - )
174 -
175 - if [[ ${CHOST} == *-darwin* ]]; then
176 - myconf+=(
177 - --enable-launchd
178 - --with-launchd-agent-dir="${EPREFIX}"/Library/LaunchAgents
179 - )
180 - fi
181 -
182 - if multilib_is_native_abi; then
183 - docconf=(
184 - --enable-xml-docs
185 - $(use_enable doc doxygen-docs)
186 - )
187 - else
188 - docconf=(
189 - --disable-xml-docs
190 - --disable-doxygen-docs
191 - )
192 - myconf+=(
193 - --disable-daemon
194 - --disable-selinux
195 - --disable-libaudit
196 - --disable-elogind
197 - --disable-systemd
198 - --without-x
199 - )
200 - fi
201 -
202 - einfo "Running configure in ${BUILD_DIR}"
203 - ECONF_SOURCE="${S}" econf "${myconf[@]}" "${docconf[@]}"
204 -
205 - if multilib_is_native_abi && use test; then
206 - mkdir "${TBD}" || die
207 - cd "${TBD}" || die
208 - testconf=(
209 - $(use_enable test asserts)
210 - $(use_enable test checks)
211 - $(use_enable test embedded-tests)
212 - $(use_enable test stats)
213 - $(has_version dev-libs/dbus-glib && echo --enable-modular-tests)
214 - )
215 - einfo "Running configure in ${TBD}"
216 - ECONF_SOURCE="${S}" econf "${myconf[@]}" "${testconf[@]}"
217 - fi
218 -}
219 -
220 -multilib_src_compile() {
221 - if multilib_is_native_abi; then
222 - # after the compile, it uses a selinuxfs interface to
223 - # check if the SELinux policy has the right support
224 - use selinux && addwrite /selinux/access
225 -
226 - einfo "Running make in ${BUILD_DIR}"
227 - emake
228 -
229 - if use test; then
230 - einfo "Running make in ${TBD}"
231 - emake -C "${TBD}"
232 - fi
233 - else
234 - emake -C dbus libdbus-1.la
235 - fi
236 -}
237 -
238 -src_test() {
239 - DBUS_VERBOSE=1 virtx emake -j1 -C "${TBD}" check
240 -}
241 -
242 -multilib_src_install() {
243 - if multilib_is_native_abi; then
244 - emake DESTDIR="${D}" install
245 - else
246 - emake DESTDIR="${D}" install-pkgconfigDATA
247 - emake DESTDIR="${D}" -C dbus \
248 - install-libLTLIBRARIES install-dbusincludeHEADERS \
249 - install-nodist_dbusarchincludeHEADERS
250 - fi
251 -}
252 -
253 -multilib_src_install_all() {
254 - newinitd "${T}"/dbus.initd dbus
255 -
256 - if use X; then
257 - # dbus X session script (#77504)
258 - # turns out to only work for GDM (and startx). has been merged into
259 - # other desktop (kdm and such scripts)
260 - exeinto /etc/X11/xinit/xinitrc.d
261 - doexe "${FILESDIR}"/80-dbus
262 - fi
263 -
264 - # needs to exist for dbus sessions to launch
265 - keepdir /usr/share/dbus-1/services
266 - keepdir /etc/dbus-1/{session,system}.d
267 - # machine-id symlink from pkg_postinst()
268 - keepdir /var/lib/dbus
269 - # let the init script create the /var/run/dbus directory
270 - rm -rf "${ED}"/var/run
271 -
272 - # https://bugs.gentoo.org/761763
273 - rm -rf "${ED}"/usr/lib/sysusers.d
274 -
275 - dodoc AUTHORS ChangeLog NEWS README doc/TODO
276 - readme.gentoo_create_doc
277 -
278 - find "${ED}" -name '*.la' -delete || die
279 -}
280 -
281 -pkg_postinst() {
282 - readme.gentoo_print_elog
283 -
284 - if use systemd; then
285 - tmpfiles_process dbus.conf
286 - fi
287 -
288 - # Ensure unique id is generated and put it in /etc wrt #370451 but symlink
289 - # for DBUS_MACHINE_UUID_FILE (see tools/dbus-launch.c) and reverse
290 - # dependencies with hardcoded paths (although the known ones got fixed already)
291 - # TODO: should be safe to remove at least the ln because of the above tmpfiles_process?
292 - dbus-uuidgen --ensure="${EROOT}"/etc/machine-id
293 - ln -sf "${EPREFIX}"/etc/machine-id "${EROOT}"/var/lib/dbus/machine-id
294 -
295 - if [[ ${CHOST} == *-darwin* ]]; then
296 - local plist="org.freedesktop.dbus-session.plist"
297 - elog
298 - elog
299 - elog "For MacOS/Darwin we now ship launchd support for dbus."
300 - elog "This enables autolaunch of dbus at session login and makes"
301 - elog "dbus usable under MacOS/Darwin."
302 - elog
303 - elog "The launchd plist file ${plist} has been"
304 - elog "installed in ${EPREFIX}/Library/LaunchAgents."
305 - elog "For it to be used, you will have to do all of the following:"
306 - elog " + cd ~/Library/LaunchAgents"
307 - elog " + ln -s ${EPREFIX}/Library/LaunchAgents/${plist}"
308 - elog " + logout and log back in"
309 - elog
310 - elog "If your application needs a proper DBUS_SESSION_BUS_ADDRESS"
311 - elog "specified and refused to start otherwise, then export the"
312 - elog "the following to your environment:"
313 - elog " DBUS_SESSION_BUS_ADDRESS=\"launchd:env=DBUS_LAUNCHD_SESSION_BUS_SOCKET\""
314 - fi
315 -}
316
317 diff --git a/sys-apps/dbus/dbus-1.14.0-r2.ebuild b/sys-apps/dbus/dbus-1.14.0-r2.ebuild
318 deleted file mode 100644
319 index eb763dd3481c..000000000000
320 --- a/sys-apps/dbus/dbus-1.14.0-r2.ebuild
321 +++ /dev/null
322 @@ -1,293 +0,0 @@
323 -# Copyright 1999-2022 Gentoo Authors
324 -# Distributed under the terms of the GNU General Public License v2
325 -
326 -EAPI=7
327 -
328 -PYTHON_COMPAT=( python3_{8..10} )
329 -TMPFILES_OPTIONAL=1
330 -
331 -# At least at the moment, while a CMake port exists, it's not recommended
332 -# for distributions.
333 -# https://gitlab.freedesktop.org/dbus/dbus/-/blob/master/CONTRIBUTING.md#L189
334 -inherit autotools flag-o-matic linux-info python-any-r1 readme.gentoo-r1 systemd tmpfiles virtualx multilib-minimal
335 -
336 -DESCRIPTION="A message bus system, a simple way for applications to talk to each other"
337 -HOMEPAGE="https://www.freedesktop.org/wiki/Software/dbus/"
338 -SRC_URI="https://dbus.freedesktop.org/releases/dbus/${P}.tar.xz"
339 -
340 -LICENSE="|| ( AFL-2.1 GPL-2 )"
341 -SLOT="0"
342 -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
343 -IUSE="debug doc elogind selinux static-libs systemd test X"
344 -RESTRICT="!test? ( test )"
345 -
346 -REQUIRED_USE="?? ( elogind systemd )"
347 -
348 -BDEPEND="
349 - acct-user/messagebus
350 - app-text/xmlto
351 - app-text/docbook-xml-dtd:4.4
352 - sys-devel/autoconf-archive
353 - virtual/pkgconfig
354 - doc? ( app-doc/doxygen )
355 -"
356 -COMMON_DEPEND="
357 - >=dev-libs/expat-2.1.0
358 - elogind? ( sys-auth/elogind )
359 - selinux? ( sys-libs/libselinux )
360 - systemd? ( sys-apps/systemd:0= )
361 - X? (
362 - x11-libs/libX11
363 - x11-libs/libXt
364 - )
365 -"
366 -DEPEND="${COMMON_DEPEND}
367 - dev-libs/expat
368 - test? (
369 - ${PYTHON_DEPS}
370 - >=dev-libs/glib-2.40:2
371 - )
372 -"
373 -RDEPEND="${COMMON_DEPEND}
374 - acct-user/messagebus
375 - selinux? ( sec-policy/selinux-dbus )
376 - systemd? ( virtual/tmpfiles )
377 - X? ( sys-apps/which )
378 -"
379 -
380 -DOC_CONTENTS="
381 - Some applications require a session bus in addition to the system
382 - bus. Please see \`man dbus-launch\` for more information.
383 -"
384 -
385 -# out of sources build dir for make check
386 -TBD="${WORKDIR}/${P}-tests-build"
387 -
388 -PATCHES=(
389 - "${FILESDIR}/dbus-enable-elogind.patch"
390 - "${FILESDIR}/dbus-daemon-optional.patch" # bug #653136
391 -
392 - "${FILESDIR}/dbus-1.14.0-x-autoconf-fixes.patch"
393 - "${FILESDIR}/dbus-1.12.22-check-fd.patch"
394 -
395 - # https://bugs.gentoo.org/836560
396 - "${FILESDIR}/dbus-1.14.0-oom_score_adj.patch"
397 -)
398 -
399 -pkg_setup() {
400 - use test && python-any-r1_pkg_setup
401 -
402 - if use kernel_linux; then
403 - CONFIG_CHECK="~EPOLL"
404 - linux-info_pkg_setup
405 - fi
406 -}
407 -
408 -src_prepare() {
409 - default
410 -
411 - if [[ ${CHOST} == *-solaris* ]]; then
412 - # fix standards conflict, due to gcc being c99 by default nowadays
413 - sed -i \
414 - -e 's/_XOPEN_SOURCE=500/_XOPEN_SOURCE=600/' \
415 - configure.ac || die
416 - fi
417 -
418 - # required for bug #263909, cross-compile so don't remove eautoreconf
419 - eautoreconf
420 -}
421 -
422 -src_configure() {
423 - local rundir=$(usex kernel_linux /run /var/run)
424 -
425 - sed -e "s;@rundir@;${EPREFIX}${rundir};g" "${FILESDIR}"/dbus.initd.in \
426 - > "${T}"/dbus.initd || die
427 -
428 - multilib-minimal_src_configure
429 -}
430 -
431 -multilib_src_configure() {
432 - local docconf myconf testconf
433 -
434 - # so we can get backtraces from apps
435 - case ${CHOST} in
436 - *-mingw*)
437 - # error: unrecognized command line option '-rdynamic', bug #488036
438 - ;;
439 - *)
440 - append-flags -rdynamic
441 - ;;
442 - esac
443 -
444 - # libaudit is *only* used in DBus wrt SELinux support, so disable it, if
445 - # not on an SELinux profile.
446 - myconf=(
447 - --localstatedir="${EPREFIX}/var"
448 - $(use_enable static-libs static)
449 - $(use_enable debug verbose-mode)
450 - --disable-asserts
451 - --disable-checks
452 - $(use_enable selinux)
453 - $(use_enable selinux libaudit)
454 - --disable-apparmor
455 - $(use_enable kernel_linux inotify)
456 - --disable-kqueue
457 - $(use_enable elogind)
458 - $(use_enable systemd)
459 - $(use_enable systemd user-session)
460 - --disable-embedded-tests
461 - --disable-modular-tests
462 - $(use_enable debug stats)
463 - --with-session-socket-dir="${EPREFIX}"/tmp
464 - --with-system-pid-file="${EPREFIX}${rundir}"/dbus.pid
465 - --with-system-socket="${EPREFIX}${rundir}"/dbus/system_bus_socket
466 - --with-systemdsystemunitdir="$(systemd_get_systemunitdir)"
467 - --with-systemduserunitdir="$(systemd_get_userunitdir)"
468 - --with-dbus-user=messagebus
469 - $(use_with X x)
470 - )
471 -
472 - if [[ ${CHOST} == *-darwin* ]]; then
473 - myconf+=(
474 - --enable-launchd
475 - --with-launchd-agent-dir="${EPREFIX}"/Library/LaunchAgents
476 - )
477 - fi
478 -
479 - if multilib_is_native_abi; then
480 - docconf=(
481 - --enable-xml-docs
482 - $(use_enable doc doxygen-docs)
483 - )
484 - else
485 - docconf=(
486 - --disable-xml-docs
487 - --disable-doxygen-docs
488 - )
489 - myconf+=(
490 - --disable-daemon
491 - --disable-selinux
492 - --disable-libaudit
493 - --disable-elogind
494 - --disable-systemd
495 - --without-x
496 - )
497 - fi
498 -
499 - einfo "Running configure in ${BUILD_DIR}"
500 - ECONF_SOURCE="${S}" econf "${myconf[@]}" "${docconf[@]}"
501 -
502 - if multilib_is_native_abi && use test; then
503 - mkdir "${TBD}" || die
504 - cd "${TBD}" || die
505 - testconf=(
506 - $(use_enable test asserts)
507 - $(use_enable test checks)
508 - $(use_enable test embedded-tests)
509 - $(use_enable test stats)
510 - $(has_version dev-libs/dbus-glib && echo --enable-modular-tests)
511 - )
512 - einfo "Running configure in ${TBD}"
513 - ECONF_SOURCE="${S}" econf "${myconf[@]}" "${testconf[@]}"
514 - fi
515 -}
516 -
517 -multilib_src_compile() {
518 - if multilib_is_native_abi; then
519 - # After the compile, it uses a selinuxfs interface to
520 - # check if the SELinux policy has the right support
521 - use selinux && addwrite /selinux/access
522 -
523 - einfo "Running make in ${BUILD_DIR}"
524 - emake
525 -
526 - if use test; then
527 - einfo "Running make in ${TBD}"
528 - emake -C "${TBD}"
529 - fi
530 - else
531 - emake -C dbus libdbus-1.la
532 - fi
533 -}
534 -
535 -src_test() {
536 - # DBUS_TEST_MALLOC_FAILURES=0 to avoid huge test logs
537 - # https://gitlab.freedesktop.org/dbus/dbus/-/blob/master/CONTRIBUTING.md#L231
538 - DBUS_TEST_MALLOC_FAILURES=0 DBUS_VERBOSE=1 virtx emake -j1 -C "${TBD}" check
539 -
540 -}
541 -
542 -multilib_src_install() {
543 - if multilib_is_native_abi; then
544 - emake DESTDIR="${D}" install
545 - else
546 - emake DESTDIR="${D}" install-pkgconfigDATA
547 - emake DESTDIR="${D}" -C dbus \
548 - install-libLTLIBRARIES install-dbusincludeHEADERS \
549 - install-nodist_dbusarchincludeHEADERS
550 - fi
551 -}
552 -
553 -multilib_src_install_all() {
554 - newinitd "${T}"/dbus.initd dbus
555 -
556 - if use X; then
557 - # dbus X session script (bug #77504)
558 - # turns out to only work for GDM (and startx). has been merged into
559 - # other desktop (kdm and such scripts)
560 - exeinto /etc/X11/xinit/xinitrc.d
561 - doexe "${FILESDIR}"/80-dbus
562 - fi
563 -
564 - # Needs to exist for dbus sessions to launch
565 - keepdir /usr/share/dbus-1/services
566 - keepdir /etc/dbus-1/{session,system}.d
567 - # machine-id symlink from pkg_postinst()
568 - keepdir /var/lib/dbus
569 - # Let the init script create the /var/run/dbus directory
570 - rm -rf "${ED}"/var/run
571 -
572 - # bug #761763
573 - rm -rf "${ED}"/usr/lib/sysusers.d
574 -
575 - dodoc AUTHORS NEWS README doc/TODO
576 - readme.gentoo_create_doc
577 -
578 - find "${ED}" -name '*.la' -delete || die
579 -}
580 -
581 -pkg_postinst() {
582 - readme.gentoo_print_elog
583 -
584 - if use systemd; then
585 - tmpfiles_process dbus.conf
586 - fi
587 -
588 - # Ensure unique id is generated and put it in /etc wrt bug #370451 but symlink
589 - # for DBUS_MACHINE_UUID_FILE (see tools/dbus-launch.c) and reverse
590 - # dependencies with hardcoded paths (although the known ones got fixed already)
591 - # TODO: should be safe to remove at least the ln because of the above tmpfiles_process?
592 - dbus-uuidgen --ensure="${EROOT}"/etc/machine-id
593 - ln -sf "${EPREFIX}"/etc/machine-id "${EROOT}"/var/lib/dbus/machine-id
594 -
595 - if [[ ${CHOST} == *-darwin* ]]; then
596 - local plist="org.freedesktop.dbus-session.plist"
597 - elog
598 - elog
599 - elog "For MacOS/Darwin we now ship launchd support for dbus."
600 - elog "This enables autolaunch of dbus at session login and makes"
601 - elog "dbus usable under MacOS/Darwin."
602 - elog
603 - elog "The launchd plist file ${plist} has been"
604 - elog "installed in ${EPREFIX}/Library/LaunchAgents."
605 - elog "For it to be used, you will have to do all of the following:"
606 - elog " + cd ~/Library/LaunchAgents"
607 - elog " + ln -s ${EPREFIX}/Library/LaunchAgents/${plist}"
608 - elog " + logout and log back in"
609 - elog
610 - elog "If your application needs a proper DBUS_SESSION_BUS_ADDRESS"
611 - elog "specified and refused to start otherwise, then export the"
612 - elog "the following to your environment:"
613 - elog " DBUS_SESSION_BUS_ADDRESS=\"launchd:env=DBUS_LAUNCHD_SESSION_BUS_SOCKET\""
614 - fi
615 -}