From patchwork Sat Jan 20 22:00:03 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Github ODP bot X-Patchwork-Id: 125257 Delivered-To: patch@linaro.org Received: by 10.46.66.141 with SMTP id h13csp444642ljf; Sat, 20 Jan 2018 14:01:28 -0800 (PST) X-Google-Smtp-Source: AH8x2262Jq7tSSlBc5/8mP7caBGTum312UHTAyBGfsa69HQ4ODHqp/cNgH0SyIg7gOIFPcV5yVuY X-Received: by 10.55.143.193 with SMTP id r184mr3667531qkd.193.1516485688090; Sat, 20 Jan 2018 14:01:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516485688; cv=none; d=google.com; s=arc-20160816; b=wHfC2QUVb9OredXJFm602EijzQhFsC9qPPPrLtCT8BVmS7DMKPsCg1iyDvcj3W8Pp0 U44VHeIo1fjwFoeGOKfbXP6gc3/sQZ9Kk4FD6kcITmQIddrAvuezvpSm4lCU1bpFMXuV XFx1YY2iVxxUSaqFapXTRvKz0iWeUnzDAYVCkYw6PbNqJKv6aIQrJHWCs5EaWm4OmK9G z5UHImYytzkZzvLFYulYszYGJVDG4wlPI23sNJICHlqtZnjSt5KD8KJdhsB/Cjqi9DVt sxdUbtBrqMEzMF2QspH0I8l3eSSEmmbeRZ0e/69S4vczzh8VA9NH/hO9+s2o8EaIph9K GNWA== 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=YQpuHnCB7WP+k2OWmWdtYVnDqOQJtB8i/+F9WMDtfVQ=; b=mjTd/ceht3OwrjG8ha68Hkmp4OgAjlMd1Uts+Bu/FFyfNxDOh2SmSXg1341yKD9NbG VTrnaMkpwJDyOPZb8AAk/or/KI2k4Lq1wZIrPCSgZgXBM2Q/jdKBRUu1ih7JJ5iT3AbC a1ZRQPCNJ5F12tuDMxX8zD5PvnkNyBsEnmXkfDenEc+bTiC9Bg+Jq1yOy/ufjFhwwOvO MqktPx0+TQgMV/vi5va99sPGi+VRw5u0KaEc7Y8hH+LMSyYzFyAJvJYhRT4XRFVY/kHI Fxe+ofRxddQvby/kkNkEEeT6adSYCuph8nzFbqgpLacm5beL0HxvCAgQSF/VLsWBMlH8 c1Lw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 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 (ec2-54-197-127-237.compute-1.amazonaws.com. [54.197.127.237]) by mx.google.com with ESMTP id r25si7488647qte.463.2018.01.20.14.01.27; Sat, 20 Jan 2018 14:01:28 -0800 (PST) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) client-ip=54.197.127.237; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 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 B577B616DF; Sat, 20 Jan 2018 22:01:27 +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, RCVD_IN_MSPIKE_H2 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 2B9306175B; Sat, 20 Jan 2018 22:00:20 +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 4759660912; Sat, 20 Jan 2018 22:00:12 +0000 (UTC) Received: from forward100p.mail.yandex.net (forward100p.mail.yandex.net [77.88.28.100]) by lists.linaro.org (Postfix) with ESMTPS id E89286088C for ; Sat, 20 Jan 2018 22:00:09 +0000 (UTC) Received: from mxback8j.mail.yandex.net (mxback8j.mail.yandex.net [IPv6:2a02:6b8:0:1619::111]) by forward100p.mail.yandex.net (Yandex) with ESMTP id ED1995102895 for ; Sun, 21 Jan 2018 01:00:08 +0300 (MSK) Received: from smtp3o.mail.yandex.net (smtp3o.mail.yandex.net [2a02:6b8:0:1a2d::27]) by mxback8j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id kZqLoBG2KE-08R4gXB1; Sun, 21 Jan 2018 01:00:08 +0300 Received: by smtp3o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id LPmoe42h6Q-08m8wUAn; Sun, 21 Jan 2018 01:00:08 +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: Sun, 21 Jan 2018 01:00:03 +0300 Message-Id: <1516485606-24768-3-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1516485606-24768-1-git-send-email-odpbot@yandex.ru> References: <1516485606-24768-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 412 Subject: [lng-odp] [PATCH v1 2/5] travis: install packages in single pass 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 To speedup build and to ease debugging in case only several packages are available, install all packages in single apt-get call. Signed-off-by: Dmitry Eremin-Solenikov --- /** Email created from pull request 412 (lumag:travis-upd) ** https://github.com/Linaro/odp/pull/412 ** Patch: https://github.com/Linaro/odp/pull/412.patch ** Base sha: 5a4502fc6bc53e6503169da3028f456b64811a0b ** Merge commit sha: 3d2664767caeeb88129c63135b083e5a0b25a3a3 **/ .travis.yml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index 39dbb5865..2a253e321 100644 --- a/.travis.yml +++ b/.travis.yml @@ -97,15 +97,18 @@ before_install: sudo -E apt-add-repository -y "deb http://ports.ubuntu.com trusty main" ; sudo -E apt-add-repository -y "deb http://ports.ubuntu.com trusty-updates main" ; sudo -E apt-get -y update || true ; - sudo -E apt-get -y --no-install-suggests --no-install-recommends --force-yes install build-essential || exit 1; + PKGS="build-essential libc6-dev:"$CROSS_ARCH" libssl-dev:"$CROSS_ARCH" zlib1g-dev:"$CROSS_ARCH" libconfig-dev:"$CROSS_ARCH" libstdc++-4.8-dev:"$CROSS_ARCH" libpcap0.8-dev:"$CROSS_ARCH"" if [ "$CROSS_ARCH" = "i386" ] ; then - sudo -E apt-get -y --no-install-suggests --no-install-recommends --force-yes install g++-multilib || exit 1; + PKGS="$PKGS g++-multilib" ; else - sudo -E apt-get -y --no-install-suggests --no-install-recommends --force-yes install g++-"$CROSS_GNU_TYPE" || exit 1; + PKGS="$PKGS g++-"$CROSS_GNU_TYPE" ; fi ; - sudo -E apt-get -y --no-install-suggests --no-install-recommends --force-yes install libc6-dev:"$CROSS_ARCH" libssl-dev:"$CROSS_ARCH" zlib1g-dev:"$CROSS_ARCH" libconfig-dev:"$CROSS_ARCH" libstdc++-4.8-dev:"$CROSS_ARCH" libpcap0.8-dev:"$CROSS_ARCH" || exit 1; - [ "$CROSS_ARCH" = "armhf" ] || sudo -E apt-get -y --no-install-suggests --no-install-recommends --force-yes install libnuma-dev:"$CROSS_ARCH" || exit 1; + if [ "$CROSS_ARCH" != "armhf" ] ; + then + PKGS="$PKGS libnuma-dev:$CROSS_ARCH" ; + fi + sudo -E apt-get -y --no-install-suggests --no-install-recommends --force-yes install "$PKGS" || exit 1; export PKG_CONFIG_PATH=/usr/lib/${CROSS_MULTIARCH}/pkgconfig:/usr/${CROSS_MULTIARCH}/lib/pkgconfig ; fi - if [ "${CC#clang}" != "${CC}" ] ;