Merge ~ahasenack/ubuntu/+source/haproxy:focal-haproxy-py2-explicit into ubuntu/+source/haproxy:ubuntu/devel

Proposed by Andreas Hasenack
Status: Rejected
Rejected by: Andreas Hasenack
Proposed branch: ~ahasenack/ubuntu/+source/haproxy:focal-haproxy-py2-explicit
Merge into: ubuntu/+source/haproxy:ubuntu/devel
Diff against target: 41 lines (+9/-2)
3 files modified
debian/changelog (+7/-0)
debian/control (+1/-1)
debian/rules (+1/-1)
Reviewer Review Type Date Requested Status
Andreas Hasenack Disapprove
Canonical Server packageset reviewers Pending
Review via email: mp+377643@code.launchpad.net

Description of the change

python-marko (py2) is back, so we can use it instead of the more complicated option of moving debian/dconv to python3.

PPA with test build: https://launchpad.net/~ahasenack/+archive/ubuntu/haproxy-2.0.12/

DEP8 passes:
(...)
+ echo OK: index.html downloaded via haproxy matches the source file.
+ exit 0
OK: index.html downloaded via haproxy matches the source file.
autopkgtest [11:18:52]: test proxy-localhost: -----------------------]
autopkgtest [11:18:52]: test proxy-localhost: - - - - - - - - - - results - - - - - - - - - -
proxy-localhost PASS
autopkgtest [11:18:52]: @@@@@@@@@@@@@@@@@@@@ summary
cli PASS
proxy-localhost PASS

To post a comment you must log in.
Revision history for this message
Andreas Hasenack (ahasenack) wrote :

I'm not sure if this python -> python2 change can be pushed to debian. Also, I didn't change the debian/dconv/haproxy-dconv.py shebang line to python2 because d/rules calls it explicitly with a python interpreter, which I did change to python2. But I can change it in dconv too if you prefer.

Revision history for this message
Andreas Hasenack (ahasenack) wrote :

Note that since debian/dconv isn't shipped with any package (it's just used to build documentation), there is no risk of debhelper mistakenly adding a (incorrect) python dependency.

Revision history for this message
Andreas Hasenack (ahasenack) wrote :

Oops, back pedalling on this:
<ahasenack> doko: I'm taking advantage of you reintroducing python-mako (py2), to build haproxy with it (not a runtime dep). Is that why you reintroduced it, or are other packages needing it?
<doko> ahasenack, ginggs: I just removed python2-scipy, so it's not needed for that anymore

review: Disapprove

Unmerged commits

484460d... by Andreas Hasenack

changelog

ec0721a... by Andreas Hasenack

  * d/rules, d/control: be specific about the python2 build dependency,
    now that python-marko (py2) was re-added (LP: #1858485)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/debian/changelog b/debian/changelog
2index 8edafe5..b9395b5 100644
3--- a/debian/changelog
4+++ b/debian/changelog
5@@ -1,3 +1,10 @@
6+haproxy (2.0.12-1ubuntu2) focal; urgency=medium
7+
8+ * d/rules, d/control: be specific about the python2 build dependency,
9+ now that python-marko (py2) was re-added (LP: #1858485)
10+
11+ -- Andreas Hasenack <andreas@canonical.com> Wed, 15 Jan 2020 11:19:34 -0300
12+
13 haproxy (2.0.12-1ubuntu1) focal; urgency=medium
14
15 * Merge with Debian unstable. Remaining changes:
16diff --git a/debian/control b/debian/control
17index d120f6e..4c79d68 100644
18--- a/debian/control
19+++ b/debian/control
20@@ -14,7 +14,7 @@ Build-Depends: debhelper (>= 10),
21 libsystemd-dev [linux-any],
22 python3-sphinx,
23 zlib1g-dev
24-Build-Depends-Indep: python, python-mako
25+Build-Depends-Indep: python2, python-mako
26 Homepage: http://www.haproxy.org/
27 Vcs-Git: https://salsa.debian.org/haproxy-team/haproxy.git
28 Vcs-Browser: https://salsa.debian.org/haproxy-team/haproxy
29diff --git a/debian/rules b/debian/rules
30index c7c813b..2558917 100755
31--- a/debian/rules
32+++ b/debian/rules
33@@ -59,7 +59,7 @@ override_dh_auto_build-indep:
34 # Build the HTML documentation, after patching dconv
35 patch -p1 < $(CURDIR)/debian/patches/debianize-dconv.patch
36 for doc in intro configuration management; do \
37- python -B $(CURDIR)/debian/dconv/haproxy-dconv.py \
38+ python2 -B $(CURDIR)/debian/dconv/haproxy-dconv.py \
39 -i $(CURDIR)/doc/$${doc}.txt \
40 -o $(CURDIR)/doc/$${doc}.html ;\
41 done

Subscribers

People subscribed via source and target branches