Bug#482869: lintian: no-md5sums-control-file false positive on package containing only conffiles

2008-05-28 Thread Frank Lichtenheld
On Sun, May 25, 2008 at 12:30:54PM -0400, Zack Weinberg wrote:
 I have a package that contains only conffiles and directories.  (It works
 with another package that can, among other things, be used as a network
 server, by providing scripts and a directory hierarchy to make that easy.)
[...]
 Naturally enough, dh_md5sums does not produce a checksums file for this
 package, which makes lintian object:
 
 $ lintian -I monotone_0.40-3_amd64.changes
 I: monotone-server: no-md5sums-control-file
 
 Please consider having this check verify that there are regular files in
 the package that are not conffiles.

Hmm, I wonder if it wouldn't be better for dh_md5sums to generate an
empty md5sums file in this case to make it clear that it checked but
found no files that needed to be listed.

Otherwise every other program that tries to use the information later
will need to check again. OTOH they probably need to check anyway since
an empty md5sums file also could be an error.

Gruesse,
-- 
Frank Lichtenheld [EMAIL PROTECTED]
www: http://www.djpig.de/



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#482869: lintian: no-md5sums-control-file false positive on package containing only conffiles

2008-05-28 Thread Russ Allbery
Frank Lichtenheld [EMAIL PROTECTED] writes:

 Hmm, I wonder if it wouldn't be better for dh_md5sums to generate an
 empty md5sums file in this case to make it clear that it checked but
 found no files that needed to be listed.

 Otherwise every other program that tries to use the information later
 will need to check again. OTOH they probably need to check anyway since
 an empty md5sums file also could be an error.

We do already have code that's supposed to check whether an md5sums
control file is needed.  It apparently isn't working right.  (Naively, I
would have thought that files in /etc would still have md5sums in the
package?  I'm probably just confused.)

-- 
Russ Allbery ([EMAIL PROTECTED])   http://www.eyrie.org/~eagle/



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#482869: lintian: no-md5sums-control-file false positive on package containing only conffiles

2008-05-28 Thread Joey Hess
Russ Allbery wrote:
 We do already have code that's supposed to check whether an md5sums
 control file is needed.  It apparently isn't working right.  (Naively, I
 would have thought that files in /etc would still have md5sums in the
 package?  I'm probably just confused.)

dpkg already includes md5sums for conffiles, so it's redundant to put
those in the md5sums file (though dh_md5sums can do it if asked via -x).

-- 
see shy jo


signature.asc
Description: Digital signature


Bug#482869: lintian: no-md5sums-control-file false positive on package containing only conffiles

2008-05-28 Thread Russ Allbery
Joey Hess [EMAIL PROTECTED] writes:
 Russ Allbery wrote:

 We do already have code that's supposed to check whether an md5sums
 control file is needed.  It apparently isn't working right.  (Naively,
 I would have thought that files in /etc would still have md5sums in the
 package?  I'm probably just confused.)

 dpkg already includes md5sums for conffiles, so it's redundant to put
 those in the md5sums file (though dh_md5sums can do it if asked via -x).

Oh, okay, that makes perfect sense.  Thanks.

-- 
Russ Allbery ([EMAIL PROTECTED])   http://www.eyrie.org/~eagle/



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#482869: lintian: no-md5sums-control-file false positive on package containing only conffiles

2008-05-25 Thread Zack Weinberg
Package: lintian
Version: 1.23.49
Severity: minor

I have a package that contains only conffiles and directories.  (It works
with another package that can, among other things, be used as a network
server, by providing scripts and a directory hierarchy to make that easy.)

$ dpkg-deb --contents monotone-server_0.40-3_all.deb 
drwxr-xr-x root/root 0 2008-05-25 12:03 ./
drwxr-xr-x root/root 0 2008-05-25 12:03 ./var/
drwxr-xr-x root/root 0 2008-05-25 12:03 ./var/lib/
drwxr-xr-x root/root 0 2008-05-25 12:03 ./var/lib/monotone/
drwxr-xr-x root/root 0 2008-05-25 12:03 ./var/lib/monotone/keys/
drwxr-xr-x root/root 0 2008-05-25 12:03 ./var/log/
drwxr-xr-x root/root 0 2008-05-25 12:03 ./var/log/monotone/
drwxr-xr-x root/root 0 2008-05-25 12:03 ./var/run/
drwxr-xr-x root/root 0 2008-05-25 12:03 ./var/run/monotone/
drwxr-xr-x root/root 0 2008-05-25 12:03 ./etc/
drwxr-xr-x root/root 0 2008-05-25 12:03 ./etc/monotone/
drwxr-xr-x root/root 0 2008-05-25 12:03 ./etc/default/
-rw-r--r-- root/root   394 2008-02-25 10:35 ./etc/default/monotone
drwxr-xr-x root/root 0 2008-05-25 12:03 ./etc/init.d/
-rwxr-xr-x root/root  2182 2008-02-25 10:35 ./etc/init.d/monotone
drwxr-xr-x root/root 0 2008-05-25 12:03 ./usr/
drwxr-xr-x root/root 0 2008-05-25 12:03 ./usr/share/
drwxr-xr-x root/root 0 2008-05-25 12:03 ./usr/share/doc/
lrwxrwxrwx root/root 0 2008-05-25 12:03 ./usr/share/doc/monotone-server 
- monotone

Naturally enough, dh_md5sums does not produce a checksums file for this
package, which makes lintian object:

$ lintian -I monotone_0.40-3_amd64.changes
I: monotone-server: no-md5sums-control-file

Please consider having this check verify that there are regular files in
the package that are not conffiles.

(Note that version 0.40-3 of this package is not yet in the archive, and the
versions that are currently available do contain some regular files.)

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

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

Versions of packages lintian depends on:
ii  binutils2.18.1~cvs20080103-6 The GNU assembler, linker and bina
ii  diffstat1.45-2   produces graph of changes introduc
ii  dpkg-dev1.14.19  package building tools for Debian
ii  file4.24-2   Determines file type using magic
ii  gettext 0.17-2   GNU Internationalization utilities
ii  intltool-debian 0.35.0+20060710.1Help i18n of RFC822 compliant conf
ii  libparse-debianchan 1.1.1-2  parse Debian changelogs and output
ii  liburi-perl 1.35.dfsg.1-1Manipulates and accesses URI strin
ii  man-db  2.5.2-1  on-line manual pager
ii  perl [libdigest-sha 5.10.0-10Larry Wall's Practical Extraction 

lintian recommends no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]