Occasionally when building map and sparta, I get /bin/sh: ./transactiondb.sh: Permission denied.
I think this is a race condition because transactiondb.sh is a dependency.
It is produced like this:
helios/pipeViewer/transactiondb/CMakeLists.txt: python3 ${CMAKE_CURRENT_SOURCE_DIR}/setup.py build_ext --inplace;' > transactiondb.sh && chmod +x transactiondb.sh
If make is looking for transactiondb.sh, it might see it and try to use it before the chmod is completed on the filesystem.
This would be safer:
python3 ${CMAKE_CURRENT_SOURCE_DIR}/setup.py build_ext --inplace;' > transactiondb.sh.tmp && chmod +x transactiondb.sh.tmp && mv transactiondb.sh.tmp transactiondb.sh
Occasionally when building map and sparta, I get
/bin/sh: ./transactiondb.sh: Permission denied.I think this is a race condition because
transactiondb.shis a dependency.It is produced like this:
If
makeis looking fortransactiondb.sh, it might see it and try to use it before the chmod is completed on the filesystem.This would be safer: