debuild runs lintian twice

Bug #1894431 reported by Reuben Thomas
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
devscripts (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

When building a Debian package on Ubuntu, it's necessary to use "--profile debian" with lintian.

When using debuild, it should be possible to pass options to lintian with "--lintian-opts". However, these seem to be ignored currently: when lintian is run, options passed with --lintian-opts are not given to lintian.

As a workaround, one can use the dpkg-buildpackage option "--check-option", thus:

  debuild -us -uc --check-option="--profile=debian"

The --profile option is then passed to lintian (note the "="; it would also be possible to use the more verbose "--check-option=--profile --check-option=debian").

ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: devscripts 2.20.2ubuntu2
ProcVersionSignature: Ubuntu 5.4.0-42.46-generic 5.4.44
Uname: Linux 5.4.0-42-generic x86_64
ApportVersion: 2.20.11-0ubuntu27.8
Architecture: amd64
CasperMD5CheckResult: skip
CurrentDesktop: GNOME
Date: Sun Sep 6 13:17:45 2020
InstallationDate: Installed on 2019-12-23 (258 days ago)
InstallationMedia: Ubuntu 18.04.3 LTS "Bionic Beaver" - Release amd64 (20190805)
SourcePackage: devscripts
UpgradeStatus: Upgraded to focal on 2020-08-29 (7 days ago)

Revision history for this message
Reuben Thomas (rrt) wrote :
summary: - "debuild --lintian-opts --profile debian" does not work
+ "debuild --lintian-opts ..." doesn't work: options are not passed to
+ lintian
Revision history for this message
Reuben Thomas (rrt) wrote :

On further investigation, what actually seems to happen is that lintian is run twice: once by dpkg-buildpackage, and once by debuild. Thus, the full incantation required is:

  debuild -us -uc --check-option="--profile=debian" --lintian-opts --profile debian

The reason I didn't notice is that omitting the second set (so that lintian run by debuild gives an error) does not cause debuild to exit with an error.

In any case, I guess lintian should not be run twice.

summary: - "debuild --lintian-opts ..." doesn't work: options are not passed to
- lintian
+ debuild runs lintian twice
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in devscripts (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.