All of lore.kernel.org
 help / color / mirror / Atom feed
* [STABLE][PATCH] uclibc-initial_0.9.30(.1).bb: Fix do_stage for ubuntu karmic
@ 2009-11-01 20:17 Marcin Juszkiewicz
  2009-11-02  9:27 ` Marcin Juszkiewicz
  2009-11-02  9:48 ` Koen Kooi
  0 siblings, 2 replies; 3+ messages in thread
From: Marcin Juszkiewicz @ 2009-11-01 20:17 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Holger Hans Peter Freyther

From: Holger Hans Peter Freyther <zecke@selfish.org>

gcc4.4 and glibc 2.10 complain that getline already has
a different signature. Rename the version in the unidef.c.

Hrw's note: patch is also needed on recent Debian system and is not related to
version of GCC (I have 4.3.x). As stable/2009 uses 0.9.30 by default I patched
that version too.

---
 .../uclibc/uclibc-0.9.30.1/gcc-4.4-fixlet.patch    |   31 ++++++++++++++++++++
 recipes/uclibc/uclibc-0.9.30/gcc-4.4-fixlet.patch  |   31 ++++++++++++++++++++
 recipes/uclibc/uclibc_0.9.30.1.bb                  |    1 +
 recipes/uclibc/uclibc_0.9.30.bb                    |    3 +-
 4 files changed, 65 insertions(+), 1 deletions(-)
 create mode 100644 recipes/uclibc/uclibc-0.9.30.1/gcc-4.4-fixlet.patch
 create mode 100644 recipes/uclibc/uclibc-0.9.30/gcc-4.4-fixlet.patch

