diff options
-rw-r--r-- | meta/recipes-graphics/mesa/mesa-dri/uclibc.patch | 40 | ||||
-rw-r--r-- | meta/recipes-graphics/mesa/mesa-dri_7.10.2.bb | 6 | ||||
-rw-r--r-- | meta/recipes-graphics/mesa/mesa-xlib_7.10.2.bb | 5 |
3 files changed, 48 insertions, 3 deletions
diff --git a/meta/recipes-graphics/mesa/mesa-dri/uclibc.patch b/meta/recipes-graphics/mesa/mesa-dri/uclibc.patch new file mode 100644 index 0000000000..bb5af44a36 --- /dev/null +++ b/meta/recipes-graphics/mesa/mesa-dri/uclibc.patch | |||
@@ -0,0 +1,40 @@ | |||
1 | Index: Mesa-7.10.2/src/mesa/main/imports.c | ||
2 | =================================================================== | ||
3 | --- Mesa-7.10.2.orig/src/mesa/main/imports.c 2011-03-01 12:57:29.000000000 -0800 | ||
4 | +++ Mesa-7.10.2/src/mesa/main/imports.c 2011-07-20 19:08:49.441785510 -0700 | ||
5 | @@ -757,7 +757,7 @@ | ||
6 | float | ||
7 | _mesa_strtof( const char *s, char **end ) | ||
8 | { | ||
9 | -#if defined(_GNU_SOURCE) && !defined(__CYGWIN__) && !defined(__FreeBSD__) | ||
10 | +#if defined(_GNU_SOURCE) && !defined(__CYGWIN__) && !defined(__FreeBSD__) && defined (HAVE_NEWLOCALE) | ||
11 | static locale_t loc = NULL; | ||
12 | if (!loc) { | ||
13 | loc = newlocale(LC_CTYPE_MASK, "C", NULL); | ||
14 | Index: Mesa-7.10.2/src/glsl/strtod.c | ||
15 | =================================================================== | ||
16 | --- Mesa-7.10.2.orig/src/glsl/strtod.c 2011-01-03 16:45:51.000000000 -0800 | ||
17 | +++ Mesa-7.10.2/src/glsl/strtod.c 2011-07-20 19:10:21.441785488 -0700 | ||
18 | @@ -44,7 +44,7 @@ | ||
19 | double | ||
20 | glsl_strtod(const char *s, char **end) | ||
21 | { | ||
22 | -#if defined(_GNU_SOURCE) && !defined(__CYGWIN__) && !defined(__FreeBSD__) | ||
23 | +#if defined(_GNU_SOURCE) && !defined(__CYGWIN__) && !defined(__FreeBSD__) && defined (HAVE_NEWLOCALE) | ||
24 | static locale_t loc = NULL; | ||
25 | if (!loc) { | ||
26 | loc = newlocale(LC_CTYPE_MASK, "C", NULL); | ||
27 | Index: Mesa-7.10.2/configure.ac | ||
28 | =================================================================== | ||
29 | --- Mesa-7.10.2.orig/configure.ac 2011-07-20 19:09:02.000000000 -0700 | ||
30 | +++ Mesa-7.10.2/configure.ac 2011-07-20 19:09:57.121785492 -0700 | ||
31 | @@ -450,6 +450,9 @@ | ||
32 | dnl See if posix_memalign is available | ||
33 | AC_CHECK_FUNC([posix_memalign], [DEFINES="$DEFINES -DHAVE_POSIX_MEMALIGN"]) | ||
34 | |||
35 | +dnl See if newlocale is available | ||
36 | +AC_CHECK_FUNCS_ONCE(newlocale) | ||
37 | + | ||
38 | dnl SELinux awareness. | ||
39 | AC_ARG_ENABLE([selinux], | ||
40 | [AS_HELP_STRING([--enable-selinux], | ||
diff --git a/meta/recipes-graphics/mesa/mesa-dri_7.10.2.bb b/meta/recipes-graphics/mesa/mesa-dri_7.10.2.bb index c7bd974152..aac7a1c30e 100644 --- a/meta/recipes-graphics/mesa/mesa-dri_7.10.2.bb +++ b/meta/recipes-graphics/mesa/mesa-dri_7.10.2.bb | |||
@@ -8,10 +8,12 @@ LIB_DEPS = "libdrm virtual/libx11 libxext libxxf86vm libxdamage libxfixes expat | |||
8 | 8 | ||
9 | DEPENDS = "${PROTO_DEPS} ${LIB_DEPS} makedepend-native python-native" | 9 | DEPENDS = "${PROTO_DEPS} ${LIB_DEPS} makedepend-native python-native" |
10 | 10 | ||
11 | PR = "r0" | 11 | PR = "r1" |
12 | 12 | ||
13 | SRC_URI = "ftp://ftp.freedesktop.org/pub/mesa/${PV}/MesaLib-${PV}.tar.bz2 \ | 13 | SRC_URI = "ftp://ftp.freedesktop.org/pub/mesa/${PV}/MesaLib-${PV}.tar.bz2 \ |
14 | file://crossfix.patch" | 14 | file://crossfix.patch \ |
15 | file://uclibc.patch \ | ||
16 | " | ||
15 | 17 | ||
16 | SRC_URI[md5sum] = "f5de82852f1243f42cc004039e10b771" | 18 | SRC_URI[md5sum] = "f5de82852f1243f42cc004039e10b771" |
17 | SRC_URI[sha256sum] = "8ced2678ce11cf30804694a92ea3ca6b82f158ae8995bdc626c7e85aac71c7c1" | 19 | SRC_URI[sha256sum] = "8ced2678ce11cf30804694a92ea3ca6b82f158ae8995bdc626c7e85aac71c7c1" |
diff --git a/meta/recipes-graphics/mesa/mesa-xlib_7.10.2.bb b/meta/recipes-graphics/mesa/mesa-xlib_7.10.2.bb index b77df2c666..511103da39 100644 --- a/meta/recipes-graphics/mesa/mesa-xlib_7.10.2.bb +++ b/meta/recipes-graphics/mesa/mesa-xlib_7.10.2.bb | |||
@@ -1,6 +1,9 @@ | |||
1 | include mesa-common.inc | 1 | include mesa-common.inc |
2 | 2 | ||
3 | FILESPATH =. "${FILE_DIRNAME}/mesa-dri:" | ||
4 | |||
3 | SRC_URI = "ftp://ftp.freedesktop.org/pub/mesa/${PV}/MesaLib-${PV}.tar.bz2 \ | 5 | SRC_URI = "ftp://ftp.freedesktop.org/pub/mesa/${PV}/MesaLib-${PV}.tar.bz2 \ |
6 | file://uclibc.patch \ | ||
4 | " | 7 | " |
5 | 8 | ||
6 | SRC_URI[md5sum] = "f5de82852f1243f42cc004039e10b771" | 9 | SRC_URI[md5sum] = "f5de82852f1243f42cc004039e10b771" |
@@ -14,6 +17,6 @@ LIB_DEPS = "virtual/libx11 libxext libxxf86vm libxdamage libxfixes libxml2-nativ | |||
14 | DEPENDS = "${PROTO_DEPS} ${LIB_DEPS} makedepend-native" | 17 | DEPENDS = "${PROTO_DEPS} ${LIB_DEPS} makedepend-native" |
15 | 18 | ||
16 | PE = "1" | 19 | PE = "1" |
17 | PR = "r0" | 20 | PR = "r1" |
18 | 21 | ||
19 | EXTRA_OECONF += "--with-driver=xlib" | 22 | EXTRA_OECONF += "--with-driver=xlib" |