Skip to contentSkip to conversation

Initial patch for OFED 1.5.x to work on RHEL 6

PATCH Justin Clift 1 participant 1 message Apr 28, 2010 InfiniBand

lore
Share & tools
lore
#0 lore raw

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 renamed from ofa_kernel.spec_orig +1 -0
@@ -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

Signature · 6 lines
Salasaga  -  Open Source eLearning IDE
              http://www.salasaga.org
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html