Skip to content

Instantly share code, notes, and snippets.

@jumanjiman
Created January 31, 2012 19:42
Show Gist options
  • Save jumanjiman/1712488 to your computer and use it in GitHub Desktop.
Save jumanjiman/1712488 to your computer and use it in GitHub Desktop.
Patch for openonload-201109-u1: hard-codes the RPM requirements for kernel-rt-2.6.33.9-rt31.65.el5rt
diff -ru openonload-201109-u1.orig/scripts/onload_misc/openonload.spec openonload-201109-u1/scripts/onload_misc/openonload.spec
--- openonload-201109-u1.orig/scripts/onload_misc/openonload.spec 2011-12-23 13:44:18.000000000 +0000
+++ openonload-201109-u1/scripts/onload_misc/openonload.spec 2012-01-31 18:07:16.359684000 +0000
@@ -119,7 +119,7 @@
BuildRoot : %{_builddir}/%{name}-root
AutoReqProv : no
%if %{redhat}
-BuildRequires : gawk gcc sed make bash kernel%{kvariantsuffix_dash} = %{kverrel}, kernel%{kvariantsuffix_dash}-devel = %{kverrel} glibc-common libpcap-devel
+BuildRequires : gawk gcc sed make bash kernel-x86_64 = 2.6.33.9-rt31.65.el5rt,kernel-rt-devel-x86_64 = 2.6.33.9-rt31.65.el5rt glibc-common libpcap-devel
%else
BuildRequires : gawk gcc sed make bash kernel%{kvariantsuffix_dash} = %{kverrel}, kernel-source = %{kverrel} glibc-devel glibc libpcap-devel
%ifarch x86_64
@@ -144,7 +144,7 @@
Summary : OpenOnload kernel modules
Group : System Environment/Kernel
%if %{redhat}
-Requires : openonload = %{version}-%{release}, kernel-%{target_cpu} = %{kverrel}%{kvariantsuffix}
+Requires : openonload = %{version}-%{release}, kernel-x86_64 = 2.6.33.9-rt31.65.el5rt
%else
Requires : openonload = %{version}-%{release}, kernel%{kvariantsuffix_dash} = %{kverrel}
%endif
Only in openonload-201109-u1/scripts/onload_misc: openonload.spec~
commit a193d52afe763759595705dd835acd8ce7e398b0
Author: Paul Morgan <jumanjiman@gmail.com>
Date: Tue Jan 31 15:03:08 2012 -0500
update the packageversion
diff --git a/scripts/onload_misc/openonload.spec b/scripts/onload_misc/openonload.spec
index ced6bb9..13bfa30 100644
--- a/scripts/onload_misc/openonload.spec
+++ b/scripts/onload_misc/openonload.spec
@@ -34,7 +34,7 @@
# support older distros) to update this spec to use kernel modules packaging
# templates.
-%define pkgversion 201109-u1
+%define pkgversion 201109-u1-MRGFIX
%{!?kernel: %{expand: %%define kernel %%(uname -r)}}
%{!?target_cpu: %{expand: %%define target_cpu %{_host_cpu}}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment