Port autoconf script to C99 and enable autoreconf for this package.
Upstrem bug tracked here: https://bugzilla.netfilter.org/show_bug.cgi?id=1654 https://fedoraproject.org/wiki/Toolchain/PortingToModernC
This commit is contained in:
parent
e54da4cef9
commit
27b7327da4
21
libnetfilter_conntrack-autoconf.patch
Normal file
21
libnetfilter_conntrack-autoconf.patch
Normal file
@ -0,0 +1,21 @@
|
||||
Port autoconf script to C99 and enable autoreconf for this package.
|
||||
|
||||
Upstrem bug tracked here:
|
||||
https://bugzilla.netfilter.org/show_bug.cgi?id=1654
|
||||
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
index 060f307..fd70863 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -55,9 +55,9 @@ int main()
|
||||
struct in6_addr addr6;
|
||||
char buf[128];
|
||||
if (inet_ntop(AF_INET6, &addr6, buf, 128) == 0 && errno == EAFNOSUPPORT)
|
||||
- exit(1);
|
||||
+ return 1;
|
||||
else
|
||||
- exit(0);
|
||||
+ return 0;
|
||||
}
|
||||
]])],[ AC_MSG_RESULT(yes)
|
||||
AC_DEFINE_UNQUOTED(HAVE_INET_NTOP_IPV6, 1, [Define to 1 if inet_ntop supports IPv6.])
|
||||
@ -1,16 +1,17 @@
|
||||
Name: libnetfilter_conntrack
|
||||
Version: 1.0.8
|
||||
Release: 5%{?dist}
|
||||
Release: 6%{?dist}
|
||||
Summary: Netfilter conntrack userspace library
|
||||
License: GPLv2+
|
||||
URL: http://netfilter.org
|
||||
Source0: http://netfilter.org/projects/libnetfilter_conntrack/files/%{name}-%{version}.tar.bz2
|
||||
Patch0: libnetfilter_conntrack-autoconf.patch
|
||||
|
||||
BuildRequires: gcc
|
||||
BuildRequires: kernel-headers
|
||||
BuildRequires: libmnl-devel >= 1.0.3
|
||||
BuildRequires: libnfnetlink-devel >= 1.0.1
|
||||
BuildRequires: make
|
||||
BuildRequires: make autoconf automake libtool
|
||||
BuildRequires: pkgconfig
|
||||
|
||||
%description
|
||||
@ -30,6 +31,7 @@ interface (API) to the in-kernel connection tracking state table.
|
||||
%autosetup -p1
|
||||
|
||||
%build
|
||||
autoreconf -vi
|
||||
%configure --disable-static --disable-rpath
|
||||
|
||||
%{make_build}
|
||||
@ -51,6 +53,10 @@ find $RPM_BUILD_ROOT -type f -name "*.la" -delete
|
||||
%{_includedir}/libnetfilter_conntrack/*.h
|
||||
|
||||
%changelog
|
||||
* Fri Jan 06 2023 Peter Fordham <peter.fordham@gmail.com> - 1.0.8-6
|
||||
- Port autoconf script to C99 and enable autoreconf for this package.
|
||||
https://bugzilla.netfilter.org/show_bug.cgi?id=1654
|
||||
|
||||
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.8-5
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user