jlc Posted May 9, 2003 Share Posted May 9, 2003 http://www.mandrakeusers.org/tutorials/lin...kster.php?CID=2 Has anyone tried this? I've tried creating the .rpmrc and .rpmmacros files but it doesn't seem to work. Anyone work out a better step by step for this process? Link to comment Share on other sites More sharing options...
beesea Posted May 10, 2003 Share Posted May 10, 2003 so what exactly is the problem? do rpms not rebuild at all, do they not build with your specified optflags, or something else? i haven't tried using optflags in my .rpmrc, but i have no problem building rpms. check the mandrake rpm howto to verify that your .rpmrc and .rpmmacros files are good Link to comment Share on other sites More sharing options...
jlc Posted May 11, 2003 Author Share Posted May 11, 2003 I guess it would have helped if I dropped some info in. The files look good, but there not rebuilding to my standards. Instead of Athlon, it appears to be using the old i586 initial setup. Link to comment Share on other sites More sharing options...
johnnyv Posted May 11, 2003 Share Posted May 11, 2003 so you added a new line to the rpmrc file? like athlonxp or changed the athlon line? as root did you: rpm --rebuild --target athlon *.src.rpm ? It works for me, i changed the existing athlon line adding flags for athlon-xp in the rpmrc file. Link to comment Share on other sites More sharing options...
jlc Posted May 11, 2003 Author Share Posted May 11, 2003 So you created the .rpmrc file and just use: --target athlon And that will do the trick? I'll have to give it a try when I can. Link to comment Share on other sites More sharing options...
jlc Posted May 11, 2003 Author Share Posted May 11, 2003 Let me clear that up a little more, which route did you go? /usr/lib/rpm/rpmrc vs. /etc/rpmrc vs. ~/.rpmrc Link to comment Share on other sites More sharing options...
johnnyv Posted May 11, 2003 Share Posted May 11, 2003 i did the /usr/lib/rpm/rpmrc file. Link to comment Share on other sites More sharing options...
beesea Posted May 11, 2003 Share Posted May 11, 2003 my ~/.rpmrc looks like: optflags: i586 -march=pentium3 -O3 -fomit-frame-pointer -pipe buildarchtranslate: i386: i586 buildarchtranslate: i486: i586 buildarchtranslate: i586: i586 buildarchtranslate: i686: i586 for an athlon (i think) it should look something like: optflags: athlon -march=athlon -O3 -fomit-frame-pointer -pipe buildarchtranslate: i386: athlon buildarchtranslate: i486: athlon buildarchtranslate: i586: athlon buildarchtranslate: i686: athlon Link to comment Share on other sites More sharing options...
jlc Posted May 12, 2003 Author Share Posted May 12, 2003 Nothing seems to work except to put the: rpm --rebuild --target athlon *.src.rpm Link to comment Share on other sites More sharing options...
Guest fubar::chi Posted May 12, 2003 Share Posted May 12, 2003 sorry i've been out for a while but i did do this (and get it to work). I wouldn't mess with any of the default setup's like johnnyv did or build as root since the ~/files will work. All you have to do is put in your options -march=athlon-xp (if you have just athlon then -march=athlon) and then add whatever you want to .rpm* files. I added a different company name when i built mine just so i could distinguish between them in kpackage. When building put in the --target athlon flag (not --target=athlon-xp like i did) and it will build for an athlon-xp and use the .rpmrc settings. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now