bernd / fpm-cookery

A tool for building software packages with fpm.
Other
460 stars 88 forks source link

CPANRecipe generates broken "provides" in debian control #194

Open bjo81 opened 6 years ago

bjo81 commented 6 years ago

I tried to use fhe following recipe:

class NetIpMatch < FPM::Cookery::CPANRecipe
    name        'Net::IP::Match'
    version     '1.101700'
    provides    'perl-net-ip-match'
    fpm_attributes :no_auto_depends?   => true,
                    :cpan_perl_lib_path => "/usr/share/perl5"
end

which created "Provides: perl-net-ip-match, perl(Net::IP::Match)" in the debian control file.

dpkg does not like this "versioning":

dpkg: error processing archive perl-net-ip-match_1.101700_all.deb (--install): parsing file '/var/lib/dpkg/tmp.ci/control' near line 7 package 'perl-net-ip-match': 'Provides' field, reference to 'perl': error in version: epoch in version is not number