rpms/libebml/devel libebml-0.7.7-gcc43.patch, NONE, 1.1 libebml.spec, 1.16, 1.17

Hans de Goede (jwrdegoede) fedora-extras-commits at redhat.com
Tue Jan 8 21:55:47 UTC 2008


Author: jwrdegoede

Update of /cvs/extras/rpms/libebml/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv17816

Modified Files:
	libebml.spec 
Added Files:
	libebml-0.7.7-gcc43.patch 
Log Message:
* Tue Jan  8 2008 Hans de Goede <j.w.r.degoede at hhs.nl> 0.7.7-4
- Fix building with gcc 4.3


libebml-0.7.7-gcc43.patch:

--- NEW FILE libebml-0.7.7-gcc43.patch ---
diff -up libebml-0.7.7/ebml/EbmlEndian.h~ libebml-0.7.7/ebml/EbmlEndian.h
--- libebml-0.7.7/ebml/EbmlEndian.h~	2008-01-08 22:53:31.000000000 +0100
+++ libebml-0.7.7/ebml/EbmlEndian.h	2008-01-08 22:53:31.000000000 +0100
@@ -39,6 +39,7 @@
 #define LIBEBML_ENDIAN_H
 
 #include <algorithm>
+#include <cstring>
 
 #include "EbmlConfig.h" // contains _ENDIANESS_
 
diff -up libebml-0.7.7/ebml/EbmlBinary.h~ libebml-0.7.7/ebml/EbmlBinary.h
--- libebml-0.7.7/ebml/EbmlBinary.h~	2008-01-08 22:50:40.000000000 +0100
+++ libebml-0.7.7/ebml/EbmlBinary.h	2008-01-08 22:50:40.000000000 +0100
@@ -38,6 +38,7 @@
 #define LIBEBML_BINARY_H
 
 #include <string>
+#include <cstring>
 
 #include "EbmlTypes.h"
 #include "EbmlElement.h"
diff -up libebml-0.7.7/ebml/c/libebml_t.h~ libebml-0.7.7/ebml/c/libebml_t.h
--- libebml-0.7.7/ebml/c/libebml_t.h~	2008-01-08 22:53:02.000000000 +0100
+++ libebml-0.7.7/ebml/c/libebml_t.h	2008-01-08 22:53:02.000000000 +0100
@@ -123,9 +123,9 @@ typedef enum open_mode {
     MODE_SAFE
 } open_mode;
 
-#if !defined(min)
+/* #if !defined(min)
 #define min(x,y) ((x)<(y) ? (x) : (y))
-#endif
+#endif */
 
 #ifdef __cplusplus
 }


Index: libebml.spec
===================================================================
RCS file: /cvs/extras/rpms/libebml/devel/libebml.spec,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -r1.16 -r1.17
--- libebml.spec	13 Aug 2007 17:01:45 -0000	1.16
+++ libebml.spec	8 Jan 2008 21:55:05 -0000	1.17
@@ -1,11 +1,12 @@
 Summary: 	Extensible Binary Meta Language library
 Name: 		libebml
 Version: 	0.7.7
-Release: 	3%{?dist}
+Release: 	4%{?dist}
 License: 	LGPLv2+
 Group: 		System Environment/Libraries
 URL: 		http://www.matroska.org/
 Source: 	http://dl.matroska.org/downloads/%{name}/%{name}-%{version}.tar.bz2
+Patch0:         libebml-0.7.7-gcc43.patch
 BuildRoot: 	%{_tmppath}/%{name}-%{version}-%{release}-buildroot-%(%{__id_u} -n)
 
 %description
@@ -30,6 +31,7 @@
 
 %prep
 %setup -q
+%patch0 -p1
 
 
 %build
@@ -68,6 +70,9 @@
 
 
 %changelog
+* Tue Jan  8 2008 Hans de Goede <j.w.r.degoede at hhs.nl> 0.7.7-4
+- Fix building with gcc 4.3
+
 * Mon Aug 13 2007 Hans de Goede <j.w.r.degoede at hhs.nl> 0.7.7-3
 - Update License tag for new Licensing Guidelines compliance
 




More information about the fedora-extras-commits mailing list