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

Bug#914256: lintian: conflict between no-template-description and untranslatable-debconf-templates



> Hm, I can't seem to reproduce this in the lintian testsuite. After adding:
> 
>   --- a/t/tests/legacy-debconf/debian/debian/debconf-test.templates
>   +++ b/t/tests/legacy-debconf/debian/debian/debconf-test.templates
>   @@ -99,3 +99,15 @@ Type: boolean
>    _Description: Decide, lintian
>     Using "no longer" should no longer be detected as 
>     making-assumptions-about-interfaces-in-templates by lintian.
>   +
>   +Template: debconf/no-underscore
>   +Type: boolean
>   +Default: false
>   +Description: This has no underscore?
>   + This has no underscore.
>   +
>   +Template: debconf/with-underscore
>   +Type: boolean
>   +Default: false
>   +_Description: This has an underscore?
>   + This has an underscore.
> 

I added this to a copy of the source package and ran
  fakeroot debian/rules runtests
but it didn't run the legacy-debconf tests as far as I can see...

Oh. Had to install debhelper from backports also, which pulled in
 cmake cmake-data debhelper dh-autoreconf quilt dwz librhash0
and it wanted
 dh-elpa
as well.

% grep -n underscore debian/test-out/tests/debconf/debconf-1~rc1/debian/debconf-test.templates |grep Desc
106:Description: This has no underscore?
112:_Description: This has an underscore?

% grep -n untranslatable-debconf-templates debian/test-out/tests/debconf/tags.debconf
2:E: debconf source: untranslatable-debconf-templates debconf-test.templates: 106
3:E: debconf source: untranslatable-debconf-templates debconf-test.templates: 47
4:E: debconf source: untranslatable-debconf-templates debconf-test.templates: 58

% egrep -e '(no|with)-underscore' debian/test-out/tests/debconf/tags.debconf
I: debconf-test: unused-debconf-template debconf/no-underscore
I: debconf-test: unused-debconf-template debconf/with-underscore

Which reproduces your result.



So back to the hello package hacking

% grep Desc debian/templates
Description: Use all available languages?

E: hello source: untranslatable-debconf-templates templates: 4
E: hello source: not-using-po-debconf

% grep Desc debian/templates
_Description: Use all available languages?

E: hello source: not-using-po-debconf
E: hello: no-template-description hello/all-languages
E: hello: unknown-field-in-templates hello/all-languages _description

So still the same problem.


What if I configure po-debconf?
% man po-debconf
#hm, not so scary after all

% mkdir debian/po
% cat > debian/po/POTFILES.in
[type: gettext/rfc822deb] templates
^D

% debconf-updatepo
% ls debian/po/
total 8
4 POTFILES.in  4 templates.pot

% grep Desc debian/templates
_Description: Use all available languages?

% lintian --version
Lintian v2.5.112~bpo9+1

% debuild -us -uc
... No errors.


Still unclear why the lintian test cases are not failing.

Vince


Reply to: