Skip to content

Commit

Permalink
Fix building debian packages on non-clean checkouts (#17390)
Browse files Browse the repository at this point in the history
If we leave the `.so` in place it causes the tests to fail, as it gets
picked up (instead of the newly built .so) and so fails with mismatched
GLIBC errors.
  • Loading branch information
erikjohnston committed Jul 2, 2024
1 parent 635e392 commit 9c8f1a6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions changelog.d/17390.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix building debian packages on non-clean checkouts.
3 changes: 3 additions & 0 deletions docker/build_debian.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ DIST=$(cut -d ':' -f2 <<< "${distro:?}")
cp -aT /synapse/source /synapse/build
cd /synapse/build

# Delete any existing `.so` files to ensure a clean build.
rm -f /synapse/build/synapse/*.so

# if this is a prerelease, set the Section accordingly.
#
# When the package is later added to the package repo, reprepro will use the
Expand Down

0 comments on commit 9c8f1a6

Please sign in to comment.