On Mon, 8 Nov 1999, Piet Barber said:
PB>erik wrote:
PB>
PB>> I feel really dumb asking this, but I cant figure it out on my own. I
PB>> have a i586 machine. i want to recompile the rpms for i586 so that
PB>> they run better. I have the Redhat CD with all of the src.rpms on
PB>> it. Now what command do i issue to rebuild foo.src.rpm to
PB>> foo.i586.rpm? I tried looking through the archives and the man pages,
PB>> but it didnt help me.
PB>>
PB>> Thanks,
PB>>
PB>
PB>rpm --rebuild foo.bar.src.rpm
PB>will take the src.rpm, extract it, run the script in the SPEC file, and
PB>create an RPM in /usr/src/redhat/RPMS
PB>
PB>If successful, of course. that means you have to have all of your
PB>required libraries, and required make utilities, and includes, and
PB>anything else that particular package needs to get created.
PB>
PB>You could also run
PB>rpm -Uvh foo.bar.src.rpm
PB>which will put all of the stuff in the /usr/src/redhat/ directory. The
PB>spec file will go in , well. SPECS. The tarball will go in SOURCES, and
PB>you can debug from there.
PB>
PB>If there are separate packages that get created from this src.rpm, then
PB>both of the RPMS will show up in RPMS. Examples of this are something
PB>like foo-bar-0.51.rpm and foo-bar-devel-0.51.rpm
Correct to a point but one piece of this was left out...
If you want to build a 586 rpm you have to specify it in the build command.
"--target i586" is the correct method.
Also... you really need to ensure that /usr/src/redhat/RPMS/i586 exists
because that's where rpm will try to write the file once it's finished
compiling.
When I do this I do the following:
rpm -i xxxxxxxxx.src.rpm
cd /usr/src/redhat/SPECS
rpm -bb --target i586 xxxxxxxxx.spec
--
Chuck Mead, CTO, MoonGroup Consulting, Inc. <http://moongroup.com>
Mail problems? Send "s-u-b-s-c-r-i-b-e mailhelp" (no quotes and no
hyphens) in the body of a message to [EMAIL PROTECTED]
Public key available at: wwwkeys.us.pgp.net
--
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.