Fwd: OK, I had to do it again (disk transplant from a i586 to a i686)...

Robert Heller <[email protected]>
Newsgroups gmane.linux.redhat.rpm.general
Organization Deepwoods Software
Message-ID <[email protected]>
I posted this to the linux.redhat.com newsgroup and didn't get a reply. 
I now need to apply some updates, but can't do things automagically with
yum because of this problem (I'll have to update some packages manually
with 'rpm --ignore-arch ...', which is a real PITA).  I did a google
search and cannot find any documentation on how to fix this.  Do I
really need to do a fresh re-install?  Arg!!!


At Sun, 02 Dec 2007 16:17:35 +0100 Robert Heller <[email protected]> wrote:

> 
> My K6-500 system seems to have died (I guessing something with the
> motherboard -- the system started kernel panicing somewhere in i8042.c
> (keyboard / PS/2 ports?).  I transplanted the disks, disk controller,
> extra serial ports, and swaped video cards with my PIII @ 500mhz print
> server box.  I upgraded the  kernel (to a .i686 kernel), and
> re-installed glibc (.i686) and openssl (.i686).  RPM still believes
> this is a i586 box.  There is *some magic* somewhere in the RPM
> database / configuration that remembers the arch.  How do I fix this
> short of a clean re-install from scratch -- I really, really don't want
> to have to do this, since it means I need to hunt down all of the extra
> stuff I've installed and redo ALL of the configuration files -- this
> could take MONTHS of fussing with, just to change one digit (one byte!)
> somewhere in RPM's database or configuration.  It really can't be that
> hard to fix!
> 
> sauron.deepsoft.com%  sudo /etc/cron.daily/rpm
> Password:
> sauron.deepsoft.com% grep i586 /var/log/rpmpkgs
> bison++-1.21.8-4mdk.i586.rpm
> doc++-3.4.10-4.i586.rpm
> docbook2x-0.8.5-3.1.i586.rpm
> ical-2.2-31mdk.i586.rpm
> jdk-1.5.0_07-fcs.i586.rpm
> kernel-2.6.9-34.EL_BUSLOGIC.i586.rpm
> kernel-2.6.9-34.EL.i586.rpm
> kernel-2.6.9-42.0.10.EL.RPH.i586.rpm
> kernel-2.6.9-42.0.8.EL.RPH.i586.rpm
> kernel-2.6.9-42.EL_RPH.i586.rpm
> kernel-2.6.9-55.0.2.EL.RPH.i586.rpm
> kernel-2.6.9-55.EL.RPH.i586.rpm
> kernel-devel-2.6.9-55.0.2.EL.RPH.i586.rpm
> libstroke-0.4-1mdk.i586.rpm
> libstroke-devel-0.4-1mdk.i586.rpm
> openssl-devel-0.9.7a-43.16.i586.rpm
> pcb-1.6.3-1060.i586.rpm
> perl-GTK-0.7009-2mdk.i586.rpm
> pwgen-2.04-2.i586.rpm
> rar-3.5.1-1.2.el4.rf.i586.rpm
> tex4ht-20020613-424.1.i586.rpm
> tkimg-1.3-27.i586.rpm
> sauron.deepsoft.com% grep i686 /var/log/rpmpkgs
> glibc-2.3.4-2.36.i686.rpm
> kernel-2.6.9-55.0.6.EL.i686.rpm
> openssl-0.9.7a-43.16.i686.rpm
> sauron.deepsoft.com% uname -a
> Linux sauron.deepsoft.com 2.6.9-55.0.6.EL #1 Tue Sep 4 21:10:58 EDT 2007
> i686 i686 i386 GNU/Linux
> sauron.deepsoft.com% rpm --showrc | head -20
> ARCHITECTURE AND OS:
> build arch            : i386
> compatible build archs: i586 i486 i386 noarch
> build os              : Linux
> compatible build os's : linux
> install arch          : i586
> install os            : Linux
> compatible archs      : i586 i486 i386 noarch
> compatible os's       : linux
> 
> RPMRC VALUES:
> macrofiles            :
> /usr/lib/rpm/macros:/usr/lib/rpm/i386-linux/macros:/usr/lib/rpm/redhat/macros:/etc/rpm/macros.*:/etc/rpm/macros:/etc/rpm/i386-linux/macros:~/.rpmmacros
> optflags              : %{__global_cflags} -m32 -march=i586
> 
> On a i686 system (from birth):
> 
> sharky.deepsoft.com% grep i586 /var/log/rpmpkgs
> openssl-devel-0.9.7a-43.16.i586.rpm
> openssl-perl-0.9.7a-43.16.i586.rpm
> sharky.deepsoft.com% grep i686 /var/log/rpmpkgs
> glibc-2.3.4-2.36.i686.rpm
> kernel-2.6.9-42.0.2.EL.i686.rpm
> openssl-0.9.7a-43.16.i686.rpm
> sharky.deepsoft.com% uname -a
> Linux sharky.deepsoft.com 2.6.9-023stab033.6-smp #1 SMP Tue Nov 7
> 16:00:49 MSK 2006 i686 i686 i386 GNU/Linux
> sharky.deepsoft.com% rpm --showrc | head -20
> ARCHITECTURE AND OS:
> build arch            : i386
> compatible build archs: i686 i586 i486 i386 noarch fat
> build os              : Linux
> compatible build os's : Linux
> install arch          : i686
> install os            : Linux
> compatible archs      : i686 i586 i486 i386 noarch fat
> compatible os's       : Linux
> 
> RPMRC VALUES:
> macrofiles            :
> /usr/lib/rpm/macros:/usr/lib/rpm/i686-linux/macros:/etc/rpm/macros.*:/etc/rpm/macros:/etc/rpm/i686-linux/macros:~/.rpmmacros
> optflags              : -O2 -g -march=i686
> 
> --------------------
> 
> Where does RPM's 'ARCHITECTURE AND OS' information live?  What file do I
> need to edit to change it? It is none of the *listed* macrofiles -- I've
> already checked them.
> 
> Has nobody (but me) *ever* done a disk transplant from a i586 to a
> i686? This is the second time I've done this [this year] -- earlier
> this year I transplanted the disk from a i586 laptop to a i686 laptop. 
> In the past I have done system upgrades -- I replaced a i486
> motherboard with a i586 motherboard in the past -- really old days --
> before people bothered much with arch=specific kernels and and such (RH
> 5.2 - 2.0.x kernel) and had no problems.
> 
> 

-- 
Robert Heller             -- Get the Deepwoods Software FireFox Toolbar!
Deepwoods Software        -- Linux Installation and Administration
http://www.deepsoft.com/  -- Web Hosting, with CGI and Database
[email protected]       -- Contract Programming: C/C++, Tcl/Tk
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.