Gentoo Archives: gentoo-commits

From: "Gilles Dartiguelongue (eva)" <eva@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-apps/dbus: ChangeLog dbus-1.3.0-r1.ebuild
Date: Sun, 01 Nov 2009 22:47:16
Message-Id: E1N4jCZ-0000oF-7P@stork.gentoo.org
1 eva 09/11/01 22:47:11
2
3 Modified: ChangeLog
4 Added: dbus-1.3.0-r1.ebuild
5 Log:
6 Version bump.
7 * Do not install unsafe, test dedicated dbus, bug #287722.
8 * Generate dbus UUID at postinst, bug #258516.
9 * Generate and install doxygen doc, bug #194077.
10 * Drop -rdynamic, dbus handles it by itself with USE=debug, bug #267090.
11 * Do not die because of unsupported CFLAG, bug #274456.
12 (Portage version: 2.2_rc46/cvs/Linux x86_64)
13
14 Revision Changes Path
15 1.240 sys-apps/dbus/ChangeLog
16
17 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/dbus/ChangeLog?rev=1.240&view=markup
18 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/dbus/ChangeLog?rev=1.240&content-type=text/plain
19 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/dbus/ChangeLog?r1=1.239&r2=1.240
20
21 Index: ChangeLog
22 ===================================================================
23 RCS file: /var/cvsroot/gentoo-x86/sys-apps/dbus/ChangeLog,v
24 retrieving revision 1.239
25 retrieving revision 1.240
26 diff -u -r1.239 -r1.240
27 --- ChangeLog 8 Aug 2009 20:45:16 -0000 1.239
28 +++ ChangeLog 1 Nov 2009 22:47:10 -0000 1.240
29 @@ -1,6 +1,16 @@
30 # ChangeLog for sys-apps/dbus
31 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
32 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/dbus/ChangeLog,v 1.239 2009/08/08 20:45:16 flameeyes Exp $
33 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/dbus/ChangeLog,v 1.240 2009/11/01 22:47:10 eva Exp $
34 +
35 +*dbus-1.3.0-r1 (01 Nov 2009)
36 +
37 + 01 Nov 2009; Gilles Dartiguelongue <eva@g.o> +dbus-1.3.0-r1.ebuild:
38 + Version bump.
39 + * Do not install unsafe, test dedicated dbus, bug #287722.
40 + * Generate dbus UUID at postinst, bug #258516.
41 + * Generate and install doxygen doc, bug #194077.
42 + * Drop -rdynamic, dbus handles it by itself with USE=debug, bug #267090.
43 + * Do not die because of unsupported CFLAG, bug #274456.
44
45 08 Aug 2009; Diego E. Pettenò <flameeyes@g.o> dbus-1.3.0.ebuild,
46 +files/dbus-1.3.0-no-cloexec.patch:
47
48
49
50 1.1 sys-apps/dbus/dbus-1.3.0-r1.ebuild
51
52 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/dbus/dbus-1.3.0-r1.ebuild?rev=1.1&view=markup
53 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/dbus/dbus-1.3.0-r1.ebuild?rev=1.1&content-type=text/plain
54
55 Index: dbus-1.3.0-r1.ebuild
56 ===================================================================
57 # Copyright 1999-2009 Gentoo Foundation
58 # Distributed under the terms of the GNU General Public License v2
59 # $Header: /var/cvsroot/gentoo-x86/sys-apps/dbus/dbus-1.3.0-r1.ebuild,v 1.1 2009/11/01 22:47:10 eva Exp $
60
61 EAPI="2"
62
63 inherit autotools eutils multilib flag-o-matic
64
65 DESCRIPTION="A message bus system, a simple way for applications to talk to each other"
66 HOMEPAGE="http://dbus.freedesktop.org/"
67 SRC_URI="http://dbus.freedesktop.org/releases/dbus/${P}.tar.gz"
68
69 LICENSE="|| ( GPL-2 AFL-2.1 )"
70 SLOT="0"
71 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
72 IUSE="debug doc selinux test X"
73
74 RDEPEND="X? ( x11-libs/libXt x11-libs/libX11 )
75 selinux? ( sys-libs/libselinux
76 sec-policy/selinux-dbus )
77 >=dev-libs/expat-1.95.8
78 !<sys-apps/dbus-0.91"
79 DEPEND="${RDEPEND}
80 dev-util/pkgconfig
81 doc? (
82 app-doc/doxygen
83 app-text/xmlto )"
84
85 # out of sources build directory
86 BD=${WORKDIR}/${P}-build
87 # out of sources build dir for make check
88 TBD=${WORKDIR}/${P}-tests-build
89
90 src_prepare() {
91 # Remove CFLAGS that is not supported by all gcc, bug #274456
92 sed 's/-Wno-pointer-sign//g' -i configure.in configure || die "sed failed"
93
94 # Tests were restricted because of this
95 sed -e 's/.*bus_dispatch_test.*/printf ("Disabled due to excess noise\\n");/' \
96 -e '/"dispatch"/d' -i "${S}/bus/test-main.c"
97 epatch "${FILESDIR}"/${P}-asneeded.patch
98 epatch "${FILESDIR}"/${P}-no-cloexec.patch
99 # required for asneeded patch but also for bug 263909, cross-compile so
100 # don't remove eautoreconf
101 eautoreconf
102 }
103
104 src_configure() {
105 local my_conf
106
107 # libaudit is *only* used in DBus wrt SELinux support, so disable it, if
108 # not on an SELinux profile.
109 my_conf="$(use_with X x)
110 $(use_enable debug verbose-mode)
111 $(use_enable debug asserts)
112 $(use_enable doc doxygen-docs)
113 $(use_enable doc xml-docs)
114 $(use_enable kernel_linux inotify)
115 $(use_enable kernel_FreeBSD kqueue)
116 $(use_enable selinux)
117 $(use_enable selinux libaudit)
118 --with-xml=expat
119 --with-system-pid-file=/var/run/dbus.pid
120 --with-system-socket=/var/run/dbus/system_bus_socket
121 --with-session-socket-dir=/tmp
122 --with-dbus-user=messagebus
123 --localstatedir=/var"
124
125 mkdir "${BD}"
126 cd "${BD}"
127 einfo "Running configure in ${BD}"
128 ECONF_SOURCE="${S}" econf ${my_conf}
129
130 if use test; then
131 mkdir "${TBD}"
132 cd "${TBD}"
133 einfo "Running configure in ${TBD}"
134 ECONF_SOURCE="${S}" econf \
135 ${my_conf} \
136 $(use_enable test checks) \
137 $(use_enable test tests) \
138 $(use_enable test asserts)
139 fi
140 }
141
142 src_compile() {
143 # after the compile, it uses a selinuxfs interface to
144 # check if the SELinux policy has the right support
145 use selinux && addwrite /selinux/access
146
147 cd "${BD}"
148 einfo "Running make in ${BD}"
149 emake || die "make failed"
150
151 if use test; then
152 cd "${TBD}"
153 einfo "Running make in ${TBD}"
154 emake || die "make failed"
155 fi
156
157 if use doc; then
158 einfo "Building API documentation..."
159 doxygen || die "doxygen failed"
160 fi
161 }
162
163 src_test() {
164 cd "${TBD}"
165 DBUS_VERBOSE=1 make check || die "make check failed"
166 }
167
168 src_install() {
169 # initscript
170 newinitd "${FILESDIR}"/dbus.init-1.0 dbus
171
172 if use X ; then
173 # dbus X session script (#77504)
174 # turns out to only work for GDM. has been merged into other desktop
175 # (kdm and such scripts)
176 exeinto /etc/X11/xinit/xinitrc.d/
177 doexe "${FILESDIR}"/30-dbus || die "doexe failed"
178 fi
179
180 # needs to exist for the system socket
181 keepdir /var/run/dbus
182 # needs to exist for machine id
183 keepdir /var/lib/dbus
184 # needs to exist for dbus sessions to launch
185
186 keepdir /usr/lib/dbus-1.0/services
187 keepdir /usr/share/dbus-1/services
188 keepdir /etc/dbus-1/system.d/
189 keepdir /etc/dbus-1/session.d/
190
191 dodoc AUTHORS ChangeLog HACKING NEWS README doc/TODO || die "dodoc failed"
192
193 cd "${BD}"
194 # FIXME: split dtd's in dbus-dtd ebuild
195 emake DESTDIR="${D}" install || die "make install failed"
196 if use doc; then
197 dohtml doc/*.html doc/api/html/* || die "dohtml failed"
198 fi
199 }
200
201 pkg_preinst() {
202 enewgroup messagebus
203 enewuser messagebus -1 "-1" -1 messagebus
204 }
205
206 pkg_postinst() {
207 elog "To start the D-Bus system-wide messagebus by default"
208 elog "you should add it to the default runlevel :"
209 elog "\`rc-update add dbus default\`"
210 elog
211 elog "Some applications require a session bus in addition to the system"
212 elog "bus. Please see \`man dbus-launch\` for more information."
213 elog
214 elog
215 ewarn "You MUST run 'revdep-rebuild' after emerging this package"
216 elog
217 ewarn "You must restart D-Bus \`/etc/init.d/dbus restart\` to run"
218 ewarn "the new version of the daemon."
219
220 if has_version "x11-base/xorg-server[hal]"; then
221 elog
222 ewarn "You are currently running X with the hal useflag enabled"
223 ewarn "restarting the dbus service WILL restart X as well"
224 ebeep 5
225 fi
226
227 # Ensure unique id is generated
228 dbus-uuidgen --ensure="${ROOT}"/var/lib/dbus/machine-id
229 }