Gentoo Archives: gentoo-commits

From: "Anthony G. Basile (blueness)" <blueness@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-fs/eudev: eudev-2.1.ebuild ChangeLog
Date: Wed, 29 Oct 2014 01:00:39
Message-Id: 20141029010034.201AA8F7F@oystercatcher.gentoo.org
1 blueness 14/10/29 01:00:34
2
3 Modified: ChangeLog
4 Added: eudev-2.1.ebuild
5 Log:
6 Version bump
7
8 (Portage version: 2.2.8-r2/cvs/Linux x86_64, signed Manifest commit with key 0xF52D4BBA)
9
10 Revision Changes Path
11 1.151 sys-fs/eudev/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/eudev/ChangeLog?rev=1.151&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/eudev/ChangeLog?rev=1.151&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/eudev/ChangeLog?r1=1.150&r2=1.151
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sys-fs/eudev/ChangeLog,v
20 retrieving revision 1.150
21 retrieving revision 1.151
22 diff -u -r1.150 -r1.151
23 --- ChangeLog 20 Sep 2014 23:23:37 -0000 1.150
24 +++ ChangeLog 29 Oct 2014 01:00:34 -0000 1.151
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.150 2014/09/20 23:23:37 blueness Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/sys-fs/eudev/ChangeLog,v 1.151 2014/10/29 01:00:34 blueness Exp $
30 +
31 +*eudev-2.1 (29 Oct 2014)
32 +
33 + 29 Oct 2014; Anthony G. Basile <blueness@g.o> +eudev-2.1.ebuild:
34 + Version bump
35
36 20 Sep 2014; Anthony G. Basile <blueness@g.o> -eudev-1.10-r1.ebuild:
37 Punt older unstable version
38
39
40
41 1.1 sys-fs/eudev/eudev-2.1.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/eudev/eudev-2.1.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/eudev/eudev-2.1.ebuild?rev=1.1&content-type=text/plain
45
46 Index: eudev-2.1.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-2.1.ebuild,v 1.1 2014/10/29 01:00:34 blueness 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 +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=">=sys-fs/udev-init-scripts-26
106 hwdb? ( >=sys-apps/hwids-20140304[udev] )
107 keymap? ( >=sys-apps/hwids-20140304[udev] )"
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 epatch_user
155
156 if use doc; then
157 gtkdocize --docdir docs || die "gtkdocize failed"
158 else
159 echo 'EXTRA_DIST =' > docs/gtk-doc.make
160 fi
161 # This may break without WANT_AUTOMAKE=1.13, but we
162 # we want this so we can fix problems upstream.
163 eautoreconf
164 }
165
166 multilib_src_configure() {
167 tc-export CC #463846
168 export cc_cv_CFLAGS__flto=no #502950
169
170 # Keep sorted by ./configure --help and only pass --disable flags
171 # when *required* to avoid external deps or unnecessary compile
172 local econf_args
173 econf_args=(
174 ac_cv_search_cap_init=
175 ac_cv_header_sys_capability_h=yes
176 DBUS_CFLAGS=' '
177 DBUS_LIBS=' '
178 --with-rootprefix=
179 --docdir=/usr/share/doc/${PF}
180 --libdir=/usr/$(get_libdir)
181 --with-rootlibexecdir=/lib/udev
182 --with-html-dir="/usr/share/doc/${PF}/html"
183 --enable-split-usr
184 --exec-prefix=/
185
186 $(use_enable gudev)
187 )
188
189 # Only build libudev for non-native_abi, and only install it to libdir,
190 # that means all options only apply to native_abi
191 if multilib_is_native_abi; then
192 econf_args+=(
193 --with-rootlibdir=/$(get_libdir)
194 $(use_enable doc gtk-doc)
195 $(use_enable introspection)
196 $(use_enable keymap)
197 $(use_enable kmod libkmod)
198 $(usex kmod --enable-modules $(use_enable modutils modules))
199 $(use_enable static-libs static)
200 $(use_enable selinux)
201 $(use_enable rule-generator)
202 )
203 else
204 econf_args+=(
205 --disable-static
206 --disable-gtk-doc
207 --disable-introspection
208 --disable-keymap
209 --disable-libkmod
210 --disable-modules
211 --disable-selinux
212 --disable-rule-generator
213 )
214 fi
215 ECONF_SOURCE="${S}" econf "${econf_args[@]}"
216 }
217
218 multilib_src_compile() {
219 if multilib_is_native_abi; then
220 emake
221 else
222 emake -C src/shared
223 emake -C src/libudev
224 use gudev && emake -C src/gudev
225 fi
226 }
227
228 multilib_src_install() {
229 if multilib_is_native_abi; then
230 emake DESTDIR="${D}" install
231 else
232 emake -C src/libudev DESTDIR="${D}" install
233 use gudev && emake -C src/gudev DESTDIR="${D}" install
234 fi
235 }
236
237 multilib_src_test() {
238 # make sandbox get out of the way
239 # these are safe because there is a fake root filesystem put in place,
240 # but sandbox seems to evaluate the paths of the test i/o instead of the
241 # paths of the actual i/o that results.
242 # also only test for native abi
243 if multilib_is_native_abi; then
244 addread /sys
245 addwrite /dev
246 addwrite /run
247 default_src_test
248 fi
249 }
250
251 multilib_src_install_all() {
252 prune_libtool_files --all
253 rm -rf "${ED}"/usr/share/doc/${PF}/LICENSE.*
254
255 use rule-generator && doinitd "${FILESDIR}"/udev-postmount
256
257 # drop distributed hwdb files, they override sys-apps/hwids
258 rm -f "${ED}"/etc/udev/hwdb.d/*.hwdb
259
260 insinto /lib/udev/rules.d
261 doins "${FILESDIR}"/40-gentoo.rules
262
263 insinto /usr/share/doc/${PF}/html/gudev
264 doins "${S}"/docs/gudev/html/*
265
266 insinto /usr/share/doc/${PF}/html/libudev
267 doins "${S}"/docs/libudev/html/*
268 }
269
270 pkg_preinst() {
271 local htmldir
272 for htmldir in gudev libudev; do
273 if [[ -d ${EROOT}usr/share/gtk-doc/html/${htmldir} ]]; then
274 rm -rf "${EROOT}"usr/share/gtk-doc/html/${htmldir}
275 fi
276 if [[ -d ${ED}/usr/share/doc/${PF}/html/${htmldir} ]]; then
277 dosym ../../doc/${PF}/html/${htmldir} \
278 /usr/share/gtk-doc/html/${htmldir}
279 fi
280 done
281 }
282
283 pkg_postinst() {
284 mkdir -p "${EROOT}"run
285
286 # "losetup -f" is confused if there is an empty /dev/loop/, Bug #338766
287 # So try to remove it here (will only work if empty).
288 rmdir "${EROOT}"dev/loop 2>/dev/null
289 if [[ -d ${EROOT}dev/loop ]]; then
290 ewarn "Please make sure your remove /dev/loop,"
291 ewarn "else losetup may be confused when looking for unused devices."
292 fi
293
294 if use hwdb && has_version 'sys-apps/hwids[udev]'; then
295 udevadm hwdb --update --root="${ROOT%/}"
296
297 # http://cgit.freedesktop.org/systemd/systemd/commit/?id=1fab57c209035f7e66198343074e9cee06718bda
298 # reload database after it has be rebuilt, but only if we are not upgrading
299 # also pass if we are -9999 since who knows what hwdb related changes there might be
300 if [[ ${REPLACING_VERSIONS%-r*} == ${PV} || -z ${REPLACING_VERSIONS} ]] && \
301 [[ ${ROOT%/} == "" ]] && [[ ${PV} != "9999" ]]; then
302 udevadm control --reload
303 fi
304 fi
305
306 ewarn
307 ewarn "You need to restart eudev as soon as possible to make the"
308 ewarn "upgrade go into effect:"
309 ewarn "\t/etc/init.d/udev --nodeps restart"
310
311 if use rule-generator && \
312 [[ -x $(type -P rc-update) ]] && rc-update show | grep udev-postmount | grep -qsv 'boot\|default\|sysinit'; then
313 ewarn
314 ewarn "Please add the udev-postmount init script to your default runlevel"
315 ewarn "to ensure the legacy rule-generator functionality works as reliably"
316 ewarn "as possible."
317 ewarn "\trc-update add udev-postmount default"
318 fi
319
320 elog
321 elog "For more information on eudev on Gentoo, writing udev rules, and"
322 elog "fixing known issues visit:"
323 elog " http://www.gentoo.org/doc/en/udev-guide.xml"
324 elog
325
326 # http://cgit.freedesktop.org/systemd/systemd/commit/rules/50-udev-default.rules?id=3dff3e00e044e2d53c76fa842b9a4759d4a50e69
327 # http://bugs.gentoo.org/246847
328 # http://bugs.gentoo.org/514174
329 enewgroup input
330
331 # Update hwdb database in case the format is changed by udev version.
332 if has_version 'sys-apps/hwids[udev]'; then
333 udevadm hwdb --update --root="${ROOT%/}"
334 # Only reload when we are not upgrading to avoid potential race w/ incompatible hwdb.bin and the running udevd
335 if [[ -z ${REPLACING_VERSIONS} ]]; then
336 # http://cgit.freedesktop.org/systemd/systemd/commit/?id=1fab57c209035f7e66198343074e9cee06718bda
337 if [[ ${ROOT} != "" ]] && [[ ${ROOT} != "/" ]]; then
338 return 0
339 fi
340 udevadm control --reload
341 fi
342 fi
343 }