import libgpg-error-1.42-5.el9

This commit is contained in:
CentOS Sources 2022-01-11 13:23:49 -05:00 committed by Stepan Oksanichenko
parent 65462c1aa0
commit 7e4c9e40e0
2 changed files with 38 additions and 1 deletions

View File

@ -0,0 +1,30 @@
From 75e06a7861cb4a8479a382946217e846e9b58154 Mon Sep 17 00:00:00 2001
From: Jakub Jelen <jjelen@redhat.com>
Date: Mon, 6 Dec 2021 20:52:57 +0100
Subject: [PATCH Libgpg-error] configure: Add missing check for logging
* configure.ac: Add missing check for inet_pton to avoid using inet_addr
in modern systems.
--
Signed-off-by: Jakub Jelen <jjelen@redhat.com>
---
configure.ac | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/configure.ac b/configure.ac
index da013d8..3686a9c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -215,7 +215,7 @@ AC_SUBST(INSTALLSHELLPATH)
AC_FUNC_FORK
AC_CHECK_FUNCS([flockfile vasprintf mmap rand strlwr stpcpy setenv stat \
- getrlimit getpwnam getpwuid getpwnam_r getpwuid_r ])
+ getrlimit getpwnam getpwuid getpwnam_r getpwuid_r inet_pton ])
#
--
2.31.1

View File

@ -1,6 +1,6 @@
Name: libgpg-error
Version: 1.42
Release: 4%{?dist}
Release: 5%{?dist}
Summary: Library for error values used by GnuPG components
URL: https://www.gnupg.org/related_software/libgpg-error/
License: LGPLv2+
@ -8,7 +8,10 @@ License: LGPLv2+
Source0: https://www.gnupg.org/ftp/gcrypt/libgpg-error/%{name}-%{version}.tar.bz2
Source1: https://www.gnupg.org/ftp/gcrypt/libgpg-error/%{name}-%{version}.tar.bz2.sig
Patch1: libgpg-error-1.29-multilib.patch
# https://dev.gnupg.org/T5381
Patch2: libgpg-error-1.42-coverity.patch
# https://dev.gnupg.org/T5720
Patch3: libgpg-error-1.42-inet_pton.patch
BuildRequires: gcc
BuildRequires: gawk, gettext, autoconf, automake, gettext-devel, libtool
@ -36,6 +39,7 @@ contains files necessary to develop applications using libgpg-error.
%setup -q
%patch1 -p1 -b .multilib
%patch2 -p1 -b .coverity
%patch3 -p1 -b .inet_pton
autoreconf -f
@ -84,6 +88,9 @@ make check
%{_mandir}/man1/gpgrt-config.*
%changelog
* Mon Dec 06 2021 Jakub Jelen <jjelen@redhat.com> - 1.42-5
- Avoid using bad function inet_addr
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 1.42-4
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
Related: rhbz#1991688