On 10/11/2011 10:08 AM, Stuart Hughes wrote:
>
> On 11/10/11 07:49, Lambrecht Jürgen wrote:
> > On 10/09/2011 02:02 PM, Stuart Hughes wrote:
> >> Hi Jurgen,
> >>
> >> Thanks for the patches, I've uploaded the content to the GPP and 
> updated
> >> CVS.
> >>
> > Stuart, when trying to unpack busybox (for bug in udhcpc), I got an md5
> > checksum error on the patch when downloading it from the GPP.
> > In attachment the md5 checksum that works for me.
> >
> > Regards,
> > Jürgen
> >
> > P.S.: soon a second busybox patch
> >
> > [snip]
>
[snip]
In attach an update of the busybox 1.19.2 spec to fix a dhcp client bug 
(cf busybox mailing list).

Regards,
Jürgen

Index: busybox-1.19.2.spec
===================================================================
RCS file: /sources/ltib/ltib/dist/lfs-5.1/busybox/busybox-1.19.2.spec,v
retrieving revision 1.1
diff -U 3 -r1.1 busybox-1.19.2.spec
--- busybox-1.19.2.spec	9 Oct 2011 12:00:56 -0000	1.1
+++ busybox-1.19.2.spec	11 Oct 2011 13:42:43 -0000
@@ -11,6 +11,7 @@
 Group           : System Environment/Shells
 Source          : %{name}-%{version}.tar.bz2
 Patch1          : busybox-1.19.2-ubi-user-h.patch
+Patch2          : busybox-1.19.2-dhcpc-fix-found-opts.patch
 BuildRoot       : %{_tmppath}/%{name}
 Prefix          : %{pfx}
 
@@ -20,7 +21,7 @@
 %Prep
 %setup
 %patch1 -p1
-
+%patch2 -p1
 
 %Build
 PKG_BUSYBOX_PRECONFIG=${PKG_BUSYBOX_PRECONFIG:-busybox.config}
e617c733f23ae07389171085b3fc0aaf  busybox-1.19.2-dhcpc-fix-found-opts.patch
diff --exclude CVS --exclude .git -uNr busybox-1.19.2/networking/udhcp/dhcpc.c busybox-1.19.2.modified/networking/udhcp/dhcpc.c
--- busybox-1.19.2/networking/udhcp/dhcpc.c	2011-08-22 04:57:50.000000000 +0200
+++ busybox-1.19.2.modified/networking/udhcp/dhcpc.c	2011-10-11 09:42:04.030686000 +0200
@@ -295,8 +295,8 @@
 	uint8_t overload = 0;
 
 #define BITMAP unsigned
-#define BBITS (sizeof(BITMAP) * 8)
-#define BMASK(i) (1 << (i & (sizeof(BITMAP) * 8 - 1)))
+#define BBITS (sizeof(BITMAP)) /* no of bits of basic variable of array */
+#define BMASK(i) (1 << (i & (sizeof(BITMAP) - 1)))
 #define FOUND_OPTS(i) (found_opts[(unsigned)i / BBITS])
 	BITMAP found_opts[256 / BBITS];
 
_______________________________________________
LTIB home page: http://ltib.org

Ltib mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/ltib

Reply via email to