[pkg-fgfs-crew] Bug#765932: src:simgear: GL_GLEXT_LEGACY is defined but, GLX_GLEXT_LEGACY is not

Ondřej Surý ondrej at debian.org
Sun Oct 19 11:19:08 UTC 2014


Package: src:simgear
Version: 3.0.0-5
Severity: serious
Tags: patch
Justification: FTBFS

Hi,

in simgear/canvas/ShivaVG/src/shDefs.h GL_GLEXT_LEGACY is defined (for
non-Linux, non-MacOX), but GLX_GLEXT_LEGACY is missing and that causes
package to FTBFS on non-Linux platforms with missing GLintptr
declaration, see:

https://buildd.debian.org/status/fetch.php?pkg=simgear&arch=kfreebsd-amd64&ver=3.0.0-5%2Bb1&stamp=1413603273
https://buildd.debian.org/status/fetch.php?pkg=simgear&arch=kfreebsd-i386&ver=3.0.0-5%2Bb1&stamp=1413594763

It should be as simple as doing:

diff --git a/simgear/canvas/ShivaVG/src/shDefs.h b/simgear/canvas/ShivaVG/src/shDefs.h
index d0f3bb8..223122e 100644
--- a/simgear/canvas/ShivaVG/src/shDefs.h
+++ b/simgear/canvas/ShivaVG/src/shDefs.h
@@ -168,6 +168,7 @@ SHfloat getMaxFloat();
     #include <GL/glu.h>
 #else
     #define GL_GLEXT_LEGACY /* don't include glext.h */
+    #define GLX_GLEXT_LEGACY /* don't include glxext.h */
     #include <GL/gl.h>
     #include <GL/glu.h>
     #include <GL/glx.h>

but I haven't tested the patch.

Cheers,
Ondrej
-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.16-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_DK.UTF-8, LC_CTYPE=en_DK.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash



More information about the pkg-fgfs-crew mailing list