tinylogin: make it build against uclibc 0.9.29
authorKoen Kooi <koen@openembedded.org>
Sun, 13 May 2007 08:46:41 +0000 (08:46 +0000)
committerKoen Kooi <koen@openembedded.org>
Sun, 13 May 2007 08:46:41 +0000 (08:46 +0000)
* patch based on the buildroot patch for module-init-tools

packages/tinylogin/tinylogin-1.4/remove-index.patch [new file with mode: 0644]
packages/tinylogin/tinylogin_1.4.bb

diff --git a/packages/tinylogin/tinylogin-1.4/remove-index.patch b/packages/tinylogin/tinylogin-1.4/remove-index.patch
new file mode 100644 (file)
index 0000000..fc35002
--- /dev/null
@@ -0,0 +1,11 @@
+--- /tmp/deluser.c     2007-05-13 10:38:19.000000000 +0200
++++ tinylogin-1.4/deluser.c    2007-05-13 10:38:50.185251000 +0200
+@@ -60,7 +60,7 @@
+       }
+       start++;
+-      stop = index(start, '\n');      /* index is a BSD-ism */
++      stop = strchr(start, '\n');     /* index is a BSD-ism, strchr hopefully isn't */
+       b.start = start - buffer;
+       b.stop = stop - buffer;
+       return b;
index 33f1c32..ad254bf 100644 (file)
@@ -5,12 +5,13 @@ changing passwords, and otherwise maintaining users \
 and groups on an embedded system."
 HOMEPAGE = "http://tinylogin.busybox.net/"
 LICENSE = "GPL"
-PR = "r3"
+PR = "r4"
 
 SRC_URI = "http://tinylogin.busybox.net/downloads/tinylogin-${PV}.tar.bz2 \
        file://cvs-20040608.patch;patch=1;pnum=1 \
        file://add-system.patch;patch=1;pnum=1 \
-       file://adduser-empty_pwd.patch;patch=1"
+       file://adduser-empty_pwd.patch;patch=1 \
+       file://remove-index.patch;patch=1"
 
 EXTRA_OEMAKE = ""