Control: tag -1 + pending Hi Jonas,
On Wed, Jul 23, 2014 at 10:39:45AM +0200, Jonas Smedegaard wrote: > Package: ruby-all-dev > Version: 1:2.1.0.1 > Severity: minor > > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA512 > > For uWSGI packaging I need to know at build time which flavors of ruby > are supported in the build environment and which of those is default for > that environment. > > I can hardcode values for Sid (currently "ruby2.1" for both), but would > highly prefer to query the build environment as that eases > backportability. > > Here is the current one-liner I currently use to resolve supported > flavors: > > ruby -rruby_debian_dev -e 'include RubyDebianDev; > SUPPORTED_RUBY_VERSIONS.select! do |version, binary|; puts version; end' > > Please consider documenting either that above command is correct, or > which other shell command is more proper. Does http://anonscm.debian.org/cgit/collab-maint/ruby-defaults.git/commit/?id=24da0892ae3dd57581394ac7bf8fc8b44e8f0251 address your concerns? The easy way is `dh_ruby --print-supported` However, we decided to not support multiple interpreters in stable releases anymore, so keep in mind this support for multiple supported versions will be used solely for handling transitions in unstable without leaving testing broken while eventual issues are sorted out (we will hold new intepreters in unstable until we think it is safe enough to let it into testing). It is also OK to only build for the default version, and using just `ruby` (instead of harcoding the current default) will do that in a future-proof way. > And please also document if default flavor is simply the first entry of > (potentially) multi-entry list output of above command, or else which > shell command can resolve default Ruby flavor of current system. the default is always what /usr/bin/ruby points to. -- Antonio Terceiro <[email protected]>
signature.asc
Description: Digital signature

