From 554d85f093fa69922ecd1df0106617ec515e786f Mon Sep 17 00:00:00 2001 From: Jakub Jelen Date: Thu, 27 Jan 2022 17:45:00 +0100 Subject: [PATCH] libgcrypt-1.10.0-0.3 Fix bad soname in the beta tarball Related: rhbz#2026636 --- libgcrypt-1.10.0-soname.patch | 27 +++++++++++++++++++++++++++ libgcrypt.spec | 14 ++++++++------ 2 files changed, 35 insertions(+), 6 deletions(-) create mode 100644 libgcrypt-1.10.0-soname.patch diff --git a/libgcrypt-1.10.0-soname.patch b/libgcrypt-1.10.0-soname.patch new file mode 100644 index 0000000..264ffb0 --- /dev/null +++ b/libgcrypt-1.10.0-soname.patch @@ -0,0 +1,27 @@ +From 2ef408ba09e93aa9b4e352908c9443b247a656ea Mon Sep 17 00:00:00 2001 +From: Werner Koch +Date: Thu, 27 Jan 2022 15:35:39 +0100 +Subject: [PATCH] build: Fix accidental SO number bump. + +-- +Fixes-commit: 65998903f6d17e702fb35b9d4878e33715981298 +--- + configure.ac | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/configure.ac b/configure.ac +index 6e038412..4f2988eb 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -56,7 +56,7 @@ AC_INIT([mym4_package],[mym4_version],[https://bugs.gnupg.org]) + # (Interfaces added: CURRENT++, AGE++, REVISION=0) + # (No interfaces changed: REVISION++) + LIBGCRYPT_LT_CURRENT=24 +-LIBGCRYPT_LT_AGE=0 ++LIBGCRYPT_LT_AGE=4 + LIBGCRYPT_LT_REVISION=0 + ################################################ + +-- +2.34.1 + diff --git a/libgcrypt.spec b/libgcrypt.spec index 9a85d37..2986931 100644 --- a/libgcrypt.spec +++ b/libgcrypt.spec @@ -1,6 +1,6 @@ Name: libgcrypt Version: 1.10.0 -Release: 0.2%{?dist} +Release: 0.3%{?dist} URL: https://www.gnupg.org/ %global beta -beta221 #Source0: https://www.gnupg.org/ftp/gcrypt/libgcrypt/libgcrypt-{version}.tar.bz2 @@ -9,9 +9,11 @@ Source0: https://www.gnupg.org/ftp/gcrypt/alpha/libgcrypt/libgcrypt-%{version}%{ Source1: https://www.gnupg.org/ftp/gcrypt/alpha/libgcrypt/libgcrypt-%{version}%{beta}.tar.bz2.sig Source2: wk@g10code.com Patch1: libgcrypt-1.10.0-disable-brainpool.patch +# Broken soname in the 1.10.0 beta release +Patch2: libgcrypt-1.10.0-soname.patch %global gcrylibdir %{_libdir} -%global gcrysoname libgcrypt.so.24 +%global gcrysoname libgcrypt.so.20 %global hmackey orboDeJITITejsirpADONivirpUkvarP # Technically LGPLv2.1+, but Fedora's table doesn't draw a distinction. @@ -45,6 +47,7 @@ applications using libgcrypt. %prep %setup -q -n libgcrypt-1.10.0%{beta} %patch1 -p1 +%patch2 -p1 %build # This package has a configure test which uses ASMs, but does not link the @@ -128,9 +131,6 @@ done /sbin/ldconfig -n $RPM_BUILD_ROOT/%{_lib}/ %endif -# This is a compat version after the soname bump to .24 -install %{gcrylibdir}/libgcrypt.so.20.*.* $RPM_BUILD_ROOT/%{_libdir} - # Overwrite development symlinks. pushd $RPM_BUILD_ROOT/%{gcrylibdir} for shlib in lib*.so.?? ; do @@ -152,7 +152,6 @@ mkdir -p -m 755 $RPM_BUILD_ROOT/etc/gcrypt %dir /etc/gcrypt %{gcrylibdir}/libgcrypt.so.*.* %{gcrylibdir}/%{gcrysoname} -%{gcrylibdir}/libgcrypt.so.20 %license COPYING.LIB %doc AUTHORS NEWS THANKS @@ -171,6 +170,9 @@ mkdir -p -m 755 $RPM_BUILD_ROOT/etc/gcrypt %license COPYING %changelog +* Thu Jan 27 2022 Jakub Jelen - 1.10.0-0.3 +- Fix broken soname in the previous beta + * Thu Jan 27 2022 Jakub Jelen - 1.10.0-0.2 - Provide compat soname symlink as the new release is backward compatible