[Bug 1246067] Re: build-dep --arch armhf pulls in dbus:armhf

David Kalnischkies 1246067 at bugs.launchpad.net
Tue Oct 29 21:51:10 UTC 2013


[ There is no --arch option. Its either -a or --host-architecture. If it
would be --arch, it would mean build-architecture.]

I said this earlier already: This is a problem of not having
enough/correct information. For APT "Multi-Arch: foreign" means that it
can use a package from any architecture. It might be that it should
prefer native, but taking a foreign architecture like "armhf" is just as
valid dependency-wise. Its M-A:foreign after all and "armhf" is a
foreign architecture.

What you want instead is to say: "While I want to install (M-A:same)
packages for this architecture (e.g. to cross-build for it) I want APT
(and co) to ignore the "Multi-Arch: foreign" flag on it as it can't
actually satisfy dependencies of packages from another architecture
(e.g. I can't execute binaries from it).

Preferring native (which code-wise would be pretty hard in most cases)
might paper over this problem in cross-building, but a user could very
well just "apt-get install dbus:armhf" on the very same system and it
will work (not later on).

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to apt in Ubuntu.
https://bugs.launchpad.net/bugs/1246067

Title:
  build-dep --arch armhf pulls in dbus:armhf

Status in “apt” package in Ubuntu:
  Triaged

Bug description:
  Having tried:

  apt-get build-dep --arch armhf unity8

  Resulted in dbus:armhf being pulled in instead of dbus:amd64, which
  fails in postinst:

  /var/lib/dpkg/info/dbus.postinst: 28: /var/lib/dpkg/info/dbus.postinst: dbus-uuidgen: not found
  dpkg: error processing dbus (--configure):                                                     
   subprocess installed post-installation script returned error exit status 127

  ProblemType: Bug
  DistroRelease: Ubuntu 14.04
  Package: apt 0.9.9.1~ubuntu3
  ProcVersionSignature: Ubuntu 3.11.0-12.19-generic 3.11.3
  Uname: Linux 3.11.0-12-generic x86_64
  NonfreeKernelModules: nvidia wl
  ApportVersion: 2.12.6-0ubuntu1
  Architecture: amd64
  Date: Tue Oct 29 13:53:46 2013
  MarkForUpload: True
  SourcePackage: apt
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1246067/+subscriptions



More information about the foundations-bugs mailing list