rpms/kdelibs/devel kdelibs-4.2.0-gcc44-misc.patch, NONE, 1.1 kdelibs.spec, 1.445, 1.446

Than Ngo than at fedoraproject.org
Thu Feb 26 11:24:37 UTC 2009


Author: than

Update of /cvs/extras/rpms/kdelibs/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv30683

Modified Files:
	kdelibs.spec 
Added Files:
	kdelibs-4.2.0-gcc44-misc.patch 
Log Message:
fix build issue against gcc44


kdelibs-4.2.0-gcc44-misc.patch:

--- NEW FILE kdelibs-4.2.0-gcc44-misc.patch ---
diff -up kdelibs-4.2.0/kdeui/util/fixx11h.h.orig kdelibs-4.2.0/kdeui/util/fixx11h.h
--- kdelibs-4.2.0/kdeui/util/fixx11h.h.orig	2008-05-21 13:08:51.000000000 +0200
+++ kdelibs-4.2.0/kdeui/util/fixx11h.h	2009-02-26 12:14:01.000000000 +0100
@@ -251,13 +251,21 @@ const int FontChange = XFontChange;
 #ifndef FIXX11H_index
 #define FIXX11H_index
 inline
+#if defined __cplusplus && __GNUC_PREREQ (4, 4)
+char* Xindex( char* s, int c )
+#else
 char* Xindex( const char* s, int c )
+#endif
     {
     return index( s, c );
     }
 #undef index
 inline
+#if defined __cplusplus && __GNUC_PREREQ (4, 4)
+char* index( char* s, int c )
+#else
 char* index( const char* s, int c )
+#endif
     {
     return Xindex( s, c );
     }
@@ -271,13 +279,21 @@ char* index( const char* s, int c )
 #ifndef FIXX11H_rindex
 #define FIXX11H_rindex
 inline
+# if defined __cplusplus && __GNUC_PREREQ (4, 4)
+char* Xrindex( char* s, int c )
+#else
 char* Xrindex( const char* s, int c )
+#endif
     {
     return rindex( s, c );
     }
 #undef rindex
 inline
+# if defined __cplusplus && __GNUC_PREREQ (4, 4)
+char* rindex( char* s, int c )
+#else
 char* rindex( const char* s, int c )
+#endif
     {
     return Xrindex( s, c );
     }


Index: kdelibs.spec
===================================================================
RCS file: /cvs/extras/rpms/kdelibs/devel/kdelibs.spec,v
retrieving revision 1.445
retrieving revision 1.446
diff -u -r1.445 -r1.446
--- kdelibs.spec	25 Feb 2009 11:39:31 -0000	1.445
+++ kdelibs.spec	26 Feb 2009 11:24:36 -0000	1.446
@@ -1,6 +1,6 @@
 Summary: K Desktop Environment 4 - Libraries
 Version: 4.2.0
-Release: 16%{?dist}
+Release: 17%{?dist}
 
 %if 0%{?fedora} > 8
 Name: kdelibs
@@ -81,6 +81,7 @@
 Patch23: kdelibs-4.2.0-gcc44-workaround.patch
 # disable strict aliasing in kjs/dtoa.cpp (GCC 4.4 x86_64 crash) (#485968)
 Patch24: kdelibs-4.2.0-kjs-gcc44-crash.patch
+Patch25: kdelibs-4.2.0-gcc44-misc.patch
 
 # upstream
 # 4.3 branch
@@ -227,6 +228,7 @@
 %patch22 -p1 -b .kdepimlibs-cmake
 %patch23 -p1 -b .gcc44
 %patch24 -p1 -b .kjs-gcc44-crash
+%patch25 -p1 -b .gcc44-misc
 
 # upstream patches
 %patch101 -p1 -b .AllowExternalPaths
@@ -415,6 +417,9 @@
 
 
 %changelog
+* Thu Feb 26 2009 Than Ngo <than at redhat.com> 4.2.0-17
+- fix build issue against gcc44
+
 * Wed Feb 25 2009 Than Ngo <than at redhat.com> - 4.2.0-16
 - fix files conflicts with 3.5.x
 




More information about the fedora-extras-commits mailing list