ppisar pushed to perl-OpenGL (master). "Do not use functions removed from Mesa"

notifications at fedoraproject.org notifications at fedoraproject.org
Mon Jun 8 15:19:26 UTC 2015


From 7498635332872268a0d4519723b44725e9a496dc Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar at redhat.com>
Date: Mon, 8 Jun 2015 17:18:23 +0200
Subject: Do not use functions removed from Mesa


diff --git a/OpenGL-0.6704-Delete-functions-removed-from-Mesa.patch b/OpenGL-0.6704-Delete-functions-removed-from-Mesa.patch
new file mode 100644
index 0000000..b9006a1
--- /dev/null
+++ b/OpenGL-0.6704-Delete-functions-removed-from-Mesa.patch
@@ -0,0 +1,95 @@
+From e83b9048c43cbcbdaeb287dd571ab7e277e19979 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar at redhat.com>
+Date: Mon, 8 Jun 2015 17:06:52 +0200
+Subject: [PATCH] Delete functions removed from Mesa
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+mesa-libGL between 10.6.0-0.devel.5.51e3453 and
+10.6.0-0.devel.6.5a55f68 removed these functions:
+
+glWindowPos4dMESA
+glWindowPos4iMESA
+glWindowPos3iMESA
+glWindowPos2dMESA
+glWindowPos2iMESA
+glWindowPos3dMESA
+glResizeBuffersMESA
+
+<https://bugzilla.redhat.com/show_bug.cgi?id=1224738>
+<https://bugzilla.redhat.com/show_bug.cgi?id=1224294>
+
+Signed-off-by: Petr Písař <ppisar at redhat.com>
+---
+ pogl_gl_Vert_Multi.xs | 54 ---------------------------------------------------
+ 1 file changed, 54 deletions(-)
+
+diff --git a/pogl_gl_Vert_Multi.xs b/pogl_gl_Vert_Multi.xs
+index e360e5c..4e8a010 100644
+--- a/pogl_gl_Vert_Multi.xs
++++ b/pogl_gl_Vert_Multi.xs
+@@ -359,60 +359,6 @@ glEdgeFlagPointerEXT_oga(oga)
+ #endif
+ 
+ 
+-#ifdef GL_MESA_window_pos
+-
+-#// glWindowPos2iMESA($x, $y);
+-void
+-glWindowPos2iMESA(x, y)
+-	GLint	x
+-	GLint	y
+-
+-#// glWindowPos2dMESA($x, $y);
+-void
+-glWindowPos2dMESA(x, y)
+-	GLdouble	x
+-	GLdouble	y
+-
+-#// glWindowPos3iMESA($x, $y, $z);
+-void
+-glWindowPos3iMESA(x, y, z)
+-	GLint	x
+-	GLint	y
+-	GLint	z
+-
+-#// glWindowPos3dMESA($x, $y, $z);
+-void
+-glWindowPos3dMESA(x, y, z)
+-	GLdouble	x
+-	GLdouble	y
+-	GLdouble	z
+-
+-#// glWindowPos4iMESA($x, $y, $z, $w);
+-void
+-glWindowPos4iMESA(x, y, z, w)
+-	GLint	x
+-	GLint	y
+-	GLint	z
+-	GLint	w
+-
+-#// glWindowPos4dMESA($x, $y, $z, $w);
+-void
+-glWindowPos4dMESA(x, y, z, w)
+-	GLdouble	x
+-	GLdouble	y
+-	GLdouble	z
+-	GLdouble	w
+-
+-#endif
+-
+-#ifdef GL_MESA_resize_buffers
+-
+-#// glResizeBuffersMESA();
+-void
+-glResizeBuffersMESA()
+-
+-#endif
+-
+ #ifdef GL_ARB_draw_buffers
+ 
+ #//# glDrawBuffersARB_c($n,(CPTR)buffers);
+-- 
+2.1.0
+
diff --git a/perl-OpenGL.spec b/perl-OpenGL.spec
index b2ac3e9..4fb7fce 100644
--- a/perl-OpenGL.spec
+++ b/perl-OpenGL.spec
@@ -10,6 +10,8 @@ Patch0:         0001-Don-t-check-current-display-for-extensions.patch
 # Do not require bundled GL/gl.h header file,
 # <https://sourceforge.net/p/pogl/bugs/20/>
 Patch1:         OpenGL-0.6704-Prefer-system-GL-gl.h-on-non-Win32.patch
+# Do not use functions removed from Mesa, bug #1224294
+Patch2:         OpenGL-0.6704-Delete-functions-removed-from-Mesa.patch
 BuildRequires:  coreutils
 BuildRequires:  findutils
 BuildRequires:  freeglut-devel
@@ -46,6 +48,7 @@ of the OpenGL 1.0, and 1.1 functions, and most of 1.2.
 %setup -q -n OpenGL-%{version}
 %patch0 -p1
 %patch1 -p1
+%patch2 -p1
 # Unbundle GL headers
 find include -type f  \! -name glprocs.h -exec rm {} +
 
@@ -85,6 +88,7 @@ make test
 * Mon Jun 08 2015 Petr Pisar <ppisar at redhat.com> - 0.6704-1
 - 0.6704 bump
 - Unbundle GL headers
+- Do not use functions removed from Mesa (bug #1224294)
 
 * Fri Jun 05 2015 Jitka Plesnikova <jplesnik at redhat.com> - 0.6702-5
 - Perl 5.22 rebuild
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/perl-OpenGL.git/commit/?h=master&id=7498635332872268a0d4519723b44725e9a496dc


More information about the perl-devel mailing list