Package: blender
Version: 2.45-5
Severity: normal
Tags: patch
User: [EMAIL PROTECTED]
Usertags: origin-ubuntu hardy ubuntu-patch

In Ubuntu, we've applied the attached patch to achieve the following:

  * Merge from Debian unstable. Remaining Ubuntu changes:
    - Add 30_gameengine-libgl-location-fix.dpatch: use correct libGL SONAME,
      otherwise blender will not start if e.g. libgl1-mesa-dev is missing

We thought you might be interested in doing the same. 

The bug has initially been reported for Ubuntu at
https://launchpad.net/bugs/113897.

I have not checked if Debian is really affected, but it's likely AFAICS.

Please consider applying the patch and forward it upstream, if it makes
sense.

Thank you.
diff -u blender-2.45/debian/patches/series blender-2.45/debian/patches/series
--- blender-2.45/debian/patches/series
+++ blender-2.45/debian/patches/series
@@ -2,6 +2,7 @@
 04_de_po_fix
 10_gnukfreebsd_support
 20_gcc4.3_support
+30_gameengine-libgl-location-fix
 30_fix_CVE-2008-1102
 40_workaround_scons_options_deprecation
 50_debian_build_config
only in patch2:
unchanged:
--- blender-2.45.orig/debian/patches/30_gameengine-libgl-location-fix
+++ blender-2.45/debian/patches/30_gameengine-libgl-location-fix
@@ -0,0 +1,19 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 30_gameengine-libgl-location-fix.dpatch by Lukas Fittl <[EMAIL PROTECTED]>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: No description.
+
[EMAIL PROTECTED]@
+diff -urNad 
blender-2.44~/source/gameengine/Rasterizer/RAS_OpenGLRasterizer/RAS_GLExtensionManager.cpp
 
blender-2.44/source/gameengine/Rasterizer/RAS_OpenGLRasterizer/RAS_GLExtensionManager.cpp
+--- 
blender-2.44~/source/gameengine/Rasterizer/RAS_OpenGLRasterizer/RAS_GLExtensionManager.cpp
 2007-01-23 16:40:35.000000000 +0100
++++ 
blender-2.44/source/gameengine/Rasterizer/RAS_OpenGLRasterizer/RAS_GLExtensionManager.cpp
  2007-07-03 14:06:21.000000000 +0200
+@@ -191,7 +191,7 @@
+       {
+               if (!libGL)
+               {
+-                      libGL = dlopen("libGL.so", RTLD_LAZY|RTLD_GLOBAL);
++                      libGL = dlopen("libGL.so.1", RTLD_LAZY|RTLD_GLOBAL);
+                       if (libGL)
+                               bglGetProcAddress = 
(PFNBGLXGETPROCADDRESSARBPROC) (dlsym(libGL, "glXGetProcAddressARB"));
+                       else

Reply via email to