Gentoo Archives: gentoo-commits

From: "Samuli Suominen (ssuominen)" <ssuominen@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-apps/dbus: ChangeLog dbus-1.6.0.ebuild
Date: Wed, 06 Jun 2012 10:45:14
Message-Id: 20120606104504.9332E2004B@flycatcher.gentoo.org
1 ssuominen 12/06/06 10:45:04
2
3 Modified: ChangeLog
4 Added: dbus-1.6.0.ebuild
5 Log:
6 Version bump.
7
8 (Portage version: 2.2.0_alpha109/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.341 sys-apps/dbus/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/dbus/ChangeLog?rev=1.341&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/dbus/ChangeLog?rev=1.341&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/dbus/ChangeLog?r1=1.340&r2=1.341
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sys-apps/dbus/ChangeLog,v
20 retrieving revision 1.340
21 retrieving revision 1.341
22 diff -u -r1.340 -r1.341
23 --- ChangeLog 29 May 2012 15:21:15 -0000 1.340
24 +++ ChangeLog 6 Jun 2012 10:45:04 -0000 1.341
25 @@ -1,6 +1,11 @@
26 # ChangeLog for sys-apps/dbus
27 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/dbus/ChangeLog,v 1.340 2012/05/29 15:21:15 ssuominen Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/dbus/ChangeLog,v 1.341 2012/06/06 10:45:04 ssuominen Exp $
30 +
31 +*dbus-1.6.0 (06 Jun 2012)
32 +
33 + 06 Jun 2012; Samuli Suominen <ssuominen@g.o> +dbus-1.6.0.ebuild:
34 + Version bump.
35
36 *dbus-1.5.12-r1 (29 May 2012)
37
38
39
40
41 1.1 sys-apps/dbus/dbus-1.6.0.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/dbus/dbus-1.6.0.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/dbus/dbus-1.6.0.ebuild?rev=1.1&content-type=text/plain
45
46 Index: dbus-1.6.0.ebuild
47 ===================================================================
48 # Copyright 1999-2012 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/sys-apps/dbus/dbus-1.6.0.ebuild,v 1.1 2012/06/06 10:45:04 ssuominen Exp $
51
52 EAPI=4
53 inherit autotools eutils linux-info flag-o-matic python systemd virtualx user
54
55 DESCRIPTION="A message bus system, a simple way for applications to talk to each other"
56 HOMEPAGE="http://dbus.freedesktop.org/"
57 SRC_URI="http://dbus.freedesktop.org/releases/dbus/${P}.tar.gz"
58
59 LICENSE="|| ( AFL-2.1 GPL-2 )"
60 SLOT="0"
61 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd"
62 IUSE="debug doc selinux static-libs systemd test X"
63
64 RDEPEND=">=dev-libs/expat-2
65 selinux? (
66 sec-policy/selinux-dbus
67 sys-libs/libselinux
68 )
69 systemd? ( >=sys-apps/systemd-32 )
70 X? (
71 x11-libs/libX11
72 x11-libs/libXt
73 )"
74 DEPEND="${RDEPEND}
75 virtual/pkgconfig
76 doc? (
77 app-doc/doxygen
78 app-text/docbook-xml-dtd:4.1.2
79 app-text/xmlto
80 )
81 test? (
82 >=dev-libs/glib-2.24
83 dev-lang/python:2.7
84 )"
85
86 # out of sources build directory
87 BD=${WORKDIR}/${P}-build
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 if use test; then
96 python_set_active_version 2
97 python_pkg_setup
98 fi
99
100 if use kernel_linux; then
101 CONFIG_CHECK="~EPOLL"
102 linux-info_pkg_setup
103 fi
104 }
105
106 src_prepare() {
107 epatch "${FILESDIR}"/${PN}-1.5.12-selinux-when-dropping-capabilities-only-include-AUDI.patch
108
109 # Tests were restricted because of this
110 sed -i \
111 -e 's/.*bus_dispatch_test.*/printf ("Disabled due to excess noise\\n");/' \
112 -e '/"dispatch"/d' \
113 bus/test-main.c || die
114
115 # required for asneeded patch but also for bug 263909, cross-compile so
116 # don't remove eautoreconf
117 eautoreconf
118 }
119
120 src_configure() {
121 local myconf
122
123 # so we can get backtraces from apps
124 append-flags -rdynamic
125
126 # libaudit is *only* used in DBus wrt SELinux support, so disable it, if
127 # not on an SELinux profile.
128 myconf=(
129 --localstatedir=/var
130 --docdir=/usr/share/doc/${PF}
131 --htmldir=/usr/share/doc/${PF}/html
132 $(use_enable static-libs static)
133 $(use_enable debug verbose-mode)
134 --disable-asserts
135 --disable-checks
136 $(use_enable selinux)
137 $(use_enable selinux libaudit)
138 $(use_enable kernel_linux inotify)
139 $(use_enable kernel_FreeBSD kqueue)
140 $(use_enable systemd)
141 --disable-embedded-tests
142 --disable-modular-tests
143 $(use_enable debug stats)
144 --with-xml=expat
145 --with-session-socket-dir=/tmp
146 --with-system-pid-file=/var/run/dbus.pid
147 --with-system-socket=/var/run/dbus/system_bus_socket
148 --with-dbus-user=messagebus
149 $(use_with X x)
150 "$(systemd_with_unitdir)"
151 )
152
153 mkdir "${BD}"
154 cd "${BD}"
155 einfo "Running configure in ${BD}"
156 ECONF_SOURCE="${S}" econf "${myconf[@]}" \
157 $(use_enable doc xml-docs) \
158 $(use_enable doc doxygen-docs)
159
160 if use test; then
161 mkdir "${TBD}"
162 cd "${TBD}"
163 einfo "Running configure in ${TBD}"
164 ECONF_SOURCE="${S}" econf "${myconf[@]}" \
165 $(use_enable test asserts) \
166 $(use_enable test checks) \
167 $(use_enable test embedded-tests) \
168 $(has_version dev-libs/dbus-glib && echo --enable-modular-tests)
169 fi
170 }
171
172 src_compile() {
173 # after the compile, it uses a selinuxfs interface to
174 # check if the SELinux policy has the right support
175 use selinux && addwrite /selinux/access
176
177 cd "${BD}"
178 einfo "Running make in ${BD}"
179 emake
180
181 if use test; then
182 cd "${TBD}"
183 einfo "Running make in ${TBD}"
184 emake
185 fi
186 }
187
188 src_test() {
189 cd "${TBD}"
190 DBUS_VERBOSE=1 Xemake -j1 check
191 }
192
193 src_install() {
194 newinitd "${FILESDIR}"/dbus.initd dbus
195
196 if use X; then
197 # dbus X session script (#77504)
198 # turns out to only work for GDM (and startx). has been merged into
199 # other desktop (kdm and such scripts)
200 exeinto /etc/X11/xinit/xinitrc.d
201 doexe "${FILESDIR}"/80-dbus
202 fi
203
204 # needs to exist for dbus sessions to launch
205 keepdir /usr/share/dbus-1/services
206 keepdir /etc/dbus-1/{session,system}.d
207 # machine-id symlink from pkg_postinst()
208 keepdir /var/lib/dbus
209
210 dodoc AUTHORS ChangeLog HACKING NEWS README doc/TODO
211
212 cd "${BD}"
213 emake DESTDIR="${D}" install
214
215 find "${ED}" -type f -name '*.la' -exec rm -f {} +
216 }
217
218 pkg_postinst() {
219 elog "To start the D-Bus system-wide messagebus by default"
220 elog "you should add it to the default runlevel :"
221 elog "\`rc-update add dbus default\`"
222 elog
223 elog "Some applications require a session bus in addition to the system"
224 elog "bus. Please see \`man dbus-launch\` for more information."
225 elog
226 ewarn "You must restart D-Bus \`/etc/init.d/dbus restart\` to run"
227 ewarn "the new version of the daemon."
228 ewarn "Don't do this while X is running because it will restart your X as well."
229
230 # Ensure unique id is generated and put it in /etc wrt #370451 but symlink
231 # for DBUS_MACHINE_UUID_FILE (see tools/dbus-launch.c) and reverse
232 # dependencies with hardcoded paths (although the known ones got fixed already)
233 dbus-uuidgen --ensure="${EROOT}"/etc/machine-id
234 ln -sf "${EROOT}"/etc/machine-id "${EROOT}"/var/lib/dbus/machine-id
235 }