how to set/unset env variables in spec file

Jonathan Wakely jwakely at redhat.com
Tue Sep 8 13:30:08 UTC 2015


On 08/09/15 14:11 +0200, arnaud gaboury wrote:
>On Tue, Sep 8, 2015 at 1:15 PM, Jan Chaloupka <jchaloup at redhat.com> 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 and unset should work.
>> Without the concrete example it is hard to guess what is going wrong.
>
>These are the two scripts I have to run:

The question was which commands are you running in the spec file, not
what is the full content of the scripts, which should not be posted to
public lists given these copyright terms:

>---------------------------------------------
>% cat /opt/intel/compilers_and_libraries_2016.0.109/linux/mkl/bin/mklvars.sh
>
>#!/bin/sh
>#
># Copyright (C) 2003-2015 Intel Corporation. All rights reserved.
>#
># The information and source code contained herein is the exclusive property
># of Intel Corporation and may not be disclosed, examined, or reproduced in
># whole or in part without explicit written authorization from the Company.
>#

Please don't post things to this list that have terms prohibiting
redistribution or reproduction.



More information about the devel mailing list