Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.devel > #87851

Re: Limiting the size of installed changelogs

From Lars Wirzenius <liw@liw.fi>
Newsgroups linux.debian.devel, linux.debian.kernel
Subject Re: Limiting the size of installed changelogs
Date 2018-09-13 12:50 +0200
Message-ID <wxxm9-2R0-3@gated-at.bofh.it> (permalink)
References <wxx2N-2KS-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Cross-posted to 2 groups.

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

On Thu, Sep 13, 2018 at 11:22:37AM +0100, Ben Hutchings wrote:
> The src:linux package has a very big changelog (about 1700 kiB
> uncompressed, 600 kiB gzipped).  On my system the largest installed
> changelogs, by some way, are all versions of this.  (The next largest
> changelogs come from src:glibc, at about 200 kiB gzipped.)

I was curious, so I ran the following on my laptop:

$ find /usr/share/doc -name '*changelog*' -printf '%s %p\n' | sort -n | tail -n10 | while read size path; do echo $(humanify "$size") "$path"; done
2 MB /usr/share/doc/libgstreamer-plugins-bad1.0-0/changelog.gz
2 MB /usr/share/doc/xserver-common/changelog.gz
2 MB /usr/share/doc/xserver-xephyr/changelog.gz
2 MB /usr/share/doc/xserver-xorg-core/changelog.gz
2 MB /usr/share/doc/xserver-xorg-legacy/changelog.gz
2 MB /usr/share/doc/xwayland/changelog.gz
2 MB /usr/share/doc/gimp/changelog.gz
2 MB /usr/share/doc/gimp-data/changelog.gz
2 MB /usr/share/doc/libgimp2.0/changelog.gz
4 MB /usr/share/doc/libvirt0/changelog.gz

While changelogs are sometimes really useful, that's a fair bit of
diskspace on my laptop, and a fair bit of bandwidth to transfer, for
fairly little gain.

> The older history is unlikely to be of any use to users.  So on smaller
> systems this could be a significant waste of space.  (I know it's
> possible to filter out the installation of docs entirely, but I don't
> think this option is well known.)

I agree that we can drop older changelog entries. I suggest truncating
changelogs, at least large ones, by dropping any entries from before
stable, when uploading to unstable. So uploading to unstable today,
any entries from before stretch can be dropped. When a changelog is
truncated, there should be a URL to the full changelog, so those who
really are curious can find it. (Possibly oldstable would be a better
cut-off point.)

Alternatively, we could change things so that the changelog for each
Debian release (major part of version) is put in its own file.

With this scheme, uploads to unstable today would have
/usr/share/doc/*/changelog.debian10.gz. Once buster is released,
uploads would include changelog.debian11.gz instead. This would allow
a fairly natural rotation.

> - Does it make sense to compress changelogs with xz?  For src:linux,
> this achieves about a 20-25% reduction over gzip.

I'd be OK with using xz -9 to compress changelogs. This would also be
easily doable in debhelper. From the ten files I showed at the
beginning, I get about a 29% savings recompressing as xz.

-- 
I want to build worthwhile things that might last. --joeyh

Back to linux.debian.devel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Limiting the size of installed changelogs Ben Hutchings <ben@decadent.org.uk> - 2018-09-13 12:30 +0200
  Re: Limiting the size of installed changelogs Lars Wirzenius <liw@liw.fi> - 2018-09-13 12:50 +0200
    Re: Limiting the size of installed changelogs Holger Levsen <holger@layer-acht.org> - 2018-09-13 13:10 +0200
    Re: Limiting the size of installed changelogs Ben Hutchings <ben@decadent.org.uk> - 2018-09-13 14:50 +0200
      Re: Limiting the size of installed changelogs Mattia Rizzolo <mattia@debian.org> - 2018-09-13 18:10 +0200
  Re: Limiting the size of installed changelogs Adam Borowski <kilobyte@angband.pl> - 2018-09-13 13:50 +0200
  Re: Limiting the size of installed changelogs "W. Martin Borgert" <debacle@debian.org> - 2018-09-13 14:00 +0200
  Re: Limiting the size of installed changelogs Roger Shimizu <rogershimizu@gmail.com> - 2018-09-13 14:30 +0200
  Re: Limiting the size of installed changelogs Boyuan Yang <byang@debian.org> - 2018-09-13 15:00 +0200
    Re: Limiting the size of installed changelogs Jeremy Bicha <jbicha@debian.org> - 2018-09-13 15:10 +0200
      Re: Limiting the size of installed changelogs Ben Hutchings <ben@decadent.org.uk> - 2018-10-13 17:40 +0200
  Re: Limiting the size of installed changelogs Russ Allbery <rra@debian.org> - 2018-09-13 18:00 +0200
    Re: Limiting the size of installed changelogs Holger Levsen <holger@layer-acht.org> - 2018-09-13 18:10 +0200
  Re: Limiting the size of installed changelogs Mattia Rizzolo <mattia@debian.org> - 2018-09-13 18:20 +0200
    Re: Limiting the size of installed changelogs Ruben Undheim <lists@beebeetle.com> - 2018-09-14 00:40 +0200
  Re: Limiting the size of installed changelogs Marc Haber <mh+debian-devel@zugschlus.de> - 2018-09-14 13:20 +0200
    Re: Limiting the size of installed changelogs Raphael Hertzog <hertzog@debian.org> - 2018-09-14 14:00 +0200
      Re: Limiting the size of installed changelogs Marc Haber <mh+debian-devel@zugschlus.de> - 2018-09-14 15:50 +0200
      Re: Limiting the size of installed changelogs Michael Hudson-Doyle <michael.hudson@canonical.com> - 2018-09-15 12:40 +0200
        dpkg path-exclude (was: Limiting the size of installed changelogs) Marc Haber <mh+debian-devel@zugschlus.de> - 2018-09-15 15:50 +0200
          Re: dpkg path-exclude (was: Limiting the size of installed changelogs) Michael Hudson-Doyle <michael.hudson@canonical.com> - 2018-09-16 05:00 +0200
          Re: dpkg path-exclude Anthony DeRobertis <anthony@derobert.net> - 2018-09-17 19:40 +0200
            Re: dpkg path-exclude Tollef Fog Heen <tfheen@err.no> - 2018-09-17 20:10 +0200
  Re: Limiting the size of installed changelogs Ben Hutchings <ben@decadent.org.uk> - 2018-10-13 18:10 +0200

csiph-web