diff options
Diffstat (limited to 'libraries/libfabric')
-rw-r--r-- | libraries/libfabric/changelog | 24 | ||||
-rw-r--r-- | libraries/libfabric/libfabric.SlackBuild | 40 | ||||
-rw-r--r-- | libraries/libfabric/libfabric.info | 12 |
3 files changed, 43 insertions, 33 deletions
diff --git a/libraries/libfabric/changelog b/libraries/libfabric/changelog new file mode 100644 index 0000000000..936fd485a4 --- /dev/null +++ b/libraries/libfabric/changelog @@ -0,0 +1,24 @@ +Changelog for libfabric SlackBuild Script +-------------------------------------------------------------------- + +03/09/2022: + +Added to slackbuilds.org + +18/02/2023: + +libfabric slackbuild script fixed by B.Watson + +16/05/2023: + +Updated to version 1.18.0 +From this build onwards it will only build +on x86_64 platform only. + +19/02/2024: + +Updated to version 1.20.1 + +23/04/2024: + +Updated to version 1.21.0 diff --git a/libraries/libfabric/libfabric.SlackBuild b/libraries/libfabric/libfabric.SlackBuild index d69830e6bf..6043fa3371 100644 --- a/libraries/libfabric/libfabric.SlackBuild +++ b/libraries/libfabric/libfabric.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for libfabric -# Copyright 2022 Vijay Marcel +# Copyright 2022-2024 Vijay Marcel # All rights reserved. # @@ -26,44 +26,31 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=libfabric -VERSION=${VERSION:-1.15.1} +VERSION=${VERSION:-1.21.0} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} +sys_arch=${sys_arch:-$(uname -m)} -if [ -z "$ARCH" ]; then - case "$( uname -m )" in - i?86) export ARCH=i586 ;; - arm*) export ARCH=arm ;; - *) export ARCH=$( uname -m ) ;; - esac -fi +case "$sys_arch" in + x86_64) export ARCH=x86_64 ;; + *) echo "This program will not build on $sys_arch platform" && exit 1 ;; +esac -# If the variable PRINT_PACKAGE_NAME is set, then this script will report what -# the name of the created package would be, and then exit. This information -# could be useful to other scripts. if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" exit 0 fi -CWD=$(pwd) TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -if [ "$ARCH" = "i586" ]; then - SLKCFLAGS="-O2 -march=i586 -mtune=i686" - LIBDIRSUFFIX="" -elif [ "$ARCH" = "i686" ]; then - SLKCFLAGS="-O2 -march=i686 -mtune=i686" - LIBDIRSUFFIX="" -elif [ "$ARCH" = "x86_64" ]; then - SLKCFLAGS="-O2 -fPIC" +if [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-march=x86-64 -mtune=generic -pipe -O2 -fPIC" LIBDIRSUFFIX="64" else - SLKCFLAGS="-O2" - LIBDIRSUFFIX="" + echo "This program will not build on $sys_arch platform" && exit 1 fi set -e @@ -84,10 +71,9 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; +./autogen.sh CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ - -./autogen.sh ./configure \ --prefix=/usr \ --libdir=/usr/lib${LIBDIRSUFFIX} \ @@ -95,7 +81,7 @@ CXXFLAGS="$SLKCFLAGS" \ --mandir=/usr/man \ --enable-shared \ --with-valgrind \ - --with-gnu-ld \ + --disable-static \ --docdir=/usr/doc/$PRGNAM-$VERSION \ --build=$ARCH-slackware-linux @@ -106,7 +92,7 @@ make install DESTDIR=$PKG rm -f $PKG/{,usr/}lib${LIBDIRSUFFIX}/*.la find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" \ - | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true + | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded --remove-section=.comment --remove-section=.note 2> /dev/null || true find $PKG/usr/man -type f -exec gzip -9 {} \; for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done diff --git a/libraries/libfabric/libfabric.info b/libraries/libfabric/libfabric.info index 4ed7d7fa2f..e8b5d73c79 100644 --- a/libraries/libfabric/libfabric.info +++ b/libraries/libfabric/libfabric.info @@ -1,10 +1,10 @@ PRGNAM="libfabric" -VERSION="1.15.1" -HOMEPAGE="http://libfabric.org/" -DOWNLOAD="https://github.com/ofiwg/libfabric/archive/v1.15.1/libfabric-1.15.1.tar.gz" -MD5SUM="1e9ae99236201b9d361a2d2dda58dbfa" -DOWNLOAD_x86_64="" -MD5SUM_x86_64="" +VERSION="1.21.0" +HOMEPAGE="https://libfabric.org/" +DOWNLOAD="UNSUPPORTED" +MD5SUM="" +DOWNLOAD_x86_64="https://github.com/ofiwg/libfabric/archive/v1.21.0/libfabric-1.21.0.tar.gz" +MD5SUM_x86_64="43e7a7e473a9afc7b5af88fe56f06d17" REQUIRES="numactl rdma-core valgrind" MAINTAINER="Vijay Marcel" EMAIL="vijaymarcel@outlook.com" |