Use sed to add bug fix corresponding to cppad-20170000.8.

This commit is contained in:
Brad Bell 2017-11-24 06:46:54 -07:00
commit ecd535e80b

View file

@ -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 <bradbell at seanet dot com> - 20170000.4-3
- Use sed to add bug fix corresponding to cppad-20170000.8.
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 20170000.4-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild