Bug 172080 - arch variable in yum.conf is ignored
Summary: arch variable in yum.conf is ignored
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: yum
Version: 4
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jeremy Katz
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2005-10-30 23:14 UTC by Jerry Vonau
Modified: 2014-01-21 22:53 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2005-10-30 23:17:09 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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.





Note You need to log in before you can comment on or make changes to this bug.