From: Todd Blumer Date: Fri, 7 Jul 2006 14:30:11 +0000 (+0200) Subject: busybox: apply patch to fix "df ". X-Git-Tag: familiar-v0.8.4-rc3~26 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=3ef1fa653ca651b86304a80e54820e8e1b0dcda1;p=familiar-h63xx-build.git busybox: apply patch to fix "df ". Signed-off-by: Rene Wagner --- diff --git a/org.handhelds.familiar/packages/busybox/busybox-1.00/df.patch b/org.handhelds.familiar/packages/busybox/busybox-1.00/df.patch new file mode 100644 index 0000000..5acb28d --- /dev/null +++ b/org.handhelds.familiar/packages/busybox/busybox-1.00/df.patch @@ -0,0 +1,29 @@ +--- busybox-1.00/coreutils/df.c 2004-08-02 20:14:01.000000000 -0400 ++++ busybox-1.00/coreutils/df.c.new 2006-06-29 10:56:43.256528750 -0400 +@@ -117,6 +117,8 @@ + } + + if ((s.f_blocks > 0) || !mount_table){ ++ int root_done = 0; ++ + blocks_used = s.f_blocks - s.f_bfree; + blocks_percent_used = 0; + if (blocks_used + s.f_bavail) { +@@ -125,14 +127,14 @@ + ) / (blocks_used + s.f_bavail); + } + +- if (strcmp(device, "rootfs") == 0) { +- continue; +- } else if (strcmp(device, "/dev/root") == 0) { ++ if (strcmp(device, "/dev/root") == 0 || strcmp(device, "rootfs") == 0) { ++ if (root_done) continue; + /* Adjusts device to be the real root device, + * or leaves device alone if it can't find it */ + if ((device = find_real_root_device_name()) == NULL) { + goto SET_ERROR; + } ++ root_done = 1; + } + + #ifdef CONFIG_FEATURE_HUMAN_READABLE diff --git a/org.handhelds.familiar/packages/busybox/busybox-1.01/df.patch b/org.handhelds.familiar/packages/busybox/busybox-1.01/df.patch new file mode 100644 index 0000000..5acb28d --- /dev/null +++ b/org.handhelds.familiar/packages/busybox/busybox-1.01/df.patch @@ -0,0 +1,29 @@ +--- busybox-1.00/coreutils/df.c 2004-08-02 20:14:01.000000000 -0400 ++++ busybox-1.00/coreutils/df.c.new 2006-06-29 10:56:43.256528750 -0400 +@@ -117,6 +117,8 @@ + } + + if ((s.f_blocks > 0) || !mount_table){ ++ int root_done = 0; ++ + blocks_used = s.f_blocks - s.f_bfree; + blocks_percent_used = 0; + if (blocks_used + s.f_bavail) { +@@ -125,14 +127,14 @@ + ) / (blocks_used + s.f_bavail); + } + +- if (strcmp(device, "rootfs") == 0) { +- continue; +- } else if (strcmp(device, "/dev/root") == 0) { ++ if (strcmp(device, "/dev/root") == 0 || strcmp(device, "rootfs") == 0) { ++ if (root_done) continue; + /* Adjusts device to be the real root device, + * or leaves device alone if it can't find it */ + if ((device = find_real_root_device_name()) == NULL) { + goto SET_ERROR; + } ++ root_done = 1; + } + + #ifdef CONFIG_FEATURE_HUMAN_READABLE diff --git a/org.handhelds.familiar/packages/busybox/busybox_1.00.bb b/org.handhelds.familiar/packages/busybox/busybox_1.00.bb index 447bbad..8659a49 100644 --- a/org.handhelds.familiar/packages/busybox/busybox_1.00.bb +++ b/org.handhelds.familiar/packages/busybox/busybox_1.00.bb @@ -10,7 +10,7 @@ HOMEPAGE = "http://www.busybox.net" LICENSE = "GPL" SECTION = "base" PRIORITY = "required" -PR = "r33" +PR = "r34" SRC_URI = "http://www.busybox.net/downloads/busybox-${PV}.tar.gz \ file://add-getkey-applet.patch;patch=1 \ @@ -22,6 +22,7 @@ SRC_URI = "http://www.busybox.net/downloads/busybox-${PV}.tar.gz \ file://readlink.patch;patch=1 \ file://iproute-flush-cache.patch;patch=1;pnum=0 \ file://rmmod.patch;patch=1 \ + file://df.patch;patch=1 \ file://below.patch;patch=1 \ file://fbset.patch;patch=1 \ file://mount-all-type.patch;patch=1 \ diff --git a/org.handhelds.familiar/packages/busybox/busybox_1.01.bb b/org.handhelds.familiar/packages/busybox/busybox_1.01.bb index edb9fad..62482c6 100644 --- a/org.handhelds.familiar/packages/busybox/busybox_1.01.bb +++ b/org.handhelds.familiar/packages/busybox/busybox_1.01.bb @@ -10,6 +10,7 @@ HOMEPAGE = "http://www.busybox.net" LICENSE = "GPL" SECTION = "base" PRIORITY = "required" +PR = "r1" DEFAULT_PREFERENCE = "-1" DEFAULT_PREFERENCE_nslu2 = "" @@ -28,6 +29,7 @@ SRC_URI = "http://www.busybox.net/downloads/busybox-${PV}.tar.gz \ file://mount-all-type.patch;patch=1 \ file://readlink.patch;patch=1 \ file://rmmod.patch;patch=1 \ + file://df.patch;patch=1 \ file://udhcpscript.patch;patch=1 \ file://defconfig \ file://busybox-cron \