Hi! The dgit source package seems to be failing its autopkgtest due to its test suite scrapping the output from «dpkg-source --version» which has recently changed. Please either adapt the code to avoid scrapping the output, by for example using instead the equivalent of: $ perl -MDpkg -E 'say $Dpkg::PROGVERSION' Where this should be guaranteed to match the version from the tool due to the strict dependency on the modules, but might not be the case on non-Debian based systems (although that is unsupported and would probably cause buggyness in the code used). Or by adapting the matching on the new output. Thanks, Guillem
Guillem Jover writes ("Bug#1147288: dgit: Fails its autopkgtest due to scrapping dpkg-source --version"):
...
Hi.
I haven't investigated yet but this seems like a thing that could
happen, indeed. For example, some of our test cases include checks
that the output (eg email reports to users) contain (only!) the
expected output, and that means they can be a bit brittle.
So I will do this.
To make sure I DTRT, can you confirm which version of dpkg{,-dev} I
ought to be testing with?
Ian.
Starting with dpkg-dev 1.23.8 the output is like this: $ dpkg-source --version | head -1 dpkg-source version 1.23.11 With earlier versions the output is like this: $ dpkg-source --version | head -1 Debian dpkg-source version 1.22.22. Thanks, Guillem
Ah, forgot to mention, for the future if there's interest I could add a --robot modifier to dpkg-source, like it is supported in dpkg, to have machine readable output for --version, like this: $ dpkg --robot --version; echo 1.23.11 $ Thanks, Guillem
Guillem Jover writes ("Re: Bug#1147288: dgit: Fails its autopkgtest due to scrapping dpkg-source --version"):
Thanks. It might be useful to do that for *some* of the calls
to --version in dgit.git, but I don't think i want to do that for (for
example) the call that appears in tag2upload transcripts. Eg, here:
https://lists.debian.org/debian-tag2upload/2026/09/msg00485.html
oracle$ dgit --version
dgit version 16.7~bpo13+1
# builder: oracle$ ./ssh-builder 'tag2upload-builder@tag2upload-builder-01.debian.org' ...
builder$ dgit --version
dgit version 16.7
builder$ dpkg-source --version
Debian dpkg-source version 1.23.7.
I think the t2u user wants something "obvious" here and we don't want
to add noise or weird output modes here.
And given that we have a test case checking the output in the email is
as expected, this is always going to break if src:dpkg changes the
output significantly. I don't see a good way round this other than
for me to update the test suite promptly when this situation arises.
src:dgit typically migrates quickly, so I shouldn't delay you by very
much.
FTR I will update the test suite so that it works with both forms of
output from src:dpkg - we need that for backports etc. etc.
Regards,
Ian.
Ian Jackson writes ("Re: Bug#1147288: dgit: Fails its autopkgtest due to scrapping dpkg-source --version"):
Also, we probably couldn't start using such a thing for many years,
because of our desire to maintain very good backward compatibility (in
particular, tested installability and useability on old Debian
releases).
So I guess I'm saying don't add this option on my account.
Ian.
We believe that the bug you reported is fixed in the latest version of
dgit, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to 1147288@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Ian Jackson <ijackson@chiark.greenend.org.uk> (supplier of updated dgit package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Thu, 10 Sep 2026 21:58:57 +0100
Source: dgit
Architecture: source
Version: 16.8
Distribution: unstable
Urgency: medium
Maintainer: Debian tag2upload Delegates <dgit-owner@debian.org>
Changed-By: Ian Jackson <ijackson@chiark.greenend.org.uk>
Closes: 1147288
Changes:
dgit (16.8) unstable; urgency=medium
.
tests:
* Improve regexps for software version reporting.
* Cope with updated messages (eg --version output) from dpkg 1.23.11.
[Report from Guillem Jover] Closes: #1147288.
* CI: Drop testing on bullseye (and update dgit(1) accordingly).
.
Metadata:
* Add CONTRIBUTING.md with some basic information.
* Improve README.md and remove some out of date material.
* Update & normalise some copyright headers, add some author notices;
give up maintainership. [Sean Whitton]
Checksums-Sha1:
20f60cde80666d494487665f1ff9c36428b335cf 2492 dgit_16.8.dsc
fff7f6f21165f0c64acbee304dba9f0eadbf4adf 1069659 dgit_16.8.tar.gz
90c60d90365d9265609201f17b2cb688c67fa790 1374436 dgit_16.8.git.tar.xz
55f3b1cba3672b4fd31109b10881c1522664195b 17644 dgit_16.8_source.buildinfo
Checksums-Sha256:
d0092fc017c056a558b6fe104313cff3b3c9f21a53d79dfebe05f3f8b9a3f874 2492 dgit_16.8.dsc
66934c0b9356fd113495e85decd9658f7b335583774774d56aaaa496f7dda6dc 1069659 dgit_16.8.tar.gz
496cdbd9f53810315093586e33cf4d574f3ddb108a9afbdc52027a1645b513f9 1374436 dgit_16.8.git.tar.xz
d7c7702ac01f889df077e18c847fb44d16672af1f93dc8bcdacdf01a59bf8ce1 17644 dgit_16.8_source.buildinfo
Files:
ba3a9ca5d039d25aa0d7c5661dedfda7 2492 devel optional dgit_16.8.dsc
a4aaa8fe99d7f5d1937dfc7ff7775b2d 1069659 devel optional dgit_16.8.tar.gz
fb6c65cf9cb1422e28d53af4469ee30a 1374436 devel optional dgit_16.8.git.tar.xz
7d58ecfc7de32dadd7365004b6d6334e 17644 devel optional dgit_16.8_source.buildinfo
Git-Tag-Info: tag=0197397ea5aa80109998dac261ba2a87a7a414b8 fp=41638114d132883b25a20ddd47515757d8002456
Git-Tag-Tagger: Ian Jackson <ijackson@chiark.greenend.org.uk>
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCgAdFiEEN02M5NuW6cvUwJcqYG0ITkaDwHkFAmqjI7UACgkQYG0ITkaD
wHlb8RAA3uy0L/2+LXgbcVNQuP60TGnSXnSmTijBBk3qNb6aRPevmGUHzm7qRXvx
24sgJ8lR3oq/5nO8qC2r8SZLNL1rbMCPWRD0YzmPIkV0NcX5qjh/yKEZ2XD4g36H
77sWINTLyqcI9LAPCFSc6cm/3hbV2DaCrqG2PKGdSdyw8DP1qoGJJzNLVnN6NDJM
JuwA/d4vzAc7D1i60nQ5fz7rvUChn7tIC0IBdlwUqB817w+2vDdgG2TtNSs8kIqm
0Sz2vjji6sClnyF3beZztUrrkmjvT2LCY34HsuWbRqjkxeiDKhh8Wf/wLeJcYzgB
DFti1iKVQ9jsAoNbiT95wMdz7ovJKsKnp8XpEjvtrhsCAe78tBC5qrGM1Rrug+L8
8ljY1hJclwPcBYt3l2qn3/f0Ff0MRi7ZcAKUX+rueErooapoHg/OkLmkk/XOa3ut
TPfzky7BDVSjV7b/VnXsVbkqME6kV/jV/AGUjOwkPUYQTYYJtNcH4GHFfUh3//e6
nEZJsPSgQGGsWP9/fF0UREP1Pz3plTiH29Gcc9/Xbqcz/15yIoqCSFMEgAxsAM+K
3UmRjqSjNMenCwDHyMBhb6MuMKFw+xLq8JVZ5DiJPwu6DOaRDo55yxjraasfAGbN
h1APPPWW3dhTQ/gAJakVOLMG8XH/ZVkbNSIiM/LLL6xnGuREM9E=
=6VvT
-----END PGP SIGNATURE-----