Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions snap/local/snapcraft.yaml.erb
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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 `<class:Specification>': undefined method `rubyforge_project=' for class `Gem::Specification' (NameError)
./configure --prefix=/ --enable-shared
make
make extract-gems
Expand Down
5 changes: 3 additions & 2 deletions snap/snapcraft.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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 `<class:Specification>': undefined method `rubyforge_project=' for class `Gem::Specification' (NameError)
./configure --prefix=/ --enable-shared
make
make extract-gems
Expand Down