On 19/02/26 7:21 pm, Hefee wrote:
> Package: lintian
> Version: 2.129.0
> Severity: normal
> X-Debbugs-Cc: [email protected]
>
> Hey,
>
> if I run lintian against torsocks it returns warning
> debian-news-entry-has-unknown-version 2.0.0-1.
> I checked myself an I find a 2.0.0-1 in d/changelog and the date in
> changelog is written 3mins later so both checks are fine.
>
> https://salsa.debian.org/pkg-privacy-team/torsocks/-/blob/debian/sid/debian/NEWS?ref_type=heads
> https://salsa.debian.org/pkg-privacy-team/torsocks/-/blob/debian/sid/debian/changelog?ref_type=heads#L224
>
> You can also see this warning in salsa-ci:
>
> https://salsa.debian.org/pkg-privacy-team/torsocks/-/jobs/9077770#L45
>
> W: libtorsocks: debian-news-entry-has-unknown-version 2.0.0-1
> [usr/share/doc/libtorsocks/NEWS.Debian.gz]
>
> Interessing enough this warning is not listed in tracker nor was this an
> issue before.
That was because the previous version did not ship a NEWS in the `.deb`.
You can even see this missing in trixie's file list
https://packages.debian.org/trixie/amd64/libtorsocks/filelist
| $ ar x libtorsocks_2.5.0-4_amd64.deb
| $ tar -tf data.tar.xz
| ./
| ./usr/
| ./usr/lib/
| ./usr/lib/x86_64-linux-gnu/
| ./usr/lib/x86_64-linux-gnu/libtorsocks.a
| ./usr/lib/x86_64-linux-gnu/libtorsocks.la
| ./usr/lib/x86_64-linux-gnu/libtorsocks.so.0.0.0
| ./usr/share/
| ./usr/share/doc/
| ./usr/share/doc/libtorsocks/
| ./usr/share/doc/libtorsocks/changelog.Debian.gz
| ./usr/share/doc/libtorsocks/changelog.gz
| ./usr/share/doc/libtorsocks/copyright
| ./usr/share/lintian/
| ./usr/share/lintian/overrides/
| ./usr/share/lintian/overrides/libtorsocks
| ./usr/lib/x86_64-linux-gnu/libtorsocks.so
| ./usr/lib/x86_64-linux-gnu/libtorsocks.so.0
| $ tar -tf data.tar.xz | grep -i news
It however does ship news file now
https://packages.debian.org/sid/amd64/libtorsocks/filelist
Why that was the case is a question for you to answer.
Now coming to the lintian warning: this is because at some point changelogs
started to get trimmed.
This was set to the date buster was released (2019-07-06).
Given that your NEWS entry dates back to 2014, it does not make sense to ship
that anymore. At least
not with that version.
I've proposed a patch
https://salsa.debian.org/lintian/lintian/-/merge_requests/667 to rename the tag
and add more verbose explanation.
Best,
Nilesh