Reapply C99 compatibility fix
This commit is contained in:
parent
18e5d8ad50
commit
45a2ef9188
35
lldpd-configure-c99.patch
Normal file
35
lldpd-configure-c99.patch
Normal file
@ -0,0 +1,35 @@
|
||||
commit 01aee0f3601c60e570aeb9040c036c83d053cc5a
|
||||
Author: Florian Weimer <fweimer@redhat.com>
|
||||
Date: Thu Dec 8 13:01:07 2022 +0100
|
||||
|
||||
m4/progname.m4: Include <stdio.h> for printf in lldp_CHECK___PROGNAME
|
||||
|
||||
Otherwise the checks always fails with a compiler that does not
|
||||
support implict function declarations.
|
||||
|
||||
diff --git a/configure b/configure
|
||||
index 10baaca5824a3568..f43b2fd9beb18847 100755
|
||||
--- a/configure
|
||||
+++ b/configure
|
||||
@@ -18976,7 +18976,7 @@ else
|
||||
|
||||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||
/* end confdefs.h. */
|
||||
-
|
||||
+#include<stdio.h>
|
||||
int
|
||||
main ()
|
||||
{
|
||||
diff --git a/m4/progname.m4 b/m4/progname.m4
|
||||
index 031aba65cbf0cc7d..b1a80f7f28c628a8 100644
|
||||
--- a/m4/progname.m4
|
||||
+++ b/m4/progname.m4
|
||||
@@ -4,7 +4,7 @@
|
||||
AC_DEFUN([lldp_CHECK___PROGNAME],[
|
||||
AC_CACHE_CHECK([whether libc defines __progname], lldp_cv_check___progname, [
|
||||
AC_LINK_IFELSE([AC_LANG_PROGRAM(
|
||||
- [[]],
|
||||
+ [[#include<stdio.h>]],
|
||||
[[ extern char *__progname; printf("%s", __progname); ]])],
|
||||
[ lldp_cv_check___progname="yes" ],
|
||||
[ lldp_cv_check___progname="no" ])
|
@ -1,6 +1,6 @@
|
||||
Name: lldpd
|
||||
Version: 1.0.16
|
||||
Release: 3%{?dist}
|
||||
Release: 4%{?dist}
|
||||
Summary: ISC-licensed implementation of LLDP
|
||||
|
||||
License: ISC
|
||||
@ -10,6 +10,7 @@ Source1: %{name}-fedora.service
|
||||
Source2: %{name}-tmpfiles
|
||||
Source3: %{name}-fedora.sysconfig
|
||||
Source4: %{name}-systemd-sysusers.conf
|
||||
Patch1: lldpd-configure-c99.patch
|
||||
|
||||
BuildRequires: check-devel
|
||||
BuildRequires: gcc
|
||||
@ -113,6 +114,9 @@ exit 0
|
||||
|
||||
|
||||
%changelog
|
||||
* Tue Nov 28 2023 Florian Weimer <fweimer@redhat.com> - 1.0.16-4
|
||||
- Reapply C99 compatibility fix
|
||||
|
||||
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.16-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user