From b320dde8bb98a24a512c0b043646bf4ca36af612 Mon Sep 17 00:00:00 2001 From: Brad Bell Date: Fri, 1 Mar 2024 09:10:08 -0700 Subject: [PATCH] Use prep to make patch for 20240000.3 -> 20240000.4 bug fix. --- cppad.spec | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/cppad.spec b/cppad.spec index f539e2d..5e57be9 100644 --- a/cppad.spec +++ b/cppad.spec @@ -29,7 +29,7 @@ # https://docs.fedoraproject.org/en-US/packaging-guidelines/Versioning/ Name: cppad Version: 20240000.3 -Release: 1%{?dist} +Release: 2%{?dist} Summary: C++ Algorithmic Differentiation (AD), %{name}-devel and %{name}-doc # License: EPL-2.0 OR GPL-2.0-or-later @@ -132,6 +132,10 @@ sed -i.bak CppAD-%{version}/cppad_lib/CMakeLists.txt \ -e "s|print_variable(soversion)|SET(soversion %{soversion} )\n&|" \ -e "s|\${cppad_debug_which}|debug_none|" # +# Bug fix to version 20240000.3 (not necessary in version 20240000.4 or higher) +sed -z -i.bak CppAD-%{version}/include/cppad/local/val_graph/fun2val.hpp \ + -e 's|\n *break;\(\n[^\n]*}\n[^\n]*-\n[^\n]*else switch(var_op)\n\)|\1|' +# # ---------------------------------------------------------------------------- # Print machine epsilon before any other testing cat << EOF > temp.cpp @@ -265,6 +269,10 @@ make %{?_smp_mflags} check # This enables one to check that the necessary files are installed. # ---------------------------------------------------------------------------- %changelog +* Fri Mar 01 2024 Brad Bell - 20240000.3-2 +- This fixes a bug in fun2val.hpp. This change will not be necessary +- once the upstream source advances to 20240000.4. + * Sat Feb 17 2024 Brad Bell - 20240000.3-1 - This fixes a long standing bug; see the heading 02-14 on - https://cppad.readthedocs.io/latest/whats_new_24.html