mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-08 23:18:10 -05:00
Set Interpreter on appimage binaries during extract. (#12187)
Signed-off-by: Satadru Pramanik <satadru@gmail.com>
This commit is contained in:
committed by
GitHub
parent
85b4598458
commit
8fca146ead
5
bin/crew
5
bin/crew
@@ -657,6 +657,11 @@ def unpack(meta)
|
||||
when /\.AppImage$/i
|
||||
puts "Unpacking 'AppImage' archive, this may take a while..."
|
||||
FileUtils.chmod 0o755, meta[:filename], verbose: CREW_VERBOSE
|
||||
unless CREW_GLIBC_INTERPRETER.blank?
|
||||
puts "Running patchelf on #{meta[:filename]} to set interpreter".orange if CREW_VERBOSE
|
||||
_appimage_set_interpreter_stdout, appimage_set_interpreter_stderr = Open3.capture3("patchelf --set-interpreter #{CREW_GLIBC_INTERPRETER} #{meta[:filename]}")
|
||||
puts "#{meta[:filename]}: appimage_set_interpreter_stderr: #{appimage_set_interpreter_stderr.chomp}".lightpurple if !appimage_set_interpreter_stderr.blank? && CREW_VERBOSE
|
||||
end
|
||||
system "../#{meta[:filename]}", '--appimage-extract', chdir: @extract_dir, exception: true
|
||||
when /\.gem$/i
|
||||
puts "Moving #{@pkg.ruby_gem_name} binary gem for install..."
|
||||
|
||||
@@ -4,7 +4,7 @@ require 'etc'
|
||||
require 'open3'
|
||||
|
||||
OLD_CREW_VERSION ||= defined?(CREW_VERSION) ? CREW_VERSION : '1.0'
|
||||
CREW_VERSION ||= '1.62.4' unless defined?(CREW_VERSION) && CREW_VERSION == OLD_CREW_VERSION
|
||||
CREW_VERSION ||= '1.62.5' unless defined?(CREW_VERSION) && CREW_VERSION == OLD_CREW_VERSION
|
||||
|
||||
# Kernel architecture.
|
||||
KERN_ARCH ||= Etc.uname[:machine]
|
||||
|
||||
Reference in New Issue
Block a user