rpms/astyle/devel astyle-1.21-gcc43.patch, NONE, 1.1 astyle.spec, 1.8, 1.9

Debarshi Ray rishi at fedoraproject.org
Tue Sep 23 19:21:13 UTC 2008


Author: rishi

Update of /cvs/pkgs/rpms/astyle/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv493

Modified Files:
	astyle.spec 
Added Files:
	astyle-1.21-gcc43.patch 
Log Message:
* Wed Sep 24 2008 Debarshi Ray <rishi at fedoraproject.org> - 1.21-9
- Fixed build failure with gcc-4.3. Closes Red Hat Bugzilla bug #433971.


astyle-1.21-gcc43.patch:

--- NEW FILE astyle-1.21-gcc43.patch ---
diff -urNp astyle.orig/src/astyle.h astyle/src/astyle.h
--- astyle.orig/src/astyle.h	2007-05-12 19:38:02.000000000 +0530
+++ astyle/src/astyle.h	2008-09-23 18:40:53.381016582 +0530
@@ -37,6 +37,7 @@
 #include <string>
 #include <vector>
 #include <cctype>
+#include <cstring>
 
 using namespace std;
 


Index: astyle.spec
===================================================================
RCS file: /cvs/pkgs/rpms/astyle/devel/astyle.spec,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- astyle.spec	21 May 2008 16:48:53 -0000	1.8
+++ astyle.spec	23 Sep 2008 19:20:43 -0000	1.9
@@ -1,12 +1,15 @@
 Name:           astyle
 Version:        1.21
-Release:        8%{?dist}
+Release:        9%{?dist}
 Summary:        Source code formatter for C-like programming languages
 
 Group:          Development/Tools
 License:        LGPLv2+
 URL:            http://astyle.sourceforge.net/
 Source0:        http://downloads.sourceforge.net/%{name}/%{name}_%{version}_linux.tar.gz
+
+Patch0:         %{name}-%{version}-gcc43.patch
+
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 %description
@@ -17,7 +20,7 @@
 
 %prep
 %setup -q -n %{name}
-
+%patch0 -p1
 
 %build
 g++ -o astyle $RPM_OPT_FLAGS src/*.cpp
@@ -41,6 +44,9 @@
 %doc doc/*.html
 
 %changelog
+* Wed Sep 24 2008 Debarshi Ray <rishi at fedoraproject.org> - 1.21-9
+- Fixed build failure with gcc-4.3. Closes Red Hat Bugzilla bug #433971.
+
 * Wed May 21 2008 Tom "spot" Callaway <tcallawa at redhat.com> - 1.21-8
 - fix license tag
 




More information about the fedora-extras-commits mailing list