From d6b7a9c35175e7baaaacec8b352fe6d597592e45 Mon Sep 17 00:00:00 2001 From: Adam Jackson Date: Nov 17 2009 20:08:38 +0000 Subject: - mesa-7.6-glx13-app-warning.patch: Make the glXCreatePixmap warning a bit more useful. (#529769) --- diff --git a/mesa-7.6-glx13-app-warning.patch b/mesa-7.6-glx13-app-warning.patch new file mode 100644 index 0000000..c23bc0e --- /dev/null +++ b/mesa-7.6-glx13-app-warning.patch @@ -0,0 +1,28 @@ +diff -up mesa-20091030/src/glx/x11/glx_pbuffer.c.jx mesa-20091030/src/glx/x11/glx_pbuffer.c +--- mesa-20091030/src/glx/x11/glx_pbuffer.c.jx 2009-10-29 21:12:50.000000000 -0400 ++++ mesa-20091030/src/glx/x11/glx_pbuffer.c 2009-11-17 14:56:07.000000000 -0500 +@@ -35,6 +35,8 @@ + #include + #include + #include ++#include ++#include + #include "glapi.h" + #include "glxextensions.h" + #include "glcontextmodes.h" +@@ -56,10 +58,13 @@ warn_GLX_1_3(Display *dpy, const char *f + __GLXdisplayPrivate *priv = __glXInitialize(dpy); + + if (priv->minorVersion < 3) { ++ char buf[PATH_MAX]; ++ if (readlink("/proc/self/exe", buf, PATH_MAX) == -1) ++ buf[0] = '\0'; + fprintf(stderr, +- "WARNING: Application calling GLX 1.3 function \"%s\" " ++ "WARNING: Application %s calling GLX 1.3 function \"%s\" " + "when GLX 1.3 is not supported! This is an application bug!\n", +- function_name); ++ buf, function_name); + } + } + diff --git a/mesa.spec b/mesa.spec index a3edafd..3b14cd5 100644 --- a/mesa.spec +++ b/mesa.spec @@ -21,7 +21,7 @@ Summary: Mesa graphics libraries Name: mesa Version: 7.6 -Release: 0.14%{?dist} +Release: 0.15%{?dist} License: MIT Group: System Environment/Libraries URL: http://www.mesa3d.org @@ -48,6 +48,7 @@ Patch10: r600-fix-tfp.patch Patch13: mesa-7.5-sparc64.patch Patch30: mesa-7.6-hush-vblank-warning.patch +Patch31: mesa-7.6-glx13-app-warning.patch BuildRequires: pkgconfig autoconf automake %if %{with_hardware} @@ -181,6 +182,7 @@ This package provides some demo applications for testing Mesa. %patch10 -p1 -b .r600_tfp %patch13 -p1 -b .sparc64 %patch30 -p1 -b .vblank-warning +%patch31 -p1 -b .glx13-warning # Hack the demos to use installed data files sed -i 's,../images,%{_libdir}/mesa,' progs/demos/*.c @@ -387,6 +389,10 @@ rm -rf $RPM_BUILD_ROOT %{demodir} %changelog +* Tue Nov 17 2009 Adam Jackson 7.6-0.15 +- mesa-7.6-glx13-app-warning.patch: Make the glXCreatePixmap warning a bit + more useful. (#529769) + * Thu Nov 05 2009 Dave Airlie 7.6-0.14 - update to git snapshot - makes gnome-shell on r600 work better