RFC: RPM build flags

Dennis Gilmore dennis at ausil.us
Mon Feb 16 23:54:01 UTC 2009


On Monday 16 February 2009 03:56:04 pm Nicolas Chauvet wrote:
> 2009/2/16 Dennis Gilmore <dennis at ausil.us>:
> > On Monday 16 February 2009 12:42:33 pm Jon Masters wrote:
> >> Folks,
> >>
> >> In the meeting on #fedora-meeting just now I discovered the i586 arch
> >> changes weren't specific just to kernel but that the entire 32-bit
> >> userspace is being switched to i586 instead of i386 as a default. Most
> >> of that is koji (it makes builds for i586 instead of i386) but there was
> >> a request to look at flags.
> >>
> >> Currently, we build i386 packages with the following:
> >>
> >> optflags: i386 %{__global_cflags} -m32 -march=i386
> >> -mtune=generic -fasynchronous-unwind-tables
> >>
> >> And we build i586 packages with the following:
> >>
> >> optflags: i586 %{__global_cflags} -m32 -march=i586
> >> -fasynchronous-unwind-tables
> >>
> >> So the proposal is to change i586 to be in line with i386:
> >>
> >> optflags: i586 %{__global_cflags} -m32 -march=i586
> >> -mtune=generic -fasynchronous-unwind-tables
> >>
> >> While we're at it, didn't spot and/or someone else want to tweak sparc
> >> build flags too? Now would be a good time to let us know :)
> >>
> >> Jon.
> >
> > the attached patch is what i intend to apply.
>
> +buildarchtranslate: i686: i586
> Why to downgrade i686 to i586 ? (same for athlon)
it sets the arch that is used when you do rpmbuild -ba <spec>  this way people 
will get .i586 rpms the same as koji spits out.  its previously been defined in 
rpm to be i386  otherwise without --target=i586  you would get i386 rpms 
locally.

Dennis
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://listman.redhat.com/archives/fedora-devel-list/attachments/20090216/fcf62ec8/attachment.sig>


More information about the fedora-devel-list mailing list