[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Puzzling license warning from dh-make-perl



This is from a "cpan2deb String::LCSS_XS" command:

**********
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

This is strange, considering a LICENSE file is present, as well as a
standard LICENSE=>perl entry in Makefile.PL.

https://metacpan.org/source/LIMAONE/String-LCSS_XS-1.2/Makefile.PL

In fact, after looking at the create_copyright sub:
https://metacpan.org/source/DAM/DhMakePerl-0.75/lib/DhMakePerl/Command/Packaging.pm#L925
, it looks like large parts of the whole sub could be replaced with
Software::License equivs.  I've started doing this for Module::Starter
myself.

Found the problem here:
https://metacpan.org/source/DAM/DhMakePerl-0.75/lib/DhMakePerl/Command/Packaging.pm#L1065

$meta = {
...
          'license' => [
                         'perl_5'
                       ],
...
}

Your code doesn't support the newer multi-license format that puts the
licenses into an arrayref.  (See
https://metacpan.org/module/CPAN::Meta::Spec#license.)  Again, most of
this sub could be re-written, anyway, to support all license types via
Software::License.

-- 
Brendan Byrd <Perl@ResonatorSoft.org>
Brendan Byrd <BBYRD@CPAN.org>


Reply to: