From 4ecae3cd5af60e389eba1e6eff2913b09f557203 Mon Sep 17 00:00:00 2001 From: brian Date: Thu, 6 Apr 2006 14:03:12 +0000 Subject: [PATCH] Revert my use of the configure_flags macro in the lustre.spec file and just pass the --disable-server argument to configure with the CONFIGURE_FLAGS variable. Prefer (by boolean switch) mjmac's use of kernel-devel for building the patchless client. --- build/lbuild | 48 +++++++++++++++++++++++++++++++----------------- 1 file changed, 31 insertions(+), 17 deletions(-) diff --git a/build/lbuild b/build/lbuild index 598cb68..c767327 100755 --- a/build/lbuild +++ b/build/lbuild @@ -570,8 +570,7 @@ build_lustre() ./configure "--with-linux=${LINUX}" ${CONFIGURE_FLAGS} $RPMBUILD $targets -bb build/lustre.spec \ - --define "_topdir $TOPDIR" \ - --define "configure_flags --with-linux=${LINUX}" || \ + --define "_topdir $TOPDIR" || \ fatal 1 "Error building rpms for $BUILD_ARCHS." popd >/dev/null @@ -713,22 +712,37 @@ if [ -z "$LINUX" ] ; then else # can't build a kernel if we have no series for it (i.e. patchless) # but we still need the headers - unpack_linux - LINUX=$(pwd)/linux - pushd $LINUX && { - # need a .config -- like a user would do - BOOTCONFIG="/boot/config-${lnxmaj}-${lnxrel}smp" - if [ -f $BOOTCONFIG ]; then - cp $BOOTCONFIG .config - else - fatal 1 "$BOOTCONFIG doesn't exist! Help!" + use_unpacked_source=false + if $use_unpacked_source; then + unpack_linux + LINUX=$(pwd)/linux + pushd $LINUX && { + # need a .config -- like a user would do + BOOTCONFIG="/boot/config-${lnxmaj}-${lnxrel}smp" + if [ -f $BOOTCONFIG ]; then + cp $BOOTCONFIG .config + else + fatal 1 "$BOOTCONFIG doesn't exist! Help!" + fi + # vendors like to taint the EXTRAVERSION in their kernel-source + # to differentiate a user-built kernel from their own + ed << EOF Makefile +/^EXTRAVERSION =/d +wq +EOF + make oldconfig + make include/asm + make include/linux/version.h + make SUBDIRS=scripts + } + popd + else + LINUX=/lib/modules/${lnxmaj}-${lnxrel}smp/build + if [ ! -e $LINUX ]; then + fatal 1 "$LINUX does not exist! Install a kernel-devel package!" fi - make oldconfig - make include/asm - make include/linux/version.h - make SUBDIRS=scripts - } - popd + fi + CONFIGURE_FLAGS="CONFIGURE_FLAGS --disable-server" build_lustre fi else -- 1.8.3.1