From 4f9ce8bef4156b5eea03480ca6b306090296aa7e Mon Sep 17 00:00:00 2001 From: Diniz Bortolotto Date: Sat, 18 May 2024 13:20:13 -0300 Subject: [PATCH] development/smlnj: Amend. Patch misalign. Signed-off-by: Willy Sudiarto Raharjo --- development/smlnj/_arch-n-opsys.patch | 10 ++++++++++ development/smlnj/doinst.sh | 2 -- development/smlnj/smlnj.SlackBuild | 6 +++--- 3 files changed, 13 insertions(+), 5 deletions(-) create mode 100644 development/smlnj/_arch-n-opsys.patch diff --git a/development/smlnj/_arch-n-opsys.patch b/development/smlnj/_arch-n-opsys.patch new file mode 100644 index 0000000000..4addf45eb2 --- /dev/null +++ b/development/smlnj/_arch-n-opsys.patch @@ -0,0 +1,10 @@ +--- _arch-n-opsys 2015-07-09 04:54:20.000000000 -0300 ++++ _arch-n-opsys.new 2024-05-21 00:47:47.253431563 -0300 +@@ -66,6 +66,7 @@ + 2.6.*) ;; + 3.*) ;; + 4.*) ;; ++ 5.*) ;; + *) exit 1 ;; + esac + ;; diff --git a/development/smlnj/doinst.sh b/development/smlnj/doinst.sh index 048eb17e79..65c7e2eeb9 100644 --- a/development/smlnj/doinst.sh +++ b/development/smlnj/doinst.sh @@ -7,5 +7,3 @@ if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then /usr/bin/gtk-update-icon-cache -f usr/share/icons/hicolor >/dev/null 2>&1 fi fi - -chmod +x /etc/profile.d/smlnj.sh diff --git a/development/smlnj/smlnj.SlackBuild b/development/smlnj/smlnj.SlackBuild index f1c4a612b8..86899607f1 100644 --- a/development/smlnj/smlnj.SlackBuild +++ b/development/smlnj/smlnj.SlackBuild @@ -38,9 +38,6 @@ if [ -z "$ARCH" ]; then esac fi -# 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 @@ -76,6 +73,8 @@ tar xvf $CWD/config.tgz # Confuses install.sh unset SMLNJ_HOME +patch $TMP/$PRGNAM/config/_arch-n-opsys < $CWD/_arch-n-opsys.patch + config/install.sh mkdir -p "$PKG/usr/lib/smlnj" @@ -83,6 +82,7 @@ cp -R "$TMP/$PRGNAM/"{bin,lib} "$PKG/usr/lib/smlnj" mkdir -p "$PKG/etc/profile.d" cp "$CWD/smlnj.sh" "$PKG/etc/profile.d/smlnj.sh" +chmod +x $PKG/etc/profile.d/smlnj.sh chown -R root:root . find -L . \