}
-build_iokit() {
- local rpmbuildopt="$1"
-
- pushd lustre-iokit > /dev/null || return 255
-
- if ! ./configure; then
- echo "failed to configure in lustre-iokit"
- popd >/dev/null # pushd lustre-iokit
- return 255
- fi
-
- if ! make dist; then
- echo "failed to make dist in lustre-iokit"
- popd >/dev/null # pushd lustre-iokit
- return 255
- fi
-
- if ! $RPMBUILD $rpmbuildopt lustre-iokit*.tar.gz \
- --define "_tmppath /var/tmp" \
- --define "_topdir $TOPDIR" 2>&1; then
- popd >/dev/null # pushd lustre-iokit
- return 255
- fi
-
- if $DO_SRC && ! $RPMBUILD -ts lustre-iokit*.tar.gz \
- --define "_tmppath /var/tmp" \
- --define "_topdir $TOPDIR" 2>&1; then
- popd >/dev/null # pushd lustre-iokit
- return 255
- fi
- popd >/dev/null # pushd lustre-iokit
-}
-
build_lustre() {
local linux="$1"
local linuxobj="$2"
fi
fi
- if $IOKITRPM; then
- if ! build_iokit $rpmbuildopt; then
- echo "failed to build lustre-iokit"
- popd >/dev/null # pushd lustre
- return 255
- fi
- fi
-
# convert the $PATCHLESS boolean to an empty/not-empty boolean
# as silly as this seems, it makes the syntax of the rpmbuild command
# simpler and not need an eval to deal with the quotes in the quotes
lustre_tests="no"
fi
+ local lustre_iokit=""
+ if ! $IOKITRPM; then
+ lustre_iokit="no"
+ fi
+
local osd_zfs=""
if $OSDZFSRPM; then
osd_zfs="yes"
$RPMBUILD $targets $rpmbuildopt "$LUSTRE" \
${is_patchless:+--without servers} \
${lustre_tests:+--without lustre_tests} \
+ ${lustre_iokit:+--without lustre_iokit} \
${osd_zfs:+--with zfs} \
${osd_ldiskfs:+--with ldiskfs} \
${FIND_REQUIRES:+--define "__find_requires $FIND_REQUIRES"} \
if ! $RPMBUILD -ts "$LUSTRE" \
${is_patchless:+--without servers} \
${lustre_tests:+--without lustre_tests} \
+ ${lustre_iokit:+--without lustre_iokit} \
${FIND_REQUIRES:+--define "__find_requires $FIND_REQUIRES"} \
--define "configure_args $confoptions ${CONFIGURE_FLAGS}" \
--define "kdir $linux" \