--- mstflint-4.38.0-1/configure.ac +++ mstflint-4.38.0-1/configure.ac @@ -76,13 +76,13 @@ #endif ]])], [OPENSSL_VERSION_VALID=yes], [OPENSSL_VERSION_VALID=no]) OS=$(uname -s) -KERNEL_VER=`uname -r | egrep -E -o '[[0-9]]+\.[[0-9]]+' | head -1` -OFED_VER=`ofed_info -s | egrep -E -o '[[0-9]]+\.[[0-9]]+' | head -1` +KERNEL_VER=`uname -r | grep -E -o '[0-9]+\.[0-9]+' | head -1` +OFED_VER=`ofed_info -s | grep -E -o '[0-9]+\.[0-9]+' | head -1` MIN_OFED_VER="5.6" MIN_RDMA_CORE_VER="2607" MIN_UPSTREAM_RDMA_CORE_VER="60" UPSTREAM_RDMA_CORE_VER_LIMIT="1000" -RDMA_CORE_VER=`{ rpm -q rdma-core --queryformat '%{VERSION}\n' 2>/dev/null; dpkg-query -W -f='${Version}\n' rdma-core 2>/dev/null; apk info -e -v rdma-core 2>/dev/null | sed -e 's/^rdma-core-//'; } | egrep -E -o '^[[0-9]]+' | head -1` +RDMA_CORE_VER=`{ rpm -q rdma-core --queryformat '%{VERSION}\n' 2>/dev/null; dpkg-query -W -f='${Version}\n' rdma-core 2>/dev/null; apk info -e -v rdma-core 2>/dev/null | sed -e 's/^rdma-core-//'; } | grep -E -o '^[0-9]+' | head -1` MTCR_CONF_DIR="" LDL="" LDFLAGS="$LDFLAGS -lstdc++" @@ -95,7 +95,7 @@ OFED_VERSION_CHK=0 KERNEL_BUILD_CHK=0 -if test -n "$OFED_VER" && test $(echo $OFED_VER $MIN_OFED_VER | tr " " "\n" | sort -V | tail -n 1) == "$OFED_VER" ; then +if test -n "$OFED_VER" && test $(echo $OFED_VER $MIN_OFED_VER | tr " " "\n" | sort -V | tail -n 1) = "$OFED_VER" ; then OFED_VERSION_CHK=1 fi if test -n "$RDMA_CORE_VER" ; then @@ -111,9 +111,10 @@ AM_CONDITIONAL(OFED_BUILD,[test ${OFED_VERSION_CHK} = 1]) AC_SUBST(OFED_BUILD) -if test ${KERNEL_VER} \> "x5.13" ; then +KERN_VER_ALIGNED=`echo ${KERNEL_VER} | tr '.' ' '` +AS_IF([test test `printf '%03d' ${KERN_VER_ALIGNED}` -gt '005013000'], [ KERNEL_BUILD_CHK=1 -fi +]) AM_CONDITIONAL(KERNEL_BUILD,[test ${KERNEL_BUILD_CHK} = 1]) AC_SUBST(KERNEL_BUILD) @@ -1036,7 +1037,7 @@ AC_SUBST(TOOLS_BUILD_TIME) AC_ARG_VAR(MSTFLINT_VERSION_STR, The MSTFLINT version) -if test x"$MSTFLINT_VERSION_STR" == x; then +if test x"$MSTFLINT_VERSION_STR" = x; then MSTFLINT_VERSION_STR="$PACKAGE_STRING" fi --- mstflint-4.38.0-1/mtcr_ul/Makefile.am +++ mstflint-4.38.0-1/mtcr_ul/Makefile.am @@ -33,7 +33,8 @@ AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/include/mtcr_ul -I$(top_srcdir)/common -I$(top_srcdir)/dev_mgt \ -I$(top_srcdir)/mft_core/mft_core_utils -pkglib_LTLIBRARIES = libmtcr_ul.la +noinst_LIBRARIES = libmtcr_ul.a +noinst_LTLIBRARIES = libmtcr_ul.la libmtcr_ul_la_SOURCES = mtcr_ul.c mtcr_ib.h mtcr_int_defs.h\ mtcr_ib_res_mgt.h mtcr_ib_res_mgt.c\ @@ -85,10 +86,7 @@ libmtcr_ul_la_LIBADD = $(libmtcr_ul_la_DEPENDENCIES) +libmtcr_ul_a_SOURCES = $(libmtcr_ul_la_SOURCES) libraryincludedir=$(includedir)/mstflint libraryinclude_HEADERS = $(top_srcdir)/include/mtcr_ul/mtcr.h $(top_srcdir)/include/mtcr_ul/mtcr_com_defs.h $(top_srcdir)/include/mtcr_ul/mtcr_mf.h - -install-exec-hook: - rm -f $(DESTDIR)$(pkglibdir)/libmtcr_ul.so* $(DESTDIR)$(pkglibdir)/libmtcr_ul.la - ln -snf mstflint/libmtcr_ul.a $(DESTDIR)$(libdir)/libmtcr_ul.a