Merge ~rafaeldtinoco/ubuntu/+source/ebtables:merge into ubuntu/+source/ebtables:debian/sid

Proposed by Rafael David Tinoco
Status: Rejected
Rejected by: Christian Ehrhardt 
Proposed branch: ~rafaeldtinoco/ubuntu/+source/ebtables:merge
Merge into: ubuntu/+source/ebtables:debian/sid
Diff against target: 236 lines (+139/-2)
4 files modified
debian/changelog (+128/-0)
debian/control (+2/-1)
debian/ebtables.prerm (+5/-0)
debian/examples/sysvinit/ebtables.init (+4/-1)
Reviewer Review Type Date Requested Status
Rafael David Tinoco (community) Disapprove
Christian Ehrhardt  (community) Disapprove
Ubuntu Server Developers Pending
Ubuntu Core Development Team Pending
Review via email: mp+370200@code.launchpad.net

Commit message

* Merge with Debian unstable (LP: #1836770). Remaining changes:

    - Never return failure during ebtables.init stop(), it can cause
      errors during package upgrade
    - Add version number check to prerm script, to only ignore
      failed upgrade for older versions instead of all versions.

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

No full review, but something to note on the *tables context.
iptables | 1.8.3-2 | unstable
iptables | 1.6.1-2ubuntu3 | eoan
And that usually was a task of the security Team and I pinged them a while ago, but got no feedback so far.

review: Approve
Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

On the merge itself it seems this is a straight forward merge only picking up Debian packaging changes.
- all delta is retained and still applies - ok
- changelog - ok
- Debian changes - ok
  - the removal of init/service was interestign but I think it is safe
- testing - I found no issues when playing (just a bit) with the PPA

Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

One thing, it seems that the delta that we have was never reported to Debian.
So this will forever be a merge.
You could talk to ddstreet who added them for #1774120 if he would consider prepping and reporting them to Debian as well.
An alternative to that is if we can identify a clear "end" of the need to carry the Delta.
In that case mark them as then by adding at least in the commits something like: "can be dropped >20.04". This might happen if no affected upgrade path is left anymore.

Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

+1 for this MP
Once you are also happy with testing let us know so we can tag and sponsor it accordingly

review: Approve
Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

We are so far after FF that this won't happen anymore I think.
But that should be ok, marking the MP as Rejected to get out of the overviews.

review: Disapprove
Revision history for this message
Rafael David Tinoco (rafaeldtinoco) wrote :

Yep, I vote to deal with this with the next ebtables merge (w/ Debian since Upstream is dead, right ?).

For the SRUs (done by ddstreet), they've merged dpkg-compare tests to return the correct exit code for upgrade paths:

+ # Ignore failed prerm on old versions; see LP: #1774120
+ dpkg --compare-versions "$2" lt "2.0.10.4-3.5ubuntu5" && exit 0

And its better for us to check this next time we do merges, if they exist, to ebtables. This also answers your comment on 2019-07-17 about delta being taken to Debian (does not make sense for this case).

review: Disapprove

Unmerged commits

d576ab5... by Rafael David Tinoco

update-maintainer

0d87799... by Rafael David Tinoco

reconstruct-changelog

81700f8... by Rafael David Tinoco

merge-changelogs

ff04d78... by Karl Stenerud

  * Add version number check to prerm script, to only ignore
    failed upgrade for older versions instead of all versions.

934e824... by Karl Stenerud

  * Never return failure during ebtables.init stop(), it can cause
    errors during package upgrade

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 ae98152..0bb46d7 100644
3--- a/debian/changelog
4+++ b/debian/changelog
5@@ -1,3 +1,13 @@
6+ebtables (2.0.10.4+snapshot20181205-3ubuntu1) eoan; urgency=medium
7+
8+ * Merge with Debian unstable (LP: #1836770). Remaining changes:
9+ - Never return failure during ebtables.init stop(), it can cause
10+ errors during package upgrade
11+ - Add version number check to prerm script, to only ignore
12+ failed upgrade for older versions instead of all versions.
13+
14+ -- Rafael David Tinoco <rafaeldtinoco@ubuntu.com> Tue, 16 Jul 2019 15:50:48 +0000
15+
16 ebtables (2.0.10.4+snapshot20181205-3) unstable; urgency=medium
17
18 [ Arturo Borrero Gonzalez ]
19@@ -32,6 +42,24 @@ ebtables (2.0.10.4+snapshot20181205-2) unstable; urgency=medium
20
21 -- Alberto Molina Coballes <alb.molina@gmail.com> Sat, 02 Feb 2019 19:31:28 +0000
22
23+ebtables (2.0.10.4+snapshot20181205-1ubuntu1) disco; urgency=medium
24+
25+ * Merge with Debian unstable (LP: #1812847). Remaining changes:
26+ - Never return failure during ebtables.init stop(), it can cause
27+ errors during package upgrade
28+ - Add version number check to prerm script, to only ignore
29+ failed upgrade for older versions instead of all versions.
30+ * Dropped changes:
31+ - Link ebtables with --no-as-needed and adjust the link order to fix
32+ crash when running ebtables.
33+ [fixed upstream commit 131920089dc21db43e7dba7104c15889701230ea]
34+ - Use real locking in ebtables
35+ [fixed upstream commit 6a826591878db3fa9e2a94b87a3d5edd8e0fc442]
36+ - Fix check of fcntl errno value, to allow lockfile contention to work.
37+ [fixed upstream commit 6a826591878db3fa9e2a94b87a3d5edd8e0fc442]
38+
39+ -- Karl Stenerud <kstenerud@gmail.com> Thu, 24 Jan 2019 11:28:57 +0100
40+
41 ebtables (2.0.10.4+snapshot20181205-1) unstable; urgency=medium
42
43 * [6222d5e] New upstream version 2.0.10.4+snapshot20181205
44@@ -76,6 +104,45 @@ ebtables (2.0.10.4-4) unstable; urgency=medium
45
46 -- Alberto Molina Coballes <alb.molina@gmail.com> Thu, 26 Apr 2018 09:12:22 +0000
47
48+ebtables (2.0.10.4-3.5ubuntu5) cosmic; urgency=medium
49+
50+ * Add version number check to prerm script, to only ignore
51+ failed upgrade for older versions instead of all versions.
52+
53+ -- Dan Streetman <ddstreet@canonical.com> Mon, 11 Jun 2018 15:56:23 -0400
54+
55+ebtables (2.0.10.4-3.5ubuntu4) cosmic; urgency=medium
56+
57+ * Never return failure during ebtables.init stop(), it can cause
58+ errors during package upgrade (LP: #1774120)
59+
60+ -- Dan Streetman <ddstreet@canonical.com> Thu, 31 May 2018 08:46:43 -0400
61+
62+ebtables (2.0.10.4-3.5ubuntu3) cosmic; urgency=medium
63+
64+ * Fix check of fcntl errno value, to allow lockfile contention to work.
65+ (LP: #1772456)
66+
67+ -- Dan Streetman <ddstreet@canonical.com> Mon, 21 May 2018 13:20:15 -0400
68+
69+ebtables (2.0.10.4-3.5ubuntu2) artful; urgency=medium
70+
71+ * Use real locking in ebtables (LP: #1645324)
72+ - Prior use of locking by file exclusive access is inadequate
73+ because if ebtables crashes or is killed it will leave a
74+ stale lock file behind which then blocks new ebtables from
75+ running.
76+
77+ -- Dragan Stancevic <dragan.stancevic@canonical.com> Tue, 18 Apr 2017 17:32:38 -0500
78+
79+ebtables (2.0.10.4-3.5ubuntu1) yakkety; urgency=medium
80+
81+ * Merge with Debian unstable. Remaining changes:
82+ - Link ebtables with --no-as-needed and adjust the link order to fix
83+ crash when running ebtables. (LP: #899315)
84+
85+ -- Martin Pitt <martin.pitt@ubuntu.com> Thu, 28 Jul 2016 14:38:18 +0200
86+
87 ebtables (2.0.10.4-3.5) unstable; urgency=medium
88
89 * Non-maintainer upload.
90@@ -86,6 +153,14 @@ ebtables (2.0.10.4-3.5) unstable; urgency=medium
91
92 -- Andreas Henriksson <andreas@fatal.se> Wed, 25 May 2016 20:34:14 +0200
93
94+ebtables (2.0.10.4-3.4ubuntu1) xenial; urgency=medium
95+
96+ * Merge with Debian unstable (LP: #1556300). Remaining changes:
97+ - Link ebtables with --no-as-needed and adjust the link order to fix
98+ crash when running ebtables.
99+
100+ -- Nishanth Aravamudan <nish.aravamudan@canonical.com> Fri, 11 Mar 2016 14:12:56 -0800
101+
102 ebtables (2.0.10.4-3.4) unstable; urgency=medium
103
104 * Non-maintainer upload.
105@@ -123,6 +198,14 @@ ebtables (2.0.10.4-3.1) unstable; urgency=medium
106
107 -- Laurent Bigonville <bigon@debian.org> Fri, 05 Feb 2016 02:11:19 +0100
108
109+ebtables (2.0.10.4-3ubuntu1) trusty; urgency=low
110+
111+ * Merge with Debian. Remaining changes:
112+ - Link ebtables with --no-as-needed and adjust the link order to fix
113+ crash when running ebtables.
114+
115+ -- Iain Lane <iain.lane@canonical.com> Fri, 22 Nov 2013 11:42:46 +0000
116+
117 ebtables (2.0.10.4-3) unstable; urgency=low
118
119 * packaging update:
120@@ -130,6 +213,20 @@ ebtables (2.0.10.4-3) unstable; urgency=low
121
122 -- William Dauchy <wdauchy@gmail.com> Mon, 06 May 2013 14:06:02 +0000
123
124+ebtables (2.0.10.4-2ubuntu2) saucy; urgency=low
125+
126+ * Add trailing "." to update-rc.d arguments (LP: #1176436)
127+
128+ -- Iain Lane <iain.lane@canonical.com> Sun, 05 May 2013 20:14:40 +0100
129+
130+ebtables (2.0.10.4-2ubuntu1) saucy; urgency=low
131+
132+ * Resynchronise with Debian. Remaining changes:
133+ - Link ebtables with --no-as-needed and adjust the link order to fix
134+ crash when running ebtables.
135+
136+ -- Colin Watson <cjwatson@ubuntu.com> Sat, 04 May 2013 11:06:40 -0700
137+
138 ebtables (2.0.10.4-2) unstable; urgency=low
139
140 * packaging update:
141@@ -140,6 +237,14 @@ ebtables (2.0.10.4-2) unstable; urgency=low
142
143 -- William Dauchy <wdauchy@gmail.com> Tue, 20 Mar 2013 15:46:02 +0000
144
145+ebtables (2.0.10.4-1ubuntu1) raring; urgency=low
146+
147+ * Resynchronise with Debian. Remaining changes:
148+ - Link ebtables with --no-as-needed and adjust the link order to fix
149+ crash when running ebtables.
150+
151+ -- Colin Watson <cjwatson@ubuntu.com> Mon, 26 Nov 2012 17:42:18 +0000
152+
153 ebtables (2.0.10.4-1) unstable; urgency=low
154
155 * New upstream release
156@@ -169,6 +274,29 @@ ebtables (2.0.9.2-2.1) unstable; urgency=high
157
158 -- Cyril Brulebois <kibi@debian.org> Sat, 03 Mar 2012 15:24:02 +0000
159
160+ebtables (2.0.9.2-2ubuntu3) quantal; urgency=low
161+
162+ * Rebuild for new armel compiler default of ARMv5t.
163+
164+ -- Colin Watson <cjwatson@ubuntu.com> Mon, 01 Oct 2012 21:01:35 +0100
165+
166+ebtables (2.0.9.2-2ubuntu2) precise; urgency=low
167+
168+ * Add patch 05link_with_no-as-needed.patch to link ebtables with
169+ --no-as-needed and adjust the link order to fix crash when running
170+ ebtables (LP: #899315)
171+ * debian/rules: add -g option to DEBCFLAGS, so symbols can be extracted
172+ into an ebtables-dbgsym package
173+
174+ -- Albert Damen <albrt@gmx.net> Sun, 04 Dec 2011 21:19:58 +0100
175+
176+ebtables (2.0.9.2-2ubuntu1) precise; urgency=low
177+
178+ * Add 04define__aligned_u64.patch to define __aligned_u64
179+ before including linux/if_packet.h, resolving FTBFS.
180+
181+ -- Adam Conrad <adconrad@ubuntu.com> Fri, 02 Dec 2011 00:25:41 -0700
182+
183 ebtables (2.0.9.2-2) unstable; urgency=low
184
185 * Add a lintian override concerning the usage of -rpath that got lost
186diff --git a/debian/control b/debian/control
187index 77e551d..f76b8f1 100644
188--- a/debian/control
189+++ b/debian/control
190@@ -1,7 +1,8 @@
191 Source: ebtables
192 Section: net
193 Priority: optional
194-Maintainer: Debian Netfilter Packaging Team <pkg-netfilter-team@lists.alioth.debian.org>
195+Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
196+XSBC-Original-Maintainer: Debian Netfilter Packaging Team <pkg-netfilter-team@lists.alioth.debian.org>
197 Uploaders: Alberto Molina Coballes <alb.molina@gmail.com>
198 Standards-Version: 4.3.0
199 Build-Depends: debhelper (>= 11)
200diff --git a/debian/ebtables.prerm b/debian/ebtables.prerm
201index 1e4b23f..61b99b8 100644
202--- a/debian/ebtables.prerm
203+++ b/debian/ebtables.prerm
204@@ -17,4 +17,9 @@ if [ "$1" = "remove" ] ; then
205 fi
206 fi
207
208+if [ "$1" = "failed-upgrade" ]; then
209+ # Ignore failed prerm on old versions; see LP: #1774120
210+ dpkg --compare-versions "$2" lt "2.0.10.4-3.5ubuntu5" && exit 0
211+fi
212+
213 #DEBHELPER#
214diff --git a/debian/examples/sysvinit/ebtables.init b/debian/examples/sysvinit/ebtables.init
215index 06bf57f..b800521 100644
216--- a/debian/examples/sysvinit/ebtables.init
217+++ b/debian/examples/sysvinit/ebtables.init
218@@ -49,7 +49,7 @@ function get_supported_tables() {
219 /sbin/ebtables -t filter -L 2>&1 1>/dev/null | grep -q permission
220 if [ $? -eq 0 ]; then
221 log_failure_msg "Error: insufficient privileges to access the ebtables rulesets."
222- exit 1
223+ return
224 fi
225 for table in filter nat broute; do
226 /sbin/ebtables -t $table -L &> /dev/null
227@@ -140,6 +140,9 @@ case "$1" in
228 stop)
229 [ "$EBTABLES_SAVE_ON_STOP" = "yes" ] && save
230 clear
231+ # Never return failure for stop; it's not helpful, and causes problems
232+ # in some cases during pkg upgrade, e.g. LP: #1774120
233+ RETVAL=0
234 ;;
235 restart|reload|force-reload)
236 [ "$EBTABLES_SAVE_ON_RESTART" = "yes" ] && save

Subscribers

People subscribed via source and target branches