Opinions: Providing "buildsys-macros" in the installed system

Ralf Corsepius rc040203 at freenet.de
Thu Mar 29 14:09:11 UTC 2007


On Thu, 2007-03-29 at 09:04 -0400, Jarod Wilson wrote:
> Ralf Corsepius wrote:
> > - whether the build-sys macros are being merged into redhat-rpm-config
> > doesn't matter much, because redhat-rpm-config already kills rpmbuild
> > "--target"
> 
> Huh? Worked just fine for me a few days ago to build i686 kernel rpms on 
> an x86_64 host, using only the following:
> 
> $ setarch i386 rpmbuild -bb --target i686 kernel-2.6.spec
Now, build for a non-rh target or an incompatible arch and examine %
_host, %_build, %_target and other %values (eg. CC, or $*FLAGS)

> Are you referring to the fact you have to make a call to setarch to
> get 
> it to fully do the right thing?
Well, the fact you have to apply setarch is a bug.

But ... this is not related to what I am referring to:
The more exotic the target are, the more brokenness you'll encounter.

E.g. try to implement custom /usr/lib/rpm/<target>/macros for an exotic
target ... redhat-rpm-config causes this not to be used. rpm -e
redhat-rpm-config magically makes this work ... (And this is only the
tip of the iceberg :( ).

Ralf





More information about the fedora-devel-list mailing list