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:
github-actions[bot]
2025-05-23 16:27:55 -05:00
committed by GitHub
parent 626a53a7a7
commit 31efa32a05
7 changed files with 46 additions and 11 deletions

View File

@@ -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