Merge ~sergiodj/ubuntu/+source/exim4:fix-exiqgrep-syntax-error-jammy into ubuntu/+source/exim4:ubuntu/devel

Proposed by Sergio Durigan Junior
Status: Merged
Merge reported by: Sergio Durigan Junior
Merged at revision: 1315d7654736ecffde467624a3a1b59f0df0b398
Proposed branch: ~sergiodj/ubuntu/+source/exim4:fix-exiqgrep-syntax-error-jammy
Merge into: ubuntu/+source/exim4:ubuntu/devel
Diff against target: 77 lines (+55/-0)
3 files modified
debian/changelog (+8/-0)
debian/patches/lp1966923-exiqgrep-syntax-error.patch (+46/-0)
debian/patches/series (+1/-0)
Reviewer Review Type Date Requested Status
Bryce Harrington (community) Approve
Canonical Server packageset reviewers Pending
Review via email: mp+417985@code.launchpad.net

Description of the change

This MP fixes bug #1966923.

This is about a regression introduced by an upstream commit (df618101a5) which causes exiqgrep to error due to syntax errors in it. Upstream already has a patch for it; the patch is relatively trivial, although I had to edit it in order to make it successfully apply to the git tree.

Debian is also affected by this problem; I submitted the same patch to them (https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1006661).

There's a PPA with the proposed change here:

https://launchpad.net/~sergiodj/+archive/ubuntu/exim4-merge

Local autopkgtest is still happy:

autopkgtest [16:59:37]: @@@@@@@@@@@@@@@@@@@@ summary
basic PASS

I'll dispatch the autopkgtests using the PPA builds when they're published.

To post a comment you must log in.
Revision history for this message
Sergio Durigan Junior (sergiodj) wrote :
Revision history for this message
Bryce Harrington (bryce) wrote :

Looks good... however I note this patch actually makes several changes beyond just fixing the syntax error. I think you need to either simplify the patch to just the syntax fix, or revise the changelog message to indicate it's a broader fix than just a syntax error.

Specifically, I would suggest saying in the changelog entry that the patch adds a -E option to allow specifying the binary to use, and improving the validation of command line options.

Guessing the latter will be the better option, but either WFM, and feel free to upload directly once that's done.

review: Approve
Revision history for this message
Bryce Harrington (bryce) wrote :

[Sorry, I inadvertently consumed the canonical-server slot.]

Revision history for this message
Sergio Durigan Junior (sergiodj) wrote :

On Wednesday, March 30 2022, Bryce Harrington wrote:

> Looks good... however I note this patch actually makes several changes
> beyond just fixing the syntax error. I think you need to either
> simplify the patch to just the syntax fix, or revise the changelog
> message to indicate it's a broader fix than just a syntax error.

Thanks for the review, Bryce. And you're right, I agree that the patch
is doing more than fixing the syntax error.

It's a simple patch and I don't think it's worth adjusting it, so I will
go with the second option and expand the changelog entry.

> Specifically, I would suggest saying in the changelog entry that the patch adds a -E option to allow specifying the binary to use, and improving the validation of command line options.
>
> Guessing the latter will be the better option, but either WFM, and feel free to upload directly once that's done.

Thanks. Uploaded with the proposed changes:

$ dput exim4_4.95-4ubuntu2_source.changes
Trying to upload package to ubuntu
Checking signature on .changes
gpg: /home/sergio/work/exim4/exim4_4.95-4ubuntu2_source.changes: Valid signature from 106DA1C8C3CBBF14
Checking signature on .dsc
gpg: /home/sergio/work/exim4/exim4_4.95-4ubuntu2.dsc: Valid signature from 106DA1C8C3CBBF14
Uploading to ubuntu (via ftp to upload.ubuntu.com):
  Uploading exim4_4.95-4ubuntu2.dsc: done.
  Uploading exim4_4.95-4ubuntu2.debian.tar.xz: done.
  Uploading exim4_4.95-4ubuntu2_source.buildinfo: done.
  Uploading exim4_4.95-4ubuntu2_source.changes: done.
Successfully uploaded packages.

--
Sergio
GPG key ID: E92F D0B3 6B14 F1F4 D8E0 EB2F 106D A1C8 C3CB BF14

Revision history for this message
Bryce Harrington (bryce) wrote :

Btw, this looks like it's migrated, you can set it to Merged now.

 exim4 | 4.95-4ubuntu2 | jammy | source, all
 exim4 | 4.95-4ubuntu2.1 | jammy-updates | source, all
 exim4 | 4.96-3ubuntu1 | kinetic | source, all

