From ecd535e80b9b5b7bb021abe65d99b4df6dd4910a Mon Sep 17 00:00:00 2001 From: Brad Bell Date: Fri, 24 Nov 2017 06:46:54 -0700 Subject: [PATCH] Use sed to add bug fix corresponding to cppad-20170000.8. --- cppad.spec | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/cppad.spec b/cppad.spec index cd6db2d..ef73014 100644 --- a/cppad.spec +++ b/cppad.spec @@ -18,7 +18,7 @@ # Release starts with 1; https://fedoraproject.org/wiki/Packaging:Versioning Name: cppad Version: 20170000.4 -Release: 3%{?dist} +Release: 4%{?dist} Summary: C++ Algorithmic Differentiation (AD), %{name}-devel and %{name}-doc # As of yet, there are no object libraries or executables included in this @@ -92,6 +92,15 @@ cat << EOF > junk.sed s|NearEqual(jfac\\*\\([^,]*\\), *value *, *eps99 *, *eps99)|NearEqual(\\1, value/jfac, eps99, eps99)| EOF sed -i test_more/div.cpp -f junk.sed + +# Fix a bug in the optimizer (should not be necessary for 2018) +cat << EOF > junk.sed +214,214s|^| else\\ + { match &= arg_match[j] == op_info[candidate].arg[j];\\ + }\\ +| +EOF +sed -i cppad/local/optimize/match_op.hpp -f junk.sed # # ----------------------------------------------------------------------------- # Replace cppad_SOURCE_DIR by the system include directory so that @@ -180,6 +189,9 @@ make check # ---------------------------------------------------------------------------- %changelog +* Fri Nov 24 2017 Brad Bell - 20170000.4-3 +- Use sed to add bug fix corresponding to cppad-20170000.8. + * Wed Aug 02 2017 Fedora Release Engineering - 20170000.4-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild