[PATCH 3 of 5] patches/uClibc-0.9.30: install_headers build step portable to OSX 10.7
Titus von Boxberg
titus@v9g.de
Sun Aug 21 13:14:00 GMT 2011
# HG changeset patch
# User Titus von Boxberg <titus@v9g.de>
# Date 1313914776 -7200
# Node ID 8107b0e85cd1764f64a3790b7f3e2a0e80a61933
# Parent bd9a1c22c37c77c6563311a6a7e816bef0855382
patches/uClibc-0.9.30: install_headers build step portable to OSX 10.7
Add patch files for uClibc-0.9.30:
extra/scripts/install_headers.sh: find must be called with path.
extra/scripts/unifdef.c: getline is declared in <stdio.h>, use different name.
Signed-off-by: "Titus von Boxberg" <titus@v9g.de>
diff -r bd9a1c22c37c -r 8107b0e85cd1 patches/uClibc/0.9.30/200-getline-already-declared.patch
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/patches/uClibc/0.9.30/200-getline-already-declared.patch Sun Aug 21 10:19:36 2011 +0200
@@ -0,0 +1,29 @@
+--- uClibc-0.9.30.orig/extra/scripts/unifdef.c 2008-04-28 01:10:00.000000000 +0200
++++ uClibc-0.9.30/extra/scripts/unifdef.c 2011-08-21 09:42:21.000000000 +0200
+@@ -206,7 +206,7 @@
+ static void error(const char *);
+ static int findsym(const char *);
+ static void flushline(bool);
+-static Linetype getline(void);
++static Linetype getlinetype(void);
+ static Linetype ifeval(const char **);
+ static void ignoreoff(void);
+ static void ignoreon(void);
+@@ -512,7 +512,7 @@
+
+ for (;;) {
+ linenum++;
+- lineval = getline();
++ lineval = getlinetype();
+ trans_table[ifstate[depth]][lineval]();
+ debug("process %s -> %s depth %d",
+ linetype_name[lineval],
+@@ -526,7 +526,7 @@
+ * help from skipcomment().
+ */
+ static Linetype
+-getline(void)
++getlinetype(void)
+ {
+ const char *cp;
+ int cursym;
diff -r bd9a1c22c37c -r 8107b0e85cd1 patches/uClibc/0.9.30/210-find-portable.patch
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/patches/uClibc/0.9.30/210-find-portable.patch Sun Aug 21 10:19:36 2011 +0200
@@ -0,0 +1,11 @@
+--- uClibc-0.9.30.orig/extra/scripts/install_headers.sh 2008-10-10 15:50:38.000000000 +0200
++++ uClibc-0.9.30/extra/scripts/install_headers.sh 2011-08-21 09:49:03.000000000 +0200
+@@ -33,7 +33,7 @@
+ (
+ # We must cd, or else we'll prepend "$1" to filenames!
+ cd "$1" || exit 1
+-find ! -name '.' -a ! -path '*/.*' | sed -e 's/^\.\///' -e '/^config\//d' \
++find . ! -name '.' -a ! -path '*/.*' | sed -e 's/^\.\///' -e '/^config\//d' \
+ -e '/^config$/d'
+ ) | \
+ (
--
For unsubscribe information see http://sourceware.org/lists.html#faq
More information about the crossgcc
mailing list