patches/fuel-plugin-ovs: fix version bump of libxenstore3.0
[armband.git] / patches / fuel-plugin-ovs / 0003-build-apt-force-yes.patch
1 From: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
2 Date: Sat, 3 Sep 2016 20:52:05 +0200
3 Subject: [PATCH] build: apt: --force-yes.
4
5 For arm64 builds, some packages are fetched from linux.enea.com,
6 leading to package version being reported as "older", although in
7 fact it is newer (dpkg version comparison is not that great with
8 suffixes). Also, since we don't explicitly add the GPG key of
9 the linux.enea.com repo yet, apt is complaining about unverified
10 package sources.
11
12 Bypass the above by using "--force-yes", next to "-y".
13
14 Change-Id: I4899fe62aaad9a13f8b2f9ffbdf2f3631ecba164
15 Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
16 ---
17  ovs_build/build-ovs-dpdk.sh     | 8 ++++----
18  ovs_build/build-ovs-nsh-dpdk.sh | 8 ++++----
19  2 files changed, 8 insertions(+), 8 deletions(-)
20
21 diff --git a/ovs_build/build-ovs-dpdk.sh b/ovs_build/build-ovs-dpdk.sh
22 index 01ba032..dd9c6ff 100755
23 --- a/ovs_build/build-ovs-dpdk.sh
24 +++ b/ovs_build/build-ovs-dpdk.sh
25 @@ -10,7 +10,7 @@ BUILD_DEST=${BUILD_DEST:-/tmp/ovs-dpdk}
26
27  export DEB_BUILD_OPTIONS='parallel=8 nocheck'
28
29 -sudo apt-get -y install devscripts dpkg-dev wget
30 +sudo apt-get -y --force-yes install devscripts dpkg-dev wget
31
32  rm -rf ${BUILD_DEST}; mkdir -p ${BUILD_DEST}
33
34 @@ -21,7 +21,7 @@ cd dpdk-16.07
35  cp -r ${BUILD_SRC}/dpdk_16.07/debian .
36
37  # copy from debian/control
38 -sudo apt-get install -y debhelper \
39 +sudo apt-get install -y --force-yes debhelper \
40                 dh-python \
41                 dh-systemd \
42                 doxygen  \
43 @@ -41,9 +41,9 @@ cd ${BUILD_DEST}
44  sudo dpkg -i *.deb
45  apt-get download libxenstore3.0
46
47 -sudo apt-get build-dep openvswitch -y
48 +sudo apt-get build-dep openvswitch -y --force-yes
49  # copy from debian/control
50 -sudo apt-get install -y autoconf \
51 +sudo apt-get install -y --force-yes autoconf \
52                 automake \
53                 bzip2 \
54                 debhelper \
55 diff --git a/ovs_build/build-ovs-nsh-dpdk.sh b/ovs_build/build-ovs-nsh-dpdk.sh
56 index 25e4b6c..3751c02 100755
57 --- a/ovs_build/build-ovs-nsh-dpdk.sh
58 +++ b/ovs_build/build-ovs-nsh-dpdk.sh
59 @@ -11,8 +11,8 @@ DIR="$(dirname `readlink -f $0`)"
60
61  export DEB_BUILD_OPTIONS='parallel=8 nocheck'
62
63 -sudo apt-get build-dep openvswitch -y
64 -sudo apt-get -y install devscripts dpkg-dev wget
65 +sudo apt-get build-dep openvswitch -y --force-yes
66 +sudo apt-get -y --force-yes install devscripts dpkg-dev wget
67
68  rm -rf ${BUILD_HOME}; mkdir -p ${BUILD_HOME}
69
70 @@ -20,7 +20,7 @@ cd ${BUILD_HOME}
71  dget -x -u https://launchpad.net/ubuntu/+archive/primary/+files/dpdk_2.2.0-0ubuntu8.dsc
72
73  # copy from debian/control
74 -sudo apt-get install -y debhelper \
75 +sudo apt-get install -y --force-yes debhelper \
76                 dh-python \
77                 dh-systemd \
78                 doxygen  \
79 @@ -49,7 +49,7 @@ cd ${BUILD_HOME}
80  dget -x -u https://launchpad.net/ubuntu/+archive/primary/+files/openvswitch-dpdk_2.4.0-0ubuntu1.dsc
81
82  # copy from debian/control
83 -sudo apt-get install -y autoconf \
84 +sudo apt-get install -y --force-yes autoconf \
85                 automake \
86                 bzip2 \
87                 debhelper \