Bug 470938

Summary: yumdownload --archlist=x86_64 downloads i386 rpm on i686
Product: [Fedora] Fedora Reporter: Till Maas <opensource>
Component: yum-utilsAssignee: Seth Vidal <skvidal>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: 8CC: james.antill, opensource, pmatilai, tim.lauridsen
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1045871 (view as bug list) Environment:
Last Closed: 2009-01-09 07:54:35 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Till Maas 2008-11-10 23:01:26 UTC
Description of problem:
I wanted to download x86_64 packages on my i686 machine, therefore I used--archlist=x86_64 as an argument, but it only downloaded the i386 package.


Version-Release number of selected component (if applicable):
yum-utils-1.1.17-1.fc8

How reproducible:
always

Steps to Reproduce:
1. yumdownloader -v --noplugins  --archlist=x86_64 aircrack-ng

  
Actual results:
downloads aircrack-ng-0.9.3-1.fc8.i386.rpm

Expected results:
Should download x86_64 rpm

Comment 1 Bug Zapper 2008-11-26 11:17:57 UTC
This message is a reminder that Fedora 8 is nearing its end of life.
Approximately 30 (thirty) days from now Fedora will stop maintaining
and issuing updates for Fedora 8.  It is Fedora's policy to close all
bug reports from releases that are no longer maintained.  At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '8'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 8's end of life.

Bug Reporter: Thank you for reporting this issue and we are sorry that 
we may not be able to fix it before Fedora 8 is end of life.  If you 
would still like to see this bug fixed and are able to reproduce it 
against a later version of Fedora please change the 'version' of this 
bug to the applicable version.  If you are unable to change the version, 
please add a comment here and someone will do it for you.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events.  Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

The process we are following is described here: 
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 2 seth vidal 2008-12-10 19:31:57 UTC
--archlist doesn't change the $basearch value in your yum.conf and .repo files. So yumdownloader is getting only the compatible pkgs to the x86_64 architecture.

 use setarch and it should set $basearch properly

Otherwise this will have to wait until it is possible to set the specific arch from yum itself.

Comment 3 Till Maas 2008-12-10 20:07:51 UTC
I do not understand what --archlist is supposed to, do or why downloading the i386 rpms is the right beheaviour. yumdownloader --help says:

|  --archlist=ARCHLIST   only download packages of certain architecture(s)

Maybe if it is not possible to download the packages for the specified arch, then it should not download anything at all. Or can you maybe explain for which use cases this options exists?

Since it is possible to use setarch externally, couldn't yumdownloader call itself with the approprate setarch commandline, e.g.:

if sys.argv[1] == "--setarch":
    import os
    sys.argv.insert(0, sys.argv[2])
    sys.argv.pop(2)
    sys.argv.pop(2)
    os.execv("/usr/bin/setarch", sys.argv.pop(1))

This works at least nicely on x86_64 with --setarch i386, but it seems that setarch x86_64 does not work on i686.

Is it planned to be able to set a specific arch from yum itself?

Comment 4 Bug Zapper 2009-01-09 07:54:35 UTC
Fedora 8 changed to end-of-life (EOL) status on 2009-01-07. Fedora 8 is 
no longer maintained, which means that it will not receive any further 
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of 
Fedora please feel free to reopen this bug against that version.

Thank you for reporting this bug and we are sorry it could not be fixed.