X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=build%2Flbuild-rhel5;h=11d9545a8b6442eefdf781be157e9dee5ec85647;hp=2bb418b3424caa6d31052ebf6d1006978dac440e;hb=e14d4dd61348297f1627c65073a2d908e54977a3;hpb=4699065ae24652439b77e28074d5ab4f7d866a7f diff --git a/build/lbuild-rhel5 b/build/lbuild-rhel5 index 2bb418b..11d9545 100644 --- a/build/lbuild-rhel5 +++ b/build/lbuild-rhel5 @@ -7,6 +7,7 @@ BUILD_GEN=3 # bz19975 enable the building of src.rpms by default DEVEL_KERNEL_TYPE="devel" +RPM_HELPERS_DIR="/usr/lib/rpm/redhat" prepare_and_build_srpm() { @@ -219,3 +220,20 @@ find_linux_devel_paths() { return 0 } + +unpack_linux_devel_rpm-rhel5() { + local callers_rpm="$1" + + # now just sanity check that everything needed to build properly versioned + # modules is in place + if [ ! -f usr/src/kernels/${lnxmaj}${lnxmin}-${lnxrel}-$TARGET_ARCH/Module.symvers ]; then + fatal 1 "cannot build kernel modules: the Kernel's Module.symvers is missing." + fi + + 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 + + return 0 + +}