Jump to content

Mandrake a la Gentoo


jlc
 Share

Recommended Posts

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

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

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

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

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

Guest fubar::chi

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...