From 95457ff66dc75fbcf8da51c94c231087eaef7e11 Mon Sep 17 00:00:00 2001 From: Jack Rosenthal Date: Fri, 23 Aug 2019 10:07:20 -0600 Subject: [PATCH] net-analyzer/tcpdump: use target header files (bug #692772) This is a workaround for the generated Makefile including -I/usr/include in INCLS. Signed-off-by: Jack Rosenthal --- net-analyzer/tcpdump/tcpdump-4.9.2.ebuild | 5 +++++ net-analyzer/tcpdump/tcpdump-9999.ebuild | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/net-analyzer/tcpdump/tcpdump-4.9.2.ebuild b/net-analyzer/tcpdump/tcpdump-4.9.2.ebuild index 250b25f4625..856b8c665bd 100644 --- a/net-analyzer/tcpdump/tcpdump-4.9.2.ebuild +++ b/net-analyzer/tcpdump/tcpdump-4.9.2.ebuild @@ -64,6 +64,11 @@ src_configure() { $(use_with smi) \ $(use_with ssl crypto "${EPREFIX}/usr") \ $(usex drop-root "--with-user=tcpdump" "") + + # The Makefile generated by configure will use /usr/include + # regardless of what it's asked to do. Below is a workaround to + # use target headers instead of the host headers. + sed -i -e 's#-I/usr/include##g' "${S}/Makefile" } src_test() { diff --git a/net-analyzer/tcpdump/tcpdump-9999.ebuild b/net-analyzer/tcpdump/tcpdump-9999.ebuild index 5386a5f79ce..b38ec821691 100644 --- a/net-analyzer/tcpdump/tcpdump-9999.ebuild +++ b/net-analyzer/tcpdump/tcpdump-9999.ebuild @@ -68,6 +68,11 @@ src_configure() { $(use_with smi) \ $(use_with ssl crypto "${EPREFIX}/usr") \ $(usex drop-root "--with-user=tcpdump" "") + + # The Makefile generated by configure will use /usr/include + # regardless of what it's asked to do. Below is a workaround to + # use target headers instead of the host headers. + sed -i -e 's#-I/usr/include##g' "${S}/Makefile" } src_test() { -- 2.23.0.187.g17f5b7556c-goog