Il giorno dom 26 nov 2023 alle ore 14:37 Adam D. Barratt <a...@adam-barratt.org.uk> ha scritto: > > Control: tags -1 + moreinfo > > On Sun, 2023-11-26 at 14:06 +0100, Fabio Pedretti wrote: > > when I add --no-lintian (as found in debuild man page) option > > to debuild, I get the following error: > > > > ... > > dpkg-buildpackage -us -uc -ui -S -sd -d --no-lintian > > dpkg-buildpackage: error: unknown option or argument --no-lintian > > That suggests you've added it in the wrong part of the command line. > https://manpages.debian.org/bookworm/devscripts/debuild.1.en.html > clearly shows in the synopsis that all debuild-specific options must > come _before_ any dpkg-buildpackage-specific options, and that --(no- > )lintian affects the behaviour of debuild itself, so falls into the > former set. > > What *exactly* does your debuild invocation look like?
You are right, I was calling it this way: debuild -S -sd -d -kMYKEY --no-lintian while this way it works: debuild --no-lintian -S -sd -d -kMYKEY About the man page, it says: debuild [debuild options] [dpkg‐buildpackage options] [--lintian‐opts lintian options] which let me suppose lintian options have to be called at last. But it is just for the specific --lintian‐opts, not --(no-)lintian, OK. > > I also tried setting: > > export DEBUILD_LINTIAN=no > > but it still uses lintian. > > > > If you've added that to your shell, or a file like .profile, then > that's not particularly surprising, given that the same manpage also > says that DEBUILD_LINTIAN is a configuration variable, which is read > from one of two files, and "[e]nvironment variable settings are ignored > when these configuration files are read". (In common with almost every > variable any script in devscripts uses.) /etc/devscripts.conf says "This file is sourced by /bin/bash ...", however, as you says, there is that note in debuild man page. Thanks for the quick reply, I suppose we could close this issue.