Skip to content

Commit 349c96c

Browse files
authored
Merge pull request #373 from sourceryinstitute/fix-mpich-patch
Fix application of patch for MPICH 3.2 Fixes #355 for real
2 parents 8a1ac56 + 8ff03c8 commit 349c96c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

prerequisites/build-functions/build_and_install.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ build_and_install()
2424
if [[ "${package_to_build}" == "mpich" && "${version_to_build}" == "3.2" ]]; then
2525
info "Patching MPICH 3.2 on Mac OS due to segfault bug (see http://lists.mpich.org/pipermail/discuss/2016-May/004764.html)."
2626
sed 's/} MPID_Request ATTRIBUTE((__aligned__(32)));/} ATTRIBUTE((__aligned__(32))) MPID_Request;/g' \
27-
"${download_path}/${package_source_directory}/src/include/mpiimpl.h"
27+
"${download_path}/${package_source_directory}/src/include/mpiimpl.h" > "${download_path}/${package_source_directory}/src/include/mpiimpl.h.patched"
28+
cp "${download_path}/${package_source_directory}/src/include/mpiimpl.h.patched" "${download_path}/${package_source_directory}/src/include/mpiimpl.h"
2829
fi
2930

3031
info "Configuring ${package_to_build} ${version_to_build} with the following command:"

0 commit comments

Comments
 (0)