[UBUNTU 20.04] apt build-dep qemu can't resolve dependencies

Bug #1866032 reported by bugproxy
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu on IBM z Systems
Invalid
High
Canonical Foundations Team
gcc-defaults-ports (Ubuntu)
Invalid
Wishlist
Unassigned
qemu (Ubuntu)
Invalid
Undecided
Skipper Bug Screeners

Bug Description

I was trying to re-build the QEMU package from source, but the build dependencies can't be resolved.

Steps to reproduce:
1. Install Ubuntu 20.04 System on an LPAR|z/VM guest|KVM guest from ports.ubuntu.com
2. Uncomment all #deb-src lines in /etc/apt/sources.list
3. Run the following commands:
   $ sudo apt update
   $ sudo apt install build-essential
   $ apt source qemu
   $ sudo apt build-dep qemu
4. The last command produces the following error output
---
$ sudo apt build-dep qemu
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 builddeps:qemu : Depends: libncursesw5-dev
                  Depends: gcc-alpha-linux-gnu but it is not installable
                  Depends: gcc-powerpc64-linux-gnu but it is not installable
E: Unable to correct problems, you have held broken packages.

bugproxy (bugproxy)
tags: added: architecture-s39064 bugnameltc-184185 severity-high targetmilestone-inin2004
Changed in ubuntu:
assignee: nobody → Skipper Bug Screeners (skipper-screen-team)
affects: ubuntu → qemu (Ubuntu)
Frank Heimes (fheimes)
Changed in ubuntu-z-systems:
status: New → Triaged
importance: Undecided → High
assignee: nobody → Canonical Foundations Team (canonical-foundations)
bugproxy (bugproxy)
tags: added: severity-critical
removed: severity-high
Revision history for this message
Steve Langasek (vorlon) wrote :

These packages are only Build-Depends-Indep, meaning they are only needed when you are building the arch: all packages from the qemu source package.

The following command succeeds on s390x with an up-to-date focal system:

# apt build-dep --arch-only qemu

If you need to rebuild qemu-system-data, the only arch: all binary package from the qemu source, you will want to do that rebuild on an x86 system. Official arch: all builds for the Ubuntu archive are always done on amd64, so Build-Depends-Indep are not guaranteed to be satisfiable on other architectures.

Changed in qemu (Ubuntu):
status: New → Invalid
affects: cross-toolchain-base (Ubuntu) → gcc-defaults-ports (Ubuntu)
Changed in gcc-defaults-ports (Ubuntu):
importance: Undecided → Wishlist
status: New → Triaged
Revision history for this message
bugproxy (bugproxy) wrote : Comment bridged from LTC Bugzilla

------- Comment From <email address hidden> 2020-03-04 07:23 EDT-------
Thanks for the clarification.

bugproxy (bugproxy)
tags: added: severity-medium
removed: severity-critical
Revision history for this message
Dimitri John Ledkov (xnox) wrote :

Or you can for example dput qemu*.dsc into a launchpad ppa, which will perform builds for all architectures in the right way. And will generate a matching set of arch:all packages on amd64 and all the relevant architecture specific packages for arch:any packages.

Changed in gcc-defaults-ports (Ubuntu):
status: Triaged → Invalid
Changed in ubuntu-z-systems:
status: Triaged → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.