summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandru Avadanii <Alexandru.Avadanii@enea.com>2016-09-03 20:52:05 +0200
committerAlexandru Avadanii <Alexandru.Avadanii@enea.com>2017-01-24 21:45:39 +0100
commit710f1b6ad2c9c967f7b592cfea471dcbb5f4f2b7 (patch)
treeea6931607bbfedfa41b9c56a4cb8c2ba00a88013
parent70176c98b5a8ad1b8be893b1a97164dc856b9d69 (diff)
build: apt: --force-yes.
For arm64 builds, some packages are fetched from linux.enea.com, leading to package version being reported as "older", although in fact it is newer (dpkg version comparison is not that great with suffixes). Also, since we don't explicitly add the GPG key of the linux.enea.com repo yet, apt is complaining about unverified package sources. Bypass the above by using "--force-yes", next to "-y". Change-Id: I4899fe62aaad9a13f8b2f9ffbdf2f3631ecba164 Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
Notes
Notes (review): Code-Review+2: Ruijing <ruijing.guo@intel.com> Workflow+1: Ruijing <ruijing.guo@intel.com> Verified+2: Jenkins Submitted-by: Jenkins Submitted-at: Wed, 25 Jan 2017 00:09:46 +0000 Reviewed-on: https://review.openstack.org/365278 Project: openstack/fuel-plugin-ovs Branch: refs/heads/master
-rwxr-xr-xovs_build/build-ovs-dpdk.sh8
-rwxr-xr-xovs_build/build-ovs-nsh-dpdk.sh8
2 files changed, 8 insertions, 8 deletions
diff --git a/ovs_build/build-ovs-dpdk.sh b/ovs_build/build-ovs-dpdk.sh
index ed1b984..419f9d0 100755
--- a/ovs_build/build-ovs-dpdk.sh
+++ b/ovs_build/build-ovs-dpdk.sh
@@ -10,7 +10,7 @@ BUILD_HOME=${BUILD_HOME:-/tmp/ovs-dpdk}
10 10
11export DEB_BUILD_OPTIONS='parallel=8 nocheck' 11export DEB_BUILD_OPTIONS='parallel=8 nocheck'
12 12
13sudo apt-get -y install devscripts dpkg-dev git wget dkms 13sudo apt-get -y --force-yes install devscripts dpkg-dev git wget dkms
14 14
15rm -rf ${BUILD_HOME}; mkdir -p ${BUILD_HOME}/deb 15rm -rf ${BUILD_HOME}; mkdir -p ${BUILD_HOME}/deb
16 16
@@ -29,7 +29,7 @@ dpdk (16.07-0ubuntu5~u1604+fuel10) xenial; urgency=low
29EOF 29EOF
30 30
31# copy from debian/control 31# copy from debian/control
32sudo apt-get install -y debhelper \ 32sudo apt-get install -y --force-yes debhelper \
33 dh-python \ 33 dh-python \
34 dh-systemd \ 34 dh-systemd \
35 doxygen \ 35 doxygen \
@@ -46,12 +46,12 @@ sudo apt-get install -y debhelper \
46debian/rules build; fakeroot debian/rules binary 46debian/rules build; fakeroot debian/rules binary
47 47
48cd ${BUILD_HOME} 48cd ${BUILD_HOME}
49sudo apt-get install -y hwdata 49sudo apt-get install -y --force-yes hwdata
50sudo dpkg -i *.deb 50sudo dpkg -i *.deb
51mv *.deb ${BUILD_DEST} 51mv *.deb ${BUILD_DEST}
52 52
53# copy from debian/control 53# copy from debian/control
54sudo apt-get install -y autoconf \ 54sudo apt-get install -y --force-yes autoconf \
55 automake \ 55 automake \
56 bzip2 \ 56 bzip2 \
57 debhelper \ 57 debhelper \
diff --git a/ovs_build/build-ovs-nsh-dpdk.sh b/ovs_build/build-ovs-nsh-dpdk.sh
index 00fbafa..23cea86 100755
--- a/ovs_build/build-ovs-nsh-dpdk.sh
+++ b/ovs_build/build-ovs-nsh-dpdk.sh
@@ -10,7 +10,7 @@ BUILD_HOME=${BUILD_HOME:-/tmp/ovs-dpdk}
10 10
11export DEB_BUILD_OPTIONS='parallel=8 nocheck' 11export DEB_BUILD_OPTIONS='parallel=8 nocheck'
12 12
13sudo apt-get -y install devscripts dpkg-dev git wget dkms 13sudo apt-get -y --force-yes install devscripts dpkg-dev git wget dkms
14 14
15rm -rf ${BUILD_HOME}; mkdir -p ${BUILD_HOME}/deb 15rm -rf ${BUILD_HOME}; mkdir -p ${BUILD_HOME}/deb
16 16
@@ -29,7 +29,7 @@ dpdk (16.07-0ubuntu5~u1604+fuel10) xenial; urgency=low
29EOF 29EOF
30 30
31# copy from debian/control 31# copy from debian/control
32sudo apt-get install -y debhelper \ 32sudo apt-get install -y --force-yes debhelper \
33 dh-python \ 33 dh-python \
34 dh-systemd \ 34 dh-systemd \
35 doxygen \ 35 doxygen \
@@ -46,12 +46,12 @@ sudo apt-get install -y debhelper \
46debian/rules build; fakeroot debian/rules binary 46debian/rules build; fakeroot debian/rules binary
47 47
48cd ${BUILD_HOME} 48cd ${BUILD_HOME}
49sudo apt-get install -y hwdata 49sudo apt-get install -y --force-yes hwdata
50sudo dpkg -i *.deb 50sudo dpkg -i *.deb
51mv *.deb ${BUILD_DEST} 51mv *.deb ${BUILD_DEST}
52 52
53# copy from debian/control 53# copy from debian/control
54sudo apt-get install -y autoconf \ 54sudo apt-get install -y --force-yes autoconf \
55 automake \ 55 automake \
56 bzip2 \ 56 bzip2 \
57 debhelper \ 57 debhelper \