Skip to content

Commit 9c8f1a6

Browse files
authored
Fix building debian packages on non-clean checkouts (#17390)
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.
1 parent 635e392 commit 9c8f1a6

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

changelog.d/17390.misc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix building debian packages on non-clean checkouts.

docker/build_debian.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ DIST=$(cut -d ':' -f2 <<< "${distro:?}")
1111
cp -aT /synapse/source /synapse/build
1212
cd /synapse/build
1313

14+
# Delete any existing `.so` files to ensure a clean build.
15+
rm -f /synapse/build/synapse/*.so
16+
1417
# if this is a prerelease, set the Section accordingly.
1518
#
1619
# When the package is later added to the package repo, reprepro will use the

0 commit comments

Comments
 (0)