Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Commit 951648f

Browse files
authored
Fix debian package triggers (#10481)
Replace the outdated list of dpkg triggers with an autogenerated one.
1 parent 4b10880 commit 951648f

File tree

3 files changed

+17
-9
lines changed

3 files changed

+17
-9
lines changed

debian/build_virtualenv

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,3 +100,18 @@ esac
100100
# add a dependency on the right version of python to substvars.
101101
PYPKG=`basename $SNAKE`
102102
echo "synapse:pydepends=$PYPKG" >> debian/matrix-synapse-py3.substvars
103+
104+
105+
# add a couple of triggers. This is needed so that dh-virtualenv can rebuild
106+
# the venv when the system python changes (see
107+
# https://dh-virtualenv.readthedocs.io/en/latest/tutorial.html#step-2-set-up-packaging-for-your-project)
108+
#
109+
# we do it here rather than the more conventional way of just adding it to
110+
# debian/matrix-synapse-py3.triggers, because we need to add a trigger on the
111+
# right version of python.
112+
cat >>"debian/.debhelper/generated/matrix-synapse-py3/triggers" <<EOF
113+
# triggers for dh-virtualenv
114+
interest-noawait $SNAKE
115+
interest dh-virtualenv-interpreter-update
116+
117+
EOF

debian/changelog

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ matrix-synapse-py3 (1.40.0~rc1) stable; urgency=medium
22

33
[ Richard van der Hoff ]
44
* Drop backwards-compatibility code that was required to support Ubuntu Xenial.
5+
* Update package triggers so that the virtualenv is correctly rebuilt
6+
when the system python is rebuilt, on recent Python versions.
57

68
[ Synapse Packaging team ]
79
* New synapse release 1.40.0~rc1.

debian/matrix-synapse-py3.triggers

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)