Bug#664150: dh-make-perl: Fails to parse "perl_5" in META.json as a license

Per Carlson pelle at hemmop.com
Thu Mar 15 21:12:03 UTC 2012


Package: dh-make-perl
Version: 0.75-1
Severity: normal

In my M::B Build.PL file I have set the license as 'perl'. 

pelle at devel:~/src/netaudit$ cat Build.PL 
use Module::Build;

my $build = Module::Build->new
  (
   license => 'perl',
   ...
  );

When M::B generates the META.json file, this is converted to "perl_5". 

pelle at devel:~/src/netaudit$ cat META.json 
{
   "license" : [
      "perl_5"
   ],
   ...
}

Of some reason dh-make-perl does not pick up this, even though it tries to
match on /perl/i.

pelle at devel:~/src/netaudit$ LANG=C dh-make-perl refresh -o copyright
Engaging refresh mode in .
Using META.json
Found: netaudit 0.9918 (netaudit arch=all)
W: overwriting debian/copyright.bak
**********
Copyright information incomplete!

Upstream copyright information could not be automatically determined.

If you are building this package for your personal use, you might disregard
this information; however, if you intend to upload this package to Debian
(or in general, if you plan on distributing it), you must look into the
complete copyright information.

The causes for this warning are:
Licensing information is present, but cannot be parsed
--- Done


AFAICS CPAN::Meta does the right thing when parsing the META file.

pelle at devel:~/src/netaudit$ perl -E 
'
use CPAN::Meta; 
use Data::Dumper; 
my $meta = CPAN::Meta->load_file("META.json"); 
my $struct = $meta->as_struct; 
print Dumper($struct); 
'
$VAR1 = {
          'license' => [
                         'perl_5'
                       ],
	...
	};

-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (900, 'testing'), (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-2-amd64 (SMP w/1 CPU core)
Locale: LANG=en_DK.UTF-8, LC_CTYPE=en_DK.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages dh-make-perl depends on:
ii  debhelper                               9.20120115
ii  dpkg-dev                                1.16.1.2
ii  fakeroot                                1.18.2-1
ii  libapt-pkg-perl                         0.1.25+b1
ii  libarray-unique-perl                    0.08-1
ii  libclass-accessor-perl                  0.34-1
ii  libdpkg-perl                            1.16.1.2
ii  libemail-address-perl                   1.895-1
ii  libemail-date-format-perl               1.002-1
ii  libfile-which-perl                      1.09-1
ii  liblist-moreutils-perl                  0.33-1+b1
ii  libmodule-depends-perl                  0.15-2
ii  libparse-debcontrol-perl                2.005-3
ii  libparse-debianchangelog-perl           1.2.0-1
ii  libsoftware-license-perl                0.103004-1
ii  libtie-ixhash-perl                      1.21-2
ii  libwww-mechanize-perl                   1.71-1
ii  libyaml-perl                            0.80-1
ii  make                                    3.81-8.1
ii  perl                                    5.14.2-9
ii  perl-modules [libmodule-corelist-perl]  5.14.2-9

Versions of packages dh-make-perl recommends:
ii  apt-file      2.5.0
ii  git           1:1.7.9.1-1
ii  pristine-tar  1.20

dh-make-perl suggests no packages.

-- no debconf information





More information about the pkg-perl-maintainers mailing list