* [Buildroot] [PATCH v2 1/1] package/mesa3d: Fix uClibc build with BR2_ENABLE_DEBUG=yes
@ 2014-10-19 18:05 Bernd Kuhls
2014-10-26 13:14 ` Thomas Petazzoni
0 siblings, 1 reply; 2+ messages in thread
From: Bernd Kuhls @ 2014-10-19 18:05 UTC (permalink / raw)
To: buildroot
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
v2: reworked patch to include a configure check (Thomas)
package/mesa3d/mesa3d-0002-execinfo_h.patch | 47 +++++++++++++++++++++++++++
1 file changed, 47 insertions(+)
create mode 100644 package/mesa3d/mesa3d-0002-execinfo_h.patch
diff --git a/package/mesa3d/mesa3d-0002-execinfo_h.patch b/package/mesa3d/mesa3d-0002-execinfo_h.patch
new file mode 100644
index 0000000..dbedfd1
--- /dev/null
+++ b/package/mesa3d/mesa3d-0002-execinfo_h.patch
@@ -0,0 +1,47 @@
+Fixes uclibc build as uclibc does not include backtrace functionality
+
+Patch sent upstream:
+http://lists.freedesktop.org/archives/mesa-dev/2014-October/069506.html
+
+Bugtracker: https://bugs.freedesktop.org/show_bug.cgi?id=85197
+
+Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
+
+diff -uNr Mesa-10.3.1.org/configure.ac Mesa-10.3.1/configure.ac
+--- Mesa-10.3.1.org/configure.ac 2014-10-12 22:42:38.000000000 +0200
++++ Mesa-10.3.1/configure.ac 2014-10-19 19:15:11.000000000 +0200
+@@ -539,6 +539,9 @@
+ dnl See if posix_memalign is available
+ AC_CHECK_FUNC([posix_memalign], [DEFINES="$DEFINES -DHAVE_POSIX_MEMALIGN"])
+
++dnl Check for backtrace support
++AC_CHECK_HEADER([execinfo.h], [DEFINES="$DEFINES -DHAVE_EXECINFO_H"])
++
+ dnl Check for pthreads
+ case "$host_os" in
+ mingw*)
+diff -uNr Mesa-10.3.1.org/src/mapi/glapi/gen/gl_gentable.py Mesa-10.3.1/src/mapi/glapi/gen/gl_gentable.py
+--- Mesa-10.3.1.org/src/mapi/glapi/gen/gl_gentable.py 2014-10-12 22:42:39.000000000 +0200
++++ Mesa-10.3.1/src/mapi/glapi/gen/gl_gentable.py 2014-10-19 19:21:32.913846414 +0200
+@@ -42,7 +42,7 @@
+ #endif
+
+ #if (defined(GLXEXT) && defined(HAVE_BACKTRACE)) \\
+- || (!defined(GLXEXT) && defined(DEBUG) && !defined(_WIN32_WCE) && !defined(__CYGWIN__) && !defined(__MINGW32__) && !defined(__OpenBSD__) && !defined(__NetBSD__) && !defined(__DragonFly__))
++ || (!defined(GLXEXT) && defined(DEBUG) && defined(HAVE_EXECINFO_H) && !defined(_WIN32_WCE) && !defined(__CYGWIN__) && !defined(__MINGW32__) && !defined(__OpenBSD__) && !defined(__NetBSD__) && !defined(__DragonFly__))
+ #define USE_BACKTRACE
+ #endif
+
+diff -uNr Mesa-10.3.1.org/src/mesa/drivers/dri/i915/intel_regions.c Mesa-10.3.1/src/mesa/drivers/dri/i915/intel_regions.c
+--- Mesa-10.3.1.org/src/mesa/drivers/dri/i915/intel_regions.c 2014-05-06 00:45:23.000000000 +0200
++++ Mesa-10.3.1/src/mesa/drivers/dri/i915/intel_regions.c 2014-10-19 19:23:13.833850693 +0200
+@@ -65,7 +65,9 @@
+ #define _DBG(...) {debug_backtrace(); DBG(__VA_ARGS__);}
+
+ /* Backtracing debug support */
++#ifdef HAVE_EXECINFO_H
+ #include <execinfo.h>
++#endif
+
+ static void
+ debug_backtrace(void)
--
1.7.10.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [Buildroot] [PATCH v2 1/1] package/mesa3d: Fix uClibc build with BR2_ENABLE_DEBUG=yes
2014-10-19 18:05 [Buildroot] [PATCH v2 1/1] package/mesa3d: Fix uClibc build with BR2_ENABLE_DEBUG=yes Bernd Kuhls
@ 2014-10-26 13:14 ` Thomas Petazzoni
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2014-10-26 13:14 UTC (permalink / raw)
To: buildroot
Dear Bernd Kuhls,
On Sun, 19 Oct 2014 20:05:22 +0200, Bernd Kuhls wrote:
>
> Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
> ---
> v2: reworked patch to include a configure check (Thomas)
>
> package/mesa3d/mesa3d-0002-execinfo_h.patch | 47 +++++++++++++++++++++++++++
> 1 file changed, 47 insertions(+)
> create mode 100644 package/mesa3d/mesa3d-0002-execinfo_h.patch
Applied, thanks.
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-10-26 13:14 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-19 18:05 [Buildroot] [PATCH v2 1/1] package/mesa3d: Fix uClibc build with BR2_ENABLE_DEBUG=yes Bernd Kuhls
2014-10-26 13:14 ` Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox