rpms/cppad/devel cppad.spec,1.6,1.7

Bradley M. Bell (bradbell) fedora-extras-commits at redhat.com
Fri Apr 4 12:29:05 UTC 2008


Author: bradbell

Update of /cvs/pkgs/rpms/cppad/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv24369

Modified Files:
	cppad.spec 
Log Message:
patch speed/main.cpp for new version of gcc


Index: cppad.spec
===================================================================
RCS file: /cvs/pkgs/rpms/cppad/devel/cppad.spec,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- cppad.spec	4 Apr 2008 07:58:21 -0000	1.6
+++ cppad.spec	4 Apr 2008 12:28:25 -0000	1.7
@@ -16,7 +16,7 @@
 
 Name: cppad
 Version: 20080403
-Release: 2%{?dist}
+Release: 3%{?dist}
 Summary: no base package is installed, see %{name}-devel and %{name}-doc
 
 Group: Development/Libraries 
@@ -57,6 +57,11 @@
 %prep
 %setup -q 
 
+# fix errors errors found by newer version of gcc
+sed -i.stamp speed/main.cpp \
+        -e 's/^# include <cstdlib>/# include <cstring>\n&/' \
+        -e 's/char \*option\[\]=/const &/'
+
 # change example/example.cpp to print out machine epsilon 
 cat << EOF > example.sed
 /^int main(void)/N
@@ -115,6 +120,10 @@
 
 # ----------------------------------------------------------------------------
 %changelog
+* Fri Apr 04 2008 Brad Bell <bradbell at seanet dot com> 20080403-3
+- Patch speed/main.cpp work with newer version of gcc
+- (speed/main.cpp had not been tested with new version of gcc.)
+
 * Thu Apr 03 2008 Brad Bell <bradbell at seanet dot com> 20080403-2
 - Upload new source with the command
 - make new-sources FILES="cppad-20080403.gpl.tgz"




More information about the fedora-extras-commits mailing list