Cédric Boutillier escreveu isso aí: > On Thu, Sep 22, 2011 at 05:47:48PM +0530, Praveen A wrote: > > 2011/9/22 Cédric Boutillier <cedric.boutillier@gmail.com>: > > > Thank you very much for reviewing the package. I implemented your comments. > > > Is /usr/bin/testrb exactly same as the one that comes with ruby? > > Well spotted, thank you, that is something I overlooked. > That is exactly the same code as testrb1.8 (but not testrb1.9.1!). > Running testrb1.8 with ruby-test-unit installed works exactly like bin/testrb, > as all the work is done by code is in test/unit. It has some more options > that are not described in testrb1.8 manpage. > > One possibility would be to ship bin/testrb, and divert testrb1.8 > and testrb1.9 (and their manpages) to make them point to the new testrb, > but I wonder if that is not too much burden for a 4 line-long script... What do you > think? You can't do that: testrb is a slave of `ruby` in the alternatives database. If you install something as /usr/bin/testrb, this will mess up with things. $ update-alternatives --query ruby Link: ruby Status: auto Best: /usr/bin/ruby1.8 Value: /usr/bin/ruby1.8 Alternative: /usr/bin/ruby1.8 Priority: 50 Slaves: erb /usr/bin/erb1.8 erb.1.gz /usr/share/man/man1/erb1.8.1.gz irb /usr/bin/irb1.8 irb.1.gz /usr/share/man/man1/irb1.8.1.gz rdoc /usr/bin/rdoc1.8 rdoc.1.gz /usr/share/man/man1/rdoc1.8.1.gz ri /usr/bin/ri1.8 ri.1.gz /usr/share/man/man1/ri1.8.1.gz ruby.1.gz /usr/share/man/man1/ruby1.8.1.gz testrb /usr/bin/testrb1.8 testrb.1.gz /usr/share/man/man1/testrb1.8.1.gz Alternative: /usr/bin/ruby1.9.1 Priority: 10 Slaves: erb /usr/bin/erb1.9.1 erb.1.gz /usr/share/man/man1/erb1.9.1.1.gz irb /usr/bin/irb1.9.1 irb.1.gz /usr/share/man/man1/irb1.9.1.1.gz rdoc /usr/bin/rdoc1.9.1 rdoc.1.gz /usr/share/man/man1/rdoc1.9.1.1.gz ri /usr/bin/ri1.9.1 ri.1.gz /usr/share/man/man1/ri1.9.1.1.gz ruby.1.gz /usr/share/man/man1/ruby1.9.1.1.gz testrb /usr/bin/testrb1.9.1 testrb.1.gz /usr/share/man/man1/testrb1.9.1.1.gz That's one problem we'll have with any package that is also already included in some way in the Ruby standard library ... > Or I could mention in a README.Debian that one may expect some > changes in the behavior of testrb1.8 (more options, could be run with > ruby1.9.1) and testrb1.9.1 (not working) when ruby-test-unit > is installed. IMO the sanest solutions are 1) having /usr/bin/testrb dropped from the Ruby packages; OR 2) not shipping /usr/bin/testrb in this package at all. -- Antonio Terceiro <terceiro@debian.org>
Attachment:
signature.asc
Description: Digital signature