linux installer tweak:
authorRobin Gareus <robin@gareus.org>
Fri, 13 Nov 2015 23:36:19 +0000 (17:36 -0600)
committerRobin Gareus <robin@gareus.org>
Fri, 13 Nov 2015 23:36:48 +0000 (17:36 -0600)
check architecture before gcc4/5 compat

tools/linux_packaging/stage2.run.in

index 4b6cb728af712a82822c47c11fcf0609a76db349..ea83a57e207ff6cd771431671719f15fb945ec7f 100755 (executable)
@@ -229,42 +229,6 @@ case `uname -m` in
                ;;
 esac
 
-#############################
-# Determine C11 stdlibc++ ABI
-#############################
-
-if %REPLACE_GCC5%; then
-       # Ardour was compiled with gcc5, warn on gcc4 systems
-       if ! ${NORM_USER} "${PKG_PATH}/.gcc-glibmm-abi-check --gcc5 > /dev/null"; then
-               echo ""
-               echo "WARNING: GCC4/5 libstdc++ ABI Mismatch"
-               echo ""
-               echo "Ardour was compiled with gcc5, your system uses an older version of the"
-               echo "standard c++ library. Plugins on your system may not load or plugin-UIs"
-               echo "may cause crashes."
-               echo ""
-               ANSWER=$(VaildateYesNoQuestion "Continue anyway?")
-               if test "n" = $ANSWER; then
-                       exit 1
-               fi
-       fi
-else
-       # Ardour was compiled with gcc4, warn on gcc5 systems
-       if ! ${NORM_USER} "${PKG_PATH}/.gcc-glibmm-abi-check --gcc4 > /dev/null"; then
-               echo ""
-               echo "WARNING: GCC4/5 libstdc++ ABI Mismatch"
-               echo ""
-               echo "Ardour was compiled with gcc4, your system uses a newer version of the"
-               echo "standard c++ library. Plugins on your system may not load or plugin-UIs"
-               echo "may cause crashes."
-               echo ""
-               ANSWER=$(VaildateYesNoQuestion "Continue anyway?")
-               if test "n" = $ANSWER; then
-                       exit 1
-               fi
-       fi
-fi
-
 ####################
 # Check disk space
 ####################
@@ -313,13 +277,49 @@ else
        fi
 fi
 
-FILESYSTEM_TYPE=$(df -P -T "${PKG_PATH}" | grep / | awk '{print $2}')
-echo "Bundle is on ${FILESYSTEM_TYPE} filesystem"
+#############################
+# Determine C11 stdlibc++ ABI
+#############################
+
+if %REPLACE_GCC5%; then
+       # Ardour was compiled with gcc5, warn on gcc4 systems
+       if ! ${NORM_USER} "${PKG_PATH}/.gcc-glibmm-abi-check --gcc5 > /dev/null"; then
+               echo ""
+               echo "WARNING: GCC4/5 libstdc++ ABI Mismatch"
+               echo ""
+               echo "Ardour was compiled with gcc5, your system uses an older version of the"
+               echo "standard c++ library. Plugins on your system may not load or plugin-UIs"
+               echo "may cause crashes."
+               echo ""
+               ANSWER=$(VaildateYesNoQuestion "Continue anyway?")
+               if test "n" = $ANSWER; then
+                       exit 1
+               fi
+       fi
+else
+       # Ardour was compiled with gcc4, warn on gcc5 systems
+       if ! ${NORM_USER} "${PKG_PATH}/.gcc-glibmm-abi-check --gcc4 > /dev/null"; then
+               echo ""
+               echo "WARNING: GCC4/5 libstdc++ ABI Mismatch"
+               echo ""
+               echo "Ardour was compiled with gcc4, your system uses a newer version of the"
+               echo "standard c++ library. Plugins on your system may not load or plugin-UIs"
+               echo "may cause crashes."
+               echo ""
+               ANSWER=$(VaildateYesNoQuestion "Continue anyway?")
+               if test "n" = $ANSWER; then
+                       exit 1
+               fi
+       fi
+fi
 
 #####################
 # Unpack the bundle
 #####################
 
+FILESYSTEM_TYPE=$(df -P -T "${PKG_PATH}" | grep / | awk '{print $2}')
+echo "Bundle is on ${FILESYSTEM_TYPE} filesystem"
+
 # untar the correct bundle for us to install
 echo "Unpacking bundle for $ARCH"