[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#470913: lintian: False positive: Manual pages should be compressed with gzip -9



Russ Allbery <rra@debian.org> writes:

> I'm afraid I don't.  After getting the source and building it, I get the
> same lintian output as I get with the binary package currently in the
> archive, namely:
>
> windlord:~/tmp> lintian -I *.changes
> W: tomoyo-ccstools: maintainer-script-empty preinst
> W: tomoyo-ccstools: maintainer-script-empty prerm
> windlord:~/tmp> lintian -V
> Lintian v1.23.46

I've been able to reproduce this problem now with a current sid chroot.
Lintian is correct; the man pages really aren't compressed:

wanderer:~/tmp/tomoyo-ccstools/usr/share/man/man8> file *.gz
ccs-auditd.8.gz:             troff or preprocessor input text
ccs-ccstree.8.gz:            troff or preprocessor input text
ccs-checkpolicy.8.gz:        troff or preprocessor input text
ccs-domainmatch.8.gz:        troff or preprocessor input text
ccs-editpolicy.8.gz:         troff or preprocessor input text
ccs-editpolicy_offline.8.gz: troff or preprocessor input text
ccs-findtemp.8.gz:           troff or preprocessor input text
ccs-init.8.gz:               troff or preprocessor input text
ccs-ld-watch.8.gz:           troff or preprocessor input text
ccs-loadpolicy.8.gz:         troff or preprocessor input text
ccs-notifyd.8.gz:            troff or preprocessor input text
ccs-pathmatch.8.gz:          troff or preprocessor input text
ccs-patternize.8.gz:         troff or preprocessor input text
ccs-queryd.8.gz:             troff or preprocessor input text
ccs-savepolicy.8.gz:         troff or preprocessor input text
ccs-setlevel.8.gz:           troff or preprocessor input text
ccs-setprofile.8.gz:         troff or preprocessor input text
ccs-sortpolicy.8.gz:         troff or preprocessor input text
init_policy.sh.8.gz:         troff or preprocessor input text
tomoyo-init.8.gz:            troff or preprocessor input text
tomoyo_init_policy.sh.8.gz:  troff or preprocessor input text
wanderer:~/tmp/tomoyo-ccstools/usr/share/man/man8> head ccs-auditd.8.gz 
.\" DO NOT MODIFY THIS FILE!  It was generated by help2man 1.35.
.TH CCS-AUDITD "8" "January 2008" "ccs-auditd 1.5.3" "System Administration Utilities"
.SH NAME
ccs-auditd \- TOMOYO Linux's auditing daemon
.SH SYNOPSIS
.B ccs-auditd
\fIlocation_to_save_grant_log location_to_save_reject_log\fR
.SH DESCRIPTION
This program reads access request logs from kernel and writes to specified location.
.PP

It looks an interaction between dh_installman and man --recode is at
fault.  Upstream installs the man pages already compressed, but then
dh_installman does:

        man --recode UTF-8 ./ccs\-notifyd\.8\.gz > ccs\-notifyd\.8\.gz\.new
        chmod 644 ccs-notifyd.8.gz.new
        mv -f ccs-notifyd.8.gz.new ccs-notifyd.8.gz

for each man page.  man can read the compressed man page just fine, but
writes out an uncompressed man page, and they're not then recompressed
because they still have *.gz extensions.

I'll reassign this bug to debhelper.

-- 
Russ Allbery (rra@debian.org)               <http://www.eyrie.org/~eagle/>



Reply to: