Gentoo Archives: gentoo-dev

From: Donnie Berkholz <dberkholz@g.o>
To: gentoo-dev@l.g.o
Cc: zzam@g.o
Subject: [gentoo-dev] Re: [gentoo-commits] gentoo-x86 commit in sys-fs/udev: ChangeLog udev-115-r6.ebuild
Date: Mon, 24 Sep 2007 20:34:43
Message-Id: 20070924200956.GS22279@supernova
1 On 19:59 Mon 24 Sep , Matthias Schwarzott (zzam) wrote:
2 > zzam 07/09/24 19:59:38
3 >
4 > Modified: ChangeLog
5 > Added: udev-115-r6.ebuild
6 > Log:
7 > Simplified rules a bit. Let user configure max inode nr of /dev, solving bug #193586.
8 > (Portage version: 2.1.3.9)
9
10 > 1.1 sys-fs/udev/udev-115-r6.ebuild
11 >
12 > file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/udev/udev-115-r6.ebuild?rev=1.1&view=markup
13 > plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/udev/udev-115-r6.ebuild?rev=1.1&content-type=text/plain
14
15 > if [[ "${KV_MAJOR}" == 2 ]] && [[ "${KV_MINOR}" == 6 ]] && [[ "${KV_MICRO}" -ge 15 ]]; then
16 > if [[ "$ok" = "0" ]]; then
17 > if [ "${MD5}" != "644e3c77eb866dee4ff8dda2e95cd187" ]
18 > if [[ -f "packages/40-${ARCH}.rules" ]]; then
19 > if [ -h "${ROOT}/etc/hotplug.d/default/udev.hotplug" ]
20 > if [ -h "${ROOT}/etc/hotplug.d/default/05-wait_for_sysfs.hotplug" ]
21 > if [ -h "${ROOT}/etc/hotplug.d/default/10-udev.hotplug" ]
22 > if [ -f "${ROOT}/etc/init.d/coldplug" ]
23 > if [[ ${coldplug_stale} == "1" ]] ; then
24 > if [[ -e "${ROOT}/etc/udev/rules.d/40-scsi-hotplug.rules" ]]
25 > if [[ -d "${ROOT}"/lib/udev/devices ]]; then
26 > if [[ -e "${ROOT}"/etc/udev/rules.d/95-net.rules ]]; then
27 > if [[ -d "${ROOT}"/etc/dev.d ]]; then
28 > if [[ -d "${ROOT}"/etc/dev.d ]]; then
29 > [[ -f "${ROOT}"/etc/udev/rules.d/64-device-mapper.rules ]] &&
30 > if [[ "${ROOT}" == "/" ]] ; then
31 > if [ -r /proc/1/root -a /proc/1/root/ -ef /proc/self/root/ ]; then
32 > if [[ -n $(pidof udevd) ]] ; then
33 > MD5=`md5sum < "${S}/etc/udev/rules.d/50-udev-default.rules"`
34
35 This ebuild has really inconsistent use of tests, quotes in tests, and
36 command substitutions. Being more consistent will increase readability
37 and decrease bugs due to differences between styles. For tests, pick a
38 style [[ ]] or [ ] and stick with it. The [[ ]] one is pretty nice
39 because it generally doesn't require quotes, so the code looks a lot
40 cleaner. For command substitions, prefer $() over ``.
41
42 > newins ${FILESDIR}/blacklist-110 blacklist
43 > doins ${FILESDIR}/pnp-aliases
44
45 Quotes here.
46
47 > emake \
48 > EXTRAS="${extras}" \
49 > libudevdir=${udev_helper_dir} \
50 > CROSS_COMPILE=${mycross} \
51 > OPTFLAGS="" \
52 > ${myconf} || die
53
54 > emake \
55 > DESTDIR="${D}" \
56 > libudevdir=${udev_helper_dir} \
57 > EXTRAS="${extras}" \
58 > ${myconf} \
59 > install || die
60
61 Could use some die messages here.
62
63 Thanks,
64 Donnie
65 --
66 gentoo-dev@g.o mailing list

Replies