[DRE-maint] Bug#866198: this patch fixed dh-make-ruby

Pirate Praveen praveen at debian.org
Mon Jul 3 10:39:03 UTC 2017


On Wed, 28 Jun 2017 12:24:46 -0300 Antonio Terceiro
<terceiro at debian.org> wrote:> This is wrong.
> 
> First, you will need to notice that there is an existing ruby-mustermann19
> package. I had this installed here, and it was causing the wrong
> 'mustermann/version' from being loaded. You will probably need to remove and
> add appropriate Breaks/Replaces on that package.
>
It is there,

Breaks: ruby-mustermann19 (<= 0.4.3+git20160621)
Replaces: ruby-mustermann19 (<= 0.4.3+git20160621)

> Second, even after removing ruby-mustermann19, it still didn't work,
> because of this line:
> 
>     VERSION ||= '1.0.0'
> 
> Changing it to just
> 
> 
>     VERSION = '1.0.0'
> 
> makes it work. I understand why this happens: When the code in gem2deb
> that loads the gemspec runs, there is already a `VERSION` constant in
> scope (the one from gem2deb itself), so that assignment never happens.
> When sending that upstream, you can demonstrate the issue like this:
> 
> ruby-mustermann-1.0.0$ irb
> >> VERSION = '0.0.0'
> => "0.0.0"
> >> $:.unshift 'lib'; nil
> => nil
> >> require 'mustermann/version'

Fixed ruby-mustermann and forwarded the issue upstream
https://github.com/sinatra/mustermann/issues/68

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 862 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-ruby-extras-maintainers/attachments/20170703/ac19624f/attachment.sig>


More information about the Pkg-ruby-extras-maintainers mailing list