From ec65c30072886a6a61dae13d41b8289957688acf Mon Sep 17 00:00:00 2001 From: Oliver Lantwin Date: Wed, 21 Jan 2026 12:53:15 +0100 Subject: [PATCH] deps: bump GSL to 2.8 for ROOT compatibility --- gsl.sh | 37 ++++++++++++------------------------- 1 file changed, 12 insertions(+), 25 deletions(-) diff --git a/gsl.sh b/gsl.sh index 3d2b14e0..7846ea7b 100644 --- a/gsl.sh +++ b/gsl.sh @@ -1,45 +1,32 @@ package: GSL -version: "v1.16%(defaults_upper)s" +version: "v2.8" +tag: "v2.8" source: https://github.com/alisw/gsl -tag: "release-1-16" -build_requires: - - autotools requires: - "GCC-Toolchain:(?!osx)" +build_requires: + - "autotools:(slc6|slc7)" + - alibuild-recipe-tools prefer_system: (?!slc5) prefer_system_check: | - printf "#include \"gsl/gsl_version.h\"\n#define GSL_V GSL_MAJOR_VERSION * 100 + GSL_MINOR_VERSION\n# if (GSL_V < 116)\n#error \"Cannot use system's gsl. Notice we only support versions from 1.16 (included)\"\n#endif\nint main(){}"\ - | gcc -I"$GSL_ROOT/include" -xc++ - -o /dev/null + printf "#include \"gsl/gsl_version.h\"\n#define GSL_V GSL_MAJOR_VERSION * 100 + GSL_MINOR_VERSION\n# if (GSL_V < 116)\n#error \"Cannot use system's gsl. Notice we only support versions from 1.16 (included)\"\n#endif\nint main(){}" | cc -xc - -I$(brew --prefix gsl)/include -c -o /dev/null --- #!/bin/bash -e -rsync -a --exclude '**/.git' --delete $SOURCEDIR/ $BUILDDIR +rsync -a --chmod=ug=rwX --exclude .git --delete-excluded $SOURCEDIR/ $BUILDDIR/ # Do not build documentation -perl -p -i -e "s/doc//" Makefile.am -perl -p -i -e "s|doc/Makefile||" configure.ac +sed -i.bak -e "s/doc//" Makefile.am +sed -i.bak -e "s|doc/Makefile||" configure.ac autoreconf -f -v -i ./configure --prefix="$INSTALLROOT" \ --enable-maintainer-mode make ${JOBS:+-j$JOBS} make ${JOBS:+-j$JOBS} install rm -fv $INSTALLROOT/lib/*.la - # Modulefile MODULEDIR="$INSTALLROOT/etc/modulefiles" MODULEFILE="$MODULEDIR/$PKGNAME" mkdir -p "$MODULEDIR" -cat > "$MODULEFILE" < $MODULEFILE +cat >> "$MODULEFILE" <