1 |
zzam 09/06/17 13:52:39 |
2 |
|
3 |
Modified: ChangeLog udev-9999.ebuild |
4 |
Log: |
5 |
Update to level of udev-141-r1. Update for changed configure-script. Patch out gtk-doc stuff, else autotools fail without gtk. Note about needed util-linux for it libblkid. udev no longer installs libvolume_id and vol_id binary. Lift minimal required kernel version to 2.6.25. Disable new udev-extras for now, they need a lot of dependencies. |
6 |
(Portage version: 2.1.6.13/cvs/Linux i686) |
7 |
|
8 |
Revision Changes Path |
9 |
1.471 sys-fs/udev/ChangeLog |
10 |
|
11 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/udev/ChangeLog?rev=1.471&view=markup |
12 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/udev/ChangeLog?rev=1.471&content-type=text/plain |
13 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/udev/ChangeLog?r1=1.470&r2=1.471 |
14 |
|
15 |
Index: ChangeLog |
16 |
=================================================================== |
17 |
RCS file: /var/cvsroot/gentoo-x86/sys-fs/udev/ChangeLog,v |
18 |
retrieving revision 1.470 |
19 |
retrieving revision 1.471 |
20 |
diff -u -r1.470 -r1.471 |
21 |
--- ChangeLog 17 Jun 2009 13:29:39 -0000 1.470 |
22 |
+++ ChangeLog 17 Jun 2009 13:52:39 -0000 1.471 |
23 |
@@ -1,6 +1,13 @@ |
24 |
# ChangeLog for sys-fs/udev |
25 |
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 |
26 |
-# $Header: /var/cvsroot/gentoo-x86/sys-fs/udev/ChangeLog,v 1.470 2009/06/17 13:29:39 jer Exp $ |
27 |
+# $Header: /var/cvsroot/gentoo-x86/sys-fs/udev/ChangeLog,v 1.471 2009/06/17 13:52:39 zzam Exp $ |
28 |
+ |
29 |
+ 17 Jun 2009; Matthias Schwarzott <zzam@g.o> udev-9999.ebuild: |
30 |
+ Update to level of udev-141-r1. Update for changed configure-script. Patch |
31 |
+ out gtk-doc stuff, else autotools fail without gtk. Note about needed |
32 |
+ util-linux for it libblkid. udev no longer installs libvolume_id and |
33 |
+ vol_id binary. Lift minimal required kernel version to 2.6.25. Disable new |
34 |
+ udev-extras for now, they need a lot of dependencies. |
35 |
|
36 |
17 Jun 2009; Jeroen Roovers <jer@g.o> udev-141-r1.ebuild: |
37 |
Stable for HPPA (bug #254616). |
38 |
|
39 |
|
40 |
|
41 |
1.9 sys-fs/udev/udev-9999.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/udev/udev-9999.ebuild?rev=1.9&view=markup |
44 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/udev/udev-9999.ebuild?rev=1.9&content-type=text/plain |
45 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/udev/udev-9999.ebuild?r1=1.8&r2=1.9 |
46 |
|
47 |
Index: udev-9999.ebuild |
48 |
=================================================================== |
49 |
RCS file: /var/cvsroot/gentoo-x86/sys-fs/udev/udev-9999.ebuild,v |
50 |
retrieving revision 1.8 |
51 |
retrieving revision 1.9 |
52 |
diff -u -r1.8 -r1.9 |
53 |
--- udev-9999.ebuild 6 May 2009 23:52:24 -0000 1.8 |
54 |
+++ udev-9999.ebuild 17 Jun 2009 13:52:39 -0000 1.9 |
55 |
@@ -1,6 +1,8 @@ |
56 |
# Copyright 1999-2009 Gentoo Foundation |
57 |
# Distributed under the terms of the GNU General Public License v2 |
58 |
-# $Header: /var/cvsroot/gentoo-x86/sys-fs/udev/udev-9999.ebuild,v 1.8 2009/05/06 23:52:24 vapier Exp $ |
59 |
+# $Header: /var/cvsroot/gentoo-x86/sys-fs/udev/udev-9999.ebuild,v 1.9 2009/06/17 13:52:39 zzam Exp $ |
60 |
+ |
61 |
+EAPI="1" |
62 |
|
63 |
inherit eutils flag-o-matic multilib toolchain-funcs versionator |
64 |
|
65 |
@@ -17,17 +19,20 @@ |
66 |
LICENSE="GPL-2" |
67 |
SLOT="0" |
68 |
KEYWORDS="" |
69 |
-IUSE="selinux" |
70 |
+IUSE="selinux +devfs-compat -doc" |
71 |
|
72 |
COMMON_DEPEND="selinux? ( sys-libs/libselinux )" |
73 |
+# >=sys-apps/util-linux-2.16 should provide libblkid |
74 |
+ |
75 |
+# for compiling the extras udev needs a lot more depends (see README) |
76 |
+ |
77 |
+DEPEND="${COMMON_DEPEND}" |
78 |
|
79 |
if [[ ${PV} == "9999" ]]; then |
80 |
# for documentation processing with xsltproc |
81 |
- DEPEND="${COMMON_DEPEND} |
82 |
+ DEPEND="${DEPEND} |
83 |
app-text/docbook-xsl-stylesheets |
84 |
app-text/docbook-xml-dtd" |
85 |
-else |
86 |
- DEPEND="${COMMON_DEPEND}" |
87 |
fi |
88 |
|
89 |
RDEPEND="${COMMON_DEPEND} |
90 |
@@ -39,7 +44,7 @@ |
91 |
PROVIDE="virtual/dev-manager" |
92 |
|
93 |
pkg_setup() { |
94 |
- udev_helper_dir="/$(get_libdir)/udev" |
95 |
+ udev_libexec_dir="/$(get_libdir)/udev" |
96 |
|
97 |
# comparing kernel version without linux-info.eclass to not pull |
98 |
# virtual/linux-sources |
99 |
@@ -49,7 +54,7 @@ |
100 |
local KV_MINOR=$(get_version_component_range 2 ${KV}) |
101 |
local KV_MICRO=$(get_version_component_range 3 ${KV}) |
102 |
|
103 |
- local KV_min_micro=15 KV_min_micro_reliable=22 |
104 |
+ local KV_min_micro=25 KV_min_micro_reliable=25 |
105 |
KV_min=2.6.${KV_min_micro} |
106 |
KV_min_reliable=2.6.${KV_min_micro_reliable} |
107 |
|
108 |
@@ -76,8 +81,8 @@ |
109 |
fi |
110 |
} |
111 |
|
112 |
-sed_helper_dir() { |
113 |
- sed -e "s#/lib/udev#${udev_helper_dir}#" -i "$@" |
114 |
+sed_libexec_dir() { |
115 |
+ sed -e "s#/lib/udev#${udev_libexec_dir}#" -i "$@" |
116 |
} |
117 |
|
118 |
src_unpack() { |
119 |
@@ -90,6 +95,10 @@ |
120 |
cd "${S}" |
121 |
|
122 |
# patches go here... |
123 |
+ if ! use devfs-compat; then |
124 |
+ # see Bug #269359 |
125 |
+ epatch "${FILESDIR}"/udev-141-remove-devfs-names.diff |
126 |
+ fi |
127 |
|
128 |
# change rules back to group uucp instead of dialout for now |
129 |
sed -e 's/GROUP="dialout"/GROUP="uucp"/' \ |
130 |
@@ -101,7 +110,7 @@ |
131 |
# (more for my own needs than anything else ...) |
132 |
MD5=$(md5sum < "${S}/rules/rules.d/50-udev-default.rules") |
133 |
MD5=${MD5/ -/} |
134 |
- if [[ ${MD5} != 980aeafcd2f2d057945cf3ddf2ae884e ]] |
135 |
+ if [[ ${MD5} != b5c2f014a48a53921de37c4e469aab96 ]] |
136 |
then |
137 |
echo |
138 |
eerror "50-udev-default.rules has been updated, please validate!" |
139 |
@@ -110,14 +119,21 @@ |
140 |
fi |
141 |
fi |
142 |
|
143 |
- sed_helper_dir \ |
144 |
+ sed_libexec_dir \ |
145 |
rules/rules.d/50-udev-default.rules \ |
146 |
+ rules/rules.d/78-sound-card.rules \ |
147 |
extras/rule_generator/write_*_rules \ |
148 |
- udev/udev-util.c \ |
149 |
- udev/udev-rules.c \ |
150 |
- udev/udevd.c || die "sed failed" |
151 |
+ || die "sed failed" |
152 |
|
153 |
if [[ ${PV} == 9999 ]]; then |
154 |
+ if ! use doc; then |
155 |
+ sed -e '/docs\/Makefile/d' \ |
156 |
+ -e '/GTK_DOC_CHECK/d' \ |
157 |
+ -i.orig configure.ac |
158 |
+ sed -e 's/SUBDIRS =.*/SUBDIRS =/' \ |
159 |
+ -e 's/docs//' \ |
160 |
+ -i.orig libudev/Makefile.am |
161 |
+ fi |
162 |
eautoreconf |
163 |
fi |
164 |
} |
165 |
@@ -128,10 +144,13 @@ |
166 |
econf \ |
167 |
--prefix=/usr \ |
168 |
--sysconfdir=/etc \ |
169 |
- --exec-prefix= \ |
170 |
- --with-libdir-name=$(get_libdir) \ |
171 |
+ --sbindir=/sbin \ |
172 |
+ --libdir=/usr/$(get_libdir) \ |
173 |
+ --with-rootlibdir=/$(get_libdir) \ |
174 |
+ --libexecdir="${udev_libexec_dir}" \ |
175 |
--enable-logging \ |
176 |
- $(use_with selinux) |
177 |
+ $(use_with selinux) \ |
178 |
+ --disable-extras |
179 |
|
180 |
emake || die "compiling udev failed" |
181 |
} |
182 |
@@ -149,7 +168,7 @@ |
183 |
rmdir "${D}"/lib |
184 |
fi |
185 |
|
186 |
- exeinto "${udev_helper_dir}" |
187 |
+ exeinto "${udev_libexec_dir}" |
188 |
newexe "${FILESDIR}"/net-130-r1.sh net.sh || die "net.sh not installed properly" |
189 |
newexe "${FILESDIR}"/move_tmp_persistent_rules-112-r1.sh move_tmp_persistent_rules.sh \ |
190 |
|| die "move_tmp_persistent_rules.sh not installed properly" |
191 |
@@ -161,13 +180,12 @@ |
192 |
doexe "${scriptdir}"/shell-compat-addon.sh \ |
193 |
|| die "shell-compat.sh not installed properly" |
194 |
|
195 |
- keepdir "${udev_helper_dir}"/state |
196 |
- keepdir "${udev_helper_dir}"/devices |
197 |
+ keepdir "${udev_libexec_dir}"/state |
198 |
+ keepdir "${udev_libexec_dir}"/devices |
199 |
|
200 |
# create symlinks for these utilities to /sbin |
201 |
# where multipath-tools expect them to be (Bug #168588) |
202 |
- dosym "..${udev_helper_dir}/vol_id" /sbin/vol_id |
203 |
- dosym "..${udev_helper_dir}/scsi_id" /sbin/scsi_id |
204 |
+ dosym "..${udev_libexec_dir}/scsi_id" /sbin/scsi_id |
205 |
|
206 |
# Add gentoo stuff to udev.conf |
207 |
echo "# If you need to change mount-options, do it in /etc/fstab" \ |
208 |
@@ -178,7 +196,7 @@ |
209 |
|
210 |
# Now installing rules |
211 |
cd "${S}"/rules |
212 |
- insinto "${udev_helper_dir}"/rules.d/ |
213 |
+ insinto "${udev_libexec_dir}"/rules.d/ |
214 |
|
215 |
# Our rules files |
216 |
doins gentoo/??-*.rules |
217 |
@@ -220,8 +238,10 @@ |
218 |
newins "${FILESDIR}"/pnp-aliases pnp-aliases.conf |
219 |
|
220 |
# convert /lib/udev to real used dir |
221 |
- sed_helper_dir \ |
222 |
+ sed_libexec_dir \ |
223 |
"${D}/$(get_libdir)"/rcscripts/addons/*.sh \ |
224 |
+ "${D}/${udev_libexec_dir}"/write_root_link_rule \ |
225 |
+ "${D}"/etc/conf.d/udev \ |
226 |
"${D}"/etc/init.d/udev* \ |
227 |
"${D}"/etc/modprobe.d/* |
228 |
|
229 |
@@ -231,16 +251,22 @@ |
230 |
cd docs/writing_udev_rules |
231 |
mv index.html writing_udev_rules.html |
232 |
dohtml *.html |
233 |
- |
234 |
cd "${S}" |
235 |
|
236 |
- newdoc extras/volume_id/README README_volume_id |
237 |
- |
238 |
echo "CONFIG_PROTECT_MASK=\"/etc/udev/rules.d\"" > 20udev |
239 |
doenvd 20udev |
240 |
} |
241 |
|
242 |
pkg_preinst() { |
243 |
+ local f dir=${ROOT}/etc/modprobe.d/ |
244 |
+ for f in pnp-aliases blacklist; do |
245 |
+ if [[ -f $dir/$f && ! -f $dir/$f.conf ]] |
246 |
+ then |
247 |
+ elog "Moving $dir/$f to $f.conf" |
248 |
+ mv -f "$dir/$f" "$dir/$f.conf" |
249 |
+ fi |
250 |
+ done |
251 |
+ |
252 |
if [[ -d ${ROOT}/lib/udev-state ]] |
253 |
then |
254 |
mv -f "${ROOT}"/lib/udev-state/* "${D}"/lib/udev/state/ |
255 |
@@ -430,6 +456,17 @@ |
256 |
ewarn "set in /etc/udev/udev.conf, but in /etc/fstab" |
257 |
ewarn "as for other directories." |
258 |
|
259 |
+ if use devfs-compat; then |
260 |
+ ewarn |
261 |
+ ewarn "You have devfs-compat use flag enabled." |
262 |
+ ewarn "This enables devfs compatible device names." |
263 |
+ ewarn "If you use /dev/md/*, /dev/loop/* or /dev/rd/*," |
264 |
+ ewarn "then please migrate over to using the device names" |
265 |
+ ewarn "/dev/md*, /dev/loop* and /dev/ram*." |
266 |
+ ewarn "The devfs-compat rules will be removed in the future." |
267 |
+ ewarn "For reference see Bug #269359." |
268 |
+ fi |
269 |
+ |
270 |
elog |
271 |
elog "For more information on udev on Gentoo, writing udev rules, and" |
272 |
elog " fixing known issues visit:" |