Need --arch= support in apt-ftparchive

Bug #714970 reported by LaMont Jones on 2011-02-08
16
This bug affects 1 person
Affects Status Importance Assigned to Milestone
apt (Ubuntu)
Medium
Unassigned
Lucid
Undecided
Unassigned

Bug Description

Binary package hint: apt

TEST CASE:
The important part of this is that it does not introduce regressions. This is the focus of the test
case. There is no need to verify the "bug" in the old version:

1. install apt-utils from lucid-proposed
2. create "repo" dir and download into that:
   https://launchpad.net/ubuntu/+archive/primary/+files/4g8_1.0-3_amd64.deb
   https://launchpad.net/ubuntu/+archive/primary/+files/4g8_1.0-3_armel.deb
3. ensure you are in the "repo" dir and run "apt-ftparchive packages ."
4. verify that you see two stanzas that start with "Package: 4g8" and that one has
   Architecture: armel and the other Architecture: amd64
5. now run "apt-ftparchive packages . --arch=armel" and verify that there is only a single stanza
   (with armel as the arch)
6. repeat for amd64 (expected one stanza) i386 (empty output)
7. create new repo2 dir and cd into it
8. download https://launchpad.net/ubuntu/+archive/primary/+files/2vcard_0.5-3_all.deb
9. run "apt-ftparchive packages ." and very that 2vcard is in the output
10. run "apt-ftparchive packages . --arch=i386" and verify that 2vcard is in the output
11. repeat 10 with --arch=amd64 and --arch=armel and verify that 2vcard is part of the output
    (its a arch=all package)

In order to better publish the Ubuntu archive, we need lucid support in apt-ftparchive for --arch=.

We are currently testing a patch, and will upload it once it is confirmed to be sufficient for our needs. The change is minor and isolated to apt-ftparchive.

Rather than maintain a separate fork for the infrastructure, we would like to have this appear in an SRU to lucid.

thanks,
lamont

Related branches

David Kalnischkies (donkult) wrote :

Shouldn't a backport of revision 1875.3.3 be enough instead of a new patch?

tags: added: patch
Michael Vogt (mvo) wrote :

I upload a backport to lucid-proposed now.

Changed in apt (Ubuntu):
status: New → In Progress
importance: Undecided → Medium
assignee: nobody → Michael Vogt (mvo)
Michael Vogt (mvo) wrote :

I can not nomiate it for a release, launchpad oopses on me when I try.

Changed in apt (Ubuntu):
assignee: Michael Vogt (mvo) → nobody

Accepted apt into lucid-proposed, the package will build now and be available in a few hours. Please test and give feedback here. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you in advance!

Changed in apt (Ubuntu):
status: In Progress → Fix Released
Changed in apt (Ubuntu Lucid):
status: New → Fix Committed
tags: added: verification-needed
Michael Vogt (mvo) on 2011-03-16
description: updated
Jean-Baptiste Lallement (jibel) wrote :

SRU verification for Lucid:
I followed the steps from the test case with success and saw no regression. The version of apt-utils 0.7.25.3ubuntu9.4 in -proposed fixes the issue.

Marking as verification-done

tags: added: verification-done
removed: verification-needed
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package apt - 0.7.25.3ubuntu9.4

---------------
apt (0.7.25.3ubuntu9.4) lucid-proposed; urgency=low

  * backported the apt-ftparchive --arch support (LP: #714970)
 -- Michael Vogt <email address hidden> Wed, 16 Feb 2011 20:56:11 +0100

Changed in apt (Ubuntu Lucid):
status: Fix Committed → Fix Released
tags: added: testcase
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers