summaryrefslogtreecommitdiffstats
path: root/ansible/roles/gsm-tester/tasks/main.yml
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2020-06-25 19:30:09 +0200
committerPau Espin Pedrol <pespin@sysmocom.de>2020-06-25 19:30:11 +0200
commitd276db78afbb3f28fc6a4a949bca131d0cfac1d4 (patch)
treec8e4c3cb9e1231bc741463b3509d0b0ba46b20e8 /ansible/roles/gsm-tester/tasks/main.yml
parent2fa9daba67963ceeb7ee567df51373647e38db58 (diff)
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
Diffstat (limited to 'ansible/roles/gsm-tester/tasks/main.yml')
-rw-r--r--ansible/roles/gsm-tester/tasks/main.yml16
1 files changed, 8 insertions, 8 deletions
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