Can't "make install" on read-only source directory
envgap__openscad__openscad-6700
01 / FAILURE SIGNATURE
As reported upstream
No identifying execution failure has been captured.
Not a benchmark task.
- In a clean container the reported failure did not reproduce, or the known fix did not make the project run.
02 / ENVIRONMENT RECIPE
- Base commit
a9d04c6fce71cd30fcbb1cc2c78107ccd305f981- Manifest
tests/CMakeLists.txt- Reproduce
Awaiting issue-specific recipe- Run under trace
Awaiting a meaningful runtime command
03 / ORIGINAL ISSUE TEXT
openscad/openscad #6700 · read the original issue
When the build directory is mounted via NFS one can't perform a "make install". **Environment** My build machine is running Fedora 43. The base "openscad" directory is in a directrory mounted from a NAS so that the same sources can be used for multiple build machines. A "cmake -B build-fed43" was done for this system, other subdirectories are used for other targets. **Issue** The openscad executable can be built as a non-root user but when I try to install it fails. I think this is because root does not have rights to write to the share: ``` cd build-fed43 make preinstall # done to minimize the root owned files, I hope sudo make install ``` It fails with: ``` ... [ 97%] Built target OpenSCADUnitTests [ 98%] Generating issue2342.scad /bin/sh: line 1: /home/gaa/OpenSCAD/openscad/tests/data/scad/issues/issue2342.scad: Permission denied make[2]: *** [tests/CMakeFiles/issue2342.dir/build.make:71: tests/CMakeFiles/issue2342] Error 1 make[1]: *** [CMakeFiles/Makefile2:1559: tests/CMakeFiles/issue2342.dir/all] Error 2 make: *** [Makefile:166: all] Error 2 ``` I notice that every time a make is run, the issue2342.scad file is recreated. Perhaps it should not be touched again just to install. If every make changes "source", then it would seem that one can't share the source tree via NFS (or SMB). These are the files that I found get touched every make, even if already made: ``` tests/data/svg/viewbox/viewbox_600x600_slice_xMinYMin.svg tests/data/svg/viewbox/viewbox_300x400_meet_xMinYMin.svg tests/data/svg/viewbox/viewbox_600x200_meet_xMinYMin.svg tests/data/svg/viewbox/viewbox_600x200_slice_xMidYMin.svg tests/data/svg/viewbox/viewbox_300x400_none.svg tests/data/svg/viewbox/viewbox_600x200_slice_xMaxYMin.svg tests/data/svg/viewbox/viewbox_600x200_slice_xMinYMin.svg tests/data/svg/viewbox/viewbox_300x400_meet_xMidYMin.svg tests/data/svg/viewbox/viewbox_600x200_meet_xMinYMax.svg tests/data/svg/viewbox/viewbox_600x200_meet_xMinYMid.svg tests/data/svg/viewbox/viewbox_300x400_meet_xMaxYMin.svg tests/data/svg/viewbox/viewbox_600x600_slice_xMinYMid.svg tests/data/svg/viewbox/viewbox_600x600_slice_xMinYMax.svg tests/data/svg/viewbox/viewbox_600x200_none.svg tests/data/scad/issues/issue2342.scad ```
04 / LABELS
Labels from the report text only; not yet run
No supported category has been assigned.
Label rules and the text that matched
[]