Multiple packages provide phpapi-20090626; package must select one

Bug #608146 reported by Marcin Juszkiewicz
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
xdeb (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

Binary package hint: xdeb

I am using xdeb in Maverick amd64 chroot with my ARM cross compiler packages installed. Tried to build gmp resulted in ugly bug:

hrw@home:~/xdeb$ xdeb -a armel --apt-source --prefer-apt gmp
Building source package cache ...
[sudo] password for hrw:
Building working tree cache ...
Traceback (most recent call last):
  File "/usr/bin/xdeb", line 768, in <module>
    main()
  File "/usr/bin/xdeb", line 735, in main
    expand_depends(options, pkg, 0)
  File "/usr/bin/xdeb", line 250, in expand_depends
    parent=src, parent_binary=binary)
  File "/usr/bin/xdeb", line 233, in expand_depends
    expand_depends(options, bd_pkg, depth + 1, parent=src)
  File "/usr/bin/xdeb", line 250, in expand_depends
    parent=src, parent_binary=binary)
  File "/usr/bin/xdeb", line 233, in expand_depends
    expand_depends(options, bd_pkg, depth + 1, parent=src)
  File "/usr/bin/xdeb", line 250, in expand_depends
    parent=src, parent_binary=binary)
  File "/usr/bin/xdeb", line 233, in expand_depends
    expand_depends(options, bd_pkg, depth + 1, parent=src)
  File "/usr/bin/xdeb", line 233, in expand_depends
    expand_depends(options, bd_pkg, depth + 1, parent=src)
  File "/usr/bin/xdeb", line 233, in expand_depends
    expand_depends(options, bd_pkg, depth + 1, parent=src)
  File "/usr/bin/xdeb", line 233, in expand_depends
    expand_depends(options, bd_pkg, depth + 1, parent=src)
  File "/usr/bin/xdeb", line 250, in expand_depends
    parent=src, parent_binary=binary)
  File "/usr/bin/xdeb", line 233, in expand_depends
    expand_depends(options, bd_pkg, depth + 1, parent=src)
  File "/usr/bin/xdeb", line 233, in expand_depends
    expand_depends(options, bd_pkg, depth + 1, parent=src)
  File "/usr/bin/xdeb", line 233, in expand_depends
    expand_depends(options, bd_pkg, depth + 1, parent=src)
  File "/usr/bin/xdeb", line 233, in expand_depends
    expand_depends(options, bd_pkg, depth + 1, parent=src)
  File "/usr/bin/xdeb", line 245, in expand_depends
    real_dep = get_real_pkg(options, or_dep['name'])
  File "/usr/bin/xdeb", line 53, in get_real_pkg
    real_pkg = aptutils.get_real_pkg(pkg)
  File "/usr/lib/xdeb/aptutils.py", line 108, in get_real_pkg
    "Multiple packages provide %s; package must select one" % pkg
aptutils.MultipleProvidesException: Multiple packages provide phpapi-20090626; package must select one

Revision history for this message
Marcin Juszkiewicz (hrw) wrote :

Same with gtk+2.0, qt4-x11, mc as target

Loïc Minier (lool)
summary: - gmp can not be built for armel
+ Multiple packages provide phpapi-20090626; package must select one
Changed in xdeb (Ubuntu):
assignee: nobody → Wookey (wookey)
importance: Undecided → Medium
Revision history for this message
Wookey (wookey) wrote :

phpapi-20090626 is provided by 4 packages: libapache2-mod-php5filter, php5-cli, php5-cgi, libapache2-mod-php5

Arbitrarily choosing the first does not seem very helpful here (in a cross-building context). I'm not sure if this dep is genuinely required for cross-building, but it seems senisble to choose php5-cli as the most appropriate way of running anything that needs it.

This looks like an instance of a set of cases where there is a choice of fulfillers of a virtual dep, and 'best' answer should be selected for cross-building. Adding a set of mappings for these choices would seem like the right solution, probably via xdeb.cfg

Revision history for this message
Loïc Minier (lool) wrote :

Fixed in 0.6

xdeb (0.6) maverick; urgency=low

  [ Loïc Minier ]
  * Improve Description, as suggested by James Westby.
  * Use debian module when available instead of debian_bundle; thanks
    Marcin Juszkiewicz.
  * Recommend gcc as to avoid a dpkg-architecture warning: "Couldn't determine
    gcc system type, falling back to default (native compilation)".
  * Recommend fakeroot as it's the default rootcmd of debuild and will break
    the build with "fatal error at line 945: problem running fakeroot".
  * Depend on build-essential, dpkg-checkbuilddeps wants it unconditionally.

  [ Colin Watson ]
  * PEP-8 indentation throughout.
  * Fix TargetConfig.native_import_source not to crash if that configuration
    element isn't present.
  * Check blacklist separately for virtual package names in dependencies.
  * Blacklist phpapi-20090626 and phpapi-20090626+lfs.
  * Add --only-explicit option to native-import everything that isn't
    explicitly listed on the command line. This avoids a number of
    dependency cycles.

Changed in xdeb (Ubuntu):
assignee: Wookey (wookey) → nobody
status: New → Fix Released
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.