From patchwork Fri Sep 8 11:00:07 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Github ODP bot X-Patchwork-Id: 112060 Delivered-To: patch@linaro.org Received: by 10.140.106.117 with SMTP id d108csp134310qgf; Fri, 8 Sep 2017 04:04:28 -0700 (PDT) X-Google-Smtp-Source: AOwi7QCdVUwS0EN44hRYCj3IKhRBK5zoKnLQqIjLhGREJRV4kPlKnd2fIB5xBIEEXjm4PNhmpMDC X-Received: by 10.233.244.72 with SMTP id z8mr3288984qkl.186.1504868668415; Fri, 08 Sep 2017 04:04:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1504868668; cv=none; d=google.com; s=arc-20160816; b=mNsDaUTC577H3ZYRLWTpXKAy90gLJt4UfczkHsF6bcB1Ph3ddrTsjRRX+on9IY1C4R IKY1vdFsQKXhvjCzGPiPk03Dsv2jlx4AtMgERjpkYPVwTCovjiU88kLHpIUD3B2f3rMc pPLeHmUpoBcb4ROHc0J9xtCG7Qp1bAm+CcF6BIrqr52wTkpKChJSJ2UAz8QqGyv2Olfu vahagqwUwBPnl9c+JrNf+pjViS0LPRMp2XMdunEbkA6iySKQoNhrL5ehANeRPPLY1LMl azmaiLgBaeAlYjSlWd1EOgsn7vqsn0GcvE0MLgr2vT+h9Pefxi4MxB0OIa457/Y6Gk/j CtUQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:github-pr-num :references:in-reply-to:message-id:date:to:from:delivered-to :arc-authentication-results; bh=AJlansRO9KEB9zhVDxTcicevmj6wnhbiGh1IDzjHpLI=; b=Mt3ARZumlbnuurvKol4MCRKTNMzIsTF0Bolk2qFVnbMv3tQkvxJcRsHCoLqER7v0Ni 5rKG+ssZuWOXLJI/fJxHeKpOLGtxgNQhFfUNZoPH3PPA/9xpVrXtUKTW7M6Wr1VP7SXG gt4NHMp547nKI1tcwqC3yDKYqQBCthXAMfMGZMz7PhvTjHrrD9N/F3DDcUlsJiksZwC9 pNi9sQcqYqU2IVtKn8SByAnf3SOeWokYJCK07i/WqnNMfFbqGpX4Il3HUY7s6wlIo6YC BXBdzZkKRlHSxY7F+9co/SmzCGQgyAXEIRJkcXEZX9es/mbqDiYFINNQ6SHBIDNLG+H1 GwWQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id e39si1342496qkh.77.2017.09.08.04.04.28; Fri, 08 Sep 2017 04:04:28 -0700 (PDT) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Received: by lists.linaro.org (Postfix, from userid 109) id 0A25E609E9; Fri, 8 Sep 2017 11:04:28 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_LOW,URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id 1472E609ED; Fri, 8 Sep 2017 11:00:56 +0000 (UTC) X-Original-To: lng-odp@lists.linaro.org Delivered-To: lng-odp@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 7557B60961; Fri, 8 Sep 2017 11:00:26 +0000 (UTC) Received: from forward100p.mail.yandex.net (forward100p.mail.yandex.net [77.88.28.100]) by lists.linaro.org (Postfix) with ESMTPS id BACB460976 for ; Fri, 8 Sep 2017 11:00:15 +0000 (UTC) Received: from mxback8g.mail.yandex.net (mxback8g.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b7:169]) by forward100p.mail.yandex.net (Yandex) with ESMTP id 53B265100A73 for ; Fri, 8 Sep 2017 14:00:14 +0300 (MSK) Received: from smtp1p.mail.yandex.net (smtp1p.mail.yandex.net [2a02:6b8:0:1472:2741:0:8b6:6]) by mxback8g.mail.yandex.net (nwsmtp/Yandex) with ESMTP id MEd8gFIqYe-0EZe5On0; Fri, 08 Sep 2017 14:00:14 +0300 Received: by smtp1p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id hlbb8BpUnk-0DbafOKu; Fri, 08 Sep 2017 14:00:13 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (Client certificate not present) From: Github ODP bot To: lng-odp@lists.linaro.org Date: Fri, 8 Sep 2017 14:00:07 +0300 Message-Id: <1504868409-30780-2-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1504868409-30780-1-git-send-email-odpbot@yandex.ru> References: <1504868409-30780-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 162 Subject: [lng-odp] [PATCH v1 1/3] DEPENDENCIES: document changes in CUnit localization X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: "The OpenDataPlane \(ODP\) List" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" From: Dmitry Eremin-Solenikov Signed-off-by: Dmitry Eremin-Solenikov --- /** Email created from pull request 162 (lumag:fix-deps) ** https://github.com/Linaro/odp/pull/162 ** Patch: https://github.com/Linaro/odp/pull/162.patch ** Base sha: 360c1d34b52a2356619b9290811862b9de41de00 ** Merge commit sha: 987b9e6d4ee471b03e4710fb7f50f9cf2d03ce65 **/ DEPENDENCIES | 31 ++++++++++++++++++------------- 1 file changed, 18 insertions(+), 13 deletions(-) diff --git a/DEPENDENCIES b/DEPENDENCIES index a194cad1c..e309b3391 100644 --- a/DEPENDENCIES +++ b/DEPENDENCIES @@ -9,12 +9,13 @@ Prerequisites for building the OpenDataPlane (ODP) API automake autoconf libtool + pkg-config On Debian/Ubuntu systems: - $ sudo apt-get install automake autoconf libtool + $ sudo apt-get install automake autoconf libtool pkg-config On CentOS/RedHat/Fedora systems: - $ sudo yum install automake autoconf libtool + $ sudo yum install automake autoconf libtool pkgconfig 3. Required libraries @@ -199,11 +200,11 @@ Prerequisites for building the OpenDataPlane (ODP) API 4.0 Packages needed to build API tests - Cunit test framework version 2.1-3 is required - Cunit prvodes a framework to run the API test suite that proves conformance to the + CUnit test framework version 2.1-3 is required + CUnit provides a framework to run the API test suite that proves conformance to the ODP API. The home page http://cunit.sourceforge.net/doc/introduction.html -4.1 Native Cunit install +4.1 Native CUnit install # Debian/Ubuntu $ apt-get install libcunit1-dev @@ -223,7 +224,7 @@ Prerequisites for building the OpenDataPlane (ODP) API sudo make install # ... OR ... Install CUnit into user defined location. The same path is - # used in step 4.4 --with-cunit-path=/home/ + # used in step 4.4: PKG_CONFIG_PATH=/home//lib/pkgconfig ./configure --prefix=/home/ make make install @@ -232,20 +233,24 @@ Prerequisites for building the OpenDataPlane (ODP) API # reboot, before trying to run e.g. 'make distcheck'. sudo ldconfig -4.3 Cross compile of Cunit +4.3 Cross compile of CUnit $ git svn clone http://svn.code.sf.net/p/cunit/code/trunk cunit-code $ cd cunit-code $ ./bootstrap $ ./configure --host=arm-linux-gnueabihf --prefix=/home/${USER}/src/install-cunit -4.4 Using Cunit with ODP - $ Add the configuration option to the regular configuration options - # Use the default path ... - ./configure --enable-cunit +4.4 Using CUnit with ODP - # ... OR the user defined path. - ./configure --with-cunit-path=/home/ + Configure will automatically look for CUnit if validation testsuite is + enabled. By default it uses pkg-config to locate CUnit. Usually no + additional configuration will be required. Few corner cases: + + # User directory installation + ./configure PKG_CONFIG_PATH=/home//lib/pkgconfig + + # ... OR directly specifying flags + ./configure CUNIT_CFLAGS="-I/home//include" CUNIT_LIBS="/home//lib -lcunit" 5.0 Documentation Images & Doxygen