-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Update debian scripts for debhelper-compat 12 #9792
Changes from all commits
20ec716
5348d6e
22020dc
0a56d58
bd9a08b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Update Debian build scripts to support debhelper-compat level 12. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
matrix-synapse-py3 (1.31.0+nmu1) UNRELEASED; urgency=medium | ||
|
||
* Skip tests when DEB_BUILD_OPTIONS contains "nocheck". | ||
* Update Debian build scripts for debhelper-compat level 12. | ||
|
||
-- Dan Callahan <[email protected]> Mon, 12 Apr 2021 13:07:36 +0000 | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
9 | ||
12 |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,12 +3,10 @@ Section: contrib/python | |
Priority: extra | ||
Maintainer: Synapse Packaging team <[email protected]> | ||
# keep this list in sync with the build dependencies in docker/Dockerfile-dhvirtualenv. | ||
# TODO: Remove the dependency on dh-systemd after dropping support for Ubuntu xenial | ||
# On all other supported releases, it's merely a transitional package which | ||
# does nothing but depends on debhelper (> 9.20160709) | ||
Build-Depends: | ||
debhelper (>= 9.20160709) | dh-systemd, | ||
dh-virtualenv (>= 1.1), | ||
debhelper, | ||
dh-virtualenv (>= 1.2.2), | ||
dh-python, | ||
libsystemd-dev, | ||
libpq-dev, | ||
lsb-release, | ||
|
@@ -22,7 +20,7 @@ Standards-Version: 3.9.8 | |
Homepage: https://github.com/matrix-org/synapse | ||
|
||
Package: matrix-synapse-py3 | ||
Architecture: amd64 | ||
Architecture: any | ||
Provides: matrix-synapse | ||
Conflicts: | ||
matrix-synapse (<< 0.34.0.1-0matrix2), | ||
|
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
# Register interest in Python interpreter changes and | ||
# don't make the Python package dependent on the virtualenv package | ||
# processing (noawait) | ||
interest-noawait /usr/bin/python3.5 | ||
interest-noawait /usr/bin/python3.6 | ||
interest-noawait /usr/bin/python3.7 | ||
interest-noawait /usr/bin/python3.8 | ||
interest-noawait /usr/bin/python3.9 | ||
Comment on lines
+6
to
+7
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. hum; the fact we forgot to do this sooner isn't good. I wonder if we should add a comment somewhere? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. (or build this dynamically?) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I would say we could generate this based on our Trove classifiers, but... 😉 |
||
|
||
# Also provide a symbolic trigger for all dh-virtualenv packages | ||
interest dh-virtualenv-interpreter-update |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ Description=Synapse Matrix homeserver | |
Type=notify | ||
User=matrix-synapse | ||
WorkingDirectory=/var/lib/matrix-synapse | ||
EnvironmentFile=/etc/default/matrix-synapse | ||
EnvironmentFile=-/etc/default/matrix-synapse | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. what's the logic behind removing it feels odd to remove the file but leave this in place. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We still suggest people use it in our docs, so we might as well still honor it if present. Plus, existing installations may depend on its behavior. Systemd upstream considers There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. mostly I feel like if we're going to leave the I don't feel too strongly about it though. |
||
ExecStartPre=/opt/venvs/matrix-synapse/bin/python -m synapse.app.homeserver --config-path=/etc/matrix-synapse/homeserver.yaml --config-path=/etc/matrix-synapse/conf.d/ --generate-keys | ||
ExecStart=/opt/venvs/matrix-synapse/bin/python -m synapse.app.homeserver --config-path=/etc/matrix-synapse/homeserver.yaml --config-path=/etc/matrix-synapse/conf.d/ | ||
ExecReload=/bin/kill -HUP $MAINPID | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,14 +6,12 @@ | |
# assume we only have one package | ||
PACKAGE_NAME:=`dh_listpackages` | ||
|
||
override_dh_systemd_enable: | ||
dh_systemd_enable --name=matrix-synapse | ||
override_dh_installsystemd: | ||
dh_installsystemd --name=matrix-synapse | ||
|
||
override_dh_installinit: | ||
dh_installinit --name=matrix-synapse | ||
|
||
# we don't really want to strip the symbols from our object files. | ||
# we don't really want to strip or compress the symbols from our object files. | ||
override_dh_strip: | ||
override_dh_dwz: | ||
|
||
# dh_shlibdeps calls dpkg-shlibdeps, which finds all the binary files | ||
# (executables and shared libs) in the package, and looks for the shared | ||
|
@@ -51,7 +49,7 @@ override_dh_shlibdeps: | |
override_dh_virtualenv: | ||
./debian/build_virtualenv | ||
|
||
# We are restricted to compat level 9 (because xenial), so have to | ||
# enable the systemd bits manually. | ||
# TODO: Experiment with --buildsystem=dh_virtualenv | ||
# https://dh-virtualenv.readthedocs.io/en/latest/usage.html#experimental-buildsystem-support | ||
%: | ||
dh $@ --with python-virtualenv --with systemd | ||
dh $@ --with python-virtualenv --buildsystem=pybuild | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. note to my future self: previously we used the |
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this needs moving to the right version, since the world has moved on in the last couple of months