xapt config and mirrors various related breakages

Bug #681505 reported by Dr. David Alan Gilbert
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
emdebian-crush (Ubuntu)
In Progress
Undecided
Unassigned

Bug Description

Binary package hint: emdebian-crush

Version: 2.2.4ubuntu3

This is in a maverick chroot I'm using for cross building to ARM (on an x86-64 lucid host, the chroot setup using debootstrap)

There are a set of issues, discussing with wookey he suggested a single bug.

1) Line 37 of xapt checks to see if the configfile (/etc/xapt/xapt.conf) is executable with -x - the one in the package isn't
2) I'm no perl expert, but I couldn't get $mirror to be set correctly with the $config{'mirror'} on line 40 using $mirror = $config->{'mirror'} seems to be the perl magic
3) It's entirely non-obvious that all of the mirror options and config are completely ignored unless you use --suite; I'd expected it to do the 'right' thinkg if I just told it that the mirror was ports.ubuntu.com. Without --suite it just copies the host's non-cross sources.list
4) Even with xapt -a armel --suite maverick and an appropriate mirror set it still doesn't find the packages; it's suspected this is doesn't contain the [arch=armel] tag.

Dave

Wookey (wookey)
Changed in emdebian-crush (Ubuntu):
status: New → Confirmed
Revision history for this message
Wookey (wookey) wrote :

Thanx for this report.
That is indeed all wrong :-)

1) -x should be -e (exists, not executable)
2) is broken - variable name was wrong, config auto not working. I haven't managed to fix this bit yet
3) should be predicated on --mirror not --suite (if you set a mirror then use that instead of host config, otherwise use host config)
4) yes the [arch=armel] thing is needed with newer apt.

I need to get to the bottom of the config parse issue in order to upload a fixed version

Revision history for this message
Neil Williams (codehelp) wrote :

Fixed in the Debian package in experimental....

Changed in emdebian-crush (Ubuntu):
status: Confirmed → In Progress
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.