$ ubuntu-changes exim4
exim4 (4.95-4ubuntu2) jammy; urgency=medium

  * d/p/lp1966923-exiqgrep-syntax-error.patch: Fix exiqgrep syntax error,
    improve the validation of command-line options and add a new -E option
    to allow specifying a binary to be used. (LP: #1966923)

 -- Sergio Durigan Junior <email address hidden> Wed, 30 Mar 2022 16:45:24 -0400

exim4 (4.95-4ubuntu1) jammy; urgency=medium

Revision history for this message
Sergio Durigan Junior (sergiodj) wrote :

Thanks, Bryce.

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 3b907c0..be86696 100644
3--- a/debian/changelog
4+++ b/debian/changelog
5@@ -1,3 +1,11 @@
6+exim4 (4.95-4ubuntu2) jammy; urgency=medium
7+
8+ * d/p/lp1966923-exiqgrep-syntax-error.patch: Fix exiqgrep syntax error,
9+ improve the validation of command-line options and add a new -E option
10+ to allow specifying a binary to be used. (LP: #1966923)
11+
12+ -- Sergio Durigan Junior <sergio.durigan@canonical.com> Wed, 30 Mar 2022 16:45:24 -0400
13+
14 exim4 (4.95-4ubuntu1) jammy; urgency=medium
15
16 * Merge with Debian unstable. Remaining changes:
17diff --git a/debian/patches/lp1966923-exiqgrep-syntax-error.patch b/debian/patches/lp1966923-exiqgrep-syntax-error.patch
18new file mode 100644
19index 0000000..d81f788
20--- /dev/null
21+++ b/debian/patches/lp1966923-exiqgrep-syntax-error.patch
22@@ -0,0 +1,46 @@
23+From: Jeremy Harris <jgh146exb@wizmail.org>
24+Date: Sun, 6 Mar 2022 14:25:13 +0000
25+Subject: Utilities: fix exiqgrep perl syntax, add testcases. Bug 2821
26+
27+Utilities: fix exiqgrep perl syntax, add testcases. Bug 2821
28+
29+Broken-by: df618101a5
30+
31+Origin: backport, https://git.exim.org/exim.git/commitdiff/42ed39da5af85552a35626348bb77e5576e18aa4
32+Bug: https://bugs.exim.org/show_bug.cgi?id=2821
33+Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1006661
34+Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/exim4/+bug/1966923
35+---
36+ src/exiqgrep.src | 9 ++++++---
37+ 1 file changed, 6 insertions(+), 3 deletions(-)
38+
39+diff --git a/src/exiqgrep.src b/src/exiqgrep.src
40+index 10664bb..9304160 100644
41+--- a/src/exiqgrep.src
42++++ b/src/exiqgrep.src
43+@@ -53,12 +53,14 @@ if ($ARGV[0] eq '--version') {
44+ exit 0;
45+ }
46+
47+-if (!getopts('hf:r:y:o:s:C:zxlibRcaG:',\%opt) { &help; exit;}
48+-if ($ARGV[0]) { &help; exit;}
49+-if ($opt{h}) { &help; exit;}
50++if (!getopts('hf:r:y:o:s:C:zxlibRcaG:E:',\%opt)) { &help; exit; }
51++if ($opt{h}) { &help; exit; }
52++if ($ARGV[0] || !($opt{f} || $opt{r} || $opt{s} || $opt{y} || $opt{o} || $opt{z} || $opt{x} || $opt{c}))
53++ { &help; exit(1); }
54+ if ($opt{a}) { $eargs = '-bp'; }
55+ if ($opt{C} && -e $opt{C} && -f $opt{C} && -R $opt{C}) { $eargs .= ' -C '.$opt{C}; }
56+ if ($opt{G}) { $eargs .= ' -qG'.$opt{G}; }
57++if ($opt{E}) { $exim = $opt{E}; }
58+
59+ # Read message queue output into hash
60+ &collect();
61+@@ -75,6 +77,7 @@ Exim message queue display utility.
62+
63+ -h This help message.
64+ -C Specify which exim.conf to use.
65++ -E Specify exim binary to use.
66+
67+ Selection criteria:
68+ -f <regexp> Match sender address sender (field is "< >" wrapped)
69diff --git a/debian/patches/series b/debian/patches/series
70index 59ba1c6..5103fb5 100644
71--- a/debian/patches/series
72+++ b/debian/patches/series
73@@ -15,3 +15,4 @@
74 75_55-Specific-check-for-null-pointer.patch
75 90_localscan_dlopen.dpatch
76 fix_smtp_banner.patch
77+lp1966923-exiqgrep-syntax-error.patch

Subscribers

People subscribed via source and target branches