From 48337f10b605917c62b612759358f5545854a16e Mon Sep 17 00:00:00 2001
From: Leo Singer <leo.singer@ligo.org>
Date: Tue, 22 Nov 2022 12:56:20 -0500
Subject: [PATCH] Install older version of patchelf

patchelf 0.16.1 and newer causes many lal binaries (like
`lalapps_version`) to segfault.

See lscsoft/lalsuite#626.
---
 Dockerfile | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/Dockerfile b/Dockerfile
index ec2f6b6..48f3a4f 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -27,3 +27,8 @@ RUN /build.bash fbfd04312067ffce5005a55d12bd53614172e3941cbf7f70ebb8f6beba6b68c5
 RUN /build.bash f7c5d7f8862e088c0b7b7050f95af5e8c65234988f8cd337c32a2c2ad7b40030b881b0ae768a66c7f8e0646e1b6a2f64714a66bee6527514af6be60f824b038b http://software.ligo.org/lscsoft/source/metaio-8.5.1.tar.gz
 RUN /build.bash a14ac5400acaf4884620430dbeb6f0b28eafe946923b792ab0eccc2a2abc9113d8ce342f4b1e5396f05247649f7d6f953944a8e6bdbf9ee1adb9e67b7c3df2b5 http://ftpmirror.gnu.org/gsl/gsl-2.7.tar.gz
 RUN rm -f /build.bash
+
+# Install older version of patchelf, because 0.16.1 and newer causes many
+# lal binaries (like lalapps_version) to segfault on x86_64.
+# FIXME: come up with a minimal reproducer and report upstream
+RUN pipx install --force 'patchelf<0.16.1'
-- 
GitLab