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).
5 The same fixes should be applied on arm64, for example.
7 Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
9 systems/ubuntu/build_base_machine.sh | 5 +++--
10 1 file changed, 3 insertions(+), 2 deletions(-)
12 diff --git a/systems/ubuntu/build_base_machine.sh b/systems/ubuntu/build_base_machine.sh
13 index a2b48a2..7cbe78e 100755
14 --- a/systems/ubuntu/build_base_machine.sh
15 +++ b/systems/ubuntu/build_base_machine.sh
16 @@ -52,11 +52,12 @@ apt-get -y install libfuse-dev
17 # packages related to VM
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
26 -cd /usr/lib/x86_64-linux-gnu
27 +cd /usr/lib/${arch}-linux-gnu
28 ln -sf libxml2.so.2 libxml2.so