From a264f9fcddeff25626cf6ef5b59317751ae5f763 Mon Sep 17 00:00:00 2001 From: Pau Espin Pedrol Date: Tue, 11 Feb 2020 13:47:04 +0100 Subject: 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 --- ansible/roles/gsm-tester/tasks/main.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'ansible/roles/gsm-tester') 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 }}" -- cgit v1.2.3