From fa9f210a680d2efe5e74affb97c0149f9941b55b Mon Sep 17 00:00:00 2001 From: Brad Bell Date: Mon, 24 Jan 2022 05:01:51 -0700 Subject: [PATCH] 1. Advance to cppad-20220000.1 2. Suppress incorrect array bounds warning. --- .gitignore | 2 ++ cppad.spec | 24 ++++++++++++++++-------- sources | 4 ++-- 3 files changed, 20 insertions(+), 10 deletions(-) diff --git a/.gitignore b/.gitignore index fac1028..28df073 100644 --- a/.gitignore +++ b/.gitignore @@ -18,3 +18,5 @@ # # documentation tarball that creates CppAD-20210000.doc /20210000.doc.tar.gz +/20220000.1.tar.gz +/20220000.doc.tar.gz diff --git a/cppad.spec b/cppad.spec index 897fccf..3083203 100644 --- a/cppad.spec +++ b/cppad.spec @@ -4,16 +4,17 @@ # ---------------------------------------------------------------------------- # yyyy is year, mm is month, dd is day, corresponding to this version. # The %%{version} macro includes a bug fix number at end that starts at zero. -%define yyyymmdd 20210000 +%define yyyymmdd 20220000 # # fedora uses its own soversion number for cppad_lib -%define soversion 2.0 +# 3.0 corresponds to version 20220000 +%define soversion 3.0 # Fedora Release starts with 1; see -# https://fedoraproject.org/wiki/Packaging:Versioning +# https://docs.fedoraproject.org/en-US/packaging-guidelines/Versioning/ Name: cppad -Version: %{yyyymmdd}.7 -Release: 2%{?dist} +Version: %{yyyymmdd}.1 +Release: 1%{?dist} Summary: C++ Algorithmic Differentiation (AD), %{name}-devel and %{name}-doc License: EPL-2.0 or GPLv2+ @@ -22,7 +23,7 @@ Source0: https://github.com/coin-or/CppAD/archive/%{version}.tar.gz Source1: https://github.com/coin-or/CppAD/archive/%{yyyymmdd}.doc.tar.gz BuildRequires: gcc BuildRequires: gcc-c++ -BuildRequires: cmake >= 2.8 +BuildRequires: cmake >= 3.0 BuildRequires: make # Starting with f33, need to define this macro to build in source directory @@ -107,9 +108,12 @@ sed -i.bak CppAD-%{version}/test_more/debug_rel/CMakeLists.txt \ # 2. The last argument to the cmake command is the directory created using # the souce code tarball. # -# 3. The debug_all is overridden by for cppad_lib by the edit of +# 3. The debug_all is overridden for cppad_lib by the edit of # cppad_lib/CMakeLists.txt above -cppad_cxx_flags='-Wall -pedantic-errors -std=c++11 -Wshadow -Wconversion' +# +# 4. The new c++ compiler seems to be generating an incorrect warning about +# array bounds in thread_alloc.hpp. Use -Wno-array-bounds to suppress it. +cppad_cxx_flags='-Wall -pedantic-errors -std=c++11 -Wshadow -Wconversion -Wno-array-bounds' %cmake --version %cmake \ -D CMAKE_VERBOSE_MAKEFILE=0 \ @@ -180,6 +184,10 @@ make %{?_smp_mflags} check # This enables one to check that the necessary files are installed. # ---------------------------------------------------------------------------- %changelog +* Mon Jan 24 2022 Brad Bell - 20220000.1-1 +- Advance to upstream source 20220000.1 +- Add -Wno-array-bounds to compiler flags (see remarks about this flag) + * Wed Jan 19 2022 Fedora Release Engineering - 20210000.7-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild diff --git a/sources b/sources index dd66d55..4355c8e 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ -SHA512 (20210000.7.tar.gz) = 856a0669d91cea7695195f88a987b3b8eac5ec6de81d9dc55b8d90e78495553df1c2c152a27b49ae8596d4ac5c30f482501577fc88227efc8fe3e3b7859dd88e -SHA512 (20210000.doc.tar.gz) = 4e7be2b01d6b2d1bd3862a3260176806432893403bc3ba98bbdaad4a701abb64d9f47ccb408fe5e6e8360b4642a65395865274aea184a36aed7baa15d1ee6560 +SHA512 (20220000.1.tar.gz) = d3645c790a1452588894039def020f60a39e432bfcfa02b44360b14fcb31ac884bee62c3a8a84b73d41bb7b00c89347d960415f359b7fb63872b8515b9586162 +SHA512 (20220000.doc.tar.gz) = ba8e995c503759c41464c9b58b74db0b9305db485118703f743ee82494785cf0d7e382fa476b3295939c7aa263407310e488cd95e281b1cf9e513980f6c03c4b