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