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