[opensuse-buildservice] Macro arch dependant
Hi, is it possible to add a macro which is arch dependant? I would like to add a %ifarch inside macro list, but it does not seem to work. What is the right way to define a macro, only for one arch? Guillaume -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
On Saturday 2013-09-14 17:59, guillaume.gardet@free.fr wrote:
Hi,
is it possible to add a macro which is arch dependant?
I would like to add a %ifarch inside macro list, but it does not seem to work. What is the right way to define a macro, only for one arch?
%ifarch foo %define bar xyz %else %define bar pqr %endif -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
guillaume.gardet@free.fr writes:
is it possible to add a macro which is arch dependant?
I would like to add a %ifarch inside macro list, but it does not seem to work. What is the right way to define a macro, only for one arch?
Do you mean in the prjconf? Use something like this: %ifarch foo Macros: %foo 1 :Macros %endif Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different." -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
----- Andreas Schwab <schwab@linux-m68k.org> a écrit :
guillaume.gardet@free.fr writes:
is it possible to add a macro which is arch dependant?
I would like to add a %ifarch inside macro list, but it does not seem to work. What is the right way to define a macro, only for one arch?
Do you mean in the prjconf? Use something like this:
Yes, in prjconf
%ifarch foo Macros: %foo 1 :Macros %endif
That is what I done but I have other Macros for all arches with only 'Macros:' but it seems that it breaks other macros. :( Guillaume
Andreas.
-- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."
-- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
On Sat, Sep 14, 2013 at 10:32:30PM +0200, guillaume.gardet@free.fr wrote:
%ifarch foo Macros: %foo 1 :Macros %endif
That is what I done but I have other Macros for all arches with only 'Macros:' but it seems that it breaks other macros. :(
It shouldn't break other macros. How does it break them? (It did break other macros in the past, but that was fixed some months ago, so it should at least work on build.opensuse.org.) Cheers, Michael. -- Michael Schroeder mls@suse.de SUSE LINUX Products GmbH, GF Jeff Hawn, HRB 16746 AG Nuernberg main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);} -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
Le 16/09/2013 11:03, Michael Schroeder a écrit :
On Sat, Sep 14, 2013 at 10:32:30PM +0200, guillaume.gardet@free.fr wrote:
%ifarch foo Macros: %foo 1 :Macros %endif That is what I done but I have other Macros for all arches with only 'Macros:' but it seems that it breaks other macros. :( It shouldn't break other macros. How does it break them? (It did break other macros in the past, but that was fixed some months ago, so it should at least work on build.opensuse.org.)
After more debugging, it seems it does not break other macros. Because I get same messages (empty macro) when I remove it. Thanks for your help. Guillaume -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
participants (5)
-
Andreas Schwab
-
Guillaume Gardet
-
guillaume.gardet@free.fr
-
Jan Engelhardt
-
Michael Schroeder