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

Bug#666760: [libc6-dev] Make libc6-dev multiarch-installable



On 2012-06-03 10:39 +0200, Aurelien Jarno wrote:

> On Sun, Jun 03, 2012 at 10:10:41AM +0200, Sven Joachim wrote:
>> On 2012-06-02 21:56 +0200, Aurelien Jarno wrote:
>> >
>> > Either we have to make them conflict one with another (that is
>> > libc0.1-dev and libc6-dev, libc0.3-dev with libc6-dev, etc.),
>> 
>> Note that this holds whether or not these packages are "M-A: same".
>
> No, because these packages are architecture specific, so they are not
> co-installable. For example libc0.1-dev and libc6-dev might have
> conflicting files, but you can't install libc0.1-dev (kfreebsd-amd64
> only) together with libc6-dev, unless they are marked "M-A: same".

Marking them "M-A: same" is not going to resolve these conflicts,
because libc0.1-dev and libc6-dev still belong to different package
sets, and with --force-overwrite you can install libc0.1-dev along
libc6-dev already.

>> > or we have to check for these packages as if they were a single one.
>> 
>> This means they would need to have the same name (probably libc-dev) on
>> all architectures.
>> 
>
> Yes, thinking about that, either we want to make it fully multiarch, in
> that case all libc*-dev needs to be renamed to the same name, or we
> should add conflicts to prevent someone trying to install for example
> libc6.1-dev along with libc6-dev.

Renaming seems to be the best long-term solution to me, but using
conflicts is probably safer for wheezy.  For instance,
kfreebsd-kernel-headers:kfreebsd-i386 contains files clashing with both
libc6:i386 and linux-libc-dev:i386:

,----
| # dpkg -i --force-overwrite /var/cache/apt/archives/kfreebsd-kernel-headers_0.81_kfreebsd-i386.deb 
| (Reading database ... 13017 files and directories currently installed.)
| Unpacking kfreebsd-kernel-headers (from .../kfreebsd-kernel-headers_0.81_kfreebsd-i386.deb) ...
| dpkg: warning: overriding problem because --force enabled:
|  trying to overwrite '/usr/include/net/if_arp.h', which is also in package libc6-dev 2.13-32
| dpkg: warning: overriding problem because --force enabled:
|  trying to overwrite '/usr/include/net/ppp_defs.h', which is also in package libc6-dev 2.13-32
| dpkg: warning: overriding problem because --force enabled:
|  trying to overwrite '/usr/include/net/route.h', which is also in package libc6-dev 2.13-32
| dpkg: warning: overriding problem because --force enabled:
|  trying to overwrite '/usr/include/netatalk/at.h', which is also in package libc6-dev 2.13-32
| dpkg: warning: overriding problem because --force enabled:
|  trying to overwrite '/usr/include/netipx/ipx.h', which is also in package libc6-dev 2.13-32
| dpkg: warning: overriding problem because --force enabled:
|  trying to overwrite '/usr/include/linux/videodev2.h', which is also in package linux-libc-dev:i386 3.2.19-1
| Setting up kfreebsd-kernel-headers (0.81) ...
`----

Cheers,
       Sven



Reply to: