On 16/03/26 at 00:23 +0100, kpcyrd wrote:
> Cool project, I also noticed some common error cases (replying to this email
> to keep the debian-devel@ discussion in one thread):
>
> > 290 - uscan did not produce an orig tarball with matching name
>
> This seems to be a problem with +dfsg style version suffixes
>
> https://debaudit.debian.net/upstream2orig/result/319e02fb7513c475b0c1412bfb63074251403e254b5e1c5d29e0611af45614a3
This can be avoided by using e.g.
Dversion-Mangle: s/(\d{2})\.(\d{2})\+dfsg$/$1$2/
Oversion-Mangle: s/(\d{2})(\d{2})$/$1.$2+dfsg/
as in:
https://debaudit.debian.net/upstream2orig/result/f8058dc07cdeb8b085b415704541db653ad9e11aafa75af72a3833d10c2892ad
this was found by searching for 'dfsg" in
https://debaudit.debian.net/upstream2orig/
and then filtering on successful results;
> > 720 - archive tarball fully included in generated tarball
>
> This is "normal" when excluding files that can't be uploaded to Debian,
> maybe this should be yellow instead of red?
>
> https://debaudit.debian.net/upstream2orig/result/c588756e9a693dc423bacd81fa8f2cf6d6f13af442836747f391267f3d28f717
It means that the exclusion of such files is not properly automated in
debian/watch or debian/copyright, but instead done manually(?)
> > 330 - failed to guess tag
>
> It seems it's searching for a git tag in
> https://salsa.debian.org/rust-team/debcargo-conf.git, but this repo only
> contains configuration for the debian-rust tooling.
>
> https://debaudit.debian.net/git2dsc/result/4317d143808217889eeb13c6c0fa5ea0d6c97aab09bb9f308facc028639b27c8
The Rust team uses Vcs-Git with sub-dirs. In the above case:
Vcs-Git: https://salsa.debian.org/rust-team/debcargo-conf.git
[src/ratatui-widgets]
debaudit correctly handles this, see for example
However the team does not tag releases, so there's no way for debaudit
to reliably find the relevant commit.
A related case is the Haskell team, that also uses a single repository
with subdirs, but tags releases, so debaudit works:
https://debaudit.debian.net/git2dsc/result/455e8bec15cacd42f5f3e6a66a9c9e98d61f40c7bfd925cb7f2369adc75f3e3c
Lucas