diff --git a/recipes/uclibc/uclibc-0.9.30.1/gcc-4.4-fixlet.patch b/recipes/uclibc/uclibc-0.9.30.1/gcc-4.4-fixlet.patch
new file mode 100644
index 0000000..b9ff671
--- /dev/null
+++ b/recipes/uclibc/uclibc-0.9.30.1/gcc-4.4-fixlet.patch
@@ -0,0 +1,31 @@
+Index: uClibc-0.9.30.1/extra/scripts/unifdef.c
+===================================================================
+--- uClibc-0.9.30.1.orig/extra/scripts/unifdef.c	2009-08-09 11:55:23.000000000 +0200
++++ uClibc-0.9.30.1/extra/scripts/unifdef.c	2009-08-09 11:55:46.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         _getline(void);
+ static Linetype         ifeval(const char **);
+ static void             ignoreoff(void);
+ static void             ignoreon(void);
+@@ -512,7 +512,7 @@
+ 
+ 	for (;;) {
+ 		linenum++;
+-		lineval = getline();
++		lineval = _getline();
+ 		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)
++_getline(void)
+ {
+ 	const char *cp;
+ 	int cursym;
diff --git a/recipes/uclibc/uclibc-0.9.30/gcc-4.4-fixlet.patch b/recipes/uclibc/uclibc-0.9.30/gcc-4.4-fixlet.patch
new file mode 100644
index 0000000..b9ff671
--- /dev/null
+++ b/recipes/uclibc/uclibc-0.9.30/gcc-4.4-fixlet.patch
@@ -0,0 +1,31 @@
+Index: uClibc-0.9.30.1/extra/scripts/unifdef.c
+===================================================================
+--- uClibc-0.9.30.1.orig/extra/scripts/unifdef.c	2009-08-09 11:55:23.000000000 +0200
++++ uClibc-0.9.30.1/extra/scripts/unifdef.c	2009-08-09 11:55:46.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         _getline(void);
+ static Linetype         ifeval(const char **);
+ static void             ignoreoff(void);
+ static void             ignoreon(void);
+@@ -512,7 +512,7 @@
+ 
+ 	for (;;) {
+ 		linenum++;
+-		lineval = getline();
++		lineval = _getline();
+ 		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)
++_getline(void)
+ {
+ 	const char *cp;
+ 	int cursym;
diff --git a/recipes/uclibc/uclibc_0.9.30.1.bb b/recipes/uclibc/uclibc_0.9.30.1.bb
index d159ab3..21bfeff 100644
--- a/recipes/uclibc/uclibc_0.9.30.1.bb
+++ b/recipes/uclibc/uclibc_0.9.30.1.bb
@@ -20,6 +20,7 @@ SRC_URI += "file://uClibc.machine file://uClibc.distro \
 	    file://pthread_atfork.patch;patch=1 \
 	    file://uclibc_ldso_use_O0.patch;patch=1 \
 	    file://ldso_use_arm_dl_linux_resolve_in_thumb_mode.patch;patch=1 \
+	    file://gcc-4.4-fixlet.patch;patch=1 \
 	   "
 #recent versions uclibc require real kernel headers
 PACKAGE_ARCH = "${MACHINE_ARCH}"
diff --git a/recipes/uclibc/uclibc_0.9.30.bb b/recipes/uclibc/uclibc_0.9.30.bb
index bbe809f..7f0f2a4 100644
--- a/recipes/uclibc/uclibc_0.9.30.bb
+++ b/recipes/uclibc/uclibc_0.9.30.bb
@@ -7,7 +7,7 @@
 # on whether the base patches apply to the selected (SRCDATE) svn release.
 #
 UCLIBC_BASE ?= "0.9.30"
-PR = "r6"
+PR = "r7"
 DEFAULT_PREFERENCE = "1"
 
 require uclibc.inc
@@ -20,6 +20,7 @@ SRC_URI += "file://uClibc.machine file://uClibc.distro \
 	    file://pthread_atfork.patch;patch=1 \
 	    file://uclibc_ldso_use_O0.patch;patch=1 \
 	    file://ldso_use_arm_dl_linux_resolve_in_thumb_mode.patch;patch=1 \
+	    file://gcc-4.4-fixlet.patch;patch=1 \
 	   "
 #recent versions uclibc require real kernel headers
 PACKAGE_ARCH = "${MACHINE_ARCH}"
-- 
1.6.5






^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [STABLE][PATCH] uclibc-initial_0.9.30(.1).bb: Fix do_stage for ubuntu karmic
  2009-11-01 20:17 [STABLE][PATCH] uclibc-initial_0.9.30(.1).bb: Fix do_stage for ubuntu karmic Marcin Juszkiewicz
@ 2009-11-02  9:27 ` Marcin Juszkiewicz
  2009-11-02  9:48 ` Koen Kooi
  1 sibling, 0 replies; 3+ messages in thread
From: Marcin Juszkiewicz @ 2009-11-02  9:27 UTC (permalink / raw)
  To: openembedded-devel


Just FYI: with this patch my Debian 'sid' machine built uclibc for avr32, 
armv5te, armv7a, i586, 486sx architectures.

Regards, 
-- 
JID:      hrw@jabber.org
Website:  http://marcin.juszkiewicz.com.pl/
LinkedIn: http://www.linkedin.com/in/marcinjuszkiewicz





^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [STABLE][PATCH] uclibc-initial_0.9.30(.1).bb: Fix do_stage for ubuntu karmic
  2009-11-01 20:17 [STABLE][PATCH] uclibc-initial_0.9.30(.1).bb: Fix do_stage for ubuntu karmic Marcin Juszkiewicz
  2009-11-02  9:27 ` Marcin Juszkiewicz
@ 2009-11-02  9:48 ` Koen Kooi
  1 sibling, 0 replies; 3+ messages in thread
From: Koen Kooi @ 2009-11-02  9:48 UTC (permalink / raw)
  To: openembedded-devel

On 01-11-09 21:17, Marcin Juszkiewicz wrote:
> From: Holger Hans Peter Freyther<zecke@selfish.org>
>
> gcc4.4 and glibc 2.10 complain that getline already has
> a different signature. Rename the version in the unidef.c.
>
> Hrw's note: patch is also needed on recent Debian system and is not related to
> version of GCC (I have 4.3.x). As stable/2009 uses 0.9.30 by default I patched
> that version too.

Acked-by: Koen Kooi <koen@openembedded.org>


>
> ---
>   .../uclibc/uclibc-0.9.30.1/gcc-4.4-fixlet.patch    |   31 ++++++++++++++++++++
>   recipes/uclibc/uclibc-0.9.30/gcc-4.4-fixlet.patch  |   31 ++++++++++++++++++++
>   recipes/uclibc/uclibc_0.9.30.1.bb                  |    1 +
>   recipes/uclibc/uclibc_0.9.30.bb                    |    3 +-
>   4 files changed, 65 insertions(+), 1 deletions(-)
>   create mode 100644 recipes/uclibc/uclibc-0.9.30.1/gcc-4.4-fixlet.patch
>   create mode 100644 recipes/uclibc/uclibc-0.9.30/gcc-4.4-fixlet.patch
>
> diff --git a/recipes/uclibc/uclibc-0.9.30.1/gcc-4.4-fixlet.patch b/recipes/uclibc/uclibc-0.9.30.1/gcc-4.4-fixlet.patch
> new file mode 100644
> index 0000000..b9ff671
> --- /dev/null
> +++ b/recipes/uclibc/uclibc-0.9.30.1/gcc-4.4-fixlet.patch
> @@ -0,0 +1,31 @@
> +Index: uClibc-0.9.30.1/extra/scripts/unifdef.c
> +===================================================================
> +--- uClibc-0.9.30.1.orig/extra/scripts/unifdef.c	2009-08-09 11:55:23.000000000 +0200
> ++++ uClibc-0.9.30.1/extra/scripts/unifdef.c	2009-08-09 11:55:46.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         _getline(void);
> + static Linetype         ifeval(const char **);
> + static void             ignoreoff(void);
> + static void             ignoreon(void);
> +@@ -512,7 +512,7 @@
> +
> + 	for (;;) {
> + 		linenum++;
> +-		lineval = getline();
> ++		lineval = _getline();
> + 		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)
> ++_getline(void)
> + {
> + 	const char *cp;
> + 	int cursym;
> diff --git a/recipes/uclibc/uclibc-0.9.30/gcc-4.4-fixlet.patch b/recipes/uclibc/uclibc-0.9.30/gcc-4.4-fixlet.patch
> new file mode 100644
> index 0000000..b9ff671
> --- /dev/null
> +++ b/recipes/uclibc/uclibc-0.9.30/gcc-4.4-fixlet.patch
> @@ -0,0 +1,31 @@
> +Index: uClibc-0.9.30.1/extra/scripts/unifdef.c
> +===================================================================
> +--- uClibc-0.9.30.1.orig/extra/scripts/unifdef.c	2009-08-09 11:55:23.000000000 +0200
> ++++ uClibc-0.9.30.1/extra/scripts/unifdef.c	2009-08-09 11:55:46.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         _getline(void);
> + static Linetype         ifeval(const char **);
> + static void             ignoreoff(void);
> + static void             ignoreon(void);
> +@@ -512,7 +512,7 @@
> +
> + 	for (;;) {
> + 		linenum++;
> +-		lineval = getline();
> ++		lineval = _getline();
> + 		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)
> ++_getline(void)
> + {
> + 	const char *cp;
> + 	int cursym;
> diff --git a/recipes/uclibc/uclibc_0.9.30.1.bb b/recipes/uclibc/uclibc_0.9.30.1.bb
> index d159ab3..21bfeff 100644
> --- a/recipes/uclibc/uclibc_0.9.30.1.bb
> +++ b/recipes/uclibc/uclibc_0.9.30.1.bb
> @@ -20,6 +20,7 @@ SRC_URI += "file://uClibc.machine file://uClibc.distro \
>   	    file://pthread_atfork.patch;patch=1 \
>   	    file://uclibc_ldso_use_O0.patch;patch=1 \
>   	    file://ldso_use_arm_dl_linux_resolve_in_thumb_mode.patch;patch=1 \
> +	    file://gcc-4.4-fixlet.patch;patch=1 \
>   	   "
>   #recent versions uclibc require real kernel headers
>   PACKAGE_ARCH = "${MACHINE_ARCH}"
> diff --git a/recipes/uclibc/uclibc_0.9.30.bb b/recipes/uclibc/uclibc_0.9.30.bb
> index bbe809f..7f0f2a4 100644
> --- a/recipes/uclibc/uclibc_0.9.30.bb
> +++ b/recipes/uclibc/uclibc_0.9.30.bb
> @@ -7,7 +7,7 @@
>   # on whether the base patches apply to the selected (SRCDATE) svn release.
>   #
>   UCLIBC_BASE ?= "0.9.30"
> -PR = "r6"
> +PR = "r7"
>   DEFAULT_PREFERENCE = "1"
>
>   require uclibc.inc
> @@ -20,6 +20,7 @@ SRC_URI += "file://uClibc.machine file://uClibc.distro \
>   	    file://pthread_atfork.patch;patch=1 \
>   	    file://uclibc_ldso_use_O0.patch;patch=1 \
>   	    file://ldso_use_arm_dl_linux_resolve_in_thumb_mode.patch;patch=1 \
> +	    file://gcc-4.4-fixlet.patch;patch=1 \
>   	   "
>   #recent versions uclibc require real kernel headers
>   PACKAGE_ARCH = "${MACHINE_ARCH}"





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-11-02  9:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-01 20:17 [STABLE][PATCH] uclibc-initial_0.9.30(.1).bb: Fix do_stage for ubuntu karmic Marcin Juszkiewicz
2009-11-02  9:27 ` Marcin Juszkiewicz
2009-11-02  9:48 ` Koen Kooi

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.