Skip to content

Commit

Permalink
Restore pristine sources for dpkg
Browse files Browse the repository at this point in the history
  • Loading branch information
benmwebb committed Jun 23, 2024
1 parent 3eb0f6c commit 009cedd
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,14 @@ END
cat debian/changelog.orig >> debian/changelog
rm -f debian/changelog.orig
fi
# Temporarily back out changes to MPI.cmake; dpkg wants pristine sources
if [ `id -u` -eq 0 ]; then
perl -pi -e 's#;--allow-run-as-root##' modules/mpi/dependency/MPI.cmake
fi
dpkg-buildpackage -S -d
if [ `id -u` -eq 0 ]; then
perl -pi -e 's#\{MPIEXEC_PREFLAGS\}#\{MPIEXEC_PREFLAGS\};--allow-run-as-root#' modules/mpi/dependency/MPI.cmake
fi
rm -f ../imp_${IMPVERSION}.orig.tar.gz
rm -rf debian
mv ../*.debian.tar.* ../*.dsc ../*.buildinfo ../*.changes \
Expand Down

0 comments on commit 009cedd

Please sign in to comment.