diff --git a/snap/local/snapcraft.yaml.erb b/snap/local/snapcraft.yaml.erb index e8a5e40..e6f369f 100644 --- a/snap/local/snapcraft.yaml.erb +++ b/snap/local/snapcraft.yaml.erb @@ -1,6 +1,6 @@ name: ruby version: '<%= v %>' -base: core18 +base: core20 summary: Interpreter for the Ruby programming language description: | Ruby is an interpreted object-oriented programming language often @@ -52,10 +52,11 @@ parts: source: https://cache.ruby-lang.org/pub/ruby/snapshot.tar.gz <% end %> build-packages: [gcc, curl, autoconf, bison, libssl-dev, libyaml-dev, libreadline6-dev, zlib1g-dev, libncurses5-dev, libffi-dev, libdb-dev, libgdbm-dev] - stage-packages: [libgdbm5] + stage-packages: [libgdbm6] override-pull: | snapcraftctl pull override-build: | + export DEBIAN_DISABLE_RUBYGEMS_INTEGRATION=true # avoid error: /usr/lib/ruby/vendor_ruby/rubygems/defaults/operating_system.rb:50:in `': undefined method `rubyforge_project=' for class `Gem::Specification' (NameError) ./configure --prefix=/ --enable-shared make make extract-gems diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml index f58bc07..8c18f1c 100644 --- a/snap/snapcraft.yaml +++ b/snap/snapcraft.yaml @@ -1,6 +1,6 @@ name: ruby version: '3.0.0' -base: core18 +base: core20 summary: Interpreter for the Ruby programming language description: | Ruby is an interpreted object-oriented programming language often @@ -48,10 +48,11 @@ parts: source: https://cache.ruby-lang.org/pub/ruby/3.0/ruby-$SNAPCRAFT_PROJECT_VERSION.tar.gz build-packages: [gcc, curl, autoconf, bison, libssl-dev, libyaml-dev, libreadline6-dev, zlib1g-dev, libncurses5-dev, libffi-dev, libdb-dev, libgdbm-dev] - stage-packages: [libgdbm5] + stage-packages: [libgdbm6] override-pull: | snapcraftctl pull override-build: | + export DEBIAN_DISABLE_RUBYGEMS_INTEGRATION=true # avoid error: /usr/lib/ruby/vendor_ruby/rubygems/defaults/operating_system.rb:50:in `': undefined method `rubyforge_project=' for class `Gem::Specification' (NameError) ./configure --prefix=/ --enable-shared make make extract-gems