0

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
}
3
  • What kind of file system are you creating these files on? Is that the same when you run the script directly as when you run it under Lua / tup? Because under normal circumstances, an unprivileged user should not be able to create files that they do not own. Commented Oct 31 at 15:38
  • Side note: do not run anything as root that you don't have to do. And when software is doing weird things that you don't understand, absolutely do not run it as root, lest the weird things that result include some that break your system. Commented Oct 31 at 15:40
  • I am running Debian13 on Windows11 wsl2, The files are created under my Debian account, I run under my own user, I have tried under "sudo" and pure root. I have tried to run in Docker and on Oracle VIrtualbox. All have the same issue. So I am assuming that the issue is with Lua5.4. Commented Nov 2 at 8:22

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.