Whamcloud - gitweb
LU-127 RHEL packages should require the kernel
authorBrian J. Murrell <brian@whamcloud.com>
Tue, 15 Mar 2011 00:33:33 +0000 (20:33 -0400)
committerOleg Drokin <green@whamcloud.com>
Mon, 18 Apr 2011 18:16:46 +0000 (11:16 -0700)
Since weak-modules is pretty much a non-starter on RHEL, we should
restore the Requires: kernel = $version dependency relationship between
the lustre modules and the kernel they were built for.

Signed-off-by: Brian J. Murrell <brian@whamcloud.com>
Change-Id: I3f5d4501abd9751057cbc260b4ec3fb31ed18029
Reviewed-on: http://review.whamcloud.com/328
Tested-by: Hudson
Reviewed-by: Michael MacDonald <mjmac@whamcloud.com>
Reviewed-by: Yang Sheng <ys@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre.spec.in

index c644ff3..6e7a283 100644 (file)
@@ -67,10 +67,16 @@ Userspace tools and files for the Lustre file system.
 
 %package modules
 Summary: Kernel Lustre modules for Linux %{kversion}
-# for RHEL5 and SLES11, we need nothing here
+# for SLES11, we need nothing here
 # for SLES10, we need (where %{flavor} is, i.e. smp):
 %if %sles10
 Requires: kernel-%{flavor}
+%else
+%if %{_vendor}=="redhat" || %{_vendor}=="fedora"
+# for RHEL we need to require the specific kernel still since weak-modules support on RH
+# is, well, weak, to be punny about it
+Requires: kernel = %{krequires}
+%endif
 %endif
 %if ! %{is_client}
 Requires: lustre-backend-fs