Merge ~lucaskanashiro/ubuntu/+source/postfix:xenial-lp-1881196 into ubuntu/+source/postfix:ubuntu/xenial-devel

Proposed by Lucas Kanashiro
Status: Merged
Approved by: Lucas Kanashiro
Approved revision: 82293ee3272f8cb11bcb38276166b7204e750700
Merge reported by: Lucas Kanashiro
Merged at revision: 82293ee3272f8cb11bcb38276166b7204e750700
Proposed branch: ~lucaskanashiro/ubuntu/+source/postfix:xenial-lp-1881196
Merge into: ubuntu/+source/postfix:ubuntu/xenial-devel
Diff against target: 48 lines (+26/-0)
3 files modified
debian/changelog (+6/-0)
debian/patches/fix_tls_deploy-server-cert.patch (+19/-0)
debian/patches/series (+1/-0)
Reviewer Review Type Date Requested Status
Christian Ehrhardt  (community) Approve
Canonical Server Pending
Review via email: mp+387249@code.launchpad.net

Description of the change

Fix LP #1881196 in Xenial. This is a backport of a simple upstream patch.

Here is a PPA with the proposed package:

https://launchpad.net/~lucaskanashiro/+archive/ubuntu/xenial-postfix/+packages

And the autopkgtest output:

autopkgtest [19:07:21]: @@@@@@@@@@@@@@@@@@@@ summary
postfix PASS

To post a comment you must log in.
Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

Fix is reasonable, small and seems correct.
CL entries LGTM

The one thing I have to call out is that the SRU Description still talks about the full minor release backport. Which is correct for focal, but wrong for Bionic/Xenial where you only backport one change.

Therefore you get my +1 (generally a good fix), but under the condition to add a secondary SRU template in the bug that is for B/X releases describing that situation.

review: Approve
Revision history for this message
Lucas Kanashiro (lucaskanashiro) wrote :

Thanks for the review Christian, I already fixed the bug description. It was already uploaded:

$ git push pkg upload/3.1.0-3ubuntu0.4
Enumerating objects: 16, done.
Counting objects: 100% (16/16), done.
Delta compression using up to 8 threads
Compressing objects: 100% (11/11), done.
Writing objects: 100% (11/11), 1.67 KiB | 426.00 KiB/s, done.
Total 11 (delta 7), reused 0 (delta 0)
To ssh://git.launchpad.net/~usd-import-team/ubuntu/+source/postfix
 * [new tag] upload/3.1.0-3ubuntu0.4 -> upload/3.1.0-3ubuntu0.4

$ dput ubuntu ../postfix_3.1.0-3ubuntu0.4_source.changes
Checking signature on .changes
gpg: ../postfix_3.1.0-3ubuntu0.4_source.changes: Valid signature from F823A2729883C97C
Checking signature on .dsc
gpg: ../postfix_3.1.0-3ubuntu0.4.dsc: Valid signature from F823A2729883C97C
Uploading to ubuntu (via ftp to upload.ubuntu.com):
  Uploading postfix_3.1.0-3ubuntu0.4.dsc: done.
  Uploading postfix_3.1.0-3ubuntu0.4.debian.tar.xz: done.
  Uploading postfix_3.1.0-3ubuntu0.4_source.changes: done.
Successfully uploaded packages.

Revision history for this message
Lucas Kanashiro (lucaskanashiro) wrote :

Landed in xenial-updates.

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 1327eb9..a1b901b 100644
3--- a/debian/changelog
4+++ b/debian/changelog
5@@ -1,3 +1,9 @@
6+postfix (3.1.0-3ubuntu0.4) xenial; urgency=medium
7+
8+ * d/p/fix_tls_deploy-server-cert.patch: handle missing opt arg (LP: #1881196)
9+
10+ -- Lucas Kanashiro <kanashiro@ubuntu.com> Fri, 10 Jul 2020 18:14:41 -0300
11+
12 postfix (3.1.0-3ubuntu0.3) xenial; urgency=medium
13
14 * Only run post 3.0 master.cf fixup if upgrading from version before
15diff --git a/debian/patches/fix_tls_deploy-server-cert.patch b/debian/patches/fix_tls_deploy-server-cert.patch
16new file mode 100644
17index 0000000..ad73a2a
18--- /dev/null
19+++ b/debian/patches/fix_tls_deploy-server-cert.patch
20@@ -0,0 +1,19 @@
21+Description: Fix "postfix tls deploy-server-cert"
22+ It did not handle a missing optional argument.
23+Author: Viktor Dukhovni
24+Origin: upstream, https://github.com/vdukhovni/postfix/commit/119d6abed969b1b30c62722ae31c854b5682beae#diff-1843f98f5710e97bd063d5807334442a
25+Ubuntu-Bug: LP#1881196
26+Reviewed-By: Lucas Kanashiro <kanashiro@ubuntu.com>
27+Last-Updated: 2020-07-10
28+
29+--- a/conf/postfix-tls-script
30++++ b/conf/postfix-tls-script
31+@@ -777,7 +777,7 @@
32+ deploy_server_cert() {
33+ certfile=$1; shift
34+ keyfile=$1; shift
35+- deploy=$1; shift
36++ case $# in 0) deploy=;; *) deploy=$1; shift;; esac
37+
38+ # Sets key_algo, key_param and cert_param
39+ check_key "$keyfile" || return 1
40diff --git a/debian/patches/series b/debian/patches/series
41index 41cce68..5fe6538 100644
42--- a/debian/patches/series
43+++ b/debian/patches/series
44@@ -12,3 +12,4 @@
45 40_chroot_by_default.diff
46 41_rmail.diff
47 50_LANG.diff
48+fix_tls_deploy-server-cert.patch

Subscribers

People subscribed via source and target branches