mesa-7.9: add patch from Khem Raj for successful build with uclibc
authorMartin Jansa <Martin.Jansa@gmail.com>
Mon, 20 Dec 2010 11:52:18 +0000 (12:52 +0100)
committerMartin Jansa <Martin.Jansa@gmail.com>
Mon, 20 Dec 2010 13:45:04 +0000 (14:45 +0100)
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
recipes/mesa/mesa-7.9.inc
recipes/mesa/mesa-7.9/uclibc.patch [new file with mode: 0644]
recipes/mesa/mesa-dri_7.9.bb
recipes/mesa/mesa-xlib_7.9.bb
recipes/mesa/mesa_7.9.bb

index 1dbfa85..96e2a36 100644 (file)
@@ -1,5 +1,6 @@
 SRC_URI = "ftp://ftp.freedesktop.org/pub/mesa/${PV}/MesaLib-${PV}.tar.bz2;name=archive \
            file://glamo.patch \
+           file://uclibc.patch \
           "
 
 DEPENDS += "talloc"
diff --git a/recipes/mesa/mesa-7.9/uclibc.patch b/recipes/mesa/mesa-7.9/uclibc.patch
new file mode 100644 (file)
index 0000000..11cfe2d
--- /dev/null
@@ -0,0 +1,13 @@
+Index: Mesa-7.9/src/mesa/main/imports.c
+===================================================================
+--- Mesa-7.9.orig/src/mesa/main/imports.c
++++ Mesa-7.9/src/mesa/main/imports.c
+@@ -756,7 +756,7 @@ _mesa_strdup( const char *s )
+ float
+ _mesa_strtof( const char *s, char **end )
+ {
+-#if defined(_GNU_SOURCE) && !defined(__CYGWIN__) && !defined(__FreeBSD__)
++#if defined(_GNU_SOURCE) && !defined(__CYGWIN__) && !defined(__FreeBSD__) && !defined(__UCLIBC__)
+    static locale_t loc = NULL;
+    if (!loc) {
+       loc = newlocale(LC_CTYPE_MASK, "C", NULL);
index bd62c98..fb35676 100644 (file)
@@ -1,4 +1,4 @@
 require mesa-common.inc
 require mesa-${PV}.inc
 require mesa-dri.inc
-PR = "${INC_PR}.1"
+PR = "${INC_PR}.2"
index 93bb8cd..bed580c 100644 (file)
@@ -1,4 +1,4 @@
 require mesa-common.inc
 require mesa-${PV}.inc
 require mesa-xlib.inc
-PR = "${INC_PR}.0"
+PR = "${INC_PR}.1"
index 4cb8db7..f5c9a17 100644 (file)
@@ -1,6 +1,6 @@
 # This is a dummy package so OE can use the poky mesa files
 require mesa-dri_${PV}.bb
 
-PR = "${INC_PR}.0"
+PR = "${INC_PR}.1"
 
 EXTRA_OECONF += "--disable-egl"