From d1108573edab9f2493ecad602c980aa8d66dd551 Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Wed, 11 Mar 2015 22:09:26 -0300 Subject: Use the system-installed stat. Avoids clashes with other versions of stat that may be installed in /usr/local, or somewhere else in the $PATH. Closes #314. --- src/luarocks/cfg.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/luarocks/cfg.lua b/src/luarocks/cfg.lua index 36c2c2a4..50d247b5 100644 --- a/src/luarocks/cfg.lua +++ b/src/luarocks/cfg.lua @@ -443,6 +443,7 @@ if detected.macosx then defaults.arch = "macosx-"..proc defaults.platforms = {"unix", "bsd", "macosx"} defaults.variables.LIBFLAG = "-bundle -undefined dynamic_lookup -all_load" + defaults.variables.STAT = "/usr/bin/stat" defaults.variables.STATFLAG = "-f '%A'" local version = io.popen("sw_vers -productVersion"):read("*l") version = tonumber(version and version:match("^[^.]+%.([^.]+)")) or 3 -- cgit v1.2.3-55-g6feb