build-pkg: don't use numeric owner, group in tar

File ownership is set as string "root/root" in  Debian files. So numeric
owners are converted to strings anyway. On FreeBSD numeric group "0" is
converted to "wheel" instead of "root".

see #901
pull/939/head
Boris Nagaev 9 years ago
parent 254b1bb9d6
commit 3aa54e03c6

@ -435,7 +435,7 @@ local function makeDeb(pkg, list_path, deps, ver, add_common)
protectVersion(ver))
-- make .tar.xz file
local tar_name = dirname .. '.tar.xz'
local cmd = '%s -T %s --owner=0 --group=0 -cJf %s'
local cmd = '%s -T %s --owner=root --group=root -cJf %s'
os.execute(cmd:format(tool 'tar', list_path, tar_name))
-- unpack .tar.xz to the path for Debian
local usr = dirname .. MXE_DIR

Loading…
Cancel
Save