Avoid using bad function inet_addr

Resolves: rhbz#2029808
This commit is contained in:
Jakub Jelen 2021-12-06 21:10:36 +01:00
parent a97aa2c3e0
commit 43b51df75c
2 changed files with 34 additions and 0 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

@ -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