Le samedi 04 février 2006 à 10:24 +0000, Paul Howarth a écrit : > On Fri, 2006-02-03 at 20:45 -0600, Rex Dieter wrote: > > Eric Tanguy wrote: > > > Le vendredi 03 février 2006 à 16:51 -0600, Rex Dieter a écrit : > > > > >>Eric Tanguy wrote: > > > > >>>>Something like this ought to do the trick: > > >>>>%if "%{?fedora}" > "4" > > >>>>CXXFLAGS="${RPM_OPT_FLAGS} -ffriend-injection" > > >>>>%endif > > >>>>%configure > > > > >>>It seems it's not taken into account for devel. How to know what > > >>>%{?fedora} returns for devel ? > > >> > > >>AFAIK, on devel, %fedora expands to 5 in buildsys-macros > > > > > Maybe in buildsys but i'm trying to build it on a fc4 box using mock : > > > mock -r fedora-5-i386-core foobar.spec > > > > Of course it's not. That macro only gets defined if using the FE > > buildsystem (and/or) building from FE's Makefiles, ie, 'make mockbuild'. > > I had assumed this was what you were referring to in your original post. > > He said he was using mock, and mock pulls in the required macro > definitions by default courtesy of the [groups] repo, which points to > http://fedoraproject.org/buildgroups/development/i386/ > > So a mock build should be the same as an FE buildsystem build in this > respect. The root.log from the mock build should show buildsys-macros > being installed. > > Paul. The problem is : cd /var/lib/mock/fedora-development-i386-core/root/etc/rpm ls nothing and i would be able to find macros.disttag containing : %fedora 5 %dist .fc5 So it seems mock build is not the same as an FE buildsystem build or i do something wrong ? Or it's because in FE buildsystem i do a make tag before requesting a build ? Eric -- fedora-extras-list mailing list fedora-extras-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/fedora-extras-list