Bug 172080

Summary: arch variable in yum.conf is ignored
Product: [Fedora] Fedora Reporter: Jerry Vonau <jvonau3>
Component: yumAssignee: Jeremy Katz <katzj>
Status: CLOSED NOTABUG QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 4CC: katzj
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-10-30 23:17:09 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 Jerry Vonau 2005-10-30 23:14:30 UTC
From Bugzilla Helper:
User-Agent: Mozilla/4.0 (compatible; MSIE 5.5; Windows 95)

Description of problem:
I'm prepearing new drive for use in a different machine. The current nachine is a 686 while the target machine is a 586. I copy /etc/fedora-release to the target drive, when I add arch=i586 to the yum.conf file that I pass to yum with -c  and do a --installroot= with yum, the resuling list of rpms include i686 varients. ie:
glibc                   i686       2.3.5-10.3       updates-released4  5.7 M  
kernel                  i686       2.6.13-1.1532_FC4  updates-released4   16 M 
openssl                 i686       0.9.7f-7.10      updates-released4  1.2 M  

Version-Release number of selected component (if applicable):
yum-2.4.0-0.fc4

How reproducible:
Always

Steps to Reproduce:
1.Try to change the arch of the yum install.
2.
3.
  

Actual Results:  The arch variable is ignored and the host machine's info is used instead.

Expected Results:  If I use arch=i586 in the yum.conf file, then the gcc, kernel, et all, should be 586 or less.

Additional info:

Comment 1 Seth Vidal 2005-10-30 23:17:09 UTC
where did you get the idea that you can define the arch variable?



Comment 2 Jerry Vonau 2005-10-31 00:59:16 UTC
man yum.conf:
 $arch  This will be  replaced  with  your  architecture  as  listed  by
              os.uname()[4] in Python.                                         

Comment 3 Jerry Vonau 2005-10-31 01:01:00 UTC
Or did I miss read that?

Comment 4 Jerry Vonau 2005-10-31 01:24:40 UTC
Found a workaround, on the 686 machine I created the file /etc/rpm/platform, 
and added "i586-redhat-linux" to it. I then get packages based on i586. Just 
have to remember to rename it when I'm done.

Comment 5 Seth Vidal 2005-10-31 01:31:35 UTC
it will be replaced when you use it in strings like baseurl.

you can't SET it.