Ruben Undheim writes ("Bug#908098: dgit: Bulding with "dgit cowbuilder" does 
not allow building source,any,all packages"):
> Package: dgit
> Version: 6.11
> Severity: wishlist
...
> I find it quite annoying that there is no option (or is there?) for
> "dgit cowbuilder" to build a package such that lintian (being run in
> a cowbuilder hook) can see lintian errors in the source. I missed a
> few lintians because of it some time back, and then I stopped using
> "gbp cowbuilder" as a consequence.

Mmmm.

> In other words, the .changes file produced does not list the .dsc and
> .orig.tar.gz files. Even when adding the dpkg-buildpackage switch -F, dgit
> seems to override it.

Yes, indeed it does.  It builds the source separately, and merges that
with the builder-generated changes.

> Do you think it would be possible to add a command line switch for this? Or
> maybe just respect whatever "dpkg-buildpackage switch" is chosen?

The dpkg-buildpackage switches control the generation of source
packages, but not anything to do with lintian.  So that isn't the
answer I think.

> I think this applies for the other "builders" in dgit also (sbuild,
> pbuilder..).

Yes.

AIUI the solution-neutral problem statement is this: if you try to
configure your builder (pbuilder, cowbuilder, sbuild) to run lintian,
that's not fully effective (because dgit always splits out the source
package build).

I can't see a way to make this work *perfectly* without trying to find
out how the builders are configured.  It's bad enough having to walk
dpkg-buildpackage's command line options, but trying to process
pbuilder and sbuild configuration would be really hard.

So I think it will be necessary to tell dgit, separately, that you
want to run lintian.  In that case I don't think it is necessary for
the lintian invocation to be done by the builder.  It could be done by
dgit.  (Presumably, if you tell dgit that you want to run lintian, it
could then arrange to tell your builder not to do so as well -
overriding config is a lot easier than parsing it.)

I wonder if a fix to
    #905399 Want hooks
would suffice ?  In particular, could it be made easy enough to use
that enabling lintian would be easy ?  Or maybe this is fundamental
enough in Debian packaging that it should be its own option.

Ian.

Reply via email to