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

Bug#521308: lintian: new warning: build-depends-indep, but no build-indep



Package: lintian
Version: 2.2.8
Severity: wishlist

I just ran into the case of a package that had a Build-Depends-Indep
line, but where binary-indep depended on "build" and not build-indep
(because there was no build-indep), and so did binary-arch. This looks
like it usually won't work: the building for indep does not do any
more (or different) work than the building for arch, so there is no
dependency that would be necessary for indep, but not for arch. Yes,
one can imagine these things being used in binary-indep itself (and
not in binary-arch), but that looks improbable.


I thus propose the following new lintian checks:

 - ERROR if binary-indep and binary-arch depend (directly or
         indirectly) on only the same work-doing (containing
	 commands) targets AND Build-Depends-Indep not empty.

   For example:

   binary-arch: install
      (some commands here)
   binary-indep: install
      (some commands here)

   or

   binary-arch: build-arch
      (some commands here)
   binary-indep: build-indep
      (some commands here)
   build-arch: build
   build-indep: build
   build:
      (some commands here)

 - ERROR if build-arch and build-indep exist, but build-indep doesn't
         do any work itself and just depends on the same targets as
	 build-arch (or on build-arch) AND Build-Depends-Indep not
	 empty

 - WARNING if binary-indep depends (directly or indirectly) on
           install, install-stamp, build, build-stamp


-- System Information:
Debian Release: 5.0
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.26-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=fr_LU.UTF-8, LC_CTYPE=fr_LU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages lintian depends on:
ii  binutils               2.19.1-1          The GNU assembler, linker and bina
ii  diffstat               1.46-1            produces graph of changes introduc
ii  dpkg-dev               1.14.25           Debian package development tools
ii  file                   4.26-2            Determines file type using "magic"
ii  gettext                0.17-6            GNU Internationalization utilities
ii  intltool-debian        0.35.0+20060710.1 Help i18n of RFC822 compliant conf
ii  libipc-run-perl        0.82-1            Perl module for running processes
ii  libparse-debianchangel 1.1.1-2           parse Debian changelogs and output
ii  libtimedate-perl       1.1600-9          Time and date functions for Perl
ii  liburi-perl            1.37+dfsg-1       Manipulates and accesses URI strin
ii  man-db                 2.5.2-4           on-line manual pager
ii  perl [libdigest-sha-pe 5.10.0-19         Larry Wall's Practical Extraction 

lintian recommends no packages.

Versions of packages lintian suggests:
pn  binutils-multiarch            <none>     (no description available)
pn  libtext-template-perl         <none>     (no description available)
ii  man-db                        2.5.2-4    on-line manual pager

-- no debconf information



Reply to: