Description: Changes to install script: drop use of git, asking perms ; instead
 Assume handled by build system
 Also add deps on assert
Author: Alastair McKinstry <mckinstry@debian.org>
Last-Updated: 2026-04-13
Forwarded: not-needed

--- a/install.sh
+++ b/install.sh
@@ -182,16 +182,6 @@
   FPM=`which fpm`
 fi
 
-if ! command -v git > /dev/null 2>&1; then
-  echo "git not found. Building Caffeine requires fpm, which uses git to download dependencies."
-  echo "Please install git, ensure it is in your PATH, and rerun ./install.sh"
-  exit 1
-fi
-
-if ! command -v curl > /dev/null 2>&1; then
-  echo "curl not found. Please install curl, ensure it is in your PATH, and rerun ./install.sh"
-  exit 1
-fi
 
 ask_permission_to_use_homebrew()
 {
@@ -456,10 +446,10 @@
     ;;
   * )
     GASNET_PREFIX=$(dirname $GASNET_LIBDIR)
-    if [ ! -r "$GASNET_PREFIX/include/gasnetex.h" ] ; then
-      echo "ERROR: Failed to detect GASNet install prefix from $GASNET_LIBS"
-      exit 1
-    fi
+#     if [ ! -r "$GASNET_PREFIX/include/gasnetex.h" ] ; then
+#      echo "ERROR: Failed to detect GASNet install prefix from $GASNET_LIBS"
+#      exit 1
+#    fi
     ;; 
 esac
 
@@ -482,12 +472,13 @@
 if [[ $GASNET_CONDUIT == "udp" ]] ; then
   GASNET_LIB_NAMES+=" stdc++" # udp-conduit requires C++ libraries
 fi
+GASNET_LIB_NAMES+=" assert"
 FPM_TOML_LINK_ENTRY="link = [\"$(echo ${GASNET_LIB_NAMES} | sed 's/ /", "/g')\"]"
 echo "${FPM_TOML_LINK_ENTRY}" >> $FPM_TOML
 
 CAFFEINE_PC="$PREFIX/lib/pkgconfig/caffeine.pc"
 cat << EOF > $CAFFEINE_PC
-CAFFEINE_FPM_LDFLAGS=$GASNET_LDFLAGS $GASNET_LIB_LOCATIONS
+CAFFEINE_FPM_LDFLAGS=$GASNET_LDFLAGS $GASNET_LIB_LOCATIONS $LDFLAGS
 CAFFEINE_FPM_FC=$FPM_FC
 CAFFEINE_FPM_CC=$GASNET_CC
 CAFFEINE_FPM_CFLAGS=$GASNET_CFLAGS $GASNET_CPPFLAGS $APPEND_CFLAGS
