[Buildd-tools-devel] Bug#400115: sbuild: fails to find source versions

Lucas Nussbaum lucas at lucas-nussbaum.net
Thu Nov 23 23:03:40 CET 2006


Package: sbuild
Version: 0.52
Severity: important

Hi,

The code used to check if the version we want to build is available,
located around line 400 of /usr/bin/sbuild, looks incorrect.

First, it is unable to deal with cases where a source package name might
also be a binary package name in another source package. Look at the
output of apt-cache showsrc qd:

Package: qd
Binary: libqd2c2a, libqd-dev
Version: 2.1.200-1
Priority: optional
Section: libs
Maintainer: Debian Scientific Computing Team
<pkg-scicomp-devel at lists.alioth.debian.org>
Build-Depends: cdbs (>= 0.4.23-1.1), autotools-dev, debhelper (>=
4.1.0), g++
Architecture: any
Standards-Version: 3.6.2
Format: 1.0
Directory: pool/main/q/qd
Files:
 62eb679162a60b3af2c4061f2a0968cf 706 qd_2.1.200-1.dsc
 03abcc509a86fff00252a1c4a372aced 677587 qd_2.1.200.orig.tar.gz
 773afc24fdc2013ae50df6204590311a 90321 qd_2.1.200-1.diff.gz
Uploaders: Christophe Prud'homme <prudhomm at debian.org>

Package: kfolding
Binary: kfolding, qd
Version: 1.0.0-rc2-5
Priority: optional
Section: contrib/kde
Maintainer: Claudio Moratti <maxer at knio.it>
Build-Depends: debhelper (>= 4.0.0), autotools-dev, kdelibs4-dev,
libqt3-mt-dev, dpatch
Architecture: any
Standards-Version: 3.6.2
Format: 1.0
Directory: pool/contrib/k/kfolding
Files:
 8728230aa8564ae4b2bedf471b1fcf52 633 kfolding_1.0.0-rc2-5.dsc
 ea7051632f9d42873107504a0bcc19e5 1003667 kfolding_1.0.0-rc2.orig.tar.gz
 fac7e085cce25ab7625f1b7b8ec8c15b 19204 kfolding_1.0.0-rc2-5.diff.gz 

The version we would probably want is 2.1.200-1, but since there's a
Version: line for package kfolding later, this is the version that is
remembered.

Second, the "only different version(s)" text is misleading, since it
will only display at most 2 different versions (the one obtained during
the first run, and the one obtained during the second run). If the user
has sources lines in /etc/apt/sources.list for both testing and
unstable, only the version in the *last* line of the file will be
considered by sbuild.
-- 
| Lucas Nussbaum
| lucas at lucas-nussbaum.net   http://www.lucas-nussbaum.net/ |
| jabber: lucas at nussbaum.fr             GPG: 1024D/023B3F4F |




More information about the Buildd-tools-devel mailing list