From 93e943018129b5cf4e2ec6c071479d4d2372df72 Mon Sep 17 00:00:00 2001 From: Brad Bell Date: Sat, 2 Mar 2024 05:53:31 -0700 Subject: [PATCH] copy (from rawhide) using sed to patch fun2val.hpp --- cppad.spec | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/cppad.spec b/cppad.spec index 5cb8b25..df10d5b 100644 --- a/cppad.spec +++ b/cppad.spec @@ -150,6 +150,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 @@ -283,6 +287,10 @@ make %{?_smp_mflags} check # This enables one to check that the necessary files are installed. # ---------------------------------------------------------------------------- %changelog +* Sat 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. + * Tue Feb 20 2024 Brad Bell - 20240000.3-1 - Use in current rawhide to replace cppad.spec as first commit. - Make changes needed for epel9 as second commit; See Epel9 in comments above.