#1031122 debhelper: strip trailing white space in d/changelog

#1031122#5
Date:
2023-02-12 06:11:14 UTC
From:
To:
Lintian randomly reports trailing white space in debian/changelog. It would be desirable for debhelper to parse the file and strip traling white space whnever found.

- -- System Information:
Debian Release: bookworm/sid
  APT prefers unstable
  APT policy: (900, 'unstable')
Architecture: i386 (x86_64)

Kernel: Linux 5.10.0-21-amd64 (SMP w/4 CPU threads)
Locale: LANG=fi_FI.UTF-8, LC_CTYPE=fi_FI.UTF-8 (charmap=UTF-8), LANGUAGE=fi:en
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect

Versions of packages debhelper depends on:
ii  autotools-dev            20220109.1
ii  dh-autoreconf            20
ii  dh-strip-nondeterminism  1.13.1-1
ii  dpkg                     1.21.20
ii  dpkg-dev                 1.21.20
ii  dwz                      0.15-1
ii  file                     1:5.44-3
ii  libdebhelper-perl        13.11.4
ii  libdpkg-perl             1.21.20
ii  man-db                   2.11.2-1
ii  perl                     5.36.0-7
ii  po-debconf               1.0.21+nmu1

debhelper recommends no packages.

Versions of packages debhelper suggests:
ii  dh-make  2.202301

- -- no debconf information
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEyJACx3qL7GpObXOQrh+Cd8S017YFAmPogwIACgkQrh+Cd8S0
17bNIA//TcZ+RaAIIWQL9PGvFWS9Pi1rHtOoQ9kXG42u0oeSxLZBtxiLTA3skU/H
+X6bdNj+o//UVLojKyqQAcxhmRp285q+OaQ+Q8+BFEYydN9qUads3VQa4noxyC93
GoqwU6vEF9Ve636r6Ufjb0yPFrmfNu97cGdVjF+nHGmNkZsCqGzCLJyjbrPJMp/7
Bsco2hvVQ8pad0t7eCd8sutlp3nWTx3rsbL3N13HpQ92BNuHRm4I1xb9jwumd9OZ
GdlZZcpA56DkVa50kIzsW6bnrGWI9pr4LEgh/pZAz7m4+duf4XJ3DvG5fJLRC1TK
hmVubmNgym43QuFCd1UB8O1euk2tsQwOi6gVlqBoNgWDNdLBCPuzfD/6rDIIN/M0
2QUyo5XUoyIoSCM+X2KLU1FHLfo7SGZdhucqm/nmoIhWpSM1CdnRmpXqAnioYjle
F19cVesrO+dt+Be7k4GdY1ht0+uj2/b4TCQBz235h8TIHrbgSU12ahLIcFg/KLzq
V5oRsOtEBbng2zhbWH07GhvWklApiIEI2YSXJSXsgN/bTrodHI6aKH2W09Xjiq+z
wyoRxlR167VAZGhcxsWC6/q9eLnIzodSvOILINfa0IQo7aX8e89P9D7prBGUdiyW
E2Ch3BJLJYzKjxxULVmKIQOwjjq8Fb6z4Scy3nRX3GL09JF7BMo=
=utm/
-----END PGP SIGNATURE-----

#1031122#10
Date:
2023-02-12 06:38:31 UTC
From:
To:
Hi,

Martin-Éric Racine wrote:

No. debhelper does not edit files which are checked by that check
(namely debian/changelog, debian/control and debian/rules).

Out of those, it could fix the debian/changelog file in the resulting
binary as it fiddles around with it already anyways. But it cannot fix
it in the source package. That's the maintainer's work.

Additionally that lintian check runs against the source package, not
the binary packages. So fixing it in the binary package via debhelper
won't make that emitted tag going away.

P.S.: If you're an Emacs user, just run "M-x wh-cl" when editing
debian/changelog and you're done.

		Regards, Axel

#1031122#15
Date:
2023-02-13 12:22:36 UTC
From:
To:
yup, I'd recommend to close this bug.

also we have the Debian janitor now, which fixes these things for you,
if you let them. :)

#1031122#20
Date:
2023-02-13 12:33:25 UTC
From:
To:
dh_installchangelogs could start by stripping trailing whitespace in
the source changelog and only then copy the file to the binary
targets.

In principle, "set trimblanks" in .nanorc accomplishes the same thing.
In practice, this only seems to work when lines are cut as the result
of text justification i.e. it doesn't trim trailing white space
unconditionally.

Martin-Éric

#1031122#25
Date:
2023-02-13 12:47:45 UTC
From:
To:
Nano has a similar option, but it only seems to take effect if a line
gets cut due to auto-formatting i.e. it's not enforced at every save
in a systematic way.

That only works for Git-maintained packages. For some packages,
Git-maintenance would be overkill.

Martin-Éric

#1031122#30
Date:
2023-02-14 23:12:34 UTC
From:
To:
... git maintenance should be mandatory.
#1031122#35
Date:
2026-01-10 10:08:33 UTC
From:
To:
Es gibt eine Familienspende in Höhe von 1.850.000,00 USD von Cheng Charlie
Saephan. Bitte antworten Sie für weitere Informationen. Denken Sie daran,
Ihrer Familie und den Bedürftigen in Ihrer Umgebung Gutes zu tun.

Dies ist bereits der zweite Versuch, Sie zu erreichen. Bitte antworten Sie
für weitere Details.