X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=build%2Flbuild-rhel5;h=473347f663964ecade683758f322b36d743e203d;hp=7bd8909fec86d91d896dd051bceb193d2c39f26e;hb=279bbc81e03dc74d273ec12b4d9e703ca94404c4;hpb=98bf9c9e3ecaa6736dcb066d0c76e20610fa9725 diff --git a/build/lbuild-rhel5 b/build/lbuild-rhel5 index 7bd8909..473347f 100644 --- a/build/lbuild-rhel5 +++ b/build/lbuild-rhel5 @@ -28,6 +28,7 @@ Patch99995: linux-%{kversion}-lustre.patch' \ -e '/_sourcedir\/kabitool -b \./a\ cp $RPM_BUILD_ROOT/kabi_whitelist $RPM_SOURCE_DIR/kabi_whitelist_%{_target_cpu}$Flavour' \ -e '/^%prep$/,/^# END OF PATCH APPLICATIONS$/s/kernel-%{kversion}/%{name}-%{kversion}/g' \ + -e 's/^\(%define signmodules \).*/\10/' \ SPECS/$SPEC_NAME 2>&1 || \ fatal 1 "Error while editing SPECS/$SPEC_NAME" @@ -91,8 +92,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 +112,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/" }