Hello community,

here is the log from the commit of package VirtualGL for openSUSE:Factory 
checked in at 2020-06-02 14:41:43
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/VirtualGL (Old)
 and      /work/SRC/openSUSE:Factory/.VirtualGL.new.3606 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "VirtualGL"

Tue Jun  2 14:41:43 2020 rev:12 rq:810751 version:2.6.3

Changes:
--------
--- /work/SRC/openSUSE:Factory/VirtualGL/VirtualGL.changes      2020-02-10 
21:54:14.686218232 +0100
+++ /work/SRC/openSUSE:Factory/.VirtualGL.new.3606/VirtualGL.changes    
2020-06-02 14:42:35.444270876 +0200
@@ -1,0 +2,9 @@
+Mon Jun  1 08:56:08 UTC 2020 - Max Lin <[email protected]>
+
+- Remove conditional of applying glx.patch because we have newer Mesa
+  in Leap 15.2
+- Use upstream patch fix-Mesa-19.3.0-build.patch to replace glx.patch
+  * Add fix-Mesa-19.3.0-build.patch
+  * Remove glx.patch
+
+-------------------------------------------------------------------

Old:
----
  glx.patch

New:
----
  fix-Mesa-19.3.0-build.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ VirtualGL.spec ++++++
--- /var/tmp/diff_new_pack.l4rSSK/_old  2020-06-02 14:42:37.704278019 +0200
+++ /var/tmp/diff_new_pack.l4rSSK/_new  2020-06-02 14:42:37.704278019 +0200
@@ -26,7 +26,7 @@
 Source0:        
https://sourceforge.net/projects/virtualgl/files/%{version}/%{name}-%{version}.tar.gz
 Source1:        baselibs.conf
 Patch1:         VirtualGL-link-libs.patch
-Patch2:         glx.patch
+Patch2:         fix-Mesa-19.3.0-build.patch
 BuildRequires:  Mesa-devel
 BuildRequires:  Mesa-libGLU-devel
 BuildRequires:  cmake
@@ -95,9 +95,7 @@
 %prep
 %setup -q
 %patch1 -p1
-%if %{suse_version} > 1500
 %patch2 -p1
-%endif
 
 # Use /var/lib
 sed -e "s#%{_sysconfdir}/opt#%{_localstatedir}/lib#g" \

++++++ fix-Mesa-19.3.0-build.patch ++++++
>From faedcc1e36b4ed89a325e01822447900840a0b77 Mon Sep 17 00:00:00 2001
From: DRC <[email protected]>
Date: Thu, 13 Feb 2020 19:11:46 -0600
Subject: [PATCH] Faker: Fix build issue w/ Mesa 19.3.0+ headers

Mesa changed the signatures for glXGetTransparentIndexSUN() and
glXQueryGLXPbufferSGIX() to match the official GLX extension specs:
https://www.khronos.org/registry/OpenGL/extensions/SUN/GLX_SUN_get_transparent_index.txt
https://www.khronos.org/registry/OpenGL/extensions/SGIX/GLX_SGIX_pbuffer.txt

Reference:
https://gitlab.freedesktop.org/mesa/mesa/commit/3dd299c3d5b88114894ec30d1fac85fba688201f

Fixes #109
---
 ChangeLog.md         |  2 ++
 server/faker-glx.cpp | 14 +++++++++++++-
 server/faker-sym.h   |  8 +++++++-
 3 files changed, 22 insertions(+), 2 deletions(-)

Index: b/ChangeLog.md
===================================================================
--- a/ChangeLog.md
+++ b/ChangeLog.md
@@ -40,6 +40,8 @@ features are, for the most part, EOL.
 
 6. `vglserver_config` now works properly with FreeBSD systems running GDM v3.
 
+2. VirtualGL can now be built using the GLX headers from Mesa 19.3.0 and later.
+
 
 2.6.2
 =====
Index: b/server/faker-glx.cpp
===================================================================
--- a/server/faker-glx.cpp
+++ b/server/faker-glx.cpp
@@ -1,6 +1,6 @@
 // Copyright (C)2004 Landmark Graphics Corporation
 // Copyright (C)2005, 2006 Sun Microsystems, Inc.
-// Copyright (C)2009, 2011-2019 D. R. Commander
+// Copyright (C)2009, 2011-2020 D. R. Commander
 //
 // This library is free software and may be redistributed and/or modified under
 // the terms of the wxWindows Library License, Version 3.1 or (at your option)
@@ -2192,11 +2192,18 @@ void glXQueryDrawable(Display *dpy, GLXD
        CATCH();
 }
 
+#if defined(GLX_GLXEXT_VERSION) && GLX_GLXEXT_VERSION >= 20190000
+void glXQueryGLXPbufferSGIX(Display *dpy, GLXPbuffer pbuf, int attribute,
+       unsigned int *value)
+#else
 int glXQueryGLXPbufferSGIX(Display *dpy, GLXPbuffer pbuf, int attribute,
        unsigned int *value)
+#endif
 {
        glXQueryDrawable(dpy, pbuf, attribute, value);
+       #if !defined(GLX_GLXEXT_VERSION) || GLX_GLXEXT_VERSION < 20190000
        return 0;
+       #endif
 }
 
 
@@ -2358,8 +2365,13 @@ void glXSwapBuffers(Display *dpy, GLXDra
 
 // Returns the transparent index from the overlay visual on the 2D X server
 
+#if defined(GLX_GLXEXT_VERSION) && GLX_GLXEXT_VERSION >= 20190000
+int glXGetTransparentIndexSUN(Display *dpy, Window overlay, Window underlay,
+       unsigned long *transparentIndex)
+#else
 int glXGetTransparentIndexSUN(Display *dpy, Window overlay, Window underlay,
        long *transparentIndex)
+#endif
 {
        int retval = False;
        XWindowAttributes xwa;
Index: b/server/faker-sym.h
===================================================================
--- a/server/faker-sym.h
+++ b/server/faker-sym.h
@@ -1,6 +1,6 @@
 // Copyright (C)2004 Landmark Graphics Corporation
 // Copyright (C)2005, 2006 Sun Microsystems, Inc.
-// Copyright (C)2009, 2011, 2013-2016, 2018-2019 D. R. Commander
+// Copyright (C)2009, 2011, 2013-2016, 2018-2020 D. R. Commander
 //
 // This library is free software and may be redistributed and/or modified under
 // the terms of the wxWindows Library License, Version 3.1 or (at your option)
@@ -535,8 +535,15 @@ FUNCDEF2(GLXFBConfigSGIX, glXGetFBConfig
 
 // GLX_SUN_get_transparent_index
 
+
+#if defined(GLX_GLXEXT_VERSION) && GLX_GLXEXT_VERSION >= 20190000
+FUNCDEF4(int, glXGetTransparentIndexSUN, Display *, dpy, Window, overlay,
+       Window, underlay, unsigned long *, transparentIndex,
+       glXGetTransparentIndexSUN);
+#else
 FUNCDEF4(int, glXGetTransparentIndexSUN, Display *, dpy, Window, overlay,
        Window, underlay, long *, transparentIndex, glXGetTransparentIndexSUN);
+#endif
 
 
 // GL functions

Reply via email to