Use gitlab-ruby-shadow gem instead of shadow source

Both the upstream project (https://github.com/apalmblad/ruby-shadow)
and the Chef fork
(https://github.com/chef/ruby-shadow/tree/lcg/ruby-3.0) have gone
unmaintained.

We've added CI, fixed Ruby 3.2 issues, and published our own gem in
https://gitlab.com/gitlab-org/ruby/gems/ruby-shadow/-/merge_requests/1,
so let's use that now.

Changelog: changed
This commit is contained in:
Stan Hu 2024-02-07 15:03:24 -08:00
parent dd6cff1597
commit 2fc9d058a7
No known key found for this signature in database
GPG Key ID: 8D3931AD39CC7A20
2 changed files with 8 additions and 16 deletions

View File

@ -154,6 +154,3 @@ ncurses:
pgbouncer:
remote: "git@dev.gitlab.org:omnibus-mirror/pgbouncer.git"
alternative: "https://gitlab.com/gitlab-org/build/omnibus-mirror/pgbouncer.git"
ruby-shadow:
remote: "git@dev.gitlab.org:omnibus-mirror/ruby-shadow.git"
alternative: "https://gitlab.com/gitlab-org/build/omnibus-mirror/ruby-shadow.git"

View File

@ -16,10 +16,8 @@
#
name 'ruby-shadow'
# From https://github.com/chef/chef/blob/3c35bd0e1d17a5bfd779fab3cc7860ea1923dec6/Gemfile#L41-L44
version = Gitlab::Version.new('ruby-shadow', 'e408599fdba93340500dad8922e9ca75072879de')
default_version version.print(false)
display_version version.print(false)
default_version '2.5.1'
license 'Apache-2.0'
license_file 'LICENSE'
@ -28,16 +26,13 @@ skip_transitive_dependency_licensing true
dependency 'rubygems'
source git: version.remote
relative_path 'ruby-shadow'
build do
env = with_standard_compiler_flags(with_embedded_path)
# Remove existing built gems in case they exist in the current dir
delete 'ruby-shadow-*.gem'
gem 'build ruby-shadow.gemspec', env: env
gem 'install ruby-shadow-*.gem --no-document', env: env
gem 'install gitlab-ruby-shadow' \
" --clear-sources" \
" -s https://rubygems.org" \
" --version '#{version}'" \
" --bindir '#{install_dir}/embedded/bin'" \
' --no-document', env: env
end