dpkg-cross does not do sensible things with multi-arch: same packages
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
dpkg-cross (Debian) |
Fix Released
|
Unknown
|
|||
dpkg-cross (Ubuntu) |
Fix Released
|
High
|
Wookey | ||
Natty |
Fix Released
|
High
|
Wookey |
Bug Description
Binary package hint: dpkg-cross
Running dpkg-cross against the Multi-Arch: same version of libc6 currently in natty does not produce sensible output. Instead it generates a .deb that contains only a large number of iconv .so modules under /usr/x86_
./usr/
I have no idea why it's installing to include. The source location was ./usr/lib/
It might seem that it's not a big deal for dpkg-cross to not handle multiarch packages since multiarch packages can just be installed directly; but since we can't use foreign-
I've checked with dpkg-cross 2.6.2 from Debian unstable; the same problem is present there.
Changed in dpkg-cross (Ubuntu): | |
status: | New → Triaged |
importance: | Undecided → High |
assignee: | nobody → Wookey (wookey) |
milestone: | none → ubuntu-11.04-beta-1 |
tags: | added: multiarch |
tags: | added: patch |
Changed in dpkg-cross (Debian): | |
status: | Unknown → New |
Changed in dpkg-cross (Debian): | |
status: | New → Fix Committed |
Changed in dpkg-cross (Ubuntu Natty): | |
milestone: | ubuntu-11.04-beta-1 → ubuntu-11.04-beta-2 |
Changed in dpkg-cross (Debian): | |
status: | Fix Committed → Fix Released |
+++ Steve Langasek [2011-03-21 05:06 -0000]: 64-linux- gnu/include, e.g.: 64-linux- gnu/include/ gconv/libCNS. so x86_64- linux-gnu/ gconv/.
> Public bug reported:
>
> Binary package hint: dpkg-cross
>
> Running dpkg-cross against the Multi-Arch: same version of libc6
> currently in natty does not produce sensible output. Instead it
> generates a .deb that contains only a large number of iconv .so modules
> under /usr/x86_
>
> ./usr/x86_
>
> I have no idea why it's installing to include. The source location was
> ./usr/lib/
You're quite right - it does indeed do that.
> It might seem that it's not a big deal for dpkg-cross to not handle architecture build dependencies toolchain- base) need to build using gcc-4.5-source, eglibc-
> multiarch packages since multiarch packages can just be installed
> directly; but since we can't use foreign-
> on the buildds yet, cross-toolchain packages in the archive (such as
> armel-cross-
> source, etc. and run dpkg-cross afterwards to output their binary
> packages.
<fx: looks at armel-cross- toolchain- base code>
Hmm. I see.
In general the right thing for dpkg-cross to do with multiarch
packages is nothing, at least in terms of moving files about. What you
want here is the ability to leave the files just where they are but
still have the 'make a package for a different arch' functionality?
Or do you in fact want the functionality of moving files into the
'old' locations even if they start in the multiarch ones (because
something about the build process needs it)? That seems very horrid
> I've checked with dpkg-cross 2.6.2 from Debian unstable; the same
> problem is present there.
The multiarch behaviour of what's in cvs (2.6.3) is different from 2.6.2. It
essentially tries to do nothing.
$ dpkg-cross -b -a amd64 libc6_2. 13-0ubuntu8_ amd64.deb 2.13-0ubuntu8_ amd64.deb' Multi-Arch package.
dpkg-cross: Skipping the 'libc6_
So that's better than the previous messing it up, and is a prefectly toolchain- base.
reasonable way of fixing this bug. (i.e now it does something
sensible). But that doesn't help armel-cross-
> So the armel cross-compiler in the archive isn't buildable
> until this is resolved.
I think we can all agree that the _correct_ fix for this is to allow 13-0ubuntu8_ amd64.deb into cross_2. 13-0ubuntu8_ all.deb
cross-arch dependencies and have the cross-toolchains built in a less-gross
way, but as we're not going to be there for a bit it seems like
allowing dpkg-cross --convert-anyway to make
libc6_2.
libc6-amd64-
might be a reasonable things to do.
--convert-anyway is currently used for 'convert when the package would
otherwise be null'. Extending it to cover 'convert even when it
multiarch and normally we'd do nothing' doesn't seem unreasonable. Can
anyone think of a reason why a different option (--force-cross?) should
be used?
Wookey wookware. org/
--
Principal hats: Linaro, Emdebian, Wookware, Balloonboard, ARM
http://