Package: debhelper
Version: 13.30
Severity: serious
Hi,
In cases where there's only one changelog entry, and the month is wrong,
debhelper
wipes out the full d/ch that is installed.
This is not the case with version 13.29.
A reproducer for the same is as follows:
$ apt source hello
Write only this content in d/ch (wipe out everything else):
hello (2.10-5) unstable; urgency=medium
* Add autopkgtest dependency on make. Closes: #1103293.
Thanks to Jochen Sprickerhof.
-- Santiago Vila <[email protected]> Wed, 16 April 2025 11:50:00 +0200
$ dpkg-buildpackage
$ cd ..
$ ar x hello_2.10-5_amd64.deb
$ tar -xf data.tar.xz
$ zcat ./usr/share/doc/hello/changelog.Debian.gz | wc -l
0
The changelog here is completely empty. Same steps with debhelper version 13.29:
$ zcat ./usr/share/doc/hello/changelog.Debian.gz | wc -l
6
And I can see the contents of d/ch here. This was caught by lintian's testsuite
in "changelog-file-invalid-date" test.
This does not look intended. If it is, please let me know.
Also, if the day is wrong for example, Wednesday instead of Wed, it works fine.
That looks quite wrong.
Since this is leading to outright wiping the entire d/ch, (on only one entry),
I am assigning severity as serious.
Best,
Nilesh