[pkg-fgfs-crew] Bug#765818: simgear: FTBFS[kfreebsd]: wrong usage of GL/glxext.h

Steven Chamberlain steven at pyro.eu.org
Sat Oct 18 13:50:22 UTC 2014


Package: simgear
Version: 3.0.0-5
Severity: serious
Control: block 754988 by -1

Hi,

Upgrading mesa-common-dev from upstream version 10.2.8 to 10.3.1,
unfortuntaely made simgear FTBFS:
https://buildd.debian.org/status/fetch.php?pkg=simgear&arch=kfreebsd-amd64&ver=3.0.0-5%2Bb1&stamp=1413603273

Normally one includes gl.h first, which in turn includes glext.h, but
specifically on kfreebsd, simgear was preventing that with the
GL_GLEXT_LEGACY flag:

simgear/canvas/ShivaVG/src/shDefs.h:
| #if defined(VG_API_LINUX)
|     #include <GL/gl.h>
|     #include <GL/glu.h>
|     #include <GL/glx.h>
| ...
| #else
|     #define GL_GLEXT_LEGACY /* don't include glext.h */
|     #include <GL/gl.h>
|     #include <GL/glu.h>
|     #include <GL/glx.h>
| #endif

>From Mesa 10.3 there are some glext.h types used in glxext.h;  it
would be necessary to use a new GLX_GLXEXT_LEGACY flag to avoid
inclusion of the latter as well.

But, there is no reason GNU/kFreeBSD can't use VG_API_LINUX, and use
the normal GL API without any _LEGACY flags.

Patch attached!  Thanks.

-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'stable')
Architecture: kfreebsd-amd64 (x86_64)

Kernel: kFreeBSD 9.0-2-amd64-xenhvm-ipsec
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kfreebsd.patch
Type: text/x-diff
Size: 1111 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-fgfs-crew/attachments/20141018/de13085a/attachment.patch>


More information about the pkg-fgfs-crew mailing list