From 0df1c6235ae79a341e59ae99fa58d8aa1ce44c24 Mon Sep 17 00:00:00 2001 From: Patrick McLean Date: Fri, 29 May 2020 13:39:07 -0700 Subject: [PATCH] net-misc/lldpd-1.0.5-r1: Add patch to not call cpp in header test Closes: https://bugs.gentoo.org/725234 Copyright: Sony Interactive Entertainment Inc. Package-Manager: Portage-2.3.100, Repoman-2.3.22 Signed-off-by: Patrick McLean --- net-misc/lldpd/files/lldpd-1.0.5-cpp.patch | 13 +++++++++++++ net-misc/lldpd/lldpd-1.0.5-r1.ebuild | 1 + 2 files changed, 14 insertions(+) create mode 100644 net-misc/lldpd/files/lldpd-1.0.5-cpp.patch diff --git a/net-misc/lldpd/files/lldpd-1.0.5-cpp.patch b/net-misc/lldpd/files/lldpd-1.0.5-cpp.patch new file mode 100644 index 000000000000..0c3fc1964d40 --- /dev/null +++ b/net-misc/lldpd/files/lldpd-1.0.5-cpp.patch @@ -0,0 +1,13 @@ +diff --git a/src/daemon/Makefile.am b/src/daemon/Makefile.am +index 0d5f2f3..cc41a8a 100644 +--- a/src/daemon/Makefile.am ++++ b/src/daemon/Makefile.am +@@ -108,7 +108,7 @@ CLEANFILES += syscall-names.h + syscall-names.h: + $(AM_V_GEN) + $(AM_V_at)echo "static const char *syscall_names[] = {" > $@ ;\ +- echo "#include " | cpp -dM | grep '^#define __NR_' | \ ++ echo "#include " | $(CPP) -dM | grep '^#define __NR_' | \ + LC_ALL=C sed -r -n -e 's/^\#define[ \t]+__NR_([a-z0-9_]+)[ \t]+([0-9]+)(.*)/ [\2] = "\1",/p' >> $@ ;\ + echo "};" >> $@ + nodist_liblldpd_la_SOURCES += syscall-names.h diff --git a/net-misc/lldpd/lldpd-1.0.5-r1.ebuild b/net-misc/lldpd/lldpd-1.0.5-r1.ebuild index bdb15ea083d9..8a440b4d037b 100644 --- a/net-misc/lldpd/lldpd-1.0.5-r1.ebuild +++ b/net-misc/lldpd/lldpd-1.0.5-r1.ebuild @@ -41,6 +41,7 @@ REQUIRED_USE="graph? ( doc )" PATCHES=( "${FILESDIR}/lldpd-1.0.5-seccomp.patch" + "${FILESDIR}/lldpd-1.0.5-cpp.patch" ) src_prepare() { -- 2.26.2