Package: debhelper
Version: 12.9
Severity: wishlist

Hi,

some packages have a very detailed debian/changelog which goes back
years or even decades.

Given that we nowadays have the ability to get changelogs on-demand via
"apt changelog", I think it would make sense if the changelog.Debian
that is installed on disk can be trimmed down.

While I surely can do that via some sed hacks in debian/rules, a nicer
option would be, if dh_installchangelogs would provide an option like
say --trim=365d / --trim=2y / etc, which would only install changelog
entries that are newer then 365 days / 2 years / etc.

2 or 3 years sounds like a good compromise to me, as this would cover
changelog entries dating back to the last stable release.

For the time being, I would make that opt-in, i.e. packages have to
override dh_installchangelogs. Maybe at some point in the future,
something like --trim=3y could be made the default behaviour with a new
compat bump.

I vaguely remember that Ubuntu does something similar in that regard.
I've CCed Julian, maybe he can provide some input.

Regards,
Michael




-- System Information:
Debian Release: bullseye/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (200, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.4.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), 
LANGUAGE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages debhelper depends on:
ii  autotools-dev            20180224.1
ii  dh-autoreconf            19
ii  dh-strip-nondeterminism  1.6.3-2
ii  dpkg                     1.19.7
ii  dpkg-dev                 1.19.7
ii  dwz                      0.13-5
ii  file                     1:5.38-4
ii  libdebhelper-perl        12.9
ii  libdpkg-perl             1.19.7
ii  man-db                   2.9.1-1
ii  perl                     5.30.0-9
ii  po-debconf               1.0.21

debhelper recommends no packages.

Versions of packages debhelper suggests:
ii  dh-make  2.202001

-- no debconf information

Reply via email to