# move RPMs into place where they are expected to be
for arch in $BUILD_ARCHS; do
- mv -f lustre-*.${arch}.rpm $TOPDIR/RPMS/${arch}/
+ mv -f *lustre*.${arch}.rpm $TOPDIR/RPMS/${arch}/
done
mv -f lustre-*.src.rpm $TOPDIR/SRPMS/
# The spl/zfs spec files expect RPM_BUILD_ROOT to point to the root of the
# destination for the rpms
export RPM_BUILD_ROOT=$TOPDIR
- SPLZFSVER=${SPLZFSVER:-0.6.4.2}
+ SPLZFSVER=${SPLZFSVER:-0.6.5.7}
SPLZFSTAG=${SPLZFSTAG:-}
# The files expect a kver to be set to the kernel version .
local rpmpkg
- [ "$pkg" == "zfs" ] && spldir="$(ls -d $TOPDIR/usr/src/spl-*/|tail -1)"
+ [ "$pkg" == "zfs" ] && spldir="$(ls -d $TOPDIR/usr/src/spl-*|tail -1)"
# need to fetch the repo in order to build it.
# default to github but allow override
echo "Building RPMs from $pkg/$specdir/$spec"
if ! rpmbuild $rpmb $pkg/$specdir/$spec \
--nodeps -v \
+ --define "_use_internal_dependency_generator 0" \
--define "require_kdir ${LINUX}" \
${LINUXOBJ:+--define "require_kobj ${LINUXOBJ}"} \
${spldir:+--define "require_spldir ${spldir}"} \
fi
popd
- CONFIGURE_FLAGS="--with-$pkg=$(ls -d $TOPDIR/usr/src/$pkg-*/|tail -1) ${CONFIGURE_FLAGS}"
+ CONFIGURE_FLAGS="--with-$pkg=$(ls -d $TOPDIR/usr/src/$pkg-*|tail -1) ${CONFIGURE_FLAGS}"
CONFIGURE_FLAGS="--with-$pkg-obj=$(ls -d $TOPDIR/usr/src/$pkg-*/$kver*|tail -1) ${CONFIGURE_FLAGS}"
done
set -x
.
g/\/.*\/\(symset-table\)/s//$tmp\/\1/g
+g/\(\/usr\/src\/kernels\/\)/s//$tmp\/reused\1/g
wq
EOF
ed symset-table <<EOF