I am running a legacy C++ build env with Tup, Lua5.4 on Debian13. When I run tup, under any user (also root) there are strange file permission issues. When I debug and do and "ls -l" the files appear as follows
---------- 0 nobody nogroup 0 Jan 1 1970 conffiles
---------- 0 nobody nogroup 0 Jan 1 1970 control
---------- 0 nobody nogroup 0 Jan 1 1970 dirs
---------- 0 nobody nogroup 0 Jan 1 1970 install
---------- 0 nobody nogroup 0 Jan 1 1970 postinst
---------- 0 nobody nogroup 0 Jan 1 1970 prerm
When I run the shell script outside of Lua, there are no file issues. The files appear as normal.
I have tried to run the build on wsl2, docker, and Virtualbox. I need to understand whether this is a Windows issue with virtualization or a Lua issue.
The Tuprules.lua file contains the following config. Where create-deb.sh is not properly handling the files.
tup.definerule{
inputs = inputs,
command = "^ PACKAGE %o^ " .. tup.getcwd() .. "/create-deb.sh " ..
VERSION .. " " .. REVISION .. " " .. PACKAGE .. " " .. " %o",
outputs = outputs
}