Compare commits

..

33 commits

Author SHA1 Message Date
Yaakov Selkowitz
cbe66ee3a7 Restore gmp tarball to sources 2025-11-25 09:54:16 -05:00
Yaakov Selkowitz
33160d08cb Drop RHEL10-specific patch
The test was fixed to be FIPS-compliant:

https://gitlab.com/gnutls/gnutls/-/merge_requests/1932
2025-11-25 14:42:39 +00:00
Alexander Sosedkin
98206a06fe Disable native assembly to work around bz2416812 2025-11-25 10:30:27 +01:00
Daniel P. Berrangé
c5fcada2f3 Add missing Provides: bundled(..) for gmp & leancrypto
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2025-11-21 16:14:40 +09:00
Daiki Ueno
9f95ff6e69 Remove unnecessary PKG_CONFIG_PATH setting
Signed-off-by: Daiki Ueno <dueno@redhat.com>
2025-11-21 16:12:20 +09:00
Daiki Ueno
3078b09e41 Enable crypto-auditing probes
Signed-off-by: Daiki Ueno <dueno@redhat.com>
2025-11-21 11:48:31 +09:00
Daiki Ueno
7441432f8c Minor fixes to spec file and packit configuration
Signed-off-by: Daiki Ueno <dueno@redhat.com>
2025-11-21 11:48:21 +09:00
Daiki Ueno
000d285047 Update to 3.8.11 upstream release
- Resolves: rhbz#2416041

Upstream tag: 3.8.11
Upstream commit: b841c70e

Commit authored by Packit automation (https://packit.dev/)
2025-11-20 19:40:16 +09:00
Krenzelok Frantisek
92cc61b531 Revert "Enable kTLS by default"
This reverts commit 330d52f8da.
2025-08-26 17:33:12 +02:00
Krenzelok Frantisek
330d52f8da Enable kTLS by default
Resolves: rhbz#2130000

- https://fedoraproject.org/wiki/Changes/KTLSSupportForGnuTLS.
- kTLS is now enabled by default if all requirements are met.
- Modify the docs to reflect the change of defaults.
- Picked-up a patch that fixes state transition in the KTLS code path.
2025-08-25 17:39:12 +02:00
Zoltan Fridrich
7be798d940 Rebuild
Signed-off-by: Zoltan Fridrich <zfridric@redhat.com>
2025-07-29 15:04:46 +02:00
Fedora Release Engineering
b690a96329 Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild 2025-07-23 22:53:49 +00:00
Daiki Ueno
e45aaed8ab Update to 3.8.10 upstream release
Also update the bundled leancrypto to 1.5.0.

Signed-off-by: Daiki Ueno <dueno@redhat.com>
2025-07-10 05:48:08 +09:00
Yaakov Selkowitz
25f7cc5fad Fix build on kernel 6.14+
kTLS KeyUpdate is supported as of this version, leading to the
ktls_keyupdate.sh being able to pass thereon, and therefore
the builder's kernel must now be checked here too.

https://gitlab.com/gnutls/gnutls/-/merge_requests/1934
2025-07-06 18:20:47 -04:00
Daiki Ueno
5bef1c86aa Update leancrypto to 1.3.0
Signed-off-by: Daiki Ueno <dueno@redhat.com>
2025-04-02 17:34:52 +09:00
Peter Robinson
c3aaff5c62 Bump for gmp build 2025-03-30 11:46:20 +01:00
Zoltan Fridrich
63494651c6 Rebuild GnuTLS
Signed-off-by: Zoltan Fridrich <zfridric@redhat.com>
2025-03-03 11:17:54 +01:00
Daiki Ueno
6ea0d5328d Bump nettle dependency to 3.10.1
Signed-off-by: Daiki Ueno <dueno@redhat.com>
2025-02-17 10:32:20 +09:00
Daiki Ueno
b5e51ef2d2 Rebuild against nettle 3.10.1
Signed-off-by: Daiki Ueno <dueno@redhat.com>
2025-02-14 14:58:10 +09:00
Daiki Ueno
9c5597be5c Switch from liboqs to leancrypto
Signed-off-by: Daiki Ueno <dueno@redhat.com>
2025-02-10 18:17:05 +09:00
Daiki Ueno
6c3a0c118e Update to gnutls 3.8.9 release
Signed-off-by: Daiki Ueno <dueno@redhat.com>
2025-02-10 11:04:35 +09:00
Yaakov Selkowitz
e026bdad11 Fix ELN build
The bundled gmp (for RHEL builds) needs a C23 fix for a configure test:

https://src.fedoraproject.org/rpms/gmp/pull-request/8

Also, one test needs to be modified as the DEFAULT crypto policy rejects
TLS ciphers with RSA key exchange in RHEL 10:

https://docs.redhat.com/en/documentation/red_hat_enterprise_linux/10-beta/html/considerations_in_adopting_rhel_10/security#security
2025-02-05 11:30:38 -05:00
Daiki Ueno
c25fdb6fa9 Disable GOST in RHEL-9 or later
Resolves: RHEL-56919
Signed-off-by: Daiki Ueno <dueno@redhat.com>
2025-01-22 23:17:41 -05:00
Fedora Release Engineering
8d60243b00 Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild 2025-01-16 23:06:20 +00:00
Daiki Ueno
abb8fe2e0b Update to 3.8.8 upstream release
- Resolves: rhbz#2323786

Upstream tag: 3.8.8
Upstream commit: 40267b5e

Commit authored by Packit automation (https://packit.dev/)
2024-11-05 16:44:35 +09:00
Daiki Ueno
db84cc7c55 Fix build with latest mingw-gcc
mingw{32,64}-cpp are not installed by default, and
--enable-local-libopts should be unnecessary, as we have switched away
from autogen.

Signed-off-by: Daiki Ueno <dueno@redhat.com>
2024-11-05 16:40:46 +09:00
Daiki Ueno
a9b00cffcc Update downstream patches for 3.8.8
Signed-off-by: Daiki Ueno <dueno@redhat.com>
2024-11-05 14:51:06 +09:00
Daiki Ueno
f89c924634 Remove distribution suffix before updating to 3.8.8
Signed-off-by: Daiki Ueno <dueno@redhat.com>
2024-11-05 14:20:20 +09:00
Richard W.M. Jones
760d4e32b2 Remove mingw p11tool.exe
Without mingw-p11-kit we don't build this.
2024-09-13 08:34:18 +01:00
Richard W.M. Jones
9ca47ed49e Remove mingw-p11-kit dependency (RHBZ#2312031) 2024-09-12 22:12:02 +01:00
Daiki Ueno
7d85f31654 Stop pulling in compression libraries through gnutls.pc
Signed-off-by: Daiki Ueno <dueno@redhat.com>
2024-08-16 10:59:05 +09:00
Daiki Ueno
e9fcd31237 Update to 3.8.7 upstream release
- Resolves: rhbz#2305086

Upstream tag: 3.8.7
Upstream commit: 994d9392

Commit authored by Packit automation (https://packit.dev/)
2024-08-15 21:03:31 +09:00
Daiki Ueno
39c1bd20e2 Remove upstreamed patches before updating to 3.8.7
Signed-off-by: Daiki Ueno <dueno@redhat.com>
2024-08-15 16:56:19 +09:00
6 changed files with 49 additions and 22 deletions

3
.gitignore vendored
View file

@ -170,3 +170,6 @@ gnutls-2.10.1-nosrp.tar.bz2
/gnutls-3.8.10.tar.xz
/gnutls-3.8.10.tar.xz.sig
/leancrypto-1.5.0.tar.gz
/gnutls-3.8.11.tar.xz
/gnutls-3.8.11.tar.xz.sig
/leancrypto-1.6.0.tar.gz

View file

@ -28,5 +28,4 @@ actions:
jobs:
- job: propose_downstream
trigger: release
metadata:
dist_git_branches: fedora-all
dist_git_branches: fedora-all

View file

@ -1,3 +1,3 @@
This repository is maintained by packit.
https://packit.dev/
The file was generated using packit 0.102.2.
The file was generated using packit 1.12.0.

13
gmp-6.2.1-c23.patch Normal file
View file

@ -0,0 +1,13 @@
diff --git a/acinclude.m4 b/acinclude.m4
index 906071c..a466b7c 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -609,7 +609,7 @@ GMP_PROG_CC_WORKS_PART([$1], [long long reliability test 1],
#if defined (__GNUC__) && ! defined (__cplusplus)
typedef unsigned long long t1;typedef t1*t2;
-void g(){}
+void g(int, t2, t1, t2, t2, int){}
void h(){}
static __inline__ t1 e(t2 rp,t2 up,int n,t1 v0)
{t1 c,x,r;int i;if(v0){c=1;for(i=1;i<n;i++){x=up[i];r=x+1;rp[i]=r;}}return c;}

View file

@ -12,31 +12,27 @@ sha256sum:close()
print(string.sub(hash, 0, 16))
}
Version: 3.8.10
Version: 3.8.11
Release: %{?autorelease}%{!?autorelease:1%{?dist}}
Patch: gnutls-3.2.7-rpath.patch
# follow https://gitlab.com/gnutls/gnutls/-/issues/1443
Patch: gnutls-3.8.8-tests-ktls-skip-tls12-chachapoly.patch
# add tests/ktls_utils.h missing in the distribution
Patch: gnutls-3.8.10-tests-ktls.patch
# run tests/cert-test/mldsa.sh in VPATH build
Patch: gnutls-3.8.10-tests-mldsa.patch
%bcond_without bootstrap
%bcond_without dane
%bcond_without fips
%bcond_with tpm12
%bcond_without tpm2
%bcond_without gost
%bcond_without certificate_compression
%bcond_without tests
%if 0%{?fedora} >= 41 || 0%{?rhel} >= 10
%bcond_without leancrypto
%if 0%{?rhel} >= 9
%bcond_with gost
%else
%bcond_with leancrypto
%bcond_without gost
%endif
%bcond_without certificate_compression
%bcond_without leancrypto
%bcond_without crypto_auditing
%bcond_without tests
%if 0%{?fedora} && 0%{?fedora} < 38
%bcond_without srp
@ -76,7 +72,7 @@ BuildRequires: zlib-devel, brotli-devel, libzstd-devel
%if %{with bootstrap}
BuildRequires: automake, autoconf, gperf, libtool, texinfo
%endif
BuildRequires: nettle-devel >= 3.10
BuildRequires: nettle-devel >= 3.10.1
%if %{with leancrypto}
BuildRequires: meson
%endif
@ -91,6 +87,9 @@ BuildRequires: libunistring-devel
BuildRequires: net-tools, softhsm, gcc, gcc-c++
BuildRequires: gnupg2
BuildRequires: git-core
%if %{with crypto_auditing}
BuildRequires: systemtap-sdt-devel
%endif
# for a sanity check on cert loading
BuildRequires: p11-kit-trust, ca-certificates
@ -98,7 +97,7 @@ Requires: crypto-policies
Requires: p11-kit-trust
Requires: libtasn1 >= 4.3
# always bump when a nettle release is packaged
Requires: nettle >= 3.10
Requires: nettle >= 3.10.1
%if %{with tpm12}
Recommends: trousers >= 0.3.11.2
%endif
@ -134,13 +133,16 @@ Source1: https://www.gnupg.org/ftp/gcrypt/gnutls/v%{short_version}/%{name}-%{ver
Source2: https://gnutls.org/gnutls-release-keyring.gpg
%if %{with bundled_gmp}
Provides: bundled(gmp) = 6.2.1
Source100: gmp-6.2.1.tar.xz
# Taken from the main gmp package
Source101: gmp-6.2.1-intel-cet.patch
Source102: gmp-6.2.1-c23.patch
%endif
%if %{with leancrypto}
Source300: leancrypto-1.5.0.tar.gz
Provides: bundled(leancrypto) = 1.6.0
Source300: leancrypto-1.6.0.tar.gz
%endif
# Wildcard bundling exception https://fedorahosted.org/fpc/ticket/174
@ -271,6 +273,7 @@ mkdir -p bundled_gmp
pushd bundled_gmp
tar --strip-components=1 -xf %{SOURCE100}
patch -p1 < %{SOURCE101}
patch -p1 < %{SOURCE102}
popd
%endif
@ -306,7 +309,8 @@ meson setup -Dprefix="$PWD/install" -Dlibdir="$PWD/install/lib" \
-Dx509_parser=disabled -Dx509_generator=disabled \
-Dpkcs7_parser=disabled -Dpkcs7_generator=disabled \
-Dsha2-256=disabled \
-Dchacha20=disabled -Dchacha20_drng=disabled \
-Daes_gcm=disabled -Daes_cbc=disabled -Daes_ctr=disabled -Daes_xts=disabled \
-Dchacha20=disabled -Dchacha20poly1305=disabled -Dchacha20_drng=disabled \
-Ddrbg_hash=disabled -Ddrbg_hmac=disabled \
-Dhash_crypt=disabled \
-Dhmac=disabled -Dhkdf=disabled \
@ -316,7 +320,10 @@ meson setup -Dprefix="$PWD/install" -Dlibdir="$PWD/install/lib" \
-Dhotp=disabled -Dtotp=disabled \
-Daes_block=disabled -Daes_cbc=disabled -Daes_ctr=disabled \
-Daes_kw=disabled -Dapps=disabled \
-Ddisable-asm=true \
_build
# the reason for -Ddisable-asm=true being bz2416812
# revert once the root cause is fixed
meson compile -C _build
meson install -C _build
@ -399,6 +406,11 @@ pushd native_build
--with-leancrypto \
%else
--without-leancrypto \
%endif
%if %{with crypto_auditing}
--enable-crypto-auditing \
%else
--disable-crypto-auditing \
%endif
--disable-rpath \
--with-default-priority-string="@SYSTEM"

View file

@ -1,5 +1,5 @@
SHA512 (gnutls-3.8.10.tar.xz) = d453bd4527af95cb3905ce8753ceafd969e3f442ad1d148544a233ebf13285b999930553a805a0511293cc25390bb6a040260df5544a7c55019640f920ad3d92
SHA512 (gnutls-3.8.10.tar.xz.sig) = 72d6dd2c23f768f5041c3dca0f49b3f60cd01fc960ce77f097094a2aae6d76fddeb6295c425e3750c711d5f700957a62268aecc4873e53c31abb60eecf0fd4a8
SHA512 (gnutls-3.8.11.tar.xz) = 68f9e5bec3aa6686fd3319cc9c88a5cc44e2a75144049fc9de5fb55fef2241b4e16996af4be5dd48308abbee8cfaed6c862903f6bb89aff5dfa5410075bd7386
SHA512 (gnutls-3.8.11.tar.xz.sig) = 90883e5736299b103844ca42b85d371969ef66b50b60cb185e814ad9978598796e9ed07a590245ff28ac6ac084b1dee93fae0845576464583a5941835990957d
SHA512 (gnutls-release-keyring.gpg) = 8c2b39239d1d8c5319757fcf669f28a11de7f8ec4a726f9904c57ba8105bea80240083c0de71b747115907bab46569f10cf58004137cc7884ac5c20f8319ae0a
SHA512 (gmp-6.2.1.tar.xz) = c99be0950a1d05a0297d65641dd35b75b74466f7bf03c9e8a99895a3b2f9a0856cd17887738fa51cf7499781b65c049769271cbcb77d057d2e9f1ec52e07dd84
SHA512 (leancrypto-1.5.0.tar.gz) = 1170a502f58c9bce424578cece64a3ebf856620adc02f390b8877981bccf0c2bf35e64b1628094a06c069ec38a3be5889be22516d45d85f4e75b40085d9001c9
SHA512 (leancrypto-1.6.0.tar.gz) = cb6ace4a1642208dd7656b62a48e99d6261f471aa7967b738057745a4534abfa11d380dd5de98a737c0c13b1e1cb37ce780e02297eefc1cf839581629d34e100