Skip to content

Commit

Permalink
luarocks: move the option --deps-mode
Browse files Browse the repository at this point in the history
The option moves from `luarocks make` command to the LuaRocks config file.

This change and the merge of PR luarocks/luarocks#236
in LuaRocks 2.2.0 avoids the confusing message "Missing dependency"

Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
  • Loading branch information
fperrad authored and tpetazzoni committed Jul 26, 2014
1 parent 0b8411a commit 5363cf1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions package/luarocks/luarocks.mk
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ define HOST_LUAROCKS_INSTALL_CMDS
echo "gcc_rpath = false" >> $(LUAROCKS_CONFIG_FILE)
echo "rocks_trees = { [[$(TARGET_DIR)/usr]] }" >> $(LUAROCKS_CONFIG_FILE)
echo "wrap_bin_scripts = false" >> $(LUAROCKS_CONFIG_FILE)
echo "deps_mode = [[none]]" >> $(LUAROCKS_CONFIG_FILE)
endef

$(eval $(host-generic-package))
Expand Down
2 changes: 1 addition & 1 deletion package/pkg-luarocks.mk
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ endif
ifndef $(2)_INSTALL_TARGET_CMDS
define $(2)_INSTALL_TARGET_CMDS
cd $$($(2)_SRCDIR) && \
$$(LUAROCKS_RUN) make --deps-mode=none --keep $$($(2)_ROCKSPEC) $$($(2)_BUILD_OPT)
$$(LUAROCKS_RUN) make --keep $$($(2)_ROCKSPEC) $$($(2)_BUILD_OPT)
endef
endif

Expand Down

0 comments on commit 5363cf1

Please sign in to comment.