Gentoo Archives: gentoo-commits

From: "Stephen Klimaszewski (steev)" <steev@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-apps/dbus: ChangeLog dbus-1.2.18.ebuild
Date: Wed, 03 Feb 2010 16:07:39
Message-Id: E1NchlQ-0008QW-GA@stork.gentoo.org
1 steev 10/02/03 16:07:36
2
3 Modified: ChangeLog
4 Added: dbus-1.2.18.ebuild
5 Log:
6 Bump dbus, add 2 patches from upstream, one to fix a compilation issue
7 with selinux disabled, the other to move the shutdown handler into
8 inotify.
9 (Portage version: 2.1.7.17/cvs/Linux i686)
10
11 Revision Changes Path
12 1.243 sys-apps/dbus/ChangeLog
13
14 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/dbus/ChangeLog?rev=1.243&view=markup
15 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/dbus/ChangeLog?rev=1.243&content-type=text/plain
16 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/dbus/ChangeLog?r1=1.242&r2=1.243
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/sys-apps/dbus/ChangeLog,v
21 retrieving revision 1.242
22 retrieving revision 1.243
23 diff -u -r1.242 -r1.243
24 --- ChangeLog 23 Nov 2009 21:27:56 -0000 1.242
25 +++ ChangeLog 3 Feb 2010 16:07:35 -0000 1.243
26 @@ -1,6 +1,15 @@
27 # ChangeLog for sys-apps/dbus
28 -# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/dbus/ChangeLog,v 1.242 2009/11/23 21:27:56 eva Exp $
30 +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
31 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/dbus/ChangeLog,v 1.243 2010/02/03 16:07:35 steev Exp $
32 +
33 +*dbus-1.2.18 (03 Feb 2010)
34 +
35 + 03 Feb 2010; <steev@g.o> +files/0001-Fix-inotify-shutdown.patch,
36 + +dbus-1.2.18.ebuild,
37 + +files/0002-Fix-compilation-in-disable-selinux-case.patch:
38 + Bump dbus, add 2 patches from upstream, one to fix a compilation issue
39 + with selinux disabled, the other to move the shutdown handler into
40 + inotify.
41
42 23 Nov 2009; Gilles Dartiguelongue <eva@g.o> dbus-1.3.0-r1.ebuild:
43 Add missing docbook-xml-dtd:4.1.2 dependency, bug #293867.
44
45
46
47 1.1 sys-apps/dbus/dbus-1.2.18.ebuild
48
49 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/dbus/dbus-1.2.18.ebuild?rev=1.1&view=markup
50 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/dbus/dbus-1.2.18.ebuild?rev=1.1&content-type=text/plain
51
52 Index: dbus-1.2.18.ebuild
53 ===================================================================
54 # Copyright 1999-2010 Gentoo Foundation
55 # Distributed under the terms of the GNU General Public License v2
56 # $Header: /var/cvsroot/gentoo-x86/sys-apps/dbus/dbus-1.2.18.ebuild,v 1.1 2010/02/03 16:07:35 steev Exp $
57
58 inherit eutils multilib flag-o-matic
59
60 DESCRIPTION="A message bus system, a simple way for applications to talk to each other"
61 HOMEPAGE="http://dbus.freedesktop.org/"
62 SRC_URI="http://dbus.freedesktop.org/releases/dbus/${P}.tar.gz"
63
64 LICENSE="|| ( GPL-2 AFL-2.1 )"
65 SLOT="0"
66 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
67 IUSE="debug doc selinux test X"
68
69 RDEPEND="X? ( x11-libs/libXt x11-libs/libX11 )
70 selinux? ( sys-libs/libselinux
71 sec-policy/selinux-dbus )
72 >=dev-libs/expat-1.95.8
73 !<sys-apps/dbus-0.91"
74 DEPEND="${RDEPEND}
75 dev-util/pkgconfig
76 doc? ( app-doc/doxygen
77 app-text/xmlto )"
78
79 src_unpack() {
80 unpack ${A}
81 cd "${S}"
82
83 epatch "${FILESDIR}/0001-Fix-inotify-shutdown.patch"
84 epatch "${FILESDIR}/0002-Fix-compilation-in-disable-selinux-case.patch"
85
86 # Tests were restricted because of this
87 sed -e 's/.*bus_dispatch_test.*/printf ("Disabled due to excess noise\\n");/' \
88 -e '/"dispatch"/d' -i "${S}/bus/test-main.c"
89 }
90
91 src_compile() {
92 # so we can get backtraces from apps
93 append-flags -rdynamic
94
95 # libaudit is *only* used in DBus wrt SELinux support, so disable it, if
96 # not on an SELinux profile.
97 econf \
98 $(use_with X x) \
99 $(use_enable kernel_linux inotify) \
100 $(use_enable kernel_FreeBSD kqueue) \
101 $(use_enable selinux) \
102 $(use_enable selinux libaudit) \
103 $(use_enable debug verbose-mode) \
104 $(use_enable debug asserts) \
105 $(use_enable test tests) \
106 $(use_enable test asserts) \
107 --with-xml=expat \
108 --with-system-pid-file=/var/run/dbus.pid \
109 --with-system-socket=/var/run/dbus/system_bus_socket \
110 --with-session-socket-dir=/tmp \
111 --with-dbus-user=messagebus \
112 --localstatedir=/var \
113 $(use_enable doc doxygen-docs) \
114 --disable-xml-docs \
115 || die "econf failed"
116
117 # after the compile, it uses a selinuxfs interface to
118 # check if the SELinux policy has the right support
119 use selinux && addwrite /selinux/access
120
121 emake || die "make failed"
122 }
123
124 src_test() {
125 DBUS_VERBOSE=1 make check || die "make check failed"
126 }
127
128 src_install() {
129 emake DESTDIR="${D}" install || die "make install failed"
130
131 # initscript
132 newinitd "${FILESDIR}"/dbus.init-1.0 dbus
133
134 if use X ; then
135 # dbus X session script (#77504)
136 # turns out to only work for GDM. has been merged into other desktop
137 # (kdm and such scripts)
138 exeinto /etc/X11/xinit/xinitrc.d/
139 doexe "${FILESDIR}"/30-dbus
140 fi
141
142 # needs to exist for the system socket
143 keepdir /var/run/dbus
144 # needs to exist for machine id
145 keepdir /var/lib/dbus
146 # needs to exist for dbus sessions to launch
147
148 keepdir /usr/lib/dbus-1.0/services
149 keepdir /usr/share/dbus-1/services
150 keepdir /etc/dbus-1/system.d/
151 keepdir /etc/dbus-1/session.d/
152
153 dodoc AUTHORS ChangeLog HACKING NEWS README doc/TODO
154 if use doc; then
155 dohtml doc/*html
156 fi
157 }
158
159 pkg_preinst() {
160 enewgroup messagebus
161 enewuser messagebus -1 "-1" -1 messagebus
162 }
163
164 pkg_postinst() {
165 elog "To start the D-Bus system-wide messagebus by default"
166 elog "you should add it to the default runlevel :"
167 elog "\`rc-update add dbus default\`"
168 elog
169 elog "Some applications require a session bus in addition to the system"
170 elog "bus. Please see \`man dbus-launch\` for more information."
171 elog
172 elog
173 ewarn "You MUST run 'revdep-rebuild' after emerging this package"
174 elog
175 ewarn "You must restart D-Bus \`/etc/init.d/dbus restart\` to run"
176 ewarn "the new version of the daemon."
177
178 if has_version x11-base/xorg-server && built_with_use x11-base/xorg-server hal; then
179 elog
180 ewarn "You are currently running X with the hal useflag enabled"
181 ewarn "restarting the dbus service WILL restart X as well"
182 ebeep 5
183 fi
184
185 if use test; then
186 elog
187 ewarn "You have unit tests enabled, this results in an insecure library"
188 ewarn "It is recommended that you reinstall *without* FEATURES=test"
189 fi
190 }