[Ocfs2-test-devel] [PATCH 05/11] ocfs2-test: Changed configure.in to built ocfs2-test RPM.

tristan.ye tristan.ye at oracle.com
Fri Oct 31 18:23:21 PDT 2008


Marcos E. Matsunaga 写道:
> Tristan,
>
> I checked the openmpi-devel and they install mpicc in an unusual place 
> (/usr/lib/openmpi/1.2.5-gcc/bin/mpicc) and which only searches the 
> directories in the variable PATH. Since the directory where mpicc is 
> installed is not in the PATH, which will not work.
Yes,we need manually add the 'usr/lib/openmpi/1.2.5-gcc/bin/mpicc' into 
PATH in that case to make it visible for 'which' cmd.
>
> Another thing is that we should only support OpenMpi in the RPM 
> package. As for RHEL4, we can build the openmpi RPMs.
>
Given the fact that we only support rpm package,your method should be 
the  better choice:)


Regards,

Tristan.
> Regards,
>
> Marcos Eduardo Matsunaga
>
> Oracle USA
> Linux Engineering
>
> “The statements and opinions expressed here are my own and do not
> necessarily represent those of Oracle Corporation.”
>   
>
>
> tristan.ye wrote:
>> On Thu, 2008-10-30 at 12:32 -0700, Marcos Matsunaga wrote:
>>   
>>> Signed-off-by: Marcos Matsunaga <Marcos.Matsunaga at oracle.com>
>>> ---
>>>  configure.in |    7 +++++--
>>>  1 files changed, 5 insertions(+), 2 deletions(-)
>>>
>>> diff --git a/configure.in b/configure.in
>>> index 72a8e22..4249947 100644
>>> --- a/configure.in
>>> +++ b/configure.in
>>> @@ -6,11 +6,13 @@ PACKAGE=ocfs2-test
>>>  
>>>  AC_SUBST(PACKAGE)
>>>  
>>> +MPICC=`rpm -qil openmpi-devel|grep mpicc|grep bin`
>>>     
>> did you wanna get a mpicc bin here? we may use 
>> MPICC=`which mpicc` in case the openmpi is installed by tarball,
>> if openmpi was installed by tarball,the mpicc should be
>> /usr/local/bin/mpicc
>> if openmpi was installed by rpm,its binary patch should be found out by
>> such 'rpm -qil openmpi|grep bin|...',then add to PATH env manually.
>>
>> so by this way,we always get the mpicc path regardless of its
>> installation methods:)
>>
>>   
>>> +INSTALLDIR=/usr/local
>>>  # Adjust these for the software version.
>>> -MAJOR_VERSION=0
>>> +MAJOR_VERSION=1
>>>  MINOR_VERSION=0
>>>  MICRO_VERSION=1
>>> -EXTRA_VERSION=
>>> +EXTRA_VERSION=0
>>>  
>>>  # Adjust this only to bump the RPM packaging version
>>>  RPM_VERSION=1
>>> @@ -119,6 +121,7 @@ AM_PATH_PYTHON(2.3, , AC_MSG_ERROR([could not find Python 2.3 or higher.]))
>>>  
>>>  AC_CONFIG_FILES([
>>>  Config.make
>>> +vendor/common/ocfs2-test.spec-generic
>>>  ])
>>>  
>>>  AC_OUTPUT
>>>     
>>
>>   




More information about the Ocfs2-test-devel mailing list