From mboxrd@z Thu Jan 1 00:00:00 1970 From: Luca Boccassi Subject: Re: [PATCH v8 6/6] build: use dependency for pcap and fallback to find_library Date: Tue, 26 Feb 2019 17:49:59 +0000 Message-ID: References: <20190103175725.5836-1-bluca@debian.org> <20190226174637.27452-1-luca.boccassi@gmail.com> <20190226174637.27452-6-luca.boccassi@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Cc: bruce.richardson@intel.com, thomas@monjalon.net To: dev@dpdk.org Return-path: Received: from mail-wm1-f66.google.com (mail-wm1-f66.google.com [209.85.128.66]) by dpdk.org (Postfix) with ESMTP id 96D83324D for ; Tue, 26 Feb 2019 18:50:01 +0100 (CET) Received: by mail-wm1-f66.google.com with SMTP id e74so3273438wmg.3 for ; Tue, 26 Feb 2019 09:50:01 -0800 (PST) In-Reply-To: <20190226174637.27452-6-luca.boccassi@gmail.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Tue, 2019-02-26 at 17:46 +0000, luca.boccassi@gmail.com wrote: > From: Luca Boccassi >=20 > pcap has historically shipped a custom pcap-config binary tool which > does the job of pkg-config. It was never compatible with cross > compilation. > Meson uses it when using dependency(), which then means cross > compilation fails. > Set pcap-config to empty in the meson cross compilation files so > that Meson will not use it, and add a fallback in case > dependency() fails. > libpcap 1.9.0 finally ships a pkg-config file so everything will > work out of the box in the future. >=20 > Signed-off-by: Luca Boccassi > --- > v8: added back pcap change separately. Tested with bootlin > cross-compilation toolchain, everything seems to work. I had some time to invest so I added back this change, in a way that works with cross compilation too. Given the series wasn't merged yet and there was a conflict I've done a v8 rather than a single separate patch, but it's independent from the rest. More testing is of course welcome! --=20 Kind regards, Luca Boccassi