From ba31efdecb860b6b680f743ba2666cefb2fc6ee5 Mon Sep 17 00:00:00 2001 From: "Brian J. Murrell" Date: Mon, 14 Mar 2011 20:33:33 -0400 Subject: [PATCH] LU-127 RHEL packages should require the kernel 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 Change-Id: I3f5d4501abd9751057cbc260b4ec3fb31ed18029 Reviewed-on: http://review.whamcloud.com/328 Tested-by: Hudson Reviewed-by: Michael MacDonald Reviewed-by: Yang Sheng Reviewed-by: Oleg Drokin --- lustre.spec.in | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lustre.spec.in b/lustre.spec.in index c644ff3..6e7a283 100644 --- a/lustre.spec.in +++ b/lustre.spec.in @@ -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 -- 1.8.3.1