Re: Running a command in spec file?

2013-08-30 Thread Miroslav Suchý
On 08/30/2013 05:56 AM, Dave Johansen wrote: But that doesn't work You mean that it is not executed at all? Then you probably do not have defined macro scl. Which is probably because you do not have installed meta-package (devtoolset-1.1-build) in you buildroot. Note that if you are using

Re: Running a command in spec file?

2013-08-30 Thread Dave Johansen
On Fri, Aug 30, 2013 at 12:46 AM, Miroslav Suchý msu...@redhat.com wrote: On 08/30/2013 05:56 AM, Dave Johansen wrote: But that doesn't work You mean that it is not executed at all? Then you probably do not have defined macro scl. Which is probably because you do not have installed

Re: Running a command in spec file?

2013-08-29 Thread Stanislav Ochotnicky
Quoting Dave Johansen (2013-08-28 21:58:38) On Wed, Aug 28, 2013 at 9:13 AM, Remi Collet fed...@famillecollet.com wrote: Le 28/08/2013 18:09, Dave Johansen a écrit : I'm trying to make a spec file that uses the devtoolset in RHEL 5/6 ( rhn.redhat.com/errata/RHEA-2013-0175.html ) but I

Re: Running a command in spec file?

2013-08-29 Thread Vít Ondruch
Dne 29.8.2013 10:19, Stanislav Ochotnicky napsal(a): Quoting Dave Johansen (2013-08-28 21:58:38) On Wed, Aug 28, 2013 at 9:13 AM, Remi Collet fed...@famillecollet.com wrote: Le 28/08/2013 18:09, Dave Johansen a écrit : I'm trying to make a spec file that uses the devtoolset in RHEL 5/6 (

Re: Running a command in spec file?

2013-08-29 Thread Miroslav Suchý
On 08/29/2013 10:19 AM, Stanislav Ochotnicky wrote: %{?scl:scl enable %{scl} } # this is a shell command 1 command 2 ... %{?scl:} Just one command with this syntax. If you need more command, you have to use heredoc as Vít said in this thread. -- Miroslav Suchy, RHCE, RHCDS Red Hat, Software

Re: Running a command in spec file?

2013-08-29 Thread Dave Johansen
On Thu, Aug 29, 2013 at 2:17 AM, Miroslav Suchý msu...@redhat.com wrote: On 08/29/2013 10:19 AM, Stanislav Ochotnicky wrote: %{?scl:scl enable %{scl} } # this is a shell command 1 command 2 ... %{?scl:} Just one command with this syntax. If you need more command, you have to use

Re: Running a command in spec file?

2013-08-29 Thread Miroslav Suchý
On 08/29/2013 12:04 PM, Dave Johansen wrote: So does that mean that this is the correct statement to put in the .spec file? %{?scl:scl enable %{scl} } source /opt/rh/devtoolset-1.1/enable %{?scl:} What is the %{?scl} macro doing? And am I using it correctly in the above? This scriplet:

Re: Running a command in spec file?

2013-08-29 Thread Vít Ondruch
Dne 29.8.2013 11:17, Miroslav Suchý napsal(a): On 08/29/2013 10:19 AM, Stanislav Ochotnicky wrote: %{?scl:scl enable %{scl} } # this is a shell command 1 command 2 ... %{?scl:} Just one command with this syntax. If you need more command, you have to use heredoc as Vít said in this thread.

Re: Running a command in spec file?

2013-08-29 Thread Dave Johansen
On Thu, Aug 29, 2013 at 4:09 AM, Miroslav Suchý msu...@redhat.com wrote: On 08/29/2013 12:04 PM, Dave Johansen wrote: So does that mean that this is the correct statement to put in the .spec file? %{?scl:scl enable %{scl} } source /opt/rh/devtoolset-1.1/enable %{?scl:} What is the

Re: Running a command in spec file?

2013-08-28 Thread Remi Collet
Le 28/08/2013 18:09, Dave Johansen a écrit : I'm trying to make a spec file that uses the devtoolset in RHEL 5/6 ( rhn.redhat.com/errata/RHEA-2013-0175.html ) but I haven't been able to figure out how to enable devtoolset in the spec file. If I run 'scl enable devtoolset-1.1 bash' before doing

Re: Running a command in spec file?

2013-08-28 Thread Alec Leamas
On 2013-08-28 18:09, Dave Johansen wrote: I'm trying to make a spec file that uses the devtoolset in RHEL 5/6 ( rhn.redhat.com/errata/RHEA-2013-0175.html ) but I haven't been able to figure out how to enable devtoolset in the spec file. If I run 'scl enable devtoolset-1.1 bash' before doing

Re: Running a command in spec file?

2013-08-28 Thread Dave Johansen
On Wed, Aug 28, 2013 at 9:13 AM, Remi Collet fed...@famillecollet.com wrote: Le 28/08/2013 18:09, Dave Johansen a écrit : I'm trying to make a spec file that uses the devtoolset in RHEL 5/6 ( rhn.redhat.com/errata/RHEA-2013-0175.html ) but I haven't been able to figure out how to enable