rpms/cppad/devel cppad.spec,1.17,1.18

Bradley M. Bell bradbell at fedoraproject.org
Wed Feb 10 12:55:59 UTC 2010


Author: bradbell

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

Modified Files:
	cppad.spec 
Log Message:
Copy of bug fix in revision https://projects.coin-or.org/CppAD/changeset/1647



Index: cppad.spec
===================================================================
RCS file: /cvs/pkgs/rpms/cppad/devel/cppad.spec,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -p -r1.17 -r1.18
--- cppad.spec	3 Jan 2010 13:33:12 -0000	1.17
+++ cppad.spec	10 Feb 2010 12:55:59 -0000	1.18
@@ -12,7 +12,7 @@
 
 Name: cppad
 Version: 20100101.0
-Release: 1%{?dist}
+Release: 2%{?dist}
 Summary: No base package is installed, see %{name}-devel 
 
 Group: Development/Libraries 
@@ -58,6 +58,19 @@ as a single web page, in both html and x
 %prep
 %setup -q 
 
+# Bug fix in revision https://projects.coin-or.org/CppAD/changeset/1647
+if [ %{version} != "20100101.0" ]
+then
+	echo "This bug fix should no longer be necessary"
+	exit 1
+fi 
+#
+sed -i cppad/local/optimize.hpp \
+-e 's|(new_arg\[0\] == tape\[k\].new_var );|(new_arg[0] == tape[k].new_var )|'
+#
+sed -i cppad/local/print_op.hpp \
+-e 's|( arg\[1\] < i_z );|( arg\[1\] <= i_z );|'
+
 # change example/example.cpp to print out machine epsilon 
 cat << EOF > example.sed
 /^int main(void)/N
@@ -118,6 +131,10 @@ rm -rf $RPM_BUILD_ROOT
 
 # ----------------------------------------------------------------------------
 %changelog
+* Wed Feb 10 2010 Brad Bell <bradbell at seanet dot com> - 20100101.0-2
+- Patch sources for bug fix between 20100101.0 and 20100101.1.
+- This should no longer be necessary once a new upstream source is loaded.
+
 * Sat Jan 01 2010 Brad Bell <bradbell at seanet dot com> - 20100101.0-1
 - Use new upstream source.
 - Remove out of date comment about where this spec file is maintained.



More information about the scm-commits mailing list