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

Re: Bug#587918: libnss-myhostname: Please do not depend on both libc6 and libc6-amd64



Hi Petter,

Am Freitag, den 02.07.2010, 19:28 +0200 schrieb Petter Reinholdtsen:
> Package: libnss-myhostname
> Version: 0.2.4
> 
> I ran into this problem using the DVD build of Debian Edu.  The
> package was uninstallable on i386 because it failed to find
> libc6-amd64 on the DVD..  The cause can be found on
> <URL:https://buildd.debian.org/fetch.cgi?pkg=libnss-myhostname;ver=0.2-4;arch=i386;stamp=1277126824>:
> 
>  Package: libnss-myhostname
>  Version: 0.2-4
>  Architecture: i386
>  Maintainer: Joachim Breitner <nomeata@debian...>
>  Installed-Size: 84
>  Depends: libc6 (>= 2.1.3), libc6-amd64 (>= 2.2.5)
> 
> Why do the package depend on libc6-amd64?  Please change it to not
> need two different libc packages.

I am at the moment building all architecture variants provided by
gcc-multilib. This is useful for e.g. amd64 systems which also run some
i386 binaries. I’m not overly confident that I am doing it the right way
though – the additional dependencies show one problem.

Maybe d-devel can help me out here:

I am building a nss library (libnss-myhostname). As these are linked
into arbitrary programs, they should be provided in all architecture
variants of a given architecture – e.g. on amd64, a i386 version should
be available as well, otherwise 32bit applications would not work.

I found two variants to provide for this:

a) nss-mdns build besides libnss-mdns also a 32 bit variant package
lib32nss-mdns for amd64.

b) libnss-extrausers builds only one binary package, which contains all
variants for a given architecture.

The approach b has the advantage that all variants are available and the
user does not have to remember that he might want to run 32bit variants
and needs to install another package. The cost of this is the additional
dependency on the “other” libc6-* package, as noted by Petter in this
bug.

So, what is the “best” way?

Greetings,
Joachim



-- 
Joachim "nomeata" Breitner
Debian Developer
  nomeata@debian.org | ICQ# 74513189 | GPG-Keyid: 4743206C
  JID: nomeata@joachim-breitner.de | http://people.debian.org/~nomeata

Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: