summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/luarocks/build/builtin.lua6
-rw-r--r--src/luarocks/cmd/install.lua2
-rw-r--r--src/luarocks/cmd/make.lua4
-rw-r--r--src/luarocks/core/path.lua2
-rw-r--r--src/luarocks/manif/writer.lua2
5 files changed, 12 insertions, 4 deletions
diff --git a/src/luarocks/build/builtin.lua b/src/luarocks/build/builtin.lua
index db6f8bc4..59c530a4 100644
--- a/src/luarocks/build/builtin.lua
+++ b/src/luarocks/build/builtin.lua
@@ -82,6 +82,7 @@ function builtin.run(rockspec)
82 local ok = execute(variables.LD.." "..variables.LIBFLAG, "-o", library, unpack(extras)) 82 local ok = execute(variables.LD.." "..variables.LIBFLAG, "-o", library, unpack(extras))
83 return ok 83 return ok
84 end 84 end
85 --[[ TODO disable static libs until we fix the conflict in the manifest, which will take extending the manifest format.
85 compile_static_library = function(library, objects, libraries, libdirs, name) 86 compile_static_library = function(library, objects, libraries, libdirs, name)
86 local ok = execute(variables.AR, "rc", library, unpack(objects)) 87 local ok = execute(variables.AR, "rc", library, unpack(objects))
87 if ok then 88 if ok then
@@ -89,6 +90,7 @@ function builtin.run(rockspec)
89 end 90 end
90 return ok 91 return ok
91 end 92 end
93 ]]
92 compile_wrapper_binary = function(fullname, name) 94 compile_wrapper_binary = function(fullname, name)
93 --TODO EXEWRAPPER 95 --TODO EXEWRAPPER
94 local fullbasename = fullname:gsub("%.lua$", ""):gsub("/", "\\") 96 local fullbasename = fullname:gsub("%.lua$", ""):gsub("/", "\\")
@@ -135,10 +137,12 @@ function builtin.run(rockspec)
135 end 137 end
136 return ok 138 return ok
137 end 139 end
140 --[[ TODO disable static libs until we fix the conflict in the manifest, which will take extending the manifest format.
138 compile_static_library = function(library, objects, libraries, libdirs, name) 141 compile_static_library = function(library, objects, libraries, libdirs, name)
139 local ok = execute(variables.AR, "-out:"..library, unpack(objects)) 142 local ok = execute(variables.AR, "-out:"..library, unpack(objects))
140 return ok 143 return ok
141 end 144 end
145 ]]
142 compile_wrapper_binary = function(fullname, name) 146 compile_wrapper_binary = function(fullname, name)
143 --TODO EXEWRAPPER 147 --TODO EXEWRAPPER
144 local fullbasename = fullname:gsub("%.lua$", ""):gsub("/", "\\") 148 local fullbasename = fullname:gsub("%.lua$", ""):gsub("/", "\\")
@@ -262,6 +266,7 @@ function builtin.run(rockspec)
262 if not ok then 266 if not ok then
263 return nil, "Failed compiling module "..module_name 267 return nil, "Failed compiling module "..module_name
264 end 268 end
269 --[[ TODO disable static libs until we fix the conflict in the manifest, which will take extending the manifest format.
265 module_name = name:match("([^.]*)$").."."..util.matchquote(cfg.static_lib_extension) 270 module_name = name:match("([^.]*)$").."."..util.matchquote(cfg.static_lib_extension)
266 if moddir ~= "" then 271 if moddir ~= "" then
267 module_name = dir.path(moddir, module_name) 272 module_name = dir.path(moddir, module_name)
@@ -271,6 +276,7 @@ function builtin.run(rockspec)
271 if not ok then 276 if not ok then
272 return nil, "Failed compiling static library "..module_name 277 return nil, "Failed compiling static library "..module_name
273 end 278 end
279 ]]
274 end 280 end
275 end 281 end
276 for _, mods in ipairs({{ tbl = lua_modules, perms = cfg.perm_read }, { tbl = lib_modules, perms = cfg.perm_exec }}) do 282 for _, mods in ipairs({{ tbl = lua_modules, perms = cfg.perm_read }, { tbl = lib_modules, perms = cfg.perm_exec }}) do
diff --git a/src/luarocks/cmd/install.lua b/src/luarocks/cmd/install.lua
index 82f7d33e..8b4a154b 100644
--- a/src/luarocks/cmd/install.lua
+++ b/src/luarocks/cmd/install.lua
@@ -171,7 +171,7 @@ function install.command(flags, name, version)
171 if not ok then util.printerr(err) end 171 if not ok then util.printerr(err) end
172 end 172 end
173 173
174 manif.check_dependencies(nil, deps.get_deps_mode(flags)) 174 writer.check_dependencies(nil, deps.get_deps_mode(flags))
175 return name, version 175 return name, version
176 else 176 else
177 local url, err = search.find_suitable_rock(search.make_query(name:lower(), version)) 177 local url, err = search.find_suitable_rock(search.make_query(name:lower(), version))
diff --git a/src/luarocks/cmd/make.lua b/src/luarocks/cmd/make.lua
index 54dff86b..d3d02814 100644
--- a/src/luarocks/cmd/make.lua
+++ b/src/luarocks/cmd/make.lua
@@ -13,7 +13,7 @@ local fetch = require("luarocks.fetch")
13local pack = require("luarocks.pack") 13local pack = require("luarocks.pack")
14local remove = require("luarocks.remove") 14local remove = require("luarocks.remove")
15local deps = require("luarocks.deps") 15local deps = require("luarocks.deps")
16local manif = require("luarocks.manif") 16local writer = require("luarocks.manif.writer")
17 17
18make.help_summary = "Compile package in current directory using a rockspec." 18make.help_summary = "Compile package in current directory using a rockspec."
19make.help_arguments = "[--pack-binary-rock] [<rockspec>]" 19make.help_arguments = "[--pack-binary-rock] [<rockspec>]"
@@ -82,7 +82,7 @@ function make.command(flags, rockspec)
82 if not ok then util.printerr(err) end 82 if not ok then util.printerr(err) end
83 end 83 end
84 84
85 manif.check_dependencies(nil, deps.get_deps_mode(flags)) 85 writer.check_dependencies(nil, deps.get_deps_mode(flags))
86 return name, version 86 return name, version
87 end 87 end
88end 88end
diff --git a/src/luarocks/core/path.lua b/src/luarocks/core/path.lua
index ffde2c68..a4eb8b4b 100644
--- a/src/luarocks/core/path.lua
+++ b/src/luarocks/core/path.lua
@@ -53,11 +53,13 @@ function path.path_to_module(file)
53 name = file:match("(.*)%."..cfg.lib_extension.."$") 53 name = file:match("(.*)%."..cfg.lib_extension.."$")
54 if name then 54 if name then
55 name = name:gsub(dir.separator, ".") 55 name = name:gsub(dir.separator, ".")
56 --[[ TODO disable static libs until we fix the conflict in the manifest, which will take extending the manifest format.
56 else 57 else
57 name = file:match("(.*)%."..cfg.static_lib_extension.."$") 58 name = file:match("(.*)%."..cfg.static_lib_extension.."$")
58 if name then 59 if name then
59 name = name:gsub(dir.separator, ".") 60 name = name:gsub(dir.separator, ".")
60 end 61 end
62 ]]
61 end 63 end
62 end 64 end
63 if not name then name = file end 65 if not name then name = file end
diff --git a/src/luarocks/manif/writer.lua b/src/luarocks/manif/writer.lua
index 9d7c7ac3..42b92e17 100644
--- a/src/luarocks/manif/writer.lua
+++ b/src/luarocks/manif/writer.lua
@@ -417,7 +417,7 @@ function writer.check_dependencies(repo, deps_mode)
417 assert(type(deps_mode) == "string") 417 assert(type(deps_mode) == "string")
418 if deps_mode == "none" then deps_mode = cfg.deps_mode end 418 if deps_mode == "none" then deps_mode = cfg.deps_mode end
419 419
420 local manifest = manif_core.load_local_manifest(rocks_dir) 420 local manifest = manif.load_local_manifest(rocks_dir)
421 if not manifest then 421 if not manifest then
422 return 422 return
423 end 423 end