From: Peter Korsgaard <jacmet@uclibc.org>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 1/5] mesa3d: fix build failure bug #3313
Date: Wed, 16 Mar 2011 17:40:21 +0100 [thread overview]
Message-ID: <87ei67m32i.fsf@macbook.be.48ers.dk> (raw)
In-Reply-To: <1299764675-23308-1-git-send-email-gustavo@zacarias.com.ar> (Gustavo Zacarias's message of "Thu, 10 Mar 2011 10:44:31 -0300")
>>>>> "Gustavo" == Gustavo Zacarias <gustavo@zacarias.com.ar> writes:
Gustavo> Add patch to fix the build failure as reported in bug #3313
Gustavo> Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Gustavo> ---
Gustavo> package/x11r7/mesa3d/mesa3d-uclibc.patch | 12 ++++++++++++
Gustavo> 1 files changed, 12 insertions(+), 0 deletions(-)
Gustavo> create mode 100644 package/x11r7/mesa3d/mesa3d-uclibc.patch
Gustavo> diff --git a/package/x11r7/mesa3d/mesa3d-uclibc.patch b/package/x11r7/mesa3d/mesa3d-uclibc.patch
Gustavo> new file mode 100644
Gustavo> index 0000000..37f620b
Gustavo> --- /dev/null
Gustavo> +++ b/package/x11r7/mesa3d/mesa3d-uclibc.patch
Gustavo> @@ -0,0 +1,12 @@
Gustavo> +diff -Nura Mesa-7.6.1/src/mesa/main/imports.c Mesa-7.6.1.uclibc/src/mesa/main/imports.c
Gustavo> +--- Mesa-7.6.1/src/mesa/main/imports.c 2009-12-21 23:08:13.000000000 -0300
Gustavo> ++++ Mesa-7.6.1.uclibc/src/mesa/main/imports.c 2011-03-02 15:09:56.342618892 -0300
Gustavo> +@@ -915,7 +915,7 @@
Gustavo> + double
Gustavo> + _mesa_strtod( const char *s, char **end )
Gustavo> + {
Gustavo> +-#ifdef _GNU_SOURCE
Gustavo> ++#if defined(_GNU_SOURCE) && !defined(__UCLIBC__)
Gustavo> + static locale_t loc = NULL;
Gustavo> + if (!loc) {
Gustavo> + loc = newlocale(LC_CTYPE_MASK, "C", NULL);
Hmm, that looks wrong - uClibc has newlocale() if you have locale
support enabled, so I guess you'll need something like:
#ifdef _GNU_SOURCE
#if !defined(__UCLIBC__) || defined(__UCLIBC_HAS_LOCALE__)
..
--
Bye, Peter Korsgaard
prev parent reply other threads:[~2011-03-16 16:40 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-10 13:44 [Buildroot] [PATCH 1/5] mesa3d: fix build failure bug #3313 Gustavo Zacarias
2011-03-10 13:44 ` [Buildroot] [PATCH 2/5] xterm: fix dependencies and bump to version 267 Gustavo Zacarias
2011-03-14 21:42 ` Peter Korsgaard
2011-03-10 13:44 ` [Buildroot] [PATCH 3/5] xf86-video-sis: bump to version 0.10.3 Gustavo Zacarias
2011-03-10 13:44 ` [Buildroot] [PATCH 4/5] webkit: bump to version 1.2.7 Gustavo Zacarias
2011-03-31 13:23 ` Peter Korsgaard
2011-03-31 21:38 ` Sergio Monteiro Basto
2011-03-10 13:44 ` [Buildroot] [PATCH 5/5] midori: bump to version 0.3.2 Gustavo Zacarias
2011-03-31 13:23 ` Peter Korsgaard
2011-03-16 16:40 ` Peter Korsgaard [this message]
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=87ei67m32i.fsf@macbook.be.48ers.dk \
--to=jacmet@uclibc.org \
--cc=buildroot@busybox.net \
/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