Browse Source

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>
tags/10.0-eol
Alexandru Avadanii 2 years ago
parent
commit
710f1b6ad2
2 changed files with 8 additions and 8 deletions
  1. 4
    4
      ovs_build/build-ovs-dpdk.sh
  2. 4
    4
      ovs_build/build-ovs-nsh-dpdk.sh

+ 4
- 4
ovs_build/build-ovs-dpdk.sh View File

@@ -10,7 +10,7 @@ BUILD_HOME=${BUILD_HOME:-/tmp/ovs-dpdk}
10 10
 
11 11
 export DEB_BUILD_OPTIONS='parallel=8 nocheck'
12 12
 
13
-sudo apt-get -y install devscripts dpkg-dev git wget dkms
13
+sudo apt-get -y --force-yes install devscripts dpkg-dev git wget dkms
14 14
 
15 15
 rm -rf ${BUILD_HOME}; mkdir -p ${BUILD_HOME}/deb
16 16
 
@@ -29,7 +29,7 @@ dpdk (16.07-0ubuntu5~u1604+fuel10) xenial; urgency=low
29 29
 EOF
30 30
 
31 31
 # copy from debian/control
32
-sudo apt-get install -y debhelper \
32
+sudo apt-get install -y --force-yes debhelper \
33 33
                dh-python \
34 34
                dh-systemd \
35 35
                doxygen  \
@@ -46,12 +46,12 @@ sudo apt-get install -y debhelper \
46 46
 debian/rules build; fakeroot debian/rules binary
47 47
 
48 48
 cd ${BUILD_HOME}
49
-sudo apt-get install -y hwdata
49
+sudo apt-get install -y --force-yes hwdata
50 50
 sudo dpkg -i *.deb
51 51
 mv *.deb ${BUILD_DEST}
52 52
 
53 53
 # copy from debian/control
54
-sudo apt-get install -y autoconf \
54
+sudo apt-get install -y --force-yes autoconf \
55 55
                automake \
56 56
                bzip2 \
57 57
                debhelper \

+ 4
- 4
ovs_build/build-ovs-nsh-dpdk.sh View File

@@ -10,7 +10,7 @@ BUILD_HOME=${BUILD_HOME:-/tmp/ovs-dpdk}
10 10
 
11 11
 export DEB_BUILD_OPTIONS='parallel=8 nocheck'
12 12
 
13
-sudo apt-get -y install devscripts dpkg-dev git wget dkms
13
+sudo apt-get -y --force-yes install devscripts dpkg-dev git wget dkms
14 14
 
15 15
 rm -rf ${BUILD_HOME}; mkdir -p ${BUILD_HOME}/deb
16 16
 
@@ -29,7 +29,7 @@ dpdk (16.07-0ubuntu5~u1604+fuel10) xenial; urgency=low
29 29
 EOF
30 30
 
31 31
 # copy from debian/control
32
-sudo apt-get install -y debhelper \
32
+sudo apt-get install -y --force-yes debhelper \
33 33
                dh-python \
34 34
                dh-systemd \
35 35
                doxygen  \
@@ -46,12 +46,12 @@ sudo apt-get install -y debhelper \
46 46
 debian/rules build; fakeroot debian/rules binary
47 47
 
48 48
 cd ${BUILD_HOME}
49
-sudo apt-get install -y hwdata
49
+sudo apt-get install -y --force-yes hwdata
50 50
 sudo dpkg -i *.deb
51 51
 mv *.deb ${BUILD_DEST}
52 52
 
53 53
 # copy from debian/control
54
-sudo apt-get install -y autoconf \
54
+sudo apt-get install -y --force-yes autoconf \
55 55
                automake \
56 56
                bzip2 \
57 57
                debhelper \

Loading…
Cancel
Save