-- Table driving the build process, see documentation at the bottom.
local build_process = {}
+--- TODO
local function linklast(info, r, return_flags)
local res = info.results[r]
local rc, re
return true
end
+--- TODO
local function chroot_lock(info, r, return_flags)
local res = info.results[r]
local rc, re
return true, nil
end
+--- TODO
local function chroot_unlock(info, r, return_flags)
local res = info.results[r]
local rc, re
return true, nil
end
+--- TODO
local function setup_chroot(info, r, return_flags)
local res = info.results[r]
local rc, re
return true
end
+--- TODO
local function fix_permissions(info, r, return_flags)
local res = info.results[r]
local rc, re
return true, nil
end
+--- TODO
local function playground(info, r, return_flags)
local res = info.results[r]
if res.playground then
return true, nil
end
+--- TODO
local function runbuild(info, r, return_flags)
local res = info.results[r]
local rc, re, out
return true
end
+--- TODO
local function chroot_remove(info, r, return_flags)
local res = info.results[r]
local e = err.new("removing chroot failed")
return true, nil
end
+--- TODO
local function chroot_cleanup(info, r, return_flags)
local res = info.results[r]
-- do not remove chroot if the user requests to keep it
return chroot_remove(info, r, return_flags)
end
+--- TODO
local function chroot_cleanup_if_exists(info, r, return_flags)
local res = info.results[r]
if chroot_remove(info, r, return_flags) then
end
--- check if a chroot exists for this result
--- @param info
--- @param r string: result name
--- @return bool
+-- @param info Info table
+-- @param r Result name
+-- @return True if chroot for result could be found, false otherwise.
function e2build.chroot_exists(info, r)
local res = info.results[r]
return e2lib.isfile(res.build_config.chroot_marker)
end
+--- TODO
function e2build.unpack_result(info, r, dep, destdir)
local res = info.results[r]
local rc, re
return true
end
+--- TODO
local function sources(info, r, return_flags)
local e = err.new("installing sources")
local i, k, l, source, cp
return true, nil
end
+--- TODO
build_process = {
{ name="build_config", func=e2build.build_config },
{ name="result_available", func=result_available },