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

Bug#878515: lintian: Use of uninitialized value in string eq at …/checks/fields.pm line 512. / Use of uninitialized value in string ne at …/checks/fields.pm lines 521 and 537.



Chris Lamb:
> Hi Axel,
> 
>> lintian: Use of uninitialized value  in string eq at […]
> 
> Thanks for this. :)
> 
>> I propose a new tag "section-is-empty"
> 
> We could re-use "no-section-field" and simply modify the description
> to also say "or empty".
> 
> I just tried to fix this, but when creating testcases with a blank
> source and binary Sections, I get (for source)
> 
> Use of uninitialized value $file in hash element at /home/lamby/git/debian/lintian/lintian/lib/Lintian/Collect/Changes.pm line 142.
> 
> ... and the following when I add a binary with an empty Section:
> 
> tests::fields-section-general:  dpkg-genchanges  >../fields-section-general_1.0_amd64.changes
> tests::fields-section-general: dpkg-genchanges: error: package fields-section-general has section contrib/devel in control file but - in files list
> tests::fields-section-general: dpkg-buildpackage: error: dpkg-genchanges subprocess returned exit status 25
> 
> 
> How are you creating this frankenpackage? :)
> 
> 
> Regards,
> 



You may want to use the t/debs test suite and the t/changes for this
kind of package (basically just a deb with nothing else and a .changes
with nothing else).  The latter as we apparently have a bug in
L::C::Changes as well. :)

Thanks,
~Niels


Reply to: