aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2020-02-11 13:47:04 +0100
committerPau Espin Pedrol <pespin@sysmocom.de>2020-02-11 14:00:32 +0100
commita264f9fcddeff25626cf6ef5b59317751ae5f763 (patch)
treeb0fb29e632313dbb296e129e4ff86c02cedf6f62
parentfcad862f86b281abc475ba9b7a035cd8f01e37ae (diff)
gsm-tester: Manual build and install of patchelf v0.10
Due to [1], we require both debian9 patchelf v0.9 and v0.10 to be available and used by osmo-gsm-teser depending on the binary to be patched. [1] https://github.com/NixOS/patchelf/issues/192 Related: OS#4389 Change-Id: I28825d723b85900fb51cc5b8a9d14c6ef346e667
-rw-r--r--ansible/roles/gsm-tester/tasks/main.yml25
1 files changed, 25 insertions, 0 deletions
diff --git a/ansible/roles/gsm-tester/tasks/main.yml b/ansible/roles/gsm-tester/tasks/main.yml
index 88f072e..0a5a838 100644
--- a/ansible/roles/gsm-tester/tasks/main.yml
+++ b/ansible/roles/gsm-tester/tasks/main.yml
@@ -129,6 +129,31 @@
tags:
- ofono
+# patchelf 0.9 available in debian has bugs with certain binaries. Version 0.10
+# fails on other binaries, so we need both 0.9 and 0.10 versions installed.
+- name: setup patchelf v0.10 repository
+ git:
+ repo: 'https://github.com/NixOS/patchelf.git'
+ dest: /root/patchelf
+ version: "0.10"
+ clone: yes
+ update: no
+ tags:
+ - patchelf
+
+- name: build patchelf v0.10
+ shell: |
+ autoreconf -fi && \
+ ./configure --prefix=/opt && \
+ make && \
+ mkdir -p /opt/bin/ && \
+ cp src/patchelf /opt/bin/patchelf-v0.10
+ args:
+ chdir: /root/patchelf
+ creates: /opt/bin/patchelf-v0.10
+ tags:
+ - patchelf
+
- name: install gsm tester dependencies
apt:
name: "{{ item }}"