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

@@ -54,10 +54,10 @@ class Neovim < CMake
puts 'Default vi set to nvim.'.lightgreen
end
@gem_name = name
system "gem uninstall -Dx --force --abort-on-dependent #{@gem_name}", exception: false
@ruby_gem_name = name
system "gem uninstall -Dx --force --abort-on-dependent #{@ruby_gem_name}", exception: false
puts 'Installing neovim gem.'.lightblue
system "gem install -N #{@gem_name}", exception: false
system "gem install -N #{@ruby_gem_name}", exception: false
puts 'Installing neovim python module. This may take a while...'.lightblue
system 'pip install neovim', exception: false
# cpanm install breaks due to failure to install Archive::zip.
@@ -66,10 +66,10 @@ class Neovim < CMake
end
def self.postremove
@gem_name = name
@gems_deps = `gem dependency ^#{@gem_name}\$ | awk '{print \$1}'`.chomp
@ruby_gem_name = name
@gems_deps = `gem dependency ^#{@ruby_gem_name}\$ | awk '{print \$1}'`.chomp
# Delete the first line and convert to an array.
@gems = @gems_deps.split("\n").drop(1).append(@gem_name)
@gems = @gems_deps.split("\n").drop(1).append(@ruby_gem_name)
# bundler never gets uninstalled, though gem dependency lists it for
# every package, so delete it from the list.
@gems.delete('bundler')