[oe-commits] Stefan Agner : ptpd: disable libpcap detection via pcap-config

git at git.openembedded.org git at git.openembedded.org
Mon Jul 27 16:15:10 UTC 2015


Module: meta-openembedded.git
Branch: dizzy-next
Commit: e00844ed8cb964857c73acd8495ae98250c9020f
URL:    http://git.openembedded.org/?p=meta-openembedded.git&a=commit;h=e00844ed8cb964857c73acd8495ae98250c9020f

Author: Stefan Agner <stefan at agner.ch>
Date:   Wed May 20 08:52:08 2015 +0200

ptpd: disable libpcap detection via pcap-config

When the host system provides pcap-config, the configure scripts
detect that and add a bogous CPPFLAG:

checking for pcap-config... /usr/bin/pcap-config
checking if we want to build with libpcap support... yes, pcap-config
...
PCAP_CPPFLAGS =  -I/usr/include

Which down the line can lead to compile errors due to wrong headers
being included. Fix this issue by using --with-pcap-config=no which
prevents detection using pcap-config but does "guessing", which works
fine for OE.

Signed-off-by: Stefan Agner <stefan at agner.ch>
Signed-off-by: Armin Kuster <akuster808 at gmail.com>

---

 meta-networking/recipes-daemons/ptpd/ptpd_2.3.1-rc2.bb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/meta-networking/recipes-daemons/ptpd/ptpd_2.3.1-rc2.bb b/meta-networking/recipes-daemons/ptpd/ptpd_2.3.1-rc2.bb
index db74e44..b6abfee 100644
--- a/meta-networking/recipes-daemons/ptpd/ptpd_2.3.1-rc2.bb
+++ b/meta-networking/recipes-daemons/ptpd/ptpd_2.3.1-rc2.bb
@@ -8,7 +8,7 @@ SECTION = "network"
 LICENSE = "BSD"
 LIC_FILES_CHKSUM = "file://README;md5=2452033fe374283f29579898663b1aa8"
 
-DEPENDS = "libpcap"
+DEPENDS = "linux-libc-headers libpcap"
 
 inherit autotools
 
@@ -30,7 +30,7 @@ S = "${WORKDIR}/ptpd-${PV}"
 
 EXTRA_OEMAKE = ""
 
-EXTRA_OECONF += "--disable-snmp"
+EXTRA_OECONF += "--disable-snmp --with-pcap-config=no"
 
 do_install() {
     install -d ${D}${bindir} ${D}${mandir}/man8



More information about the Openembedded-commits mailing list