I investigated this properly. What I wrote previously was wrong.
(I don't use gbp very much so I'm not familiar with its workings.)
Ian Jackson writes ("Bug#1143850: tag2upload pristine-tar with gbp import-orig filter?"):
In particular, ^ I think that comment from me is wrong. And the rest
of my message followed from it, so was also wrong.
The discrepancy report in the tag2upload log mentions various files,
most of which seem like autoconf output (ie, intermediate build
products).
Arbitrarily picking aclocal.m4 as a litmus test, that file is present
in the following forms of the package:
* knot 3.5.6-2 in the Debian archive
* knot_3.5.6.orig.tar.xz in the Debian archive (cause of ^)
* dgit clone knot (consequence of ^)
It is absent in the following forms of the package:
* pristine-tar metadata file knot_3.5.6.orig.tar.xz.id
* v3.5.2 tag (ie, presumably, upstream git)
* upstream/3.5.2 tag
* debian/master branch on salsa
* debian/3.5.6-2 tag (resulted in tag2upload failed job 5733)
I note that the pristine-tar file knot_3.5.6.orig.tar.xz.delta is half
a megabyte, I think because it is representing all these autogenerated
files. That is the only representation of (say) aclocal.m4 on salsa.
As you may know, it is a principle of the tag2upload system that the
git tree that you upload corresponds precisely to the generated source
package. Nothing should end up in the unpacked source package that
buildds and users get from archive, that isn't in your git branch.
This is both a very useful promise to the uploading user and others
(it avoids ever having to audit or review a source package, and
eliminates a hidden and rarely-examined data flow) and a necessary
design principle for the bidirectionality of dsc<->git gatewaying.
But, apparently, with this workflow, the source package contains the
automake output, but that isn't represented in git at all (except via
the pristine-tar delta file).
So indeed, that's not supported. I don't think it *can* sensibly be
supported. (And I would recommend against this workflow for other
reasons too. [1])
I'm tagging this bug wontfix, so that it can stand as a discoverable
record of the lack of support for this approach (and provide a place
for discussion of possible workarounds, amelioration, or whatever).
But, please be assured that I very much valued your report. The
wontfix tag should not be taken as any kind of criticism.
Regards,
Ian.
[1] Consider for example the xz backdoor. If adopted for the Debian
xz package, this workflow would have made the crucial backdoor trigger
entirely invisible to git commands run even by the Debian maintainer
on their packaging branch. It would only show up if the maintainer
did a source debdiff after building the source package. This is even
worse than the usual way of using gbp import-orig.