* [PATCH] [luarocks] Add support for non-standard path
@ 2018-03-27 16:55 Konstantin Belyavskiy
2018-03-30 10:40 ` [tarantool-patches] " Georgy Kirichenko
0 siblings, 1 reply; 2+ messages in thread
From: Konstantin Belyavskiy @ 2018-03-27 16:55 UTC (permalink / raw)
To: vdavydov, georgy; +Cc: tarantool-patches
When tarantool is installed outside "/usr" or "/usr/local" dir
luarocks can't find it. It could be done by either passing
LUAROCKS_PREFIX (which is set by -DCMAKE_INSTALL_PREFIX) to
TARANTOOL_DIR varible:
defaults.variables.TARANTOOL_DIR = site_config.LUAROCKS_PREFIX
Or by passing it to "external_deps_dirs".
Closes #3148
---
branch: gh-3148-passing-tarantool-dir-to-luarocks
src/luarocks/cfg.lua | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/luarocks/cfg.lua b/src/luarocks/cfg.lua
index cf8a637..0ebe2bf 100644
--- a/src/luarocks/cfg.lua
+++ b/src/luarocks/cfg.lua
@@ -521,7 +521,7 @@ if cfg.platforms.unix then
defaults.lib_extension = "so"
defaults.external_lib_extension = "so"
defaults.obj_extension = "o"
- defaults.external_deps_dirs = { "/usr/local", "/usr" }
+ defaults.external_deps_dirs = { "/usr/local", "/usr", site_config.LUAROCKS_PREFIX }
defaults.variables.LUA_BINDIR = site_config.LUA_BINDIR or "/usr/local/bin"
defaults.variables.LUA_INCDIR = site_config.LUA_INCDIR or "/usr/local/include"
defaults.variables.LUA_LIBDIR = site_config.LUA_LIBDIR or "/usr/local/lib"
--
2.14.3 (Apple Git-98)
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [tarantool-patches] [PATCH] [luarocks] Add support for non-standard path
2018-03-27 16:55 [PATCH] [luarocks] Add support for non-standard path Konstantin Belyavskiy
@ 2018-03-30 10:40 ` Georgy Kirichenko
0 siblings, 0 replies; 2+ messages in thread
From: Georgy Kirichenko @ 2018-03-30 10:40 UTC (permalink / raw)
To: tarantool-patches; +Cc: Konstantin Belyavskiy, vdavydov
[-- Attachment #1: Type: text/plain, Size: 1275 bytes --]
Likes good for me
On Tuesday, March 27, 2018 7:55:13 PM MSK Konstantin Belyavskiy wrote:
> When tarantool is installed outside "/usr" or "/usr/local" dir
> luarocks can't find it. It could be done by either passing
> LUAROCKS_PREFIX (which is set by -DCMAKE_INSTALL_PREFIX) to
> TARANTOOL_DIR varible:
> defaults.variables.TARANTOOL_DIR = site_config.LUAROCKS_PREFIX
> Or by passing it to "external_deps_dirs".
>
> Closes #3148
> ---
> branch: gh-3148-passing-tarantool-dir-to-luarocks
> src/luarocks/cfg.lua | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/luarocks/cfg.lua b/src/luarocks/cfg.lua
> index cf8a637..0ebe2bf 100644
> --- a/src/luarocks/cfg.lua
> +++ b/src/luarocks/cfg.lua
> @@ -521,7 +521,7 @@ if cfg.platforms.unix then
> defaults.lib_extension = "so"
> defaults.external_lib_extension = "so"
> defaults.obj_extension = "o"
> - defaults.external_deps_dirs = { "/usr/local", "/usr" }
> + defaults.external_deps_dirs = { "/usr/local", "/usr",
> site_config.LUAROCKS_PREFIX } defaults.variables.LUA_BINDIR =
> site_config.LUA_BINDIR or "/usr/local/bin" defaults.variables.LUA_INCDIR =
> site_config.LUA_INCDIR or "/usr/local/include"
> defaults.variables.LUA_LIBDIR = site_config.LUA_LIBDIR or "/usr/local/lib"
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-03-30 10:40 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-27 16:55 [PATCH] [luarocks] Add support for non-standard path Konstantin Belyavskiy
2018-03-30 10:40 ` [tarantool-patches] " Georgy Kirichenko
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox