02_allow_configure_uname_siteconfig_adjustment.patch 954 B

12345678910111213141516171819202122232425262728293031323334353637
  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. echo_n "Configuring for system... "
  8. -if uname -s
  9. -then
  10. - LUAROCKS_UNAME_S=`uname -s`
  11. -else
  12. - die "Could not determine operating system. 'uname -s' failed."
  13. +if [ -z "$LUAROCKS_UNAME_S" ]; then
  14. + if uname -s
  15. + then
  16. + LUAROCKS_UNAME_S=`uname -s`
  17. + else
  18. + die "Could not determine operating system. 'uname -s' failed."
  19. + fi
  20. fi
  21. echo_n "Configuring for architecture... "
  22. -if uname -m
  23. -then
  24. - LUAROCKS_UNAME_M=`uname -m`
  25. -else
  26. - die "Could not determine processor architecture. 'uname -m' failed."
  27. +if [ -z "$LUAROCKS_UNAME_M" ]; then
  28. + if uname -m
  29. + then
  30. + LUAROCKS_UNAME_M=`uname -m`
  31. + else
  32. + die "Could not determine processor architecture. 'uname -m' failed."
  33. + fi
  34. fi
  35. for v in 5.1 5.2 5.3; do