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.5.3.ebuild ChangeLog eudev-1.2-r1.ebuild eudev-1.5.2.ebuild eudev-1.2.ebuild
Date: Sat, 22 Mar 2014 23:29:50
Message-Id: 20140322232939.4EC072004F@flycatcher.gentoo.org
1 blueness 14/03/22 23:29:39
2
3 Modified: ChangeLog
4 Added: eudev-1.5.3.ebuild
5 Removed: eudev-1.2-r1.ebuild eudev-1.5.2.ebuild
6 eudev-1.2.ebuild
7 Log:
8 Version bump, remove older unstables
9
10 (Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key 0xF52D4BBA)
11
12 Revision Changes Path
13 1.94 sys-fs/eudev/ChangeLog
14
15 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/eudev/ChangeLog?rev=1.94&view=markup
16 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/eudev/ChangeLog?rev=1.94&content-type=text/plain
17 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/eudev/ChangeLog?r1=1.93&r2=1.94
18
19 Index: ChangeLog
20 ===================================================================
21 RCS file: /var/cvsroot/gentoo-x86/sys-fs/eudev/ChangeLog,v
22 retrieving revision 1.93
23 retrieving revision 1.94
24 diff -u -r1.93 -r1.94
25 --- ChangeLog 9 Mar 2014 17:51:45 -0000 1.93
26 +++ ChangeLog 22 Mar 2014 23:29:39 -0000 1.94
27 @@ -1,6 +1,12 @@
28 # ChangeLog for sys-fs/eudev
29 # Copyright 1999- Gentoo Foundation; Distributed under the GPL v2
30 -# $Header: /var/cvsroot/gentoo-x86/sys-fs/eudev/ChangeLog,v 1.93 2014/03/09 17:51:45 blueness Exp $
31 +# $Header: /var/cvsroot/gentoo-x86/sys-fs/eudev/ChangeLog,v 1.94 2014/03/22 23:29:39 blueness Exp $
32 +
33 +*eudev-1.5.3 (22 Mar 2014)
34 +
35 + 22 Mar 2014; Anthony G. Basile <blueness@g.o> +eudev-1.5.3.ebuild,
36 + -eudev-1.2-r1.ebuild, -eudev-1.2.ebuild, -eudev-1.5.2.ebuild:
37 + Version bump, remove older unstables
38
39 *eudev-1.5.2 (09 Mar 2014)
40
41
42
43
44 1.1 sys-fs/eudev/eudev-1.5.3.ebuild
45
46 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/eudev/eudev-1.5.3.ebuild?rev=1.1&view=markup
47 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/eudev/eudev-1.5.3.ebuild?rev=1.1&content-type=text/plain
48
49 Index: eudev-1.5.3.ebuild
50 ===================================================================
51 # Copyright 1999-2014 Gentoo Foundation
52 # Distributed under the terms of the GNU General Public License v2
53 # $Header: /var/cvsroot/gentoo-x86/sys-fs/eudev/eudev-1.5.3.ebuild,v 1.1 2014/03/22 23:29:39 blueness Exp $
54
55 EAPI="5"
56
57 KV_min=2.6.31
58
59 inherit autotools eutils multilib linux-info multilib-minimal
60
61 if [[ ${PV} = 9999* ]]
62 then
63 EGIT_REPO_URI="git://github.com/gentoo/eudev.git"
64 inherit git-2
65 else
66 SRC_URI="http://dev.gentoo.org/~blueness/${PN}/${P}.tar.gz"
67 KEYWORDS="~amd64 ~arm ~hppa ~mips ~ppc ~ppc64 ~x86"
68 fi
69
70 DESCRIPTION="Linux dynamic and persistent device naming support (aka userspace devfs)"
71 HOMEPAGE="https://github.com/gentoo/eudev"
72
73 LICENSE="LGPL-2.1 MIT GPL-2"
74 SLOT="0"
75 IUSE="doc gudev +hwdb kmod introspection +keymap +modutils +openrc +rule-generator selinux static-libs test"
76
77 COMMON_DEPEND="gudev? ( dev-libs/glib:2 )
78 kmod? ( sys-apps/kmod )
79 introspection? ( >=dev-libs/gobject-introspection-1.31.1 )
80 selinux? ( sys-libs/libselinux )
81 >=sys-apps/util-linux-2.20
82 !<sys-libs/glibc-2.11
83 abi_x86_32? (
84 !<=app-emulation/emul-linux-x86-baselibs-20130224-r7
85 !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
86 )"
87
88 DEPEND="${COMMON_DEPEND}
89 keymap? ( dev-util/gperf )
90 >=dev-util/intltool-0.40.0
91 virtual/pkgconfig
92 virtual/os-headers
93 !<sys-kernel/linux-headers-${KV_min}
94 doc? ( dev-util/gtk-doc )
95 app-text/docbook-xsl-stylesheets
96 dev-libs/libxslt
97 test? ( app-text/tree dev-lang/perl )"
98
99 RDEPEND="${COMMON_DEPEND}
100 !sys-fs/udev
101 !sys-apps/coldplug
102 !sys-apps/systemd
103 !<sys-fs/lvm2-2.02.97
104 !sys-fs/device-mapper
105 !<sys-fs/udev-init-scripts-18"
106
107 PDEPEND="hwdb? ( >=sys-apps/hwids-20130717-r1[udev] )
108 keymap? ( >=sys-apps/hwids-20130717-r1[udev] )
109 >=virtual/udev-206-r2
110 openrc? ( >=sys-fs/udev-init-scripts-18 )"
111
112 REQUIRED_USE="keymap? ( hwdb )"
113
114 pkg_pretend()
115 {
116 if ! use rule-generator; then
117 ewarn
118 ewarn "As of 2013-01-29, ${P} provides the new interface renaming functionality,"
119 ewarn "as described in the URL below:"
120 ewarn "http://www.freedesktop.org/wiki/Software/systemd/PredictableNetworkInterfaceNames"
121 ewarn
122 ewarn "This functionality is enabled BY DEFAULT because eudev has no means of synchronizing"
123 ewarn "between the default or user-modified choice of sys-fs/udev. If you wish to disable"
124 ewarn "this new iface naming, please be sure that /etc/udev/rules.d/80-net-name-slot.rules"
125 ewarn "exists:"
126 ewarn "\ttouch /etc/udev/rules.d/80-net-name-slot.rules"
127 ewarn
128 ewarn "We are working on a better solution for the next beta release."
129 ewarn
130 fi
131 }
132
133 pkg_setup()
134 {
135 linux-info_pkg_setup
136 get_running_version
137
138 # These are required kernel options, but we don't error out on them
139 # because you can build under one kernel and run under another.
140 CONFIG_CHECK="~BLK_DEV_BSG ~DEVTMPFS ~!IDE ~INOTIFY_USER ~SIGNALFD ~!SYSFS_DEPRECATED ~!SYSFS_DEPRECATED_V2"
141
142 if kernel_is lt ${KV_min//./ }; then
143 ewarn
144 ewarn "Your current running kernel version ${KV_FULL} is too old to run ${P}."
145 ewarn "Make sure to run udev under kernel version ${KV_min} or above."
146 ewarn
147 fi
148 }
149
150 src_prepare()
151 {
152 # change rules back to group uucp instead of dialout for now
153 sed -e 's/GROUP="dialout"/GROUP="uucp"/' -i rules/*.rules \
154 || die "failed to change group dialout to uucp"
155
156 epatch_user
157
158 if [[ ! -e configure ]]
159 then
160 if use doc
161 then
162 gtkdocize --docdir docs || die "gtkdocize failed"
163 else
164 echo 'EXTRA_DIST =' > docs/gtk-doc.make
165 fi
166 eautoreconf
167 else
168 elibtoolize
169 fi
170 }
171
172 multilib_src_configure()
173 {
174 local econf_args
175
176 econf_args=(
177 ac_cv_search_cap_init=
178 ac_cv_header_sys_capability_h=yes
179 DBUS_CFLAGS=' '
180 DBUS_LIBS=' '
181 --with-rootprefix=
182 --docdir=/usr/share/doc/${PF}
183 --libdir=/usr/$(get_libdir)
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
190 # Only build libudev for non-native_abi, and only install it to libdir,
191 # that means all options only apply to native_abi
192 if multilib_build_binaries; then econf_args+=(
193 --with-rootlibdir=/$(get_libdir)
194 $(use_enable doc gtk-doc)
195 $(use_enable gudev)
196 $(use_enable introspection)
197 $(use_enable keymap)
198 $(use_enable kmod libkmod)
199 $(usex kmod --enable-modules $(use_enable modutils modules))
200 $(use_enable static-libs static)
201 $(use_enable selinux)
202 $(use_enable rule-generator)
203 )
204 else econf_args+=(
205 $(echo --disable-{gtk-doc,gudev,introspection,keymap,libkmod,modules,static,selinux,rule-generator})
206 )
207 fi
208 ECONF_SOURCE="${S}" econf "${econf_args[@]}"
209 }
210
211 multilib_src_compile()
212 {
213 if ! multilib_build_binaries; then
214 cd src/libudev || die "Could not change directory"
215 fi
216 emake
217 }
218
219 multilib_src_install()
220 {
221 if ! multilib_build_binaries; then
222 cd src/libudev || die "Could not change directory"
223 fi
224 emake DESTDIR="${D}" install
225 }
226
227 multilib_src_test()
228 {
229 # make sandbox get out of the way
230 # these are safe because there is a fake root filesystem put in place,
231 # but sandbox seems to evaluate the paths of the test i/o instead of the
232 # paths of the actual i/o that results.
233 # also only test for native abi
234 if multilib_build_binaries; then
235 addread /sys
236 addwrite /dev
237 addwrite /run
238 default_src_test
239 fi
240 }
241
242 # disable header checks because we only install libudev headers for non-native abi
243 multilib_check_headers()
244 {
245 :
246 }
247
248 multilib_src_install_all()
249 {
250 prune_libtool_files --all
251 rm -rf "${ED}"/usr/share/doc/${PF}/LICENSE.*
252
253 use rule-generator && use openrc && doinitd "${FILESDIR}"/udev-postmount
254
255 # drop distributed hwdb files, they override sys-apps/hwids
256 rm -f "${ED}"/etc/udev/hwdb.d/*.hwdb
257
258 insinto /lib/udev/rules.d
259 doins "${FILESDIR}"/40-gentoo.rules
260 }
261
262 pkg_preinst()
263 {
264 local htmldir
265 for htmldir in gudev libudev; do
266 if [[ -d ${EROOT}usr/share/gtk-doc/html/${htmldir} ]]
267 then
268 rm -rf "${EROOT}"usr/share/gtk-doc/html/${htmldir}
269 fi
270 if [[ -d ${ED}/usr/share/doc/${PF}/html/${htmldir} ]]
271 then
272 dosym ../../doc/${PF}/html/${htmldir} \
273 /usr/share/gtk-doc/html/${htmldir}
274 fi
275 done
276 }
277
278 pkg_postinst()
279 {
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 ]]
286 then
287 ewarn "Please make sure you remove /dev/loop, else losetup"
288 ewarn "may be confused when looking for unused devices."
289 fi
290
291 # 64-device-mapper.rules now gets installed by sys-fs/device-mapper
292 # remove it if user don't has sys-fs/device-mapper installed, 27 Jun 2007
293 if [[ -f ${EROOT}etc/udev/rules.d/64-device-mapper.rules ]] &&
294 ! has_version sys-fs/device-mapper
295 then
296 rm -f "${EROOT}"etc/udev/rules.d/64-device-mapper.rules
297 einfo "Removed unneeded file 64-device-mapper.rules"
298 fi
299
300 if use hwdb && has_version 'sys-apps/hwids[udev]'; then
301 udevadm hwdb --update --root="${ROOT%/}"
302
303 # http://cgit.freedesktop.org/systemd/systemd/commit/?id=1fab57c209035f7e66198343074e9cee06718bda
304 # reload database after it has be rebuilt, but only if we are not upgrading
305 # also pass if we are -9999 since who knows what hwdb related changes there might be
306 if [[ ${REPLACING_VERSIONS%-r*} == ${PV} || -z ${REPLACING_VERSIONS} ]] && \
307 [[ ${ROOT%/} == "" ]] && [[ ${PV} != "9999" ]]; then
308 udevadm control --reload
309 fi
310 fi
311
312 ewarn
313 ewarn "You need to restart eudev as soon as possible to make the"
314 ewarn "upgrade go into effect:"
315 ewarn "\t/etc/init.d/udev --nodeps restart"
316
317 if use rule-generator && use openrc; 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 }