1. Advance to cppad-20220000.1

2. Suppress incorrect array bounds warning.
This commit is contained in:
Brad Bell 2022-01-24 05:01:51 -07:00
commit fa9f210a68
3 changed files with 20 additions and 10 deletions

View file

@ -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 <bradbell at seanet dot com> - 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 <releng@fedoraproject.org> - 20210000.7-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild