Fix method reporting in buildsystems, Fix Rust buildsystem, Rebuild uutils_coreutils. (#11930)

* Revamp rust buildsystem.

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Rebuild uutils_coreutils correctly.

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Add better method printing to buildsystems.

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Unify gem_name and gem_version variables.

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* cleanup

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Add variable for packages to skip during install testing portion of unit tests.

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Avoid system override in python3 postinstall.

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Remove old pip 23.2.1 workaround.

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

---------

Signed-off-by: Satadru Pramanik <satadru@gmail.com>
Co-authored-by: Satadru Pramanik <satadru@gmail.com>
This commit is contained in:
github-actions[bot]
2025-05-22 10:52:26 -05:00
committed by GitHub
parent ac9a46e6ea
commit 8796d687f5
29 changed files with 557 additions and 131 deletions

View File

@@ -34,10 +34,10 @@ class Command
# Use gem to first try to remove gems...
if pkg.name.start_with?('ruby_')
@gem_name = pkg.name.sub('ruby_', '').sub('_', '-')
if Kernel.system "gem list -i \"^#{@gem_name}\$\"", %i[out err] => File::NULL
puts "Uninstalling #{@gem_name} before removing gem files. It's ok if this fails.".orange
system "gem uninstall -aIx --abort-on-dependent #{@gem_name}", exception: false
@ruby_gem_name = pkg.name.sub('ruby_', '').sub('_', '-')
if Kernel.system "gem list -i \"^#{@ruby_gem_name}\$\"", %i[out err] => File::NULL
puts "Uninstalling #{@ruby_gem_name} before removing gem files. It's ok if this fails.".orange
system "gem uninstall -aIx --abort-on-dependent #{@ruby_gem_name}", exception: false
end
end