From 3aa54e03c6f19b4e8d2e71dec7350aa1e60bbed1 Mon Sep 17 00:00:00 2001 From: Boris Nagaev Date: Fri, 16 Oct 2015 03:24:47 +0300 Subject: [PATCH] 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 --- tools/build-pkg.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/build-pkg.lua b/tools/build-pkg.lua index 923fe767..856977ba 100755 --- a/tools/build-pkg.lua +++ b/tools/build-pkg.lua @@ -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