deploy-cache: Fix bootstrap cache location
[armband.git] / patches / vswitchperf / 0002-s-u-build_base_machine-Arch-indep-libdir-s.patch
1 From: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
2 Date: Tue, 28 Jun 2016 21:35:44 +0200
3 Subject: [PATCH] s/u/build_base_machine: Arch indep libdir(s).
4
5 The same fixes should be applied on arm64, for example.
6
7 Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
8 ---
9  systems/ubuntu/build_base_machine.sh | 5 +++--
10  1 file changed, 3 insertions(+), 2 deletions(-)
11
12 diff --git a/systems/ubuntu/build_base_machine.sh b/systems/ubuntu/build_base_machine.sh
13 index 1b42a79..b0f3740 100755
14 --- a/systems/ubuntu/build_base_machine.sh
15 +++ b/systems/ubuntu/build_base_machine.sh
16 @@ -54,11 +54,12 @@ apt-get -y install libnuma-dev
17  # packages related to VM
18
19  # a few manual fix up on a ubuntu
20 -cd /lib/x86_64-linux-gnu
21 +local arch=$(uname -m)
22 +cd /lib/${arch}-linux-gnu
23  ln -sf libssl.so.1.0.0 libssl.so
24  ln -sf libcrypto.so.1.0.0 libcrypto.so
25
26 -cd /usr/lib/x86_64-linux-gnu
27 +cd /usr/lib/${arch}-linux-gnu
28  ln -sf libxml2.so.2 libxml2.so
29
30