Re: how to set/unset env variables in spec file

2015-09-08 Thread arnaud gaboury
On Tue, Sep 8, 2015 at 1:15 PM, Jan Chaloupka wrote: > Hi Arnaud, > > I am assuming all scripts you are referring to are sourced and run in %build > section. Can you be more specific which commands are you running? %build > section is interpreted as a bash script so source

Re: how to set/unset env variables in spec file

2015-09-08 Thread Jan Chaloupka
Hi Arnaud, I am assuming all scripts you are referring to are sourced and run in %build section. Can you be more specific which commands are you running? %build section is interpreted as a bash script so source and unset should work. Without the concrete example it is hard to guess what is

Re: how to set/unset env variables in spec file

2015-09-08 Thread Tom Hughes
On 08/09/15 12:15, Jan Chaloupka wrote: I am assuming all scripts you are referring to are sourced and run in %build section. Can you be more specific which commands are you running? %build section is interpreted as a bash script so source and unset should work. Without the concrete example it

how to set/unset env variables in spec file

2015-09-08 Thread arnaud gaboury
I am building a rpm package. For make to success and have the correct env variables, I need to source a few scripts and unset a few variables. rpmbuild does not understand the source and unset commands. How shall I proceed to get the desired variables? Thank you --

Re: how to set/unset env variables in spec file

2015-09-08 Thread Jonathan Wakely
On 08/09/15 14:11 +0200, arnaud gaboury wrote: On Tue, Sep 8, 2015 at 1:15 PM, Jan Chaloupka wrote: Hi Arnaud, I am assuming all scripts you are referring to are sourced and run in %build section. Can you be more specific which commands are you running? %build section is

Re: how to set/unset env variables in spec file

2015-09-08 Thread arnaud gaboury
On Tue, Sep 8, 2015 at 2:11 PM, arnaud gaboury wrote: > On Tue, Sep 8, 2015 at 1:15 PM, Jan Chaloupka wrote: >> Hi Arnaud, >> >> I am assuming all scripts you are referring to are sourced and run in %build >> section. Can you be more specific which

Re: how to set/unset env variables in spec file

2015-09-08 Thread Jonathan Underwood
I see what you're trying to do is build a package using the intel compiler suite rather than the usual gcc toolchain. A few years ago I needed to do that for packaging molpro locally, so I am attaching that spec file which may give you some hints on how to go about it. Bare in mind that I haven't

Re: how to set/unset env variables in spec file

2015-09-08 Thread arnaud gaboury
On Tue, Sep 8, 2015 at 5:04 PM, arnaud gaboury wrote: > On Tue, Sep 8, 2015 at 4:47 PM, Jonathan Underwood > wrote: >> I see what you're trying to do is build a package using the intel >> compiler suite rather than the usual gcc toolchain.

Re: how to set/unset env variables in spec file

2015-09-08 Thread Jonathan Wakely
On 08/09/15 17:29 +0200, arnaud gaboury wrote: I can see in your spec file you use %global. I couldn't find any entry in the Fedora documentation about rpmbuild. My issue is a variable environment one. If I source manually the two scripts, build goes well. When sourcing from the spec file, it

Re: how to set/unset env variables in spec file

2015-09-08 Thread arnaud gaboury
On Tue, Sep 8, 2015 at 4:47 PM, Jonathan Underwood wrote: > I see what you're trying to do is build a package using the intel > compiler suite rather than the usual gcc toolchain. Exactly. And this is not an easy affair, especially as it is my first rpmbuild. I can

Re: how to set/unset env variables in spec file

2015-09-08 Thread arnaud gaboury
On Tue, Sep 8, 2015 at 3:30 PM, Jonathan Wakely wrote: > On 08/09/15 14:11 +0200, arnaud gaboury wrote: >> >> On Tue, Sep 8, 2015 at 1:15 PM, Jan Chaloupka wrote: >>> >>> Hi Arnaud, >>> >>> I am assuming all scripts you are referring to are sourced and