Advance to CppAD-20240000.2

This commit is contained in:
Brad Bell 2024-01-17 12:12:35 -07:00
commit a90ee42b56
3 changed files with 8 additions and 20 deletions

2
.gitignore vendored
View file

@ -15,4 +15,4 @@
# ---------------------------------------------------------------------------
#
# Most recent upstrem source
/CppAD-20240000.1.tar.gz
/CppAD-20240000.2.tar.gz

View file

@ -28,7 +28,7 @@
# Fedora Release starts with 1; see
# https://docs.fedoraproject.org/en-US/packaging-guidelines/Versioning/
Name: cppad
Version: 20240000.1
Version: 20240000.2
Release: 1%{?dist}
Summary: C++ Algorithmic Differentiation (AD), %{name}-devel and %{name}-doc
#
@ -160,22 +160,6 @@ then
-e 's|ok *&= *floating<long double>();|// &|'
fi
# -----------------------------------------------------------------------------
# Some patches for 32 bit systems that should not be necessary once
# cppad-20240000.2 is available.
echo "_arch = %{_arch}"
if [ "%{_arch}" == 'i386' ] || [ "%{_arch}" == 'i686' ]
then
# Add padding to block_t structure when compiling for these arch values
sed -i.bak \
CppAD-%{version}/include/cppad/utility/thread_alloc.hpp \
-e 's|^\( *\)void[*]\( *\)next_;|&\n\1void*\2not_used_;|'
#
# avoid redefinition of a template specialization
sed -i.bak \
CppAD-%{version}/include/cppad/local/val_graph/op_hash_table.hpp \
-e 's|# if ! CPPAD_TAPE_ADDR_TYPE_IS_SIZE_T|# if 0|'
fi
# -----------------------------------------------------------------------------
# build
# -----------------------------------------------------------------------------
%build
@ -213,7 +197,7 @@ cppad_cxx_flags=\
%cmake \
-S CppAD-%{version} \
-B . \
\
\
-D CMAKE_VERBOSE_MAKEFILE=0 \
-G 'Unix Makefiles' \
\
@ -284,6 +268,10 @@ make %{?_smp_mflags} check
# This enables one to check that the necessary files are installed.
# ----------------------------------------------------------------------------
%changelog
* Wed Jan 17 2024 Brad Bell <bradbell at seanet dot com> - 20240000.2-1
- Upstream moved i386 special cases into cmake script.
- Checking that othr upstream changes do not affect Fedora install.
* Tue Jan 09 2024 Brad Bell <bradbell at seanet dot com> - 20240000.1-1
- thread_alloc.hpp: i386 i686: fix allignment for doubles
- op_hash_table: i386 i686: avoid second specialization of is_pod for same type.

View file

@ -1 +1 @@
SHA512 (CppAD-20240000.1.tar.gz) = 453f1975dc8cb65df9838e8fb1fa3c2ae302c52a2628e58112ca5aa272ea02b6597988f8f6424e505ed18a29656a38fa943ea2a1d0f3e3f2509ebdc2fe9d84d4
SHA512 (CppAD-20240000.2.tar.gz) = 0c4f57582347f1c11fabda56ef9324b5399194d13c2bcd98038f64dde1c820326cd278a94b1b97cb7aa90760bafe0c3d13c1fddf989841313ae1d4db122789c2