Justin Clift wrote:
> Hi all,
> 
> Taking a look at the RHEL6 beta at the moment.  It was failing 
> compilation of OFED 1.5.1 release on the main ofa kernel rpm, giving the 
> same error reported by Jeremy Enos back in Aug 2009 on Fedora 10.
> 
> Thankfully the problem turned out to be a bug in the scripting in the 
> rpm's spec file, easily fixed, which let's this now compile fine:
> 
> **********************************************************
> 
> --- ofa_kernel.spec_orig    2010-04-28 13:01:43.505217495 +1000
> +++ ofa_kernel.spec    2010-04-28 13:52:44.386217393 +1000
> @@ -188,6 +188,7 @@
>  if [ -n "$modsyms" ]; then
>      for modsym in $modsyms
>      do
> +        mkdir -p $RPM_BUILD_ROOT/%{_prefix}/src/%{_name}
>              cat $modsym >> 
> $RPM_BUILD_ROOT/%{_prefix}/src/%{_name}/Module.symvers
>      done
>  else
> @@ -800,9 +801,7 @@
>  %files -n kernel-ib-devel
>  %defattr(-,root,root,-)
>  %dir %{_prefix}/src
> -%{_prefix}/src/%{_name}-%{_version}
>  %{_prefix}/src/%{_name}
> -%{_prefix}/src/openib
>  %endif
> 
>  # END Files
> 
> **********************************************************
> 
> The "mkdir -p" is the important part that needed adding, and should be 
> safe to add on all the platforms.
> 
> Near the end however, it needed the removal of two directories not built 
> on RHEL 6.  Not sure if they do get built on other platforms though. 
> Vladimir Sokolovsky would probably know. :)
> 
> Hope that helps.
> 
> Regards and best wishes,
> 
> Justin Clift
> 

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.

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

Is it possible that you have "install" application on your server which is not 
coming with coreutils RPM?
AFAIK, "install -d" should be equivalent to "mkdir -p".

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

Regards,
Vladimir
_______________________________________________
ewg mailing list
[email protected]
http://lists.openfabrics.org/cgi-bin/mailman/listinfo/ewg

Reply via email to