Bug#380286: bogus missing-dh_python-build-dependency error with arch-specific build-deps

2006-07-28 Thread Rene Engelhard
Package: lintian
Version: 1.23.22
Severity: normal

Hi,

$ lintian -i openoffice.org_2.0.3-4.dsc
E: openoffice.org source: missing-dh_python-build-dependency python | 
python-dev | python-all-dev
N:
N:   The package runs dh_python in debian/rules but doesn't build-depend on
N:   python or python-dev. dh_python requires /usr/bin/python to run, so
N:   packages using dh_python must build-depend on python (or python-dev or
N:   python-all-dev, which in turn depend on python), even if they don't
N:   otherwise need Python to build.
N:
N:   Refer to the dh_python(1) manual page for details.
N:

wrong, because:

Build-Depends: [...] python-central (= 0.4.10) [i386 powerpc sparc], debhelper 
(= 5.0.37.1), python (= 2.3.5-7) [i386 powerpc sparc], python-dev [i386 
powerpc sparc] [...]

As wee see, both python and python-dev is there. (and dh_python is only
ran on i386, powerpc, sparc because the python package is only built
there - but lintian of course cannot know it).

But it imho should omit the warning because it's specified

I'll override in the meanwhile

Regards,

Rene

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: powerpc (ppc)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.17-1-powerpc
Locale: [EMAIL PROTECTED], [EMAIL PROTECTED] (charmap=ISO-8859-15)

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-2  Determines file type using magic
ii  gettext  0.14.6-1GNU 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 Larry Wall's Practical Extraction 

lintian recommends no packages.

-- no debconf information


signature.asc
Description: Digital signature


Bug#380286: bogus missing-dh_python-build-dependency error with arch-specific build-deps

2006-07-28 Thread Russ Allbery
Rene Engelhard [EMAIL PROTECTED] writes:

 Package: lintian
 Version: 1.23.22
 Severity: normal

 Hi,

 $ lintian -i openoffice.org_2.0.3-4.dsc
 E: openoffice.org source: missing-dh_python-build-dependency python | 
 python-dev | python-all-dev
 N:
 N:   The package runs dh_python in debian/rules but doesn't build-depend on
 N:   python or python-dev. dh_python requires /usr/bin/python to run, so
 N:   packages using dh_python must build-depend on python (or python-dev or
 N:   python-all-dev, which in turn depend on python), even if they don't
 N:   otherwise need Python to build.
 N:
 N:   Refer to the dh_python(1) manual page for details.

 wrong, because:

 Build-Depends: [...] python-central (= 0.4.10) [i386 powerpc sparc], 
 debhelper (= 5.0.37.1), python (= 2.3.5-7) [i386 powerpc sparc], python-dev 
 [i386 powerpc sparc] [...]

 As wee see, both python and python-dev is there. (and dh_python is only
 ran on i386, powerpc, sparc because the python package is only built
 there - but lintian of course cannot know it).

 But it imho should omit the warning because it's specified

This is difficult to fix, since lintian is (correctly) realizing that the
dependencies don't guarantee that those packages are installed.  To fix
this, we probably need to add a dependency checking function that ignores
architecture strings.  Ugh.

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


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