[DRE-maint] Bug#983057: ruby-kramdown-rfc2629: kramdown-rfc2629 --version produces "unknown-version"

Daniel Kahn Gillmor dkg at fifthhorseman.net
Thu Feb 18 18:26:23 GMT 2021


Package: ruby-kramdown-rfc2629
Version: 1.3.28-1

I would have expected "kramdown-rfc2629 --version" to report either the
upstream version (1.3.28) or the debian revision (1.3.28-1), but instead
i get "unknown-version":

    0 dkg at alice:~$ kramdown-rfc2629 --version
    kramdown-rfc2629 unknown-version
    0 dkg at alice:~$ 

I haven't dug deep enough to know whether this is an upstream bug or an
issue with an impedence mismatch between debian packages and ruby gems,
but i do note that from irb i see the same issue.

kramdown-rfc2629 has this source:

    KDRFC_VERSION=Gem.loaded_specs["kramdown-rfc2629"].version rescue "unknown-version"

and from irb:

    irb(main):001:0> require 'kramdown-rfc2629'
    => true
    irb(main):002:0> Gem.loaded_specs["kramdown-rfc2629"]
    => nil
    irb(main):003:0> Gem.loaded_specs["kramdown-rfc2629"].version
    Traceback (most recent call last):
            4: from /usr/bin/irb:23:in `<main>'
            3: from /usr/bin/irb:23:in `load'
            2: from /usr/lib/ruby/gems/2.7.0/gems/irb-1.2.6/exe/irb:11:in `<top (required)>'
            1: from (irb):3
    NoMethodError (undefined method `version' for nil:NilClass)
    irb(main):004:0> Gem.loaded_specs["kramdown-rfc2629"].version rescue 'unknown-version'
    => "unknown-version"
    irb(main):005:0> 


I defer to debian ruby packagers who have much deeper knowledge than i
do about how this stuff all works.  Upstream is pretty responsive,
fwict, so if it's an upstream issue, please forward it to
https://github.com/cabo/kramdown-rfc2629/issues

Regards,

        --dkg
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 227 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-ruby-extras-maintainers/attachments/20210218/ad3bb18d/attachment.sig>


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