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

Commit 8ae0bdc

Browse files
authored
Drop xenial-support hacks (#10429)
1 parent 590cc4e commit 8ae0bdc

File tree

7 files changed

+22
-18
lines changed

7 files changed

+22
-18
lines changed

changelog.d/10429.misc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Drop backwards-compatibility code that was required to support Ubuntu Xenial.

debian/build_virtualenv

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,11 @@ esac
3333
# Use --builtin-venv to use the better `venv` module from CPython 3.4+ rather
3434
# than the 2/3 compatible `virtualenv`.
3535

36-
# Pin pip to 20.3.4 to fix breakage in 21.0 on py3.5 (xenial)
37-
3836
dh_virtualenv \
3937
--install-suffix "matrix-synapse" \
4038
--builtin-venv \
4139
--python "$SNAKE" \
42-
--upgrade-pip-to="20.3.4" \
40+
--upgrade-pip \
4341
--preinstall="lxml" \
4442
--preinstall="mock" \
4543
--extra-pip-arg="--no-cache-dir" \

debian/changelog

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
matrix-synapse-py3 (1.39.0ubuntu1) UNRELEASED; urgency=medium
2+
3+
* Drop backwards-compatibility code that was required to support Ubuntu Xenial.
4+
5+
-- Richard van der Hoff <[email protected]> Tue, 20 Jul 2021 00:10:03 +0100
6+
17
matrix-synapse-py3 (1.39.0~rc1) stable; urgency=medium
28

39
* New synapse release 1.39.0rc1.

debian/compat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
9
1+
10

debian/control

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,8 @@ Section: contrib/python
33
Priority: extra
44
Maintainer: Synapse Packaging team <[email protected]>
55
# keep this list in sync with the build dependencies in docker/Dockerfile-dhvirtualenv.
6-
# TODO: Remove the dependency on dh-systemd after dropping support for Ubuntu xenial
7-
# On all other supported releases, it's merely a transitional package which
8-
# does nothing but depends on debhelper (> 9.20160709)
96
Build-Depends:
10-
debhelper (>= 9.20160709) | dh-systemd,
7+
debhelper (>= 10),
118
dh-virtualenv (>= 1.1),
129
libsystemd-dev,
1310
libpq-dev,

debian/rules

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,5 @@ override_dh_shlibdeps:
5151
override_dh_virtualenv:
5252
./debian/build_virtualenv
5353

54-
# We are restricted to compat level 9 (because xenial), so have to
55-
# enable the systemd bits manually.
5654
%:
57-
dh $@ --with python-virtualenv --with systemd
55+
dh $@ --with python-virtualenv

docker/Dockerfile-dhvirtualenv

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,15 @@ ARG distro=""
1515
###
1616
### Stage 0: build a dh-virtualenv
1717
###
18+
19+
# This is only really needed on bionic and focal, since other distributions we
20+
# care about have a recent version of dh-virtualenv by default. Unfortunately,
21+
# it looks like focal is going to be with us for a while.
22+
#
23+
# (focal doesn't have a dh-virtualenv package at all. There is a PPA at
24+
# https://launchpad.net/~jyrki-pulliainen/+archive/ubuntu/dh-virtualenv, but
25+
# it's not obviously easier to use that than to build our own.)
26+
1827
FROM ${distro} as builder
1928

2029
RUN apt-get update -qq -o Acquire::Languages=none
@@ -27,7 +36,7 @@ RUN env DEBIAN_FRONTEND=noninteractive apt-get install \
2736
wget
2837

2938
# fetch and unpack the package
30-
# TODO: Upgrade to 1.2.2 once xenial is dropped
39+
# TODO: Upgrade to 1.2.2 once bionic is dropped (1.2.2 requires debhelper 12; bionic has only 11)
3140
RUN mkdir /dh-virtualenv
3241
RUN wget -q -O /dh-virtualenv.tar.gz https://github.com/spotify/dh-virtualenv/archive/ac6e1b1.tar.gz
3342
RUN tar -xv --strip-components=1 -C /dh-virtualenv -f /dh-virtualenv.tar.gz
@@ -59,8 +68,6 @@ ENV LANG C.UTF-8
5968
#
6069
# NB: keep this list in sync with the list of build-deps in debian/control
6170
# TODO: it would be nice to do that automatically.
62-
# TODO: Remove the dh-systemd stanza after dropping support for Ubuntu xenial
63-
# it's a transitional package on all other, more recent releases
6471
RUN apt-get update -qq -o Acquire::Languages=none \
6572
&& env DEBIAN_FRONTEND=noninteractive apt-get install \
6673
-yqq --no-install-recommends -o Dpkg::Options::=--force-unsafe-io \
@@ -76,10 +83,7 @@ RUN apt-get update -qq -o Acquire::Languages=none \
7683
python3-venv \
7784
sqlite3 \
7885
libpq-dev \
79-
xmlsec1 \
80-
&& ( env DEBIAN_FRONTEND=noninteractive apt-get install \
81-
-yqq --no-install-recommends -o Dpkg::Options::=--force-unsafe-io \
82-
dh-systemd || true )
86+
xmlsec1
8387

8488
COPY --from=builder /dh-virtualenv_1.2~dev-1_all.deb /
8589

0 commit comments

Comments
 (0)