mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-08 23:18:10 -05:00
Add Microsoft Edit (#11940)
* Add Microsoft Edit, and rust buildsystem tweaks. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Add built packages for linux/amd64 to msedit * tweak rust options Signed-off-by: Satadru Pramanik <satadru@gmail.com> * lint Signed-off-by: Satadru Pramanik <satadru@gmail.com> --------- Signed-off-by: Satadru Pramanik <satadru@gmail.com> Co-authored-by: Satadru Pramanik <satadru@gmail.com> Co-authored-by: satmandu <satmandu@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
626a53a7a7
commit
31efa32a05
4
bin/crew
4
bin/crew
@@ -890,7 +890,7 @@ end
|
||||
def fix_interpreter_path(dir)
|
||||
# Do not set interpreter for non-musl, as this can break apps if there
|
||||
# is an issue with the crew glibc.
|
||||
return if @pkg.is_musl? || %w[patchelf upx].include?(@pkg.name)
|
||||
return if !@pkg.nil? && (@pkg.is_musl? || %w[patchelf upx].include?(@pkg.name))
|
||||
|
||||
Dir.chdir dir do
|
||||
puts 'Running upx to uncompress binaries and patchelf to patch binary interpreter paths.'.lightblue
|
||||
@@ -906,7 +906,7 @@ def fix_interpreter_path(dir)
|
||||
next unless File.file?(execfiletopatch)
|
||||
|
||||
# Decompress the binary if compressed.
|
||||
system "upx -qq -d #{execfiletopatch}", %i[err] => File::NULL
|
||||
system "upx -qq -d #{execfiletopatch}", %i[err] => File::NULL, exception: false
|
||||
# Check for existing interpreter.
|
||||
@interpreter, _read_interpreter_stderr_s, @read_interpreter_status = Open3.capture3("patchelf --print-interpreter #{execfiletopatch}")
|
||||
# Set interpreter unless the interpreter read failed or is already
|
||||
|
||||
Reference in New Issue
Block a user