Imports binaries with the same name as the host binaries

Bug #616617 reported by Loïc Minier
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
xdeb (Ubuntu)
Fix Released
Medium
Wookey

Bug Description

Binary package hint: xdeb

Hi

When running:
xdeb -a armel --apt-source --only-explicit gstreamer0.10

xdeb will import a bunch of .debs from ports.ubuntu.com/ubuntu-ports, but fails to import lib32gmp3 since this is the amd64 package name instead of the armel one. Some dependencies should be resolved in each architecture's space.

Thanks,

Related branches

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

This is the output of xdeb:
Building source package cache ...
Building working tree cache ...
Build sequence: gmp* glib2.0* gobject-introspection* flex* openssl* libxml2* zlib* python2.6* gcc-4.5* ia32-libs* ncurses* libv4l* libsepol* alsa-lib* libffi* pcre3* libselinux* gsl* bzip2* gstreamer0.10*

===== Importing gmp_2:4.3.2+dfsg-1ubuntu1 =====

wget -N http://ports.ubuntu.com/ubuntu-ports/pool/main/g/gmp/libgmp3c2_4.3.2+dfsg-1ubuntu1_armel.deb
--2010-08-12 05:25:24-- http://ports.ubuntu.com/ubuntu-ports/pool/main/g/gmp/libgmp3c2_4.3.2+dfsg-1ubuntu1_armel.deb
Resolving ports.ubuntu.com... 91.189.88.36
Connecting to ports.ubuntu.com|91.189.88.36|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 240882 (235K) [application/x-debian-package]
Saving to: `libgmp3c2_4.3.2+dfsg-1ubuntu1_armel.deb'

100%[======================================>] 240,882 474K/s in 0.5s

2010-08-12 05:25:29 (474 KB/s) - `libgmp3c2_4.3.2+dfsg-1ubuntu1_armel.deb' saved [240882/240882]

wget -N http://ports.ubuntu.com/ubuntu-ports/pool/main/g/gmp/libgmpxx4ldbl_4.3.2+dfsg-1ubuntu1_armel.deb
--2010-08-12 05:25:30-- http://ports.ubuntu.com/ubuntu-ports/pool/main/g/gmp/libgmpxx4ldbl_4.3.2+dfsg-1ubuntu1_armel.deb
Resolving ports.ubuntu.com... 91.189.88.36
Connecting to ports.ubuntu.com|91.189.88.36|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 18488 (18K) [application/x-debian-package]
Saving to: `libgmpxx4ldbl_4.3.2+dfsg-1ubuntu1_armel.deb'

100%[======================================>] 18,488 --.-K/s in 0.07s

2010-08-12 05:25:30 (251 KB/s) - `libgmpxx4ldbl_4.3.2+dfsg-1ubuntu1_armel.deb' saved [18488/18488]

wget -N http://ports.ubuntu.com/ubuntu-ports/pool/main/g/gmp/libgmp3-dev_4.3.2+dfsg-1ubuntu1_armel.deb
--2010-08-12 05:25:30-- http://ports.ubuntu.com/ubuntu-ports/pool/main/g/gmp/libgmp3-dev_4.3.2+dfsg-1ubuntu1_armel.deb
Resolving ports.ubuntu.com... 91.189.88.36
Connecting to ports.ubuntu.com|91.189.88.36|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 570608 (557K) [application/x-debian-package]
Saving to: `libgmp3-dev_4.3.2+dfsg-1ubuntu1_armel.deb'

100%[======================================>] 570,608 496K/s in 1.1s

2010-08-12 05:25:31 (496 KB/s) - `libgmp3-dev_4.3.2+dfsg-1ubuntu1_armel.deb' saved [570608/570608]

wget -N http://ports.ubuntu.com/ubuntu-ports/pool/main/g/gmp/lib32gmp3_4.3.2+dfsg-1ubuntu1_armel.deb
--2010-08-12 05:25:31-- http://ports.ubuntu.com/ubuntu-ports/pool/main/g/gmp/lib32gmp3_4.3.2+dfsg-1ubuntu1_armel.deb
Resolving ports.ubuntu.com... 91.189.88.36
Connecting to ports.ubuntu.com|91.189.88.36|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2010-08-12 05:25:31 ERROR 404: Not Found.

Traceback (most recent call last):
  File "/usr/bin/xdeb", line 816, in <module>
    main()
  File "/usr/bin/xdeb", line 805, in main
    native_crossed.extend(native_import(options, src))
  File "/usr/bin/xdeb", line 468, in native_import
    cwd=options.builddirs[0])
  File "/usr/lib/xdeb/utils.py", line 29, in spawn
    raise SubprocessException, ret
utils.SubprocessException: 8

Changed in xdeb (Ubuntu):
assignee: nobody → Wookey (wookey)
importance: Undecided → Medium
Revision history for this message
Wookey (wookey) wrote : Re: [Bug 616617] [NEW] Imports binaries with the same name as the host binaries

+++ Loïc Minier [2010-08-12 05:25 -0000]:
> Public bug reported:
>
> Binary package hint: xdeb
>
> Hi
>
> When running:
> xdeb -a armel --apt-source --only-explicit gstreamer0.10
>
> xdeb will import a bunch of .debs from ports.ubuntu.com/ubuntu-ports,
> but fails to import lib32gmp3 since this is the amd64 package name
> instead of the armel one. Some dependencies should be resolved in each
> architecture's space.

Indeed. xdeb currently only downloads the native architecture Package
file and uses that for dependency-tree construction and resolution
(when not using local package sources).

This is of course wrong as soon as there is any variance between
architectures (and there is, plenty). It needs to learn to download
and use the target architecture dependency tree (as apt-cross has done
for years, and xapt does).

I intend to re-implement the relevant apt-cross functionality in xdeb
to fix this problem, but it's not a trivial task.

Wookey
--
Principal hats: Linaro, Emdebian, Wookware, Balloonboard, ARM
http://wookware.org/

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

I found a workaround by not caring about biarch:
 - I changed is_crossable() to return False for packages with "lib32"
   and "lib64"
 - I changed native_import() to skip (don't download) packages which
   aren't crossable -- these weren't imported anyway!

But the proper fix is still to use separate APT caches.

Loïc Minier (lool)
Changed in xdeb (Ubuntu):
status: New → Triaged
Revision history for this message
Martin Pitt (pitti) wrote :

Closing manually due to typo in the changelog:

xdeb (0.6.2) maverick; urgency=low

  [ Wookey ]
  * Use correct architecture apt cache when determining dependencies
    Fixes LP:#616617
  * Fix --only-explicit code to build corresponding source packages
    when binary names suppplied

  [ Loïc Minier ]
  * Clean up indentation in xdeb.py and changelog.

 -- Steve Langasek <email address hidden> Fri, 08 Oct 2010 12:20:24 -0700

Changed in xdeb (Ubuntu):
status: Triaged → 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.