On 04/29/2010 12:39 AM, Vladimir Sokolovsky wrote:
<snip>
> Hi Justin,
> $RPM_BUILD_ROOT/%{_prefix}/src/%{_name} directory should be created by:
> install -d $RPM_BUILD_ROOT/%{_prefix}/src/%{_name}
> See line 160 of ofa_kernel.spec.

Yep, that does happen, however the "%install" line from the spec file 
becomes this:

****************************************************************************
Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.dcgerJ
+ umask 022
+ cd /var/tmp//OFED_topdir/BUILD
+ '[' /var/tmp/OFED_topdir/BUILDROOT/ofa_kernel-1.5.1-OFED.1.5.1..x86_64 
'!=' / ']'
+ rm -rf /var/tmp/OFED_topdir/BUILDROOT/ofa_kernel-1.5.1-OFED.1.5.1..x86_64
++ dirname 
/var/tmp/OFED_topdir/BUILDROOT/ofa_kernel-1.5.1-OFED.1.5.1..x86_64
+ mkdir -p /var/tmp/OFED_topdir/BUILDROOT
+ mkdir /var/tmp/OFED_topdir/BUILDROOT/ofa_kernel-1.5.1-OFED.1.5.1..x86_64
+ cd ofa_kernel-1.5.1
+ LANG=C
+ export LANG
+ unset DISPLAY
****************************************************************************

The rm -rf there is deleting it.  The above is from the:

*************************

###
### install
###
%install

*************************

After that runs, the directory is no longer present, causing the problem.

The approach I'm using for testing this is just the addition of a 
conditional if statement between each line in question:

   echo "001"; if [ ! -d "$RPM_BUILD_ROOT/%{_prefix}/src/%{_name}" ]; 
then echo "DIR MISSING"; else echo "DIR PRESENT"; fi

Incrementing the 001 to 002, 003, etc with each line.  Not elegant, but 
I'm finding it practical for log analysis like this. :)


> I did not tried to install OFED on RHEL6 beta yet, but I'll try this soon.
<snip>

This and the open-iscsi-generic error, mentioned on the other (wrong) 
mailing list were the only obvious problems.  Haven't done any real 
testing yet as I need to bring RHEL6 up on the other cluster nodes today 
first.


> Note: Please send OFED related issues to [email protected] instead of
> [email protected].

Thanks for re-directing this to the correct place. :)

Regards and best wishes,

Justin Clift


> Regards,
> Vladimir


-- 
Salasaga  -  Open Source eLearning IDE
               http://www.salasaga.org
_______________________________________________
ewg mailing list
[email protected]
http://lists.openfabrics.org/cgi-bin/mailman/listinfo/ewg

Reply via email to