# section.
chmod 755 ${RPM_BUILD_ROOT}/lib/modules/%{kversion}/updates/kernel/fs/lustre-ldiskfs/ldiskfs.ko
+# mark modules executable for find-debuginfo.sh
+find $RPM_BUILD_ROOT/lib/modules/%{kversion}/updates -name "*.ko" -type f | \
+ xargs --no-run-if-empty chmod u+x
+
%files
%defattr(644, root, root, 755)
/lib/modules/%{kversion}/updates/kernel/fs/lustre-ldiskfs
if test $ENABLEPORTALS -eq 0; then
AC_MSG_RESULT([no])
elif test ! \( -f ${PORTALS}/include/portals/p30.h \); then
- AC_MSG_RESULT([no])
+ AC_MSG_RESULT([no])
AC_MSG_ERROR([bad --with-portals path])
else
- AC_MSG_RESULT([$PORTALS])
- PTLLNDCPPFLAGS="-I${PORTALS}/include"
+ PORTALS=$(readlink --canonicalize $PORTALS)
+ AC_MSG_RESULT([$PORTALS])
+ PTLLNDCPPFLAGS="-I${PORTALS}/include"
fi
AC_SUBST(PTLLNDCPPFLAGS)
])
QSWLND="qswlnd"
AC_MSG_CHECKING([for multirail EKC])
if test -f $QSNET/include/elan/epcomms.h; then
+ QSNET=$(readlink --canonicalize $QSNET)
AC_MSG_RESULT([supported])
QSWCPPFLAGS="-I$QSNET/include -DMULTIRAIL_EKC=1"
else
*) AC_MSG_ERROR([internal error]);;
esac
else
+ MXPATH=$(readlink --canonicalize $MXPATH)
MXCPPFLAGS="-I$MXPATH/include"
EXTRA_KCFLAGS_save="$EXTRA_KCFLAGS"
EXTRA_KCFLAGS="$EXTRA_KCFLAGS $MXCPPFLAGS"
*) AC_MSG_ERROR([internal error]);;
esac
else
+ O2IBPATH=$(readlink --canonicalize $O2IBPATH)
O2IBCPPFLAGS="-I$O2IBPATH/include"
EXTRA_KCFLAGS_save="$EXTRA_KCFLAGS"
EXTRA_KCFLAGS="$EXTRA_KCFLAGS $O2IBCPPFLAGS"
find lib/modules/%{kversion}/updates -type f | awk "!/(ZZZZZZZZZZ$modules_excludes)/ {print \"%attr(-, root, root) /\"\$0}" >>$RPM_BUILD_DIR/lustre-%{version}/lustre-modules.files
popd >/dev/null
+# mark modules executable for find-debuginfo.sh
+find $RPM_BUILD_ROOT/lib/modules/%{kversion}/updates -name "*.ko" -type f | \
+ xargs --no-run-if-empty chmod u+x
+
%files -f lustre.files
%files modules -f lustre-modules.files