02_allow_configure_uname_siteconfig_adjustment.patch (954B)
1 Index: luarocks-2.2.2/configure 2 =================================================================== 3 --- luarocks-2.2.2.orig/configure 4 +++ luarocks-2.2.2/configure 5 @@ -388,18 +388,22 @@ then 6 fi 7 8 echo_n "Configuring for system... " 9 -if uname -s 10 -then 11 - LUAROCKS_UNAME_S=`uname -s` 12 -else 13 - die "Could not determine operating system. 'uname -s' failed." 14 +if [ -z "$LUAROCKS_UNAME_S" ]; then 15 + if uname -s 16 + then 17 + LUAROCKS_UNAME_S=`uname -s` 18 + else 19 + die "Could not determine operating system. 'uname -s' failed." 20 + fi 21 fi 22 echo_n "Configuring for architecture... " 23 -if uname -m 24 -then 25 - LUAROCKS_UNAME_M=`uname -m` 26 -else 27 - die "Could not determine processor architecture. 'uname -m' failed." 28 +if [ -z "$LUAROCKS_UNAME_M" ]; then 29 + if uname -m 30 + then 31 + LUAROCKS_UNAME_M=`uname -m` 32 + else 33 + die "Could not determine processor architecture. 'uname -m' failed." 34 + fi 35 fi 36 37 for v in 5.1 5.2 5.3; do