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

Bug#400112: [PROPOSAL] forbid source/binary package name conflicts

On 14/01/07 at 14:28 -0600, Manoj Srivastava wrote:
> Hi,
> On Thu, 23 Nov 2006 22:45:18 +0100, Lucas Nussbaum
> <lucas@lucas-nussbaum.net> said:  
> > Some source packages generate binary packages using the same name as
> > another source package. For example, see the 'qd' source package,
> > and the 'qd' binary package generated by the kfolding source package
> > (in contrib).
> > Some tools don't like it at all (e.g sbuild), causing confusing
> > behaviour, based on the order of entries in Sources.gz, and
> > confusion for users.
>         Why is this not considered a bug in the tools that needs to be
>  fixed, rather than creating policy to work around bugs in the toolchain?
I think that this problem is really widespread, and not that trivial to
solve. What would be an acceptable behaviour ?

  Software dealing with source packages should prefer the src pkg with
  the requested name, if one is available, and only fallback to the
  binary package if no src pkg is available or if an additional
  restriction (e.g on version) makes it necessary.

With this, apt fails:

$ apt-cache showsrc qd
Package: qd
Binary: libqd2c2a, libqd-dev
Version: 2.1.200-1
Package: kfolding
Binary: kfolding, qd
Version: 1.0.0-rc2-5

$ apt-get source qd
Reading package lists... Done
Building dependency tree... Done
Need to get 1024kB of source archives.
Get:1 http://ftp.fr.debian.org unstable/contrib kfolding 1.0.0-rc2-5
(dsc) [633B]
Get:2 http://ftp.fr.debian.org unstable/contrib kfolding 1.0.0-rc2-5
(tar) [1004kB]
Get:3 http://ftp.fr.debian.org unstable/contrib kfolding 1.0.0-rc2-5
(diff) [19.2kB]
Fetched 1024kB in 2s (465kB/s)

$ apt-get source qd=2.1.200-1
Reading package lists... Done
Building dependency tree... Done
Need to get 769kB of source archives.
Get:1 http://ftp.fr.debian.org unstable/main qd 2.1.200-1 (dsc) [706B]
Get:2 http://ftp.fr.debian.org unstable/main qd 2.1.200-1 (tar) [678kB]
Get:3 http://ftp.fr.debian.org unstable/main qd 2.1.200-1 (diff)
| Lucas Nussbaum
| lucas@lucas-nussbaum.net   http://www.lucas-nussbaum.net/ |
| jabber: lucas@nussbaum.fr             GPG: 1024D/023B3F4F |

Reply to: