* Russ Allbery <r...@debian.org> [140409 02:55]: > Christian Hofstaedtler <z...@debian.org> writes: > > Note that there's also a ruby-all-dev metapackage. Maybe you can > > make use of it... > > Unfortunately, Ruby's mkmf system doesn't, so far as I can tell, have any > way of building for all installed versions, so I need to know what > versions to build for so that I can iterate through the Ruby interpreters. > If there are tools available to do this for a build system that uses mkmf > directly, I'd be happy to switch over. (But I don't mind doing uploads > for new Ruby versions; it's not hard, and I should be able to generally do > so quickly.)
I've attached a patch that uses dh_ruby to build the Ruby extensions; I haven't done any further checking other than "it builds". Note that this still builds with `--enable-ruby` to get `extconf.rb` in ruby/, and then `make install` ends up installing an additional copy of the .so into a weird path in debian/tmp. (dh_ruby takes care of installing into the correct paths in debian/ruby-remctl.) -ch -- ,''`. Christian Hofstaedtler <z...@debian.org> : :' : Debian Developer `. `' 7D1A CFFA D9E0 806C 9C4C D392 5C13 D6DB 9305 2E03 `-
diff -Nru remctl-3.8/debian/control remctl-3.8/debian/control --- remctl-3.8/debian/control 2014-01-29 04:50:23.000000000 +0100 +++ remctl-3.8/debian/control 2014-04-09 03:07:24.000000000 +0200 @@ -20,11 +20,9 @@ php5-dev, pkg-config, python-all-dev, - ruby1.9.1, - ruby1.9.1-dev, - ruby2.0, - ruby2.0-dev + gem2deb XS-Python-Version: >= 2.6 +XS-Ruby-Versions: all Standards-Version: 3.9.5 Homepage: http://www.eyrie.org/~eagle/software/remctl/ Vcs-Git: git://git.eyrie.org/kerberos/remctl.git -b debian @@ -146,6 +144,7 @@ Section: ruby Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends}, ruby | ruby-interpreter +X-DhRuby-Root: ruby Description: Ruby extension for Kerberos-authenticated command execution remctl is a client/server protocol for executing specific commands on a remote system with Kerberos authentication. The allowable commands must diff -Nru remctl-3.8/debian/ruby-remctl.install remctl-3.8/debian/ruby-remctl.install --- remctl-3.8/debian/ruby-remctl.install 2014-01-29 04:50:23.000000000 +0100 +++ remctl-3.8/debian/ruby-remctl.install 1970-01-01 01:00:00.000000000 +0100 @@ -1,2 +0,0 @@ -usr/lib/ruby/vendor_ruby -usr/lib/*/ruby/vendor_ruby diff -Nru remctl-3.8/debian/rules remctl-3.8/debian/rules --- remctl-3.8/debian/rules 2014-01-29 04:50:23.000000000 +0100 +++ remctl-3.8/debian/rules 2014-04-09 03:07:59.000000000 +0200 @@ -18,7 +18,7 @@ export REMCTL_PYTHON_VERSIONS := $(shell pyversions -s) %: - dh $@ --parallel --with python2,autoreconf + dh $@ --parallel --with python2,autoreconf,ruby override_dh_autoreconf: dh_autoreconf --as-needed @@ -29,23 +29,6 @@ --enable-reduced-depends --enable-perl --enable-php \ --enable-python --enable-ruby -# For the first pass, build the Ruby 1.9.1 extension. We'll go back and -# build the extension for 2.0. -override_dh_auto_build: - dh_auto_build --parallel -- REMCTL_RUBY=ruby1.9.1 - -override_dh_auto_test: - dh_auto_test --parallel -- REMCTL_RUBY=ruby1.9.1 - -# After installing the build for the default version of Ruby, go back and -# rebuild for the newer version. -override_dh_auto_install: - dh_auto_install -- RUBYARCHDIR='$$(vendorarchdir)$$(target_prefix)' - cd ruby && $(MAKE) distclean - dh_auto_build --parallel -- REMCTL_RUBY=ruby2.0 - cd ruby && $(MAKE) install DESTDIR='$(CURDIR)/debian/tmp' \ - RUBYARCHDIR='$$(DESTDIR)$$(vendorarchdir)$$(target_prefix)' - # Override install to check for missing installed files. override_dh_install: dh_install --fail-missing -Xlibremctl.la
signature.asc
Description: Digital signature