Package: debhelper
Version: 9.20131110
Severity: normal
Tags: patch

In documentation directory, we expect files in:
 * oasis.opendocument.text with .odt
   http://en.wikipedia.org/wiki/OpenDocument
 * OEBPS Container Format  with .epub
   http://en.wikipedia.org/wiki/EPUB

Both are compressed in the ZIP format just like .zip and .jar .
http://en.wikipedia.org/wiki/Zip_(file_format)

We should skip compressing them with dh_compress.

As I was making patch, I realized .css is excluded.  Though .htaccess is
usually less than 4k, I wonder why not exclude .htaccess too.

Also, other OpenDocument files are in zip format. Notably, .odg (draw)
and .odp (presentation) .

Patch is to address all these.  Even if you wish to cut down this list,
.epub and .odt must be excluded from the compression.

(For now, I have -X in my source and filed Bug#730370 for live-manual)

Osamu

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

Kernel: Linux 3.11-2-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages debhelper depends on:
ii  binutils    2.23.91.20131123-1
ii  dpkg        1.17.1
ii  dpkg-dev    1.17.1
ii  file        1:5.14-2
ii  man-db      2.6.5-2
ii  perl        5.18.1-4
ii  po-debconf  1.0.16+nmu2

debhelper recommends no packages.

Versions of packages debhelper suggests:
ii  dh-make  0.63

-- no debconf information
--- dh_compress.orig	2013-11-25 21:33:05.278237722 +0900
+++ dh_compress	2013-11-25 21:54:36.896223647 +0900
@@ -118,7 +118,9 @@
 				! -iname "*.jpeg" ! -iname "*.gz" ! -iname "*.taz" \\
 				! -iname "*.tgz" ! -iname "*.z" ! -iname "*.bz2" \\
 				! -iname "*-gz"  ! -iname "*-z" ! -iname "*_z" \\
-				! -iname "*.jar" ! -iname "*.zip" ! -iname "*.css" \\
+				! -iname "*.epub" ! -iname "*.jar" ! -iname "*.zip" \\
+				! -iname "*.odg" ! -iname "*.odp" ! -iname "*.odt" \\
+				! -iname ".htaccess" ! -iname "*.css" \\
 				! -iname "*.svg" ! -iname "*.svgz" ! -iname "*.js" \\
 				! -name "index.sgml" ! -name "objects.inv" \\
 				! -name "copyright" 2>/dev/null || true;

Reply via email to