From 7f9b77dc465f35a3689036e12d0bf85ed7d81f52 Mon Sep 17 00:00:00 2001 From: Mark H Weaver Date: Sat, 27 Dec 2014 10:01:44 -0500 Subject: gnu: vtk: Fix build with mesa-10. * gnu/packages/patches/vtk-mesa-10.patch: New file. * gnu-system.am (dist_patch_DATA): Add it. * gnu/packages/vtk.scm (vtk): Add patch. Add glu to inputs. --- gnu/packages/patches/vtk-mesa-10.patch | 36 ++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 gnu/packages/patches/vtk-mesa-10.patch (limited to 'gnu/packages/patches') diff --git a/gnu/packages/patches/vtk-mesa-10.patch b/gnu/packages/patches/vtk-mesa-10.patch new file mode 100644 index 0000000000..bc60af68c4 --- /dev/null +++ b/gnu/packages/patches/vtk-mesa-10.patch @@ -0,0 +1,36 @@ +Fix build against new mesa. See: + + https://bugs.freedesktop.org/show_bug.cgi?id=83631 + https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=765938 + +Description: fixes FTBFS against new libjpeg-turbo +Author: Ondřej Surý +Bug-Debian: https://bugs.debian.org/765938 +Reviewed-By: Anton Gladky +Last-Update: 2014-10-22 + +Index: vtk6-6.1.0+dfsg2/Rendering/OpenGL/vtkOpenGL.h +=================================================================== +--- vtk6-6.1.0+dfsg2.orig/Rendering/OpenGL/vtkOpenGL.h ++++ vtk6-6.1.0+dfsg2/Rendering/OpenGL/vtkOpenGL.h +@@ -20,6 +20,7 @@ + + // To prevent gl.h to include glext.h provided by the system + #define GL_GLEXT_LEGACY ++#define GLX_GLEXT_LEGACY + #if defined(__APPLE__) && (defined(VTK_USE_CARBON) || defined(VTK_USE_COCOA)) + # include // Include OpenGL API. + #else +Index: vtk6-6.1.0+dfsg2/Rendering/OpenGL/vtkXOpenGLRenderWindow.cxx +=================================================================== +--- vtk6-6.1.0+dfsg2.orig/Rendering/OpenGL/vtkXOpenGLRenderWindow.cxx ++++ vtk6-6.1.0+dfsg2/Rendering/OpenGL/vtkXOpenGLRenderWindow.cxx +@@ -27,7 +27,7 @@ + + // define GLX_GLXEXT_LEGACY to prevent glx.h to include glxext.h provided by + // the system +-//#define GLX_GLXEXT_LEGACY ++#define GLX_GLXEXT_LEGACY + #include "GL/glx.h" + + #include "vtkgl.h" -- cgit v1.2.3