diff options
author | David Thornley <david.thornley@touchstargroup.com> | 2016-12-22 18:11:38 +1100 |
---|---|---|
committer | David Thornley <david.thornley@touchstargroup.com> | 2016-12-22 18:12:15 +1100 |
commit | 1542acaba737abd29e8cb8c7de07da8224556c8d (patch) | |
tree | 2c29cc6ba4988ff04ef28f5f2f870c968f9d1ba5 /lang/luarocks/patches | |
parent | 89b8be41357916e80191381819c306ea5697c176 (diff) |
luarocks: Fix seeded uname (s/m) in siteconfig
LUAROCKS_UNAME_S/LUAROCKS_UNAME_M were being set automatically to host’s architecture and system/kernel name (e.g.. x86 and Darwin for the macOS)
The variables can now be supplied to configure via the supplied patch.
They are currently _S being hardcoded to “Linux” and _M set to the target architecture in the MakeFile.
Signed-off-by: David Thornley <david.thornley@touchstargroup.com>
Diffstat (limited to 'lang/luarocks/patches')
-rw-r--r-- | lang/luarocks/patches/02_allow_configure_uname_siteconfig_adjustment.patch | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/lang/luarocks/patches/02_allow_configure_uname_siteconfig_adjustment.patch b/lang/luarocks/patches/02_allow_configure_uname_siteconfig_adjustment.patch new file mode 100644 index 000000000..5c9c96884 --- /dev/null +++ b/lang/luarocks/patches/02_allow_configure_uname_siteconfig_adjustment.patch @@ -0,0 +1,37 @@ +Index: luarocks-2.2.2/configure +=================================================================== +--- luarocks-2.2.2.orig/configure ++++ luarocks-2.2.2/configure +@@ -388,18 +388,22 @@ then + fi + + echo_n "Configuring for system... " +-if uname -s +-then +- LUAROCKS_UNAME_S=`uname -s` +-else +- die "Could not determine operating system. 'uname -s' failed." ++if [ -z "$LUAROCKS_UNAME_S" ]; then ++ if uname -s ++ then ++ LUAROCKS_UNAME_S=`uname -s` ++ else ++ die "Could not determine operating system. 'uname -s' failed." ++ fi + fi + echo_n "Configuring for architecture... " +-if uname -m +-then +- LUAROCKS_UNAME_M=`uname -m` +-else +- die "Could not determine processor architecture. 'uname -m' failed." ++if [ -z "$LUAROCKS_UNAME_M" ]; then ++ if uname -m ++ then ++ LUAROCKS_UNAME_M=`uname -m` ++ else ++ die "Could not determine processor architecture. 'uname -m' failed." ++ fi + fi + + for v in 5.1 5.2 5.3; do |