Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use symbolic links in /tmp to fix "path name spaces problem" #444

Merged
merged 2 commits into from
Jul 29, 2021

Conversation

tnowotny
Copy link
Member

@tnowotny tnowotny commented Jul 23, 2021

Fixes #424.

…es and create havoc in Makefiles.

Solves issue #424.
@tnowotny tnowotny requested a review from neworderofjamie July 23, 2021 08:49
@codecov
Copy link

codecov bot commented Jul 23, 2021

Codecov Report

Merging #444 (5580f2f) into master (c27d722) will increase coverage by 0.10%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #444      +/-   ##
==========================================
+ Coverage   87.87%   87.98%   +0.10%     
==========================================
  Files          78       78              
  Lines       16575    16575              
==========================================
+ Hits        14566    14583      +17     
+ Misses       2009     1992      -17     
Impacted Files Coverage Δ
src/genn/backends/opencl/backend.cc 92.39% <0.00%> (+1.01%) ⬆️
include/genn/genn/code_generator/backendBase.h 91.37% <0.00%> (+1.72%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c27d722...5580f2f. Read the comment docs.

# Use pushd to get an absolute path and symbolic links in /tmp to avoid problems
# with spaces in the path names
pushd "$OUT_PATH" > /dev/null
OUT_PATH=/tmp/genn_outpath$RANDOM
Copy link
Contributor

@neworderofjamie neworderofjamie Jul 23, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be marginally nicer to use OUTPUT=$(mktemp) (and MODEL=$(mktemp)) instead. Better chance of being robust to multiple users running GeNN simultaneously on the same machine.

/tmp is specified specifically as a location as the default location
on Mac looks quite horrible which I feel could lead to confusion
when displayed in the make command lines.
-u is necessary as we want to create a symlink, not a regular file.
@tnowotny tnowotny requested a review from neworderofjamie July 23, 2021 16:45
@neworderofjamie neworderofjamie added this to the GeNN 4.6.0 milestone Jul 24, 2021
@neworderofjamie neworderofjamie merged commit 830ff57 into master Jul 29, 2021
@neworderofjamie neworderofjamie deleted the fix_path_spaces branch July 29, 2021 17:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

genn-buildmodel.sh appears to fail when spaces in file path
2 participants