public inbox for crossgcc@sourceware.org
 help / color / mirror / Atom feed
From: Titus von Boxberg <titus@v9g.de>
To: crossgcc@sourceware.org
Cc: yann.morin.1998@anciens.enib.fr
Subject: [PATCH 3 of 6] libc/uClibc: portability fixes to install_headers
Date: Mon, 22 Aug 2011 07:49:00 -0000	[thread overview]
Message-ID: <970b50d32f41ba8885c1.1313999265@mikulin.boxberg.lan> (raw)
In-Reply-To: <patchbomb.1313999262@mikulin.boxberg.lan>

# HG changeset patch
# User Titus von Boxberg <titus@v9g.de>
# Date 1313998699 -7200
# Node ID 970b50d32f41ba8885c196f7566de4ed9ba0ee37
# Parent  f9bee81aabe252b001ff70d40c0c061811011c05
libc/uClibc: portability fixes to install_headers

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.

Reported-by: "Guylhem Aznar" <crossgcc@guylhem.net>
Reported-by: "Titus von Boxberg" <titus@v9g.de>
Signed-off-by: "Titus von Boxberg" <titus@v9g.de>

diff -r f9bee81aabe2 -r 970b50d32f41 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	Mon Aug 22 09:38:19 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 f9bee81aabe2 -r 970b50d32f41 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	Mon Aug 22 09:38:19 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

  parent reply	other threads:[~2011-08-22  7:49 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-22  7:49 [PATCH 0 of 6] reworked patch series Titus von Boxberg
2011-08-22  7:49 ` [PATCH 1 of 6] configure: fix --with-prog=[...] Titus von Boxberg
2011-08-22  7:49 ` [PATCH 6 of 6] debug/ltrace: Fix HOST_OS and ar Titus von Boxberg
2011-08-22  7:49 ` [PATCH 2 of 6] configure: require libtoolize, create wrapper to it Titus von Boxberg
2011-08-22  7:49 ` [PATCH 5 of 6] debug/gdb: correct compilation error when stpcpy is a define Titus von Boxberg
2011-08-22  7:49 ` Titus von Boxberg [this message]
2011-08-22  7:56 ` [PATCH 4 of 6] docs: Document usage with Xcode 4.1 Titus von Boxberg
2011-08-22 15:26 ` [PATCH 0 of 6] reworked patch series Yann E. MORIN

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=970b50d32f41ba8885c1.1313999265@mikulin.boxberg.lan \
    --to=titus@v9g.de \
    --cc=crossgcc@sourceware.org \
    --cc=yann.morin.1998@anciens.enib.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).