--- Begin Message ---
- To: Debian Bug Tracking System <submit@bugs.debian.org>
- Subject: Bad dependencies managment that produce wrong lintian errors
- From: Vincent Danjean <Vincent.Danjean@ens-lyon.org>
- Date: Tue, 29 Aug 2006 17:52:16 +0200
- Message-id: <20060829155216.13485.71310.reportbug@localhost.localdomain>
Package: lintian
Version: 1.23.23
Severity: normal
Tags: patch
Hi,
I just see that my package (tailor) trigger a lintian error:
vdanjean@cayuga:~/debian/mainteneur/tailor$ lintian -i tailor_0.9.26-1_all.deb
E: tailor: python-script-but-no-python-dep ./usr/bin/tailor
N:
N: Packages with scripts that are executed with python must depend on the
N: package python. Those that have scripts executed with a versioned
N: python package need a dependency on the equivalent version of python.
N:
N: For example, if a script in the package uses #!/usr/bin/python, then
N: the package needs a dependency on "python". If a script uses
N: #!/usr/bin/python2.2, then the package need a dependency on
N: "python2.2".
N:
N: In some cases a weaker relationship, such as Suggests or Recommends,
N: will be more appropriate.
N:
However:
vdanjean@cayuga:~/debian/mainteneur/tailor$ dpkg --info tailor_0.9.26-1_all.deb
[...]
Depends: python2.4, python (>= 2.4) | python2.4, python-support (>= 0.2)
Recommends: rsync
Suggests: cvs, subversion, darcs, mercurial, monotone, codeville, bzr, bazaar, cogito, tla
Conflicts: bzr (<< 0.7), mercurial (<< 0.9.1)
[...]
Looking at lintian internal, I see that it badly builds $deps{all}
(near line 226 in checks/scripts) due to newlines. The following patch
fixes it:
--- scripts.orig 2006-08-29 12:33:41.000000000 +0200
+++ scripts 2006-08-29 12:32:19.000000000 +0200
@@ -224,6 +224,7 @@
}
$all_deps .= ', ' if $all_deps;
$all_deps .= $pkg;
+$all_deps =~ s/\n/, /g;
$deps{all} = Dep::parse($all_deps);
open(SCRIPTS, "scripts") or fail("cannot open lintian scripts file: $!");
Best regards,
Vincent
PS: this can be related to #380286 (some keywords are the same but I do
not really check)
-- System Information:
Debian Release: testing/unstable
APT prefers unstable
APT policy: (990, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.17-1-686
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Versions of packages lintian depends on:
ii binutils 2.17-2 The GNU assembler, linker and bina
ii diffstat 1.43-1 produces graph of changes introduc
ii dpkg-dev 1.13.22 package building tools for Debian
ii file 4.17-3 Determines file type using "magic"
ii gettext 0.15-1 GNU Internationalization utilities
ii intltool-debian 0.35.0+20060710 Help i18n of RFC822 compliant conf
ii libparse-debianchangelog 1.0-1 parse Debian changelogs and output
ii man-db 2.4.3-3 The on-line manual pager
ii perl [libdigest-md5-perl 5.8.8-6.1 Larry Wall's Practical Extraction
lintian recommends no packages.
-- no debconf information
--- End Message ---
--- Begin Message ---
Source: lintian
Source-Version: 1.23.24
We believe that the bug you reported is fixed in the latest version of
lintian, which is due to be installed in the Debian FTP archive:
lintian_1.23.24.dsc
to pool/main/l/lintian/lintian_1.23.24.dsc
lintian_1.23.24.tar.gz
to pool/main/l/lintian/lintian_1.23.24.tar.gz
lintian_1.23.24_all.deb
to pool/main/l/lintian/lintian_1.23.24_all.deb
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to 385178@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Russ Allbery <rra@debian.org> (supplier of updated lintian package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Format: 1.7
Date: Mon, 4 Sep 2006 12:03:16 -0700
Source: lintian
Binary: lintian
Architecture: source all
Version: 1.23.24
Distribution: unstable
Urgency: low
Maintainer: Debian Lintian Maintainers <lintian-maint@debian.org>
Changed-By: Russ Allbery <rra@debian.org>
Description:
lintian - Debian package checker
Closes: 376119 377740 384476 385178 386014
Changes:
lintian (1.23.24) unstable; urgency=low
.
The "LSB init script" release
.
* checks/control-files:
+ [RA] perm2oct definition moved to Util.pm.
* checks/cruft{.desc,}:
+ [RA] Remove the (info-level) check for .cvsignore files in the
source tarball. This isn't an error; those files contain metadata
that may be useful for people making modifications and it's quite
common to distribute them.
* checks/debconf{.desc,}:
+ [RA] Diagnose unknown priorities in db_input and db_text
invocations. Patch from Thomas Huriaux. (Closes: #386014)
* checks/fields{.desc,}:
+ [RA] Depending on versioned variants of python-minimal is also an
error. Thanks, Adeodato Simó. (Closes: #384476)
* checks/files:
+ [RA] perm2oct definition moved to Util.pm.
* checks/init.d{.desc,}:
+ [RA] Added a warning for init scripts missing an LSB keyword
section, checks of the syntax of such a section if present, and
some basic semantic checks of the easiest fields. Based on initial
work by Carlos Villegas. (Closes: #377740)
* checks/menus:
+ [RA] perm2oct definition moved to Util.pm.
* checks/scripts:
+ [RA] Properly concatenate the dependencies for a package when
checking whether the dependency for an interpreter is included.
Thanks, Vincent Danjean. (Closes: #385178)
* checks/shared-libs:
+ [RA] perm2oct definition moved to Util.pm.
.
* lib/Util.pm:
+ [RA] Move perm2oct to here and improve recognition of s, S, t, and T
characters. Thanks to Justin B. Rye for patch. (Closes: #376119)
Files:
d99a044f4bdd199c9b267c89cf3f5cbb 803 devel optional lintian_1.23.24.dsc
be2ff09babea1a73bb75c8508e2465f5 312666 devel optional lintian_1.23.24.tar.gz
c681e9f48104e3304cbfdccfd814b563 265882 devel optional lintian_1.23.24_all.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
iD8DBQFE/Hly+YXjQAr8dHYRApd/AJ9wSSrBO1DHUoNEj01P4qgeUjOggACfTxL9
HXfRImQB2t1Dn7cSv/eCepI=
=dM09
-----END PGP SIGNATURE-----
--- End Message ---