Signed-off-by: Satadru Pramanik <satadru@gmail.com>
This commit is contained in:
Satadru Pramanik, DO, MPH, MEng
2025-05-28 21:56:04 -04:00
committed by GitHub
parent 2105c10596
commit 164590a481
3 changed files with 6 additions and 2 deletions

View File

@@ -908,6 +908,8 @@ def fix_interpreter_path(dir)
# Decompress the binary if compressed.
system "upx -qq -d #{execfiletopatch}", %i[err] => File::NULL, exception: false
# Check for existing interpreter.
next if CREW_GLIBC_INTERPRETER.blank?
@interpreter, _read_interpreter_stderr_s, @read_interpreter_status = Open3.capture3("patchelf --print-interpreter #{execfiletopatch}")
# Set interpreter unless the interpreter read failed or is already
# set appropriately.