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

Commit 9799c56

Browse files
authored
Minor cleanup to Debian packaging (#11269)
* Remove unused Vagrant scripts * Change package Architecture to any * Preinstall the wheel package when building venvs. Addresses the following warnings during Debian builds: Using legacy 'setup.py install' for jaeger-client, since package 'wheel' is not installed. Using legacy 'setup.py install' for matrix-synapse-ldap3, since package 'wheel' is not installed. Using legacy 'setup.py install' for opentracing, since package 'wheel' is not installed. Using legacy 'setup.py install' for psycopg2, since package 'wheel' is not installed. Using legacy 'setup.py install' for systemd-python, since package 'wheel' is not installed. Using legacy 'setup.py install' for pympler, since package 'wheel' is not installed. Using legacy 'setup.py install' for threadloop, since package 'wheel' is not installed. Using legacy 'setup.py install' for thrift, since package 'wheel' is not installed. * Allow /etc/default/matrix-synapse to be missing Per the systemd.exec manpage, prefixing an EnvironmentFile with "-": > indicates that if the file does not exist, it will not be read and no > error or warning message is logged. Signed-off-by: Dan Callahan <[email protected]>
1 parent 09cb441 commit 9799c56

File tree

11 files changed

+10
-53
lines changed

11 files changed

+10
-53
lines changed

changelog.d/11269.misc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Clean up trivial aspects of the Debian package build tooling.

debian/build_virtualenv

+1
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ dh_virtualenv \
4040
--upgrade-pip \
4141
--preinstall="lxml" \
4242
--preinstall="mock" \
43+
--preinstall="wheel" \
4344
--extra-pip-arg="--no-cache-dir" \
4445
--extra-pip-arg="--compile" \
4546
--extras="all,systemd,test"

debian/changelog

+4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
matrix-synapse-py3 (1.47.0+nmu1) UNRELEASED; urgency=medium
22

33
* Update scripts to pass Shellcheck lints.
4+
* Remove unused Vagrant scripts from debian/ directory.
5+
* Change package Architecture to any.
6+
* Preinstall the "wheel" package when building virtualenvs.
7+
* Do not error if /etc/default/matrix-synapse is missing.
48

59
-- root <root@cae79a6e79d7> Fri, 22 Oct 2021 22:20:31 +0000
610

debian/control

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Standards-Version: 3.9.8
1919
Homepage: https://github.com/matrix-org/synapse
2020

2121
Package: matrix-synapse-py3
22-
Architecture: amd64
22+
Architecture: any
2323
Provides: matrix-synapse
2424
Conflicts:
2525
matrix-synapse (<< 0.34.0.1-0matrix2),

debian/matrix-synapse.service

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Description=Synapse Matrix homeserver
55
Type=notify
66
User=matrix-synapse
77
WorkingDirectory=/var/lib/matrix-synapse
8-
EnvironmentFile=/etc/default/matrix-synapse
8+
EnvironmentFile=-/etc/default/matrix-synapse
99
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
1010
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/
1111
ExecReload=/bin/kill -HUP $MAINPID

debian/test/.gitignore

-2
This file was deleted.

debian/test/provision.sh

-24
This file was deleted.

debian/test/stretch/Vagrantfile

-13
This file was deleted.

debian/test/xenial/Vagrantfile

-10
This file was deleted.

docs/systemd-with-workers/system/[email protected]

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Type=notify
1515
NotifyAccess=main
1616
User=matrix-synapse
1717
WorkingDirectory=/var/lib/matrix-synapse
18-
EnvironmentFile=/etc/default/matrix-synapse
18+
EnvironmentFile=-/etc/default/matrix-synapse
1919
ExecStart=/opt/venvs/matrix-synapse/bin/python -m synapse.app.generic_worker --config-path=/etc/matrix-synapse/homeserver.yaml --config-path=/etc/matrix-synapse/conf.d/ --config-path=/etc/matrix-synapse/workers/%i.yaml
2020
ExecReload=/bin/kill -HUP $MAINPID
2121
Restart=always

docs/systemd-with-workers/system/matrix-synapse.service

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Type=notify
1010
NotifyAccess=main
1111
User=matrix-synapse
1212
WorkingDirectory=/var/lib/matrix-synapse
13-
EnvironmentFile=/etc/default/matrix-synapse
13+
EnvironmentFile=-/etc/default/matrix-synapse
1414
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
1515
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/
1616
ExecReload=/bin/kill -HUP $MAINPID

0 commit comments

Comments
 (0)