From patchwork Wed May 28 09:32:07 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Uvarov X-Patchwork-Id: 31048 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-yk0-f199.google.com (mail-yk0-f199.google.com [209.85.160.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 5FB39203C3 for ; Wed, 28 May 2014 09:32:46 +0000 (UTC) Received: by mail-yk0-f199.google.com with SMTP id 200sf25906146ykr.2 for ; Wed, 28 May 2014 02:32:46 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:delivered-to:from:to:date :message-id:subject:precedence:reply-to:list-id:list-unsubscribe :list-archive:list-post:list-help:list-subscribe:mime-version:sender :errors-to:x-original-sender:x-original-authentication-results :mailing-list:content-type:content-transfer-encoding; bh=CvK/6Tjia7sfQTzaaHO+tyFmeYQfLyCd3paMQsCV2h8=; b=dlFmYrWFVfj8C+8pfKSow6+7epqFXikjjGWsTksYFcldMv+xVTBw07hZUKFxBGDSzp ejXOIX6q/wJD/rvFVBKsCttvlCgcE3KHnl9aKtcXtps0Jih5Q7mFieNdEk4OjDwHOB11 AjyvUCe4SrPqiX5wnlanMcbVTwLNU8Fc34hj+Ir7aI+vOMU9QuKw22+vBHm3CBdDaEMk QodLJKgI+mmgOmUX806iOvrjIrdVDkDhjY4/zL+OvrOw2hotFgQ9vNjfGHfiyvFaG4mh e27cykAoAMfvjHDOXI7esllEfzRnryv6cFErYH3adhIWnL8CcvnEez6KscH3mRU3QGJf iFsg== X-Gm-Message-State: ALoCoQmxwPlaS978qiDL6h2KQeaka9j7qF3c0d2M4EFe3kB9w+HnR44vxspAnxb869IHEfx4Nyhv X-Received: by 10.236.101.148 with SMTP id b20mr14172434yhg.46.1401269566227; Wed, 28 May 2014 02:32:46 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.42.111 with SMTP id b102ls17365qga.31.gmail; Wed, 28 May 2014 02:32:46 -0700 (PDT) X-Received: by 10.58.127.101 with SMTP id nf5mr488750veb.50.1401269566111; Wed, 28 May 2014 02:32:46 -0700 (PDT) Received: from mail-vc0-f169.google.com (mail-vc0-f169.google.com [209.85.220.169]) by mx.google.com with ESMTPS id e4si10064135vej.62.2014.05.28.02.32.46 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 28 May 2014 02:32:46 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.169 as permitted sender) client-ip=209.85.220.169; Received: by mail-vc0-f169.google.com with SMTP id ij19so12008484vcb.14 for ; Wed, 28 May 2014 02:32:46 -0700 (PDT) X-Received: by 10.53.12.229 with SMTP id et5mr27720211vdd.32.1401269565770; Wed, 28 May 2014 02:32:45 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.221.72 with SMTP id ib8csp187118vcb; Wed, 28 May 2014 02:32:45 -0700 (PDT) X-Received: by 10.68.186.130 with SMTP id fk2mr44379284pbc.60.1401269564940; Wed, 28 May 2014 02:32:44 -0700 (PDT) Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id vl14si17210008pab.139.2014.05.28.02.32.44 for ; Wed, 28 May 2014 02:32:44 -0700 (PDT) Received-SPF: none (google.com: openembedded-devel-bounces@lists.openembedded.org does not designate permitted sender hosts) client-ip=140.211.169.62; Received: from mail.openembedded.org (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 26EAF65F1F; Wed, 28 May 2014 09:32:17 +0000 (UTC) X-Original-To: openembedded-devel@lists.openembedded.org Delivered-To: openembedded-devel@lists.openembedded.org X-Greylist: delayed 165647 seconds by postgrey-1.34 at layers.openembedded.org; Wed, 28 May 2014 09:32:10 UTC Received: from mail-lb0-f171.google.com (unknown [209.85.217.171]) by mail.openembedded.org (Postfix) with ESMTP id 039D765F1F for ; Wed, 28 May 2014 09:32:09 +0000 (UTC) Received: by mail-lb0-f171.google.com with SMTP id 10so5675708lbg.16 for ; Wed, 28 May 2014 02:32:10 -0700 (PDT) X-Received: by 10.112.149.36 with SMTP id tx4mr7791667lbb.59.1401269530467; Wed, 28 May 2014 02:32:10 -0700 (PDT) Received: from maxim-lap.localhost.onion ([92.39.133.154]) by mx.google.com with ESMTPSA id go4sm17798691lbc.35.2014.05.28.02.32.09 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 28 May 2014 02:32:09 -0700 (PDT) From: Maxim Uvarov To: openembedded-devel@lists.openembedded.org Date: Wed, 28 May 2014 13:32:07 +0400 Message-Id: <1401269527-16387-1-git-send-email-maxim.uvarov@linaro.org> X-Mailer: git-send-email 1.8.5.1.163.gd7aced9 Subject: [oe] [PATCHv2] daq fix compilation X-BeenThere: openembedded-devel@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: openembedded-devel@lists.openembedded.org List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Sender: openembedded-devel-bounces@lists.openembedded.org Errors-To: openembedded-devel-bounces@lists.openembedded.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: maxim.uvarov@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.169 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 preset paths to remove that error: /meta-oe/recipes-connectivity/daq/daq_2.0.2.bb ./config.log:cc1: warning: include location "/usr/local/include" is unsafe for cross-compilation [-Wpoison-system-directories] Also this patch add required libdnet dependency. Signed-off-by: Maxim Uvarov --- v2: use ${includedir} ${STAGING_INCDIR} and ${STAGING_LIBDIR} instead of direct reference to /usr/include or /usr/lib meta-oe/recipes-connectivity/daq/daq_2.0.2.bb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/meta-oe/recipes-connectivity/daq/daq_2.0.2.bb b/meta-oe/recipes-connectivity/daq/daq_2.0.2.bb index 4e85194..efdcf99 100644 --- a/meta-oe/recipes-connectivity/daq/daq_2.0.2.bb +++ b/meta-oe/recipes-connectivity/daq/daq_2.0.2.bb @@ -5,7 +5,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=f9ce51a65dd738dc1ae631d8b21c40e0" PARALLEL_MAKE = "" -DEPENDS = "libpcap libpcre" +DEPENDS = "libpcap libpcre libdnet" SRC_URI = "http://fossies.org/linux/misc/daq-${PV}.tar.gz \ file://disable-run-test-program-while-cross-compiling.patch " @@ -15,6 +15,9 @@ SRC_URI = "http://fossies.org/linux/misc/daq-${PV}.tar.gz \ # daq/daq/latest lost dependency on libdnet libmnl libnetfilter-queue libnfnetlink EXTRA_OECONF += "--disable-nfq-module --disable-ipq-module" +# never look to /usr/local lib while cross compiling +EXTRA_OECONF += "--includedir=${includedir} --with-libpcap-includes=${STAGING_INCDIR} --with-dnet-includes=${STAGING_LIBDIR}" + SRC_URI[md5sum] = "865bf9b750a2a2ca632591a3c70b0ea0" SRC_URI[sha256sum] = "d65d1e67c4994e02c3142c49a648642e780b7e3d942b4a51f605309beac269a8"