From patchwork Tue Sep 5 16:00:11 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: 111702 Delivered-To: patch@linaro.org Received: by 10.140.94.166 with SMTP id g35csp3029871qge; Tue, 5 Sep 2017 09:02:10 -0700 (PDT) X-Google-Smtp-Source: ADKCNb6RmMA6zwN1lz5lC8uX8JgElVvCbt5+D+rMvWW5HPKxabDsvttpuMqbNask1WJf6R1iFuer X-Received: by 10.55.101.216 with SMTP id z207mr6275439qkb.204.1504627330625; Tue, 05 Sep 2017 09:02:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1504627330; cv=none; d=google.com; s=arc-20160816; b=nE7mIoh4HNiwEP24PxyYj6UNWBj3Tg7xH7652gdQKm1S12uukPRddEAG6+04HOqfXk H0rZUu4nAhBpfxM1e6gjWjGhTnJ+s9B54zmzB2q6Y5I7DjDZoTFP0v9jq79BVfOOoOdg Wx6qpxBQzJikoctoZf96Myi+47d6WsmNtXp17Ngi5J2RVIXrpLl0JlisufbeC4Wenga+ VnSOW2r8HKFgDhmJvZVvY8SmEhXRkolSt3sBVCSk6E2ezJ4ZSsG86BGpZbGU9BmCAHvP Mla3/i+mgg+T04hplvhMriQSmhgDO0y+yN/JrUgCmSA0uf/KXwTtXiQkoX5y2Zk6YlSS NMtA== 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=yjj33p6kd6JvTXayMHXeQs9X4+KPIyxW4nS70m68tvE=; b=MOrKFjj+5bEtl6k5fvyQPfe2Kki1JOUOHKwtOXRLLr3tp79JPqZ+MOjbTWljm0a8OO 3ZtacEQc8vpaCJQju4TLSTdFxFi58+d9vffwfifKF4528GRmrW1Azu3fTWQA+hr3JVss x99d4zM8u4qicc65WBQDZ8MJgil3FODZ1uUmsmSz0ei84PSdQ2PjKUINTA/ZzBrz3ZZz JQ8oTs/ORgXA5rjH41KGf6TGp+0OnvX7PcUmqmjMoapOvLUWPtcniuBQcmdUC5c8rD9z mSUXtJZ45n0+06h5b4q7RazZtxy4eqOWEyynRFdPgEMD25UTIk6kUfyy6hGE3PldJoio y/Pw== 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 25si470047qtd.441.2017.09.05.09.02.10; Tue, 05 Sep 2017 09:02:10 -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 3B3FE60F42; Tue, 5 Sep 2017 16:02:10 +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 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 9A5F961BC6; Tue, 5 Sep 2017 16:00:46 +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 91B9760D8E; Tue, 5 Sep 2017 16:00:27 +0000 (UTC) Received: from forward101o.mail.yandex.net (forward101o.mail.yandex.net [37.140.190.181]) by lists.linaro.org (Postfix) with ESMTPS id 6AE8E60F42 for ; Tue, 5 Sep 2017 16:00:20 +0000 (UTC) Received: from mxback13j.mail.yandex.net (mxback13j.mail.yandex.net [IPv6:2a02:6b8:0:1619::88]) by forward101o.mail.yandex.net (Yandex) with ESMTP id 234B21344CE6 for ; Tue, 5 Sep 2017 19:00:18 +0300 (MSK) Received: from smtp2j.mail.yandex.net (smtp2j.mail.yandex.net [2a02:6b8:0:801::ac]) by mxback13j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id oXagd1pIIK-0IG0JWis; Tue, 05 Sep 2017 19:00:18 +0300 Received: by smtp2j.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id l6TmYsdzFf-0HiS8YZo; Tue, 05 Sep 2017 19:00:17 +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: Tue, 5 Sep 2017 19:00:11 +0300 Message-Id: <1504627211-31463-2-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1504627211-31463-1-git-send-email-odpbot@yandex.ru> References: <1504627211-31463-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 162 Subject: [lng-odp] [PATCH v1 1/1] 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: 42184679185ce0c979e065349360167e3fce6ca0 ** Merge commit sha: 14eaeea369772a8d69c46395d2011a7c66ebf0a0 **/ DEPENDENCIES | 32 ++++++++++++++++++++------------ 1 file changed, 20 insertions(+), 12 deletions(-) diff --git a/DEPENDENCIES b/DEPENDENCIES index a194cad1..71c629ba 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 prvodes 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 @@ -232,20 +233,27 @@ 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: + + # Systemwide CUnit if configure errors out with 'missing Version' message + ./configure CUNIT_CFLAGS="-I/usr/include" CUNIT_LIBS="-lcunit" + + # 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