Whamcloud - gitweb
LU-1221 ldiskfs: Replace sysname with nodename in MMP
[fs/lustre-release.git] / build / lbuild-rhel5
index 7bd8909..6791f2b 100644 (file)
@@ -9,7 +9,7 @@ BUILD_GEN+=".0"
 
 source ${0%/*}/lbuild-rhel
 
-SPEC_NAME="kernel-2.6.spec"
+SPEC_NAME="kernel.spec"
 
 patch_spec() {
     local buildid="$1"
@@ -18,7 +18,7 @@ patch_spec() {
     patch_spec_common "$buildid"
     sed -i -e '/^# empty final patch file to facilitate testing of kernel patches/i\
 # adds Lustre patches\
-Patch99995: linux-%{kversion}-lustre.patch' \
+Patch99995: linux-%{version}-lustre.patch' \
            -e '/^# conditionally applied test patch for debugging convenience/i\
 # lustre patch\
 %patch99995 -p1\
@@ -91,8 +91,10 @@ unpack_linux_devel_rpm-rhel5() {
 
     unpack_linux_devel_rpm-rhel "$callers_rpm"
 
-    if [ ! -f usr/src/kernels/${lnxmaj}${lnxmin}-${lnxrel}-$TARGET_ARCH/symsets-${lnxmaj}${lnxmin}-${lnxrel}.tar.gz ]; then
-        fatal 1 "cannot build modules: the Kernel's symsets is missing."
+    if $USE_KABI; then
+        if [ ! -f usr/src/kernels/${lnxmaj}${lnxmin}-${lnxrel}-$TARGET_ARCH/symsets-${lnxmaj}${lnxmin}-${lnxrel}.tar.gz ]; then
+            fatal 1 "cannot build modules: the Kernel's symsets is missing."
+        fi
     fi
 
     return 0
@@ -109,6 +111,6 @@ find_linux_rpm-rhel5() {
 
 kernel_srpm_location() {
 
-    echo "http://mirror.centos.org/centos-5/5/updates/SRPMS/"
+    echo "http://ftp.redhat.com/pub/redhat/linux/enterprise/5Server/en/os/SRPMS/"
 
 }