Add patch to fix FTBFS.

This commit is contained in:
Thomas Moschny 2023-01-22 13:07:34 +01:00
parent e594e34ca9
commit f3877e62a7
2 changed files with 18 additions and 1 deletions

View File

@ -0,0 +1,12 @@
diff -up Botan-1.10.17/src/hash/gost_3411/gost_3411.cpp~ Botan-1.10.17/src/hash/gost_3411/gost_3411.cpp
--- Botan-1.10.17/src/hash/gost_3411/gost_3411.cpp~ 2017-10-02 08:00:00.000000000 +0200
+++ Botan-1.10.17/src/hash/gost_3411/gost_3411.cpp 2023-01-22 13:01:38.984150336 +0100
@@ -91,7 +91,7 @@ void GOST_34_11::compress_n(const byte i
// P transformation
for(size_t k = 0; k != 4; ++k)
{
- const uint64_t UVk = U[k] ^ V[k];
+ const u64bit UVk = U[k] ^ V[k];
for(size_t l = 0; l != 8; ++l)
key[4*l+k] = get_byte(l, UVk);
}

View File

@ -2,7 +2,7 @@
Name: botan
Version: %{major_version}.17
Release: 34%{?dist}
Release: 35%{?dist}
Summary: Crypto library written in C++
License: BSD
@ -19,6 +19,8 @@ Patch1: botan-boost_python.patch
Patch2: botan-1.10.13-python-init.patch
# 2to3 doc/conf.py
Patch3: botan-1.10.17-doc-conf-2to3.patch
# Fix FTBFS
Patch4: botan-1.10.17-u64bit.patch
BuildRequires: gcc-c++
BuildRequires: python3
@ -193,6 +195,9 @@ LD_LIBRARY_PATH=%{buildroot}%{_libdir} ./check --validate
%changelog
* Sun Jan 22 2023 Thomas Moschny <thomas.moschny@gmx.de> - 1.10.17-35
- Add patch to fix FTBFS.
* Wed Jan 18 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.10.17-34
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild