rpms/freeglut/F-13 freeglut-2.6.0-noxwarn.patch, NONE, 1.1 freeglut.spec, 1.15, 1.16

Tomas Smetana tsmetana at fedoraproject.org
Mon May 31 08:57:58 UTC 2010


Author: tsmetana

Update of /cvs/pkgs/rpms/freeglut/F-13
In directory cvs01.phx2.fedoraproject.org:/tmp/cvs-serv5819

Modified Files:
	freeglut.spec 
Added Files:
	freeglut-2.6.0-noxwarn.patch 
Log Message:
* Mon May 31 2010 Tomas Smetana <tsmetana at redhat.com> 2.6.0-5
- fix #575885, #575885 - suppress the "Unknown X event type" warnings


freeglut-2.6.0-noxwarn.patch:
 freeglut_main.c |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

--- NEW FILE freeglut-2.6.0-noxwarn.patch ---
diff -up freeglut-2.6.0/src/freeglut_main.c.noxwarn freeglut-2.6.0/src/freeglut_main.c
--- freeglut-2.6.0/src/freeglut_main.c.noxwarn	2010-05-31 10:49:29.002037712 +0200
+++ freeglut-2.6.0/src/freeglut_main.c	2010-05-31 10:50:58.986037800 +0200
@@ -1413,7 +1413,9 @@ void FGAPIENTRY glutMainLoopEvent( void 
             break;
 
         default:
-            fgWarning ("Unknown X event type: %d\n", event.type);
+            /* Fedora patch: the unknown events seem to be quite frequent with
+             * the new xorg. Let's not spam the user with the messages */
+            /* fgWarning ("Unknown X event type: %d\n", event.type); */
             break;
         }
     }


Index: freeglut.spec
===================================================================
RCS file: /cvs/pkgs/rpms/freeglut/F-13/freeglut.spec,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -p -r1.15 -r1.16
--- freeglut.spec	7 May 2010 13:57:04 -0000	1.15
+++ freeglut.spec	31 May 2010 08:57:58 -0000	1.16
@@ -1,7 +1,7 @@
 Summary:        A freely licensed alternative to the GLUT library
 Name:           freeglut
 Version:        2.6.0
-Release:        4%{?dist}
+Release:        5%{?dist}
 URL:            http://freeglut.sourceforge.net
 Source0:        http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
 # For the manpages
@@ -22,6 +22,7 @@ Obsoletes:      glut < 3.7
 # Fix linking of the examples -- we don't package them, they just need to
 # compile and link
 Patch0: freeglut-2.6.0-fixld.patch
+Patch1: freeglut-2.6.0-noxwarn.patch
 
 %description
 freeglut is a completely open source alternative to the OpenGL Utility Toolkit
@@ -53,6 +54,7 @@ license.
 %prep
 %setup -q -a 1
 %patch0 -p1 -b .fixld
+%patch1 -p1 -b .noxwarn
 
 %build
 # --disable-warnings -> don't add -Werror to CFLAGS
@@ -91,6 +93,9 @@ rm -rf $RPM_BUILD_ROOT
 
 
 %changelog
+* Mon May 31 2010 Tomas Smetana <tsmetana at redhat.com> 2.6.0-5
+- fix #575885, #575885 - suppress the "Unknown X event type" warnings
+
 * Fri May  7 2010 Josh Boyer <jwboyer at gmail.com> 2.6.0-4
 - Add -lm to fix ppc build
 



More information about the scm-commits mailing list