How to replicate objdir-writable.mk unit-test failure on samba share

I am trying to build Freebsd repo in a sambashare on linux. I keep on failing on https://github.com/freebsd/freebsd-src/blob/main/contrib/bmake/unit-tests/objdir-writable.mk .
The error output consists of https://github.com/freebsd/freebsd-src/blob/main/contrib/bmake/unit-tests/objdir-writable.exp and python error trace because the code relying on the unit test succeeding failed.
The test doesn't run when I try building on a local repo instead of the one in the sambashare so this seems like a samba configuration problem on my side.

The temp dir is objbuild and I tried to run the the following with no error:
mkdir -p objbuild/roobj
chmod 555 objbuild/roobj

What I want to know is what commands I can run to replicate objdir-writable.mk failure so that I can test samba configuration faster and not wait for all the tests to run.
 
I am trying to build Freebsd repo in a sambashare on linux.
Why SMB? Why not NFS?

I'm not entirely sure why this would fail, but I suspect it's because several files get the 'system-immutable' flag. I don't think this works on SMB/CIFS shares.

Code:
           schg, schange, simmutable
                   set the system immutable flag (super-user only)
chflags(8)
 
Back
Top