Skip to content

Commit

Permalink
setup.py: detect noexec build fs issue, see borgbackup#8208
Browse files Browse the repository at this point in the history
That "failed to map segment from shared object" error msg is not
very helpful. Add a hint that the filesystem needs to be +exec
(== not noexec mounted, like it might be the case for /tmp on
some systems).
  • Loading branch information
ThomasWaldmann committed May 12, 2024
1 parent b067f0f commit 8a73344
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
# either there is no Cython installed or there is some issue with it.
cythonize = None
cythonize_import_error_msg = "ImportError: " + str(exc)
if "failed to map segment from shared object" in cythonize_import_error_msg:
cythonize_import_error_msg += " Check if the borg build uses a +exec filesystem."

sys.path += [os.path.dirname(__file__)]

Expand Down

0 comments on commit 8a73344

Please sign in to comment.