X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=build%2Flbuild-sles;h=e1ede26df19eef3ed7969e417c62e3bad0928e65;hp=5b9706455de8081009f184c2baf02b77d08d7056;hb=eea0b5248b5c08acb1a20f47f40bc5672db62dd4;hpb=90937a348cf0f98860b5cedcb25fded9f83d357b diff --git a/build/lbuild-sles b/build/lbuild-sles index 5b97064..e1ede26 100644 --- a/build/lbuild-sles +++ b/build/lbuild-sles @@ -5,9 +5,10 @@ DEVEL_KERNEL_TYPE="source" prepare_and_build_srpm() { pushd $TOPDIR >/dev/null - # seems there is a bug (on Ubuntu at least) where all of the .specs - # are not put into SPECS - mv SOURCES/*.spec SPECS/ + # all of the specs but one are put into SOURCES, so let's just move + # the one lone one in SPECS into SOURCES and just reference them from + # there + mv SPECS/*.spec SOURCES/ # generate our buildid local buildid="lustre${EXTRA_VERSION##*_lustre}" @@ -44,7 +45,7 @@ prepare_and_build_srpm() { # now build it if ! $RPMBUILD $rpmbuildopt $targets \ --define "_topdir $TOPDIR" \ - $TOPDIR/SPECS/kernel-$RPMSMPTYPE.spec >&2; then + $TOPDIR/SOURCES/kernel-$RPMSMPTYPE.spec >&2; then fatal 1 "Failed to build kernel RPM" fi #fi @@ -52,7 +53,7 @@ prepare_and_build_srpm() { # for SLES, we also need to build the kernel-source rpm if ! $RPMBUILD $rpmbuildopt $targets \ --define "_topdir $TOPDIR" \ - $TOPDIR/SPECS/kernel-source.spec >&2; then + $TOPDIR/SOURCES/kernel-source.spec >&2; then fatal 1 "Failed to build kernel source RPM" fi @@ -75,5 +76,9 @@ rpm_BUILD_kernel_dirname() { local lnxmin="$3" local arch="$4" - echo kernel-lustre-${rpmsmptype}-${lnxmaj}${lnxmin}/linux-${lnxmaj} + local lustre="" + if $KERNEL_LUSTRE_NAMING; then + $lustre="-lustre" + fi + echo kernel${lustre}-${rpmsmptype}-${lnxmaj}${lnxmin}/linux-${lnxmaj} }