Gentoo Archives: gentoo-commits

From: "Patrick Lauer (patrick)" <patrick@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-fs/eudev: eudev-1.10-r2.ebuild ChangeLog
Date: Thu, 04 Sep 2014 08:33:37
Message-Id: 20140904083333.2F7084ACC@oystercatcher.gentoo.org
1 patrick 14/09/04 08:33:33
2
3 Modified: ChangeLog
4 Added: eudev-1.10-r2.ebuild
5 Log:
6 Run eautoreconf unconditionally to be immune to automake versions #522078
7
8 (Portage version: 2.2.12/cvs/Linux x86_64, unsigned Manifest commit)
9
10 Revision Changes Path
11 1.138 sys-fs/eudev/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/eudev/ChangeLog?rev=1.138&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/eudev/ChangeLog?rev=1.138&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/eudev/ChangeLog?r1=1.137&r2=1.138
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sys-fs/eudev/ChangeLog,v
20 retrieving revision 1.137
21 retrieving revision 1.138
22 diff -u -r1.137 -r1.138
23 --- ChangeLog 3 Sep 2014 10:52:23 -0000 1.137
24 +++ ChangeLog 4 Sep 2014 08:33:33 -0000 1.138
25 @@ -1,6 +1,11 @@
26 # ChangeLog for sys-fs/eudev
27 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/sys-fs/eudev/ChangeLog,v 1.137 2014/09/03 10:52:23 blueness Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/sys-fs/eudev/ChangeLog,v 1.138 2014/09/04 08:33:33 patrick Exp $
30 +
31 +*eudev-1.10-r2 (04 Sep 2014)
32 +
33 + 04 Sep 2014; Patrick Lauer <patrick@g.o> +eudev-1.10-r2.ebuild:
34 + Run eautoreconf unconditionally to be immune to automake versions #522078
35
36 *eudev-1.10-r1 (03 Sep 2014)
37
38
39
40
41 1.1 sys-fs/eudev/eudev-1.10-r2.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/eudev/eudev-1.10-r2.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/eudev/eudev-1.10-r2.ebuild?rev=1.1&content-type=text/plain
45
46 Index: eudev-1.10-r2.ebuild
47 ===================================================================
48 # Copyright 1999-2014 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/sys-fs/eudev/eudev-1.10-r2.ebuild,v 1.1 2014/09/04 08:33:33 patrick Exp $
51
52 EAPI="5"
53
54 KV_min=2.6.39
55
56 inherit autotools eutils linux-info multilib multilib-minimal user
57
58 if [[ ${PV} = 9999* ]]; then
59 EGIT_REPO_URI="git://github.com/gentoo/eudev.git"
60 inherit git-2
61 else
62 SRC_URI="http://dev.gentoo.org/~blueness/${PN}/${P}.tar.gz"
63 KEYWORDS="~amd64 ~arm ~hppa ~mips ~ppc ~ppc64 ~x86"
64 fi
65
66 DESCRIPTION="Linux dynamic and persistent device naming support (aka userspace devfs)"
67 HOMEPAGE="https://github.com/gentoo/eudev"
68
69 LICENSE="LGPL-2.1 MIT GPL-2"
70 SLOT="0"
71 IUSE="doc gudev +hwdb +kmod introspection +keymap +modutils +openrc +rule-generator selinux static-libs test"
72
73 COMMON_DEPEND=">=sys-apps/util-linux-2.20
74 gudev? ( >=dev-libs/glib-2.34.3:2[${MULTILIB_USEDEP}] )
75 introspection? ( >=dev-libs/gobject-introspection-1.38 )
76 kmod? ( >=sys-apps/kmod-16 )
77 selinux? ( >=sys-libs/libselinux-2.1.9 )
78 !<sys-libs/glibc-2.11
79 !sys-apps/gentoo-systemd-integration
80 !sys-apps/systemd
81 abi_x86_32? (
82 !<=app-emulation/emul-linux-x86-baselibs-20130224-r7
83 !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
84 )"
85 DEPEND="${COMMON_DEPEND}
86 keymap? ( dev-util/gperf )
87 virtual/os-headers
88 virtual/pkgconfig
89 >=sys-devel/make-3.82-r4
90 >=sys-kernel/linux-headers-${KV_min}
91 doc? ( >=dev-util/gtk-doc-1.18 )
92 app-text/docbook-xml-dtd:4.2
93 app-text/docbook-xml-dtd:4.5
94 app-text/docbook-xsl-stylesheets
95 dev-libs/libxslt
96 >=dev-util/intltool-0.50
97 test? ( app-text/tree dev-lang/perl )"
98
99 RDEPEND="${COMMON_DEPEND}
100 !<sys-fs/lvm2-2.02.103
101 !<sec-policy/selinux-base-2.20120725-r10
102 !sys-fs/udev
103 !sys-apps/systemd"
104
105 PDEPEND="hwdb? ( >=sys-apps/hwids-20140304[udev] )
106 keymap? ( >=sys-apps/hwids-20140304[udev] )
107 openrc? ( >=sys-fs/udev-init-scripts-26 )"
108
109 REQUIRED_USE="keymap? ( hwdb )"
110
111 # The multilib-build.eclass doesn't handle situation where the installed headers
112 # are different in ABIs. In this case, we install libgudev headers in native
113 # ABI but not for non-native ABI.
114 multilib_check_headers() { :; }
115
116 pkg_pretend() {
117 if ! use rule-generator; then
118 ewarn
119 ewarn "As of 2013-01-29, ${P} provides the new interface renaming functionality,"
120 ewarn "as described in the URL below:"
121 ewarn "http://www.freedesktop.org/wiki/Software/systemd/PredictableNetworkInterfaceNames"
122 ewarn
123 ewarn "This functionality is enabled BY DEFAULT because eudev has no means of synchronizing"
124 ewarn "between the default or user-modified choice of sys-fs/udev. If you wish to disable"
125 ewarn "this new iface naming, please be sure that /etc/udev/rules.d/80-net-name-slot.rules"
126 ewarn "exists:"
127 ewarn "\ttouch /etc/udev/rules.d/80-net-name-slot.rules"
128 ewarn
129 ewarn "We are working on a better solution for the next beta release."
130 ewarn
131 fi
132 }
133
134 pkg_setup() {
135 CONFIG_CHECK="~BLK_DEV_BSG ~DEVTMPFS ~!IDE ~INOTIFY_USER ~!SYSFS_DEPRECATED ~!SYSFS_DEPRECATED_V2 ~SIGNALFD ~EPOLL ~FHANDLE ~NET"
136 linux-info_pkg_setup
137 get_running_version
138
139 # These are required kernel options, but we don't error out on them
140 # because you can build under one kernel and run under another.
141 if kernel_is lt ${KV_min//./ }; then
142 ewarn
143 ewarn "Your current running kernel version ${KV_FULL} is too old to run ${P}."
144 ewarn "Make sure to run udev under kernel version ${KV_min} or above."
145 ewarn
146 fi
147 }
148
149 src_prepare() {
150 # change rules back to group uucp instead of dialout for now
151 sed -e 's/GROUP="dialout"/GROUP="uucp"/' -i rules/*.rules \
152 || die "failed to change group dialout to uucp"
153
154 # Bug #520684
155 epatch "${FILESDIR}"/${PN}-fix-selinux-headers.patch
156 epatch "${FILESDIR}"/${PN}-fix-selinux-linking.patch
157
158 epatch_user
159
160 if [[ ! -e configure ]]; then
161 if use doc; then
162 gtkdocize --docdir docs || die "gtkdocize failed"
163 else
164 echo 'EXTRA_DIST =' > docs/gtk-doc.make
165 fi
166 fi
167 eautoreconf
168 }
169
170 multilib_src_configure() {
171 tc-export CC #463846
172 export cc_cv_CFLAGS__flto=no #502950
173
174 # Keep sorted by ./configure --help and only pass --disable flags
175 # when *required* to avoid external deps or unnecessary compile
176 local econf_args
177 econf_args=(
178 ac_cv_search_cap_init=
179 ac_cv_header_sys_capability_h=yes
180 DBUS_CFLAGS=' '
181 DBUS_LIBS=' '
182 --with-rootprefix=
183 --docdir=/usr/share/doc/${PF}
184 --libdir=/usr/$(get_libdir)
185 --with-rootlibexecdir=/lib/udev
186 --with-firmware-path="${EPREFIX}usr/lib/firmware/updates:${EPREFIX}usr/lib/firmware:${EPREFIX}lib/firmware/updates:${EPREFIX}lib/firmware"
187 --with-html-dir="/usr/share/doc/${PF}/html"
188 --enable-split-usr
189 --exec-prefix=/
190
191 $(use_enable gudev)
192 )
193
194 # Only build libudev for non-native_abi, and only install it to libdir,
195 # that means all options only apply to native_abi
196 if multilib_is_native_abi; then
197 econf_args+=(
198 --with-rootlibdir=/$(get_libdir)
199 $(use_enable doc gtk-doc)
200 $(use_enable introspection)
201 $(use_enable keymap)
202 $(use_enable kmod libkmod)
203 $(usex kmod --enable-modules $(use_enable modutils modules))
204 $(use_enable static-libs static)
205 $(use_enable selinux)
206 $(use_enable rule-generator)
207 )
208 else
209 econf_args+=(
210 --disable-static
211 --disable-gtk-doc
212 --disable-introspection
213 --disable-keymap
214 --disable-libkmod
215 --disable-modules
216 --disable-selinux
217 --disable-rule-generator
218 )
219 fi
220 ECONF_SOURCE="${S}" econf "${econf_args[@]}"
221 }
222
223 multilib_src_compile() {
224 if multilib_is_native_abi; then
225 emake
226 else
227 emake -C src/shared
228 emake -C src/libudev
229 use gudev && emake -C src/gudev
230 fi
231 }
232
233 multilib_src_install() {
234 if multilib_is_native_abi; then
235 emake DESTDIR="${D}" install
236 else
237 emake -C src/libudev DESTDIR="${D}" install
238 use gudev && emake -C src/gudev DESTDIR="${D}" install
239 fi
240 }
241
242 multilib_src_test() {
243 # make sandbox get out of the way
244 # these are safe because there is a fake root filesystem put in place,
245 # but sandbox seems to evaluate the paths of the test i/o instead of the
246 # paths of the actual i/o that results.
247 # also only test for native abi
248 if multilib_is_native_abi; then
249 addread /sys
250 addwrite /dev
251 addwrite /run
252 default_src_test
253 fi
254 }
255
256 multilib_src_install_all() {
257 prune_libtool_files --all
258 rm -rf "${ED}"/usr/share/doc/${PF}/LICENSE.*
259
260 use rule-generator && use openrc && doinitd "${FILESDIR}"/udev-postmount
261
262 # drop distributed hwdb files, they override sys-apps/hwids
263 rm -f "${ED}"/etc/udev/hwdb.d/*.hwdb
264
265 insinto /lib/udev/rules.d
266 doins "${FILESDIR}"/40-gentoo.rules
267
268 insinto /usr/share/doc/${PF}/html/gudev
269 doins "${S}"/docs/gudev/html/*
270
271 insinto /usr/share/doc/${PF}/html/libudev
272 doins "${S}"/docs/libudev/html/*
273 }
274
275 pkg_preinst() {
276 local htmldir
277 for htmldir in gudev libudev; do
278 if [[ -d ${EROOT}usr/share/gtk-doc/html/${htmldir} ]]; then
279 rm -rf "${EROOT}"usr/share/gtk-doc/html/${htmldir}
280 fi
281 if [[ -d ${ED}/usr/share/doc/${PF}/html/${htmldir} ]]; then
282 dosym ../../doc/${PF}/html/${htmldir} \
283 /usr/share/gtk-doc/html/${htmldir}
284 fi
285 done
286 }
287
288 pkg_postinst() {
289 mkdir -p "${EROOT}"run
290
291 # "losetup -f" is confused if there is an empty /dev/loop/, Bug #338766
292 # So try to remove it here (will only work if empty).
293 rmdir "${EROOT}"dev/loop 2>/dev/null
294 if [[ -d ${EROOT}dev/loop ]]; then
295 ewarn "Please make sure your remove /dev/loop,"
296 ewarn "else losetup may be confused when looking for unused devices."
297 fi
298
299 if use hwdb && has_version 'sys-apps/hwids[udev]'; then
300 udevadm hwdb --update --root="${ROOT%/}"
301
302 # http://cgit.freedesktop.org/systemd/systemd/commit/?id=1fab57c209035f7e66198343074e9cee06718bda
303 # reload database after it has be rebuilt, but only if we are not upgrading
304 # also pass if we are -9999 since who knows what hwdb related changes there might be
305 if [[ ${REPLACING_VERSIONS%-r*} == ${PV} || -z ${REPLACING_VERSIONS} ]] && \
306 [[ ${ROOT%/} == "" ]] && [[ ${PV} != "9999" ]]; then
307 udevadm control --reload
308 fi
309 fi
310
311 ewarn
312 ewarn "You need to restart eudev as soon as possible to make the"
313 ewarn "upgrade go into effect:"
314 ewarn "\t/etc/init.d/udev --nodeps restart"
315
316 if use rule-generator && use openrc && \
317 [[ -x $(type -P rc-update) ]] && rc-update show | grep udev-postmount | grep -qsv 'boot\|default\|sysinit'; then
318 ewarn
319 ewarn "Please add the udev-postmount init script to your default runlevel"
320 ewarn "to ensure the legacy rule-generator functionality works as reliably"
321 ewarn "as possible."
322 ewarn "\trc-update add udev-postmount default"
323 fi
324
325 elog
326 elog "For more information on eudev on Gentoo, writing udev rules, and"
327 elog "fixing known issues visit:"
328 elog " http://www.gentoo.org/doc/en/udev-guide.xml"
329 elog
330
331 # http://cgit.freedesktop.org/systemd/systemd/commit/rules/50-udev-default.rules?id=3dff3e00e044e2d53c76fa842b9a4759d4a50e69
332 # http://bugs.gentoo.org/246847
333 # http://bugs.gentoo.org/514174
334 enewgroup input
335
336 # Update hwdb database in case the format is changed by udev version.
337 if has_version 'sys-apps/hwids[udev]'; then
338 udevadm hwdb --update --root="${ROOT%/}"
339 # Only reload when we are not upgrading to avoid potential race w/ incompatible hwdb.bin and the running udevd
340 if [[ -z ${REPLACING_VERSIONS} ]]; then
341 # http://cgit.freedesktop.org/systemd/systemd/commit/?id=1fab57c209035f7e66198343074e9cee06718bda
342 if [[ ${ROOT} != "" ]] && [[ ${ROOT} != "/" ]]; then
343 return 0
344 fi
345 udevadm control --reload
346 fi
347 fi
348 }