Skip to content

Build issue: /bin/sh: ./transactiondb.sh: Permission denied #389

@MichaelSchoenfelder-SiV

Description

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingcomponent: pipeViewerIssue is related to the Helios Pipeline Viewer

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions