Skip to content

Commit e17e390

Browse files
committed
ruby2.0(Gem::Security) is required for update-gems
1 parent cfcbfcb commit e17e390

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

debian/control

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Build-Depends: autotools-dev,
2121
netbase,
2222
openssl,
2323
procps,
24-
ruby | ruby-interpreter | ruby1.8,
24+
ruby2.0 | ruby | ruby-interpreter,
2525
rubygems-integration (>= 1.6),
2626
systemtap-sdt-dev [linux-any],
2727
zlib1g-dev

debian/rules

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ export SOURCE := $(shell dpkg-parsechangelog -SSource)
1616
export RUBY_VERSION := $(patsubst ruby%,%,$(SOURCE))
1717
export RUBY_API_VERSION := $(RUBY_VERSION).0
1818

19-
# Bootstrap with Ruby 1.8 if proper Ruby is not available
20-
baseruby=$(shell test -x /usr/bin/ruby && echo /usr/bin/ruby || echo /usr/bin/ruby1.8)
19+
# Gem::Security is required, so use ruby 2.0 or later
20+
baseruby=$(shell test -x /usr/bin/ruby && ruby -rgem/security -e0 2>/dev/null && echo /usr/bin/ruby || echo /usr/bin/ruby2.0)
2121

2222
configure_options += --enable-multiarch
2323
configure_options += --target=$(DEB_HOST_MULTIARCH)

0 commit comments

Comments
 (0)