From: Hans van Kranenburg Date: Thu, 26 Nov 2020 19:50:33 +0000 (+0100) Subject: d/rules: do not compress /usr/share/doc/xen/html X-Git-Tag: archive/raspbian/4.14.1+11-gb0b734a8b3-1+rpi1^2~78 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=5b9fe8d26670ca38e3b81ba2face978b600710b8;p=xen.git d/rules: do not compress /usr/share/doc/xen/html So, we have a xen-doc package which is already split off nicely as binary package to contain the upstream html collection of documentation. By default, dh_compress will gzip -9 .txt files which it considers to be too large. However, in our case, there's some index.html with links, and if this happens, the user who consciously installs the xen-doc package, wanting to waste disk space on this ends up with a confusing pile of broken links when navigating to file:///usr/share/doc/xen/html/ and browsing around. The difference between disk space occupied when not compressing is 5.2M vs. 5.1M before. So, add an exclude on /usr/share/doc/xen/html Closes: #942611 Reported-by: Diederik de Haas Signed-off-by: Hans van Kranenburg --- diff --git a/debian/rules b/debian/rules index 4032dc9c15..b21c9e6948 100755 --- a/debian/rules +++ b/debian/rules @@ -311,7 +311,7 @@ override_dh_compress: rdfind -makehardlinks true -makeresultsfile false \ debian/xenstore-utils/usr/bin : - dh_compress + dh_compress -Xusr/share/doc/xen/html find debian/xen-hypervisor-*/usr/lib/debug -type f -print0 \ | xargs -0r gzip -9vn