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

Re: Advice about Lintian errors



* Tanguy Ortolo <tanguy+debian@ortolo.eu>, 2010-05-30, 19:02:
FYI, your package does not build in a clean chroot; some build-dependencies[1] are missing.

Do you have a log of such a failure?

No, but should easily reproduce it yourself.

The second one, missing-dep-for-interpreter, is about a Zsh script
(autojump providing a Zsh extension, this is expected) and the following
dependency set:
   Depends: ${misc:Depends}, python, ${python:Depends},

[1] ...including a build-dependency that would fill in
${python:Depends}.

Well, in fact I have no idea of what ${python:Depends} actually means. I
simply saw that dpkg-gencontrol was complaining about:
warning: package autojump: unused substitution variable ${python:Depends}

Fighting with warning without understanding their root cause it a bad tactics. :)

If python-support is installed, dh calls dh_pysupport, which generates substitutions for ${python:Depends}. If such a substitution is not used, dpkg will yell at you. In your case the substitution is trivial, it contains only "python" (because there's a script with python shebang).
So you have several options:

1. Use "Depends: ..., python" (without ${python:Depends}) and get accustomed to the warning.

2. Use "Depends: ..., python" (without ${python:Depends}) and override dh_pysupport so that it's not actually called.

3. Use "Depends: ..., ${python:Depends}" (without "python") and add build-dependency of python-support.

--
Jakub Wilk

Attachment: signature.asc
Description: Digital signature


Reply to: