From d276db78afbb3f28fc6a4a949bca131d0cfac1d4 Mon Sep 17 00:00:00 2001 From: Pau Espin Pedrol Date: Thu, 25 Jun 2020 19:30:09 +0200 Subject: ansible/gsm-tester: Install patchelf 0.11 on PATH We used to install patchelf 0.10 in a specific path to only use it for some binaries which had bugs with patchelf 0.9 (and other binaries had bugs with 0.10, so we couldn't use 0.10 for all binaries and hence put it in binary). However, 0.11 is fixing both issues so we can use it in all cases, hence we can put it in PATH (/usr/local/bin). Related: OS#4389 Change-Id: Ica30807ecab7b60daee31fe7824b7c848d20c904 --- ansible/roles/gsm-tester/tasks/main.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'ansible/roles/gsm-tester/tasks/main.yml') diff --git a/ansible/roles/gsm-tester/tasks/main.yml b/ansible/roles/gsm-tester/tasks/main.yml index 7f0bad1..a3765b5 100644 --- a/ansible/roles/gsm-tester/tasks/main.yml +++ b/ansible/roles/gsm-tester/tasks/main.yml @@ -180,28 +180,28 @@ - osmo-gsm-tester-proc # 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 +# fails on other binaries, so we need version 0.11 installed in /usr/local/bin +# (takes preference in PATH) +- name: setup patchelf v0.11 repository git: repo: 'https://github.com/NixOS/patchelf.git' dest: /root/patchelf - version: "0.10" + version: "0.11" clone: yes update: no tags: - patchelf - osmo-gsm-tester-proc -- name: build patchelf v0.10 +- name: build patchelf v0.11 shell: | autoreconf -fi && \ - ./configure --prefix=/opt && \ + ./configure --prefix=/usr/local && \ make && \ - mkdir -p /opt/bin/ && \ - cp src/patchelf /opt/bin/patchelf-v0.10 + make install args: chdir: /root/patchelf - creates: /opt/bin/patchelf-v0.10 + creates: /usr/local/bin/patchelf tags: - patchelf - osmo-gsm-tester-proc -- cgit v1.2.3