Gentoo Archives: gentoo-commits

From: Lars Wendler <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/dbus/
Date: Tue, 29 Nov 2016 09:04:03
Message-Id: 1480410175.12638e2a936e6b85d403938a1f2dc2d5f729e6ce.polynomial-c@gentoo
1 commit: 12638e2a936e6b85d403938a1f2dc2d5f729e6ce
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Tue Nov 29 09:02:55 2016 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Tue Nov 29 09:02:55 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=12638e2a
7
8 sys-apps/dbus: Bump to version 1.10.14
9
10 Package-Manager: portage-2.3.2
11
12 sys-apps/dbus/Manifest | 1 +
13 sys-apps/dbus/dbus-1.10.14.ebuild | 268 ++++++++++++++++++++++++++++++++++++++
14 2 files changed, 269 insertions(+)
15
16 diff --git a/sys-apps/dbus/Manifest b/sys-apps/dbus/Manifest
17 index 91be394..e4f706e 100644
18 --- a/sys-apps/dbus/Manifest
19 +++ b/sys-apps/dbus/Manifest
20 @@ -1,5 +1,6 @@
21 DIST dbus-1.10.10.tar.gz 1984077 SHA256 9d8f1d069ab4d1a0255d7b400ea3bcef4430c42e729b1012abb2890e3f739a43 SHA512 8875c43d1f100461c3482a247f1a9d3ffd4377ae81e97676e0111d57f0393d53beeebb965c8a06054bf3af1ae4c72e1e456fdbc42c7ababc4e153e5ce7c23489 WHIRLPOOL 990b46bc75574108bd456579b77434d70767c15464df0f396bcd063ad1f3edeef74a4e6d6f388a3cbe006fb0d10067e5efa322afd28f2ffe7d50bf1d6b13f535
22 DIST dbus-1.10.12.tar.gz 1984805 SHA256 210a79430b276eafc6406c71705e9140d25b9956d18068df98a70156dc0e475d SHA512 6616c7b2926a6fb6158d0a0a24d1b887173ca215a2f3185b95cc5f08df64fed1977e16c86c6ae530960453b6c585ae24ea4c9976e7537a45f9c6366c43baa52d WHIRLPOOL 9bd9ed70c4d9890dad09b2bcd07ee40ef472f1436cefe3bc89aaddbb183532939d6ce19da721a673a39f2e6b07e634b179190cec00e1a48fa2d9be6c830cc696
23 +DIST dbus-1.10.14.tar.gz 1985828 SHA256 23238f70353e38ce5ca183ebc9525c0d97ac00ef640ad29cf794782af6e6a083 SHA512 87eda0117ee5fd47952f37a227cc017acdaa174a28e59ecd0c9f2501ffd5d56d015865d472dd9a922d8a52184662bfebff86279eb7431d19583958dd9e4dae26 WHIRLPOOL 83ded40df7b005b9247c9f1c82befc3c989becea0702998df5d43a9fb73489b0d222142a0d32fd11523e839ba8729dc824ff547d13d4c68fe390c788d2c5c750
24 DIST dbus-1.10.8.tar.gz 1976732 SHA256 baf3d22baa26d3bdd9edc587736cd5562196ce67996d65b82103bedbe1f0c014 SHA512 becc6c27b81a716ca498f3cdce2dae9fe5b39d7d334f66a9eae7ae8ce6448ea8c5fdfc500138371992828693a2f8f3a503efb147e163103aa64eac9b4bcf9906 WHIRLPOOL 3b2276bbc606a3997dd95d831271b8b102f45e8fc5696d88886f1e7b72fd134413cd3d3dd1a2608dcdfdf8d4caefc94e634c90b278fccd7d74cc4cce44696d92
25 DIST dbus-1.8.16.tar.gz 1866436 SHA256 7f795268efd343ff0498786acb35097564390d40b1b6158daf1b4f742b522b07 SHA512 79e0fb21912fe5644e1babf96fc2a64595edef6524ef50d54f6beb8cd0f1224b8484a52a7815494b40bd00bf048176002ab35443c0bb6bd04abdc3c60599f1d5 WHIRLPOOL 5e992caf51c0fb24885099b957ce01205a249118c5db27c5161e6d45ae85a889d7f26d32dfa03a207025e87e233f74c6cffd09a5ccc44d4e598d3d535b8d4247
26 DIST dbus-1.8.22.tar.gz 1894768 SHA256 19a52e5a42b2a2faf15a54745a098bb8cf55a76598fa4a0b8b6d886adcbe1d53 SHA512 e165ca07d0c1bc7a9e7e5e5541bb61fc24dccf52e762ce52e4c05c9a5a503bdcec6202171ca92789cde57121be360f40ac28b0ba5f9a7c23dbc4da4aec3627ff WHIRLPOOL b739a98b7be190f1ff5b40b8fe4e828e57519c8289a0806932d59037022be461806d28ec988d2766c82054fa066696c558e7d9371c12c2c9c66d6679f5e7a64f
27
28 diff --git a/sys-apps/dbus/dbus-1.10.14.ebuild b/sys-apps/dbus/dbus-1.10.14.ebuild
29 new file mode 100644
30 index 00000000..3d6b039
31 --- /dev/null
32 +++ b/sys-apps/dbus/dbus-1.10.14.ebuild
33 @@ -0,0 +1,268 @@
34 +# Copyright 1999-2016 Gentoo Foundation
35 +# Distributed under the terms of the GNU General Public License v2
36 +# $Id$
37 +
38 +EAPI=6
39 +PYTHON_COMPAT=( python2_7 )
40 +
41 +inherit autotools eutils linux-info flag-o-matic python-any-r1 readme.gentoo-r1 systemd virtualx user multilib-minimal
42 +
43 +DESCRIPTION="A message bus system, a simple way for applications to talk to each other"
44 +HOMEPAGE="https://dbus.freedesktop.org/"
45 +SRC_URI="https://dbus.freedesktop.org/releases/dbus/${P}.tar.gz"
46 +
47 +LICENSE="|| ( AFL-2.1 GPL-2 )"
48 +SLOT="0"
49 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris"
50 +IUSE="debug doc selinux static-libs systemd test user-session X"
51 +
52 +RESTRICT="test"
53 +
54 +CDEPEND="
55 + >=dev-libs/expat-2
56 + selinux? (
57 + sys-libs/libselinux
58 + )
59 + systemd? ( sys-apps/systemd:0= )
60 + X? (
61 + x11-libs/libX11
62 + x11-libs/libXt
63 + )
64 + abi_x86_32? (
65 + !<=app-emulation/emul-linux-x86-baselibs-20131008-r4
66 + !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
67 + )
68 +"
69 +DEPEND="${CDEPEND}
70 + app-text/xmlto
71 + app-text/docbook-xml-dtd:4.4
72 + virtual/pkgconfig
73 + doc? ( app-doc/doxygen )
74 + test? (
75 + >=dev-libs/glib-2.36:2
76 + ${PYTHON_DEPS}
77 + )
78 +"
79 +RDEPEND="${CDEPEND}
80 + selinux? ( sec-policy/selinux-dbus )
81 +"
82 +
83 +DOC_CONTENTS="
84 + Some applications require a session bus in addition to the system
85 + bus. Please see \`man dbus-launch\` for more information.
86 +"
87 +
88 +# out of sources build dir for make check
89 +TBD=${WORKDIR}/${P}-tests-build
90 +
91 +pkg_setup() {
92 + enewgroup messagebus
93 + enewuser messagebus -1 -1 -1 messagebus
94 +
95 + use test && python-any-r1_pkg_setup
96 +
97 + if use kernel_linux; then
98 + CONFIG_CHECK="~EPOLL"
99 + linux-info_pkg_setup
100 + fi
101 +}
102 +
103 +src_prepare() {
104 + # Tests were restricted because of this
105 + sed -i \
106 + -e 's/.*bus_dispatch_test.*/printf ("Disabled due to excess noise\\n");/' \
107 + -e '/"dispatch"/d' \
108 + bus/test-main.c || die
109 +
110 + eapply_user
111 +
112 + # required for asneeded patch but also for bug 263909, cross-compile so
113 + # don't remove eautoreconf
114 + eautoreconf
115 +}
116 +
117 +multilib_src_configure() {
118 + local docconf myconf
119 +
120 + # so we can get backtraces from apps
121 + case ${CHOST} in
122 + *-mingw*)
123 + # error: unrecognized command line option '-rdynamic' wrt #488036
124 + ;;
125 + *)
126 + append-flags -rdynamic
127 + ;;
128 + esac
129 +
130 + # libaudit is *only* used in DBus wrt SELinux support, so disable it, if
131 + # not on an SELinux profile.
132 + myconf=(
133 + --localstatedir="${EPREFIX}/var"
134 + --docdir="${EPREFIX}/usr/share/doc/${PF}"
135 + --htmldir="${EPREFIX}/usr/share/doc/${PF}/html"
136 + $(use_enable static-libs static)
137 + $(use_enable debug verbose-mode)
138 + --disable-asserts
139 + --disable-checks
140 + $(use_enable selinux)
141 + $(use_enable selinux libaudit)
142 + --disable-apparmor
143 + $(use_enable kernel_linux inotify)
144 + $(use_enable kernel_FreeBSD kqueue)
145 + $(use_enable systemd)
146 + $(use_enable user-session)
147 + --disable-embedded-tests
148 + --disable-modular-tests
149 + $(use_enable debug stats)
150 + --with-session-socket-dir="${EPREFIX}"/tmp
151 + --with-system-pid-file="${EPREFIX}"/var/run/dbus.pid
152 + --with-system-socket="${EPREFIX}"/var/run/dbus/system_bus_socket
153 + --with-systemdsystemunitdir="$(systemd_get_systemunitdir)"
154 + --with-dbus-user=messagebus
155 + $(use_with X x)
156 + )
157 +
158 + if [[ ${CHOST} == *-darwin* ]]; then
159 + myconf+=(
160 + --enable-launchd
161 + --with-launchd-agent-dir="${EPREFIX}"/Library/LaunchAgents
162 + )
163 + fi
164 +
165 + if multilib_is_native_abi; then
166 + docconf=(
167 + --enable-xml-docs
168 + $(use_enable doc doxygen-docs)
169 + )
170 + else
171 + docconf=(
172 + --disable-xml-docs
173 + --disable-doxygen-docs
174 + )
175 + myconf+=(
176 + --disable-selinux
177 + --disable-libaudit
178 + --disable-systemd
179 + --without-x
180 +
181 + # expat is used for the daemon only
182 + # fake the check for multilib library build
183 + ac_cv_lib_expat_XML_ParserCreate_MM=yes
184 + )
185 + fi
186 +
187 + einfo "Running configure in ${BUILD_DIR}"
188 + ECONF_SOURCE="${S}" econf "${myconf[@]}" "${docconf[@]}"
189 +
190 + if multilib_is_native_abi && use test; then
191 + mkdir "${TBD}" || die
192 + cd "${TBD}" || die
193 + einfo "Running configure in ${TBD}"
194 + ECONF_SOURCE="${S}" econf "${myconf[@]}" \
195 + $(use_enable test asserts) \
196 + $(use_enable test checks) \
197 + $(use_enable test embedded-tests) \
198 + $(has_version dev-libs/dbus-glib && echo --enable-modular-tests)
199 + fi
200 +}
201 +
202 +multilib_src_compile() {
203 + if multilib_is_native_abi; then
204 + # after the compile, it uses a selinuxfs interface to
205 + # check if the SELinux policy has the right support
206 + use selinux && addwrite /selinux/access
207 +
208 + einfo "Running make in ${BUILD_DIR}"
209 + emake
210 +
211 + if use test; then
212 + einfo "Running make in ${TBD}"
213 + emake -C "${TBD}"
214 + fi
215 + else
216 + emake -C dbus libdbus-1.la
217 + fi
218 +}
219 +
220 +src_test() {
221 + DBUS_VERBOSE=1 Xemake -j1 -C "${TBD}" check
222 +}
223 +
224 +multilib_src_install() {
225 + if multilib_is_native_abi; then
226 + emake DESTDIR="${D}" install
227 + else
228 + emake DESTDIR="${D}" install-pkgconfigDATA
229 + emake DESTDIR="${D}" -C dbus \
230 + install-libLTLIBRARIES install-dbusincludeHEADERS \
231 + install-nodist_dbusarchincludeHEADERS
232 + fi
233 +}
234 +
235 +multilib_src_install_all() {
236 + newinitd "${FILESDIR}"/dbus.initd-r1 dbus
237 +
238 + if use X; then
239 + # dbus X session script (#77504)
240 + # turns out to only work for GDM (and startx). has been merged into
241 + # other desktop (kdm and such scripts)
242 + exeinto /etc/X11/xinit/xinitrc.d
243 + doexe "${FILESDIR}"/80-dbus
244 + fi
245 +
246 + # needs to exist for dbus sessions to launch
247 + keepdir /usr/share/dbus-1/services
248 + keepdir /etc/dbus-1/{session,system}.d
249 + # machine-id symlink from pkg_postinst()
250 + keepdir /var/lib/dbus
251 + # let the init script create the /var/run/dbus directory
252 + rm -rf "${ED}"/var/run
253 +
254 + dodoc AUTHORS ChangeLog HACKING NEWS README doc/TODO
255 + readme.gentoo_create_doc
256 +
257 + prune_libtool_files --all
258 +}
259 +
260 +pkg_postinst() {
261 + readme.gentoo_print_elog
262 +
263 + # Ensure unique id is generated and put it in /etc wrt #370451 but symlink
264 + # for DBUS_MACHINE_UUID_FILE (see tools/dbus-launch.c) and reverse
265 + # dependencies with hardcoded paths (although the known ones got fixed already)
266 + dbus-uuidgen --ensure="${EROOT%/}"/etc/machine-id
267 + ln -sf "${EPREFIX}"/etc/machine-id "${EROOT%/}"/var/lib/dbus/machine-id
268 +
269 + if [[ ${CHOST} == *-darwin* ]]; then
270 + local plist="org.freedesktop.dbus-session.plist"
271 + elog
272 + elog
273 + elog "For MacOS/Darwin we now ship launchd support for dbus."
274 + elog "This enables autolaunch of dbus at session login and makes"
275 + elog "dbus usable under MacOS/Darwin."
276 + elog
277 + elog "The launchd plist file ${plist} has been"
278 + elog "installed in ${EPREFIX}/Library/LaunchAgents."
279 + elog "For it to be used, you will have to do all of the following:"
280 + elog " + cd ~/Library/LaunchAgents"
281 + elog " + ln -s ${EPREFIX}/Library/LaunchAgents/${plist}"
282 + elog " + logout and log back in"
283 + elog
284 + elog "If your application needs a proper DBUS_SESSION_BUS_ADDRESS"
285 + elog "specified and refused to start otherwise, then export the"
286 + elog "the following to your environment:"
287 + elog " DBUS_SESSION_BUS_ADDRESS=\"launchd:env=DBUS_LAUNCHD_SESSION_BUS_SOCKET\""
288 + fi
289 +
290 + if use user-session; then
291 + ewarn "You have enabled user-session. Please note this can cause"
292 + ewarn "bogus behaviors in several dbus consumers that are not prepared"
293 + ewarn "for this dbus activation method yet."
294 + ewarn
295 + ewarn "See the following link for background on this change:"
296 + ewarn "https://lists.freedesktop.org/archives/systemd-devel/2015-January/027711.html"
297 + ewarn
298 + ewarn "Known issues are tracked here:"
299 + ewarn "https://bugs.gentoo.org/show_bug.cgi?id=576028"
300 + fi
301 +}