Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/lldpd/, net-misc/lldpd/files/
Date: Sun, 19 Mar 2023 01:02:47
Message-Id: 1679185931.58b32fc67a278d736a891bf917a29de8c22c967f.sam@gentoo
1 commit: 58b32fc67a278d736a891bf917a29de8c22c967f
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Sun Mar 19 00:32:11 2023 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Sun Mar 19 00:32:11 2023 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=58b32fc6
7
8 net-misc/lldpd: fix configure w/ clang 16
9
10 Closes: https://bugs.gentoo.org/900286
11 Signed-off-by: Sam James <sam <AT> gentoo.org>
12
13 .../files/lldpd-1.0.16-configure-clang16.patch | 23 ++++++++++++++++++++++
14 ...dpd-1.0.16-r1.ebuild => lldpd-1.0.16-r2.ebuild} | 4 ++++
15 2 files changed, 27 insertions(+)
16
17 diff --git a/net-misc/lldpd/files/lldpd-1.0.16-configure-clang16.patch b/net-misc/lldpd/files/lldpd-1.0.16-configure-clang16.patch
18 new file mode 100644
19 index 000000000000..bd03399e1b36
20 --- /dev/null
21 +++ b/net-misc/lldpd/files/lldpd-1.0.16-configure-clang16.patch
22 @@ -0,0 +1,23 @@
23 +https://bugs.gentoo.org/900286
24 +https://github.com/lldpd/lldpd/commit/01aee0f3601c60e570aeb9040c036c83d053cc5a
25 +
26 +From 01aee0f3601c60e570aeb9040c036c83d053cc5a Mon Sep 17 00:00:00 2001
27 +From: Florian Weimer <fweimer@××××××.com>
28 +Date: Thu, 8 Dec 2022 13:01:07 +0100
29 +Subject: [PATCH] m4/progname.m4: Include <stdio.h> for printf in
30 + lldp_CHECK___PROGNAME
31 +
32 +Otherwise the checks always fails with a compiler that does not
33 +support implict function declarations.
34 +--- a/m4/progname.m4
35 ++++ b/m4/progname.m4
36 +@@ -4,7 +4,7 @@
37 + AC_DEFUN([lldp_CHECK___PROGNAME],[
38 + AC_CACHE_CHECK([whether libc defines __progname], lldp_cv_check___progname, [
39 + AC_LINK_IFELSE([AC_LANG_PROGRAM(
40 +- [[]],
41 ++ [[#include<stdio.h>]],
42 + [[ extern char *__progname; printf("%s", __progname); ]])],
43 + [ lldp_cv_check___progname="yes" ],
44 + [ lldp_cv_check___progname="no" ])
45 +
46
47 diff --git a/net-misc/lldpd/lldpd-1.0.16-r1.ebuild b/net-misc/lldpd/lldpd-1.0.16-r2.ebuild
48 similarity index 97%
49 rename from net-misc/lldpd/lldpd-1.0.16-r1.ebuild
50 rename to net-misc/lldpd/lldpd-1.0.16-r2.ebuild
51 index 57f61cc2162b..52edf114f8db 100644
52 --- a/net-misc/lldpd/lldpd-1.0.16-r1.ebuild
53 +++ b/net-misc/lldpd/lldpd-1.0.16-r2.ebuild
54 @@ -44,6 +44,10 @@ REQUIRED_USE="
55 # tests need root
56 RESTRICT+=" test"
57
58 +PATCHES=(
59 + "${FILESDIR}"/${PN}-1.0.16-configure-clang16.patch
60 +)
61 +
62 src_prepare() {
63 default