xmw 15/07/22 12:48:53
Added: opencascade-6.5.5-deprecated-glx-api.patch
opencascade-6.6.0-deprecated-glx-api.patch
Log:
Version bump and backport mesa fix (bug 533412).
(Portage version: 2.2.20/cvs/Linux x86_64, signed Manifest commit with key
62EEF090)
Revision Changes Path
1.1
sci-libs/opencascade/files/opencascade-6.5.5-deprecated-glx-api.patch
file :
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/opencascade/files/opencascade-6.5.5-deprecated-glx-api.patch?rev=1.1&view=markup
plain:
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/opencascade/files/opencascade-6.5.5-deprecated-glx-api.patch?rev=1.1&content-type=text/plain
Index: opencascade-6.5.5-deprecated-glx-api.patch
===================================================================
--- opencascade-6.5.5/ros/inc/InterfaceGraphic_X11.hxx
+++ opencascade-6.5.5/ros/inc/InterfaceGraphic_X11.hxx
@@ -25,6 +25,7 @@
# include <X11/Xlib.h>
# include <X11/Xutil.h>
# include <X11/Xatom.h>
+#define GLX_GLXEXT_LEGACY
# include <GL/glx.h>
# if defined (sun) || defined (SUNOS) || defined (__alpha) || defined
(DECOSF1) || defined (sgi) || defined (IRIX) || defined (__hpux)|| defined
(HPUX)
--- opencascade-6.5.5/ros/src/InterfaceGraphic/InterfaceGraphic_X11.hxx
+++ opencascade-6.5.5/ros/src/InterfaceGraphic/InterfaceGraphic_X11.hxx
@@ -25,6 +25,7 @@
# include <X11/Xlib.h>
# include <X11/Xutil.h>
# include <X11/Xatom.h>
+#define GLX_GLXEXT_LEGACY
# include <GL/glx.h>
# if defined (sun) || defined (SUNOS) || defined (__alpha) || defined
(DECOSF1) || defined (sgi) || defined (IRIX) || defined (__hpux)|| defined
(HPUX)
--- opencascade-6.5.5/ros/src/OpenGl/OpenGl_Context.cxx
+++ opencascade-6.5.5/ros/src/OpenGl/OpenGl_Context.cxx
@@ -38,6 +38,7 @@
#elif defined(__APPLE__) && !defined(MACOSX_USE_GLX)
#include <dlfcn.h>
#else
+ #define GLX_GLXEXT_LEGACY
#include <GL/glx.h> // glXGetProcAddress()
#endif
1.1
sci-libs/opencascade/files/opencascade-6.6.0-deprecated-glx-api.patch
file :
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/opencascade/files/opencascade-6.6.0-deprecated-glx-api.patch?rev=1.1&view=markup
plain:
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/opencascade/files/opencascade-6.6.0-deprecated-glx-api.patch?rev=1.1&content-type=text/plain
Index: opencascade-6.6.0-deprecated-glx-api.patch
===================================================================
--- opencascade-6.6.0/ros/inc/InterfaceGraphic_X11.hxx
+++ opencascade-6.6.0/ros/inc/InterfaceGraphic_X11.hxx
@@ -25,6 +25,7 @@
# include <X11/Xlib.h>
# include <X11/Xutil.h>
# include <X11/Xatom.h>
+#define GLX_GLXEXT_LEGACY
# include <GL/glx.h>
# if defined (sun) || defined (SUNOS) || defined (__alpha) || defined
(DECOSF1) || defined (sgi) || defined (IRIX) || defined (__hpux)|| defined
(HPUX)
--- opencascade-6.6.0/ros/samples/qt/Common/src/View.cxx
+++ opencascade-6.6.0/ros/samples/qt/Common/src/View.cxx
@@ -25,6 +25,7 @@
#include <Cocoa_Window.hxx>
#else
#include <QX11Info>
+#define GLX_GLXEXT_LEGACY
#include <GL/glx.h>
#include <X11/Xutil.h>
#include <X11/Xatom.h>
--- opencascade-6.6.0/ros/src/InterfaceGraphic/InterfaceGraphic_X11.hxx
+++ opencascade-6.6.0/ros/src/InterfaceGraphic/InterfaceGraphic_X11.hxx
@@ -25,6 +25,7 @@
# include <X11/Xlib.h>
# include <X11/Xutil.h>
# include <X11/Xatom.h>
+#define GLX_GLXEXT_LEGACY
# include <GL/glx.h>
# if defined (sun) || defined (SUNOS) || defined (__alpha) || defined
(DECOSF1) || defined (sgi) || defined (IRIX) || defined (__hpux)|| defined
(HPUX)
--- opencascade-6.6.0/ros/src/OpenGl/OpenGl_Context.cxx
+++ opencascade-6.6.0/ros/src/OpenGl/OpenGl_Context.cxx
@@ -39,6 +39,7 @@
#elif defined(__APPLE__) && !defined(MACOSX_USE_GLX)
#include <dlfcn.h>
#else
+ #define GLX_GLXEXT_LEGACY
#include <GL/glx.h> // glXGetProcAddress()
#endif
--- opencascade-6.6.0/ros/src/Xw/Xw_Window.cxx
+++ opencascade-6.6.0/ros/src/Xw/Xw_Window.cxx
@@ -24,6 +24,7 @@
#include <Aspect_Convert.hxx>
#include <Aspect_WindowDefinitionError.hxx>
+#define GLX_GLXEXT_LEGACY
#include <GL/glx.h>
namespace