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
diff --git a/debian/changelog b/debian/changelog
index ae98152..0bb46d7 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,13 @@
1ebtables (2.0.10.4+snapshot20181205-3ubuntu1) eoan; urgency=medium
2
3 * Merge with Debian unstable (LP: #1836770). Remaining changes:
4 - Never return failure during ebtables.init stop(), it can cause
5 errors during package upgrade
6 - Add version number check to prerm script, to only ignore
7 failed upgrade for older versions instead of all versions.
8
9 -- Rafael David Tinoco <rafaeldtinoco@ubuntu.com> Tue, 16 Jul 2019 15:50:48 +0000
10
1ebtables (2.0.10.4+snapshot20181205-3) unstable; urgency=medium11ebtables (2.0.10.4+snapshot20181205-3) unstable; urgency=medium
212
3 [ Arturo Borrero Gonzalez ]13 [ Arturo Borrero Gonzalez ]
@@ -32,6 +42,24 @@ ebtables (2.0.10.4+snapshot20181205-2) unstable; urgency=medium
3242
33 -- Alberto Molina Coballes <alb.molina@gmail.com> Sat, 02 Feb 2019 19:31:28 +000043 -- Alberto Molina Coballes <alb.molina@gmail.com> Sat, 02 Feb 2019 19:31:28 +0000
3444
45ebtables (2.0.10.4+snapshot20181205-1ubuntu1) disco; urgency=medium
46
47 * Merge with Debian unstable (LP: #1812847). Remaining changes:
48 - Never return failure during ebtables.init stop(), it can cause
49 errors during package upgrade
50 - Add version number check to prerm script, to only ignore
51 failed upgrade for older versions instead of all versions.
52 * Dropped changes:
53 - Link ebtables with --no-as-needed and adjust the link order to fix
54 crash when running ebtables.
55 [fixed upstream commit 131920089dc21db43e7dba7104c15889701230ea]
56 - Use real locking in ebtables
57 [fixed upstream commit 6a826591878db3fa9e2a94b87a3d5edd8e0fc442]
58 - Fix check of fcntl errno value, to allow lockfile contention to work.
59 [fixed upstream commit 6a826591878db3fa9e2a94b87a3d5edd8e0fc442]
60
61 -- Karl Stenerud <kstenerud@gmail.com> Thu, 24 Jan 2019 11:28:57 +0100
62
35ebtables (2.0.10.4+snapshot20181205-1) unstable; urgency=medium63ebtables (2.0.10.4+snapshot20181205-1) unstable; urgency=medium
3664
37 * [6222d5e] New upstream version 2.0.10.4+snapshot2018120565 * [6222d5e] New upstream version 2.0.10.4+snapshot20181205
@@ -76,6 +104,45 @@ ebtables (2.0.10.4-4) unstable; urgency=medium
76104
77 -- Alberto Molina Coballes <alb.molina@gmail.com> Thu, 26 Apr 2018 09:12:22 +0000105 -- Alberto Molina Coballes <alb.molina@gmail.com> Thu, 26 Apr 2018 09:12:22 +0000
78106
107ebtables (2.0.10.4-3.5ubuntu5) cosmic; urgency=medium
108
109 * Add version number check to prerm script, to only ignore
110 failed upgrade for older versions instead of all versions.
111
112 -- Dan Streetman <ddstreet@canonical.com> Mon, 11 Jun 2018 15:56:23 -0400
113
114ebtables (2.0.10.4-3.5ubuntu4) cosmic; urgency=medium
115
116 * Never return failure during ebtables.init stop(), it can cause
117 errors during package upgrade (LP: #1774120)
118
119 -- Dan Streetman <ddstreet@canonical.com> Thu, 31 May 2018 08:46:43 -0400
120
121ebtables (2.0.10.4-3.5ubuntu3) cosmic; urgency=medium
122
123 * Fix check of fcntl errno value, to allow lockfile contention to work.
124 (LP: #1772456)
125
126 -- Dan Streetman <ddstreet@canonical.com> Mon, 21 May 2018 13:20:15 -0400
127
128ebtables (2.0.10.4-3.5ubuntu2) artful; urgency=medium
129
130 * Use real locking in ebtables (LP: #1645324)
131 - Prior use of locking by file exclusive access is inadequate
132 because if ebtables crashes or is killed it will leave a
133 stale lock file behind which then blocks new ebtables from
134 running.
135
136 -- Dragan Stancevic <dragan.stancevic@canonical.com> Tue, 18 Apr 2017 17:32:38 -0500
137
138ebtables (2.0.10.4-3.5ubuntu1) yakkety; urgency=medium
139
140 * Merge with Debian unstable. Remaining changes:
141 - Link ebtables with --no-as-needed and adjust the link order to fix
142 crash when running ebtables. (LP: #899315)
143
144 -- Martin Pitt <martin.pitt@ubuntu.com> Thu, 28 Jul 2016 14:38:18 +0200
145
79ebtables (2.0.10.4-3.5) unstable; urgency=medium146ebtables (2.0.10.4-3.5) unstable; urgency=medium
80147
81 * Non-maintainer upload.148 * Non-maintainer upload.
@@ -86,6 +153,14 @@ ebtables (2.0.10.4-3.5) unstable; urgency=medium
86153
87 -- Andreas Henriksson <andreas@fatal.se> Wed, 25 May 2016 20:34:14 +0200154 -- Andreas Henriksson <andreas@fatal.se> Wed, 25 May 2016 20:34:14 +0200
88155
156ebtables (2.0.10.4-3.4ubuntu1) xenial; urgency=medium
157
158 * Merge with Debian unstable (LP: #1556300). Remaining changes:
159 - Link ebtables with --no-as-needed and adjust the link order to fix
160 crash when running ebtables.
161
162 -- Nishanth Aravamudan <nish.aravamudan@canonical.com> Fri, 11 Mar 2016 14:12:56 -0800
163
89ebtables (2.0.10.4-3.4) unstable; urgency=medium164ebtables (2.0.10.4-3.4) unstable; urgency=medium
90165
91 * Non-maintainer upload.166 * Non-maintainer upload.
@@ -123,6 +198,14 @@ ebtables (2.0.10.4-3.1) unstable; urgency=medium
123198
124 -- Laurent Bigonville <bigon@debian.org> Fri, 05 Feb 2016 02:11:19 +0100199 -- Laurent Bigonville <bigon@debian.org> Fri, 05 Feb 2016 02:11:19 +0100
125200
201ebtables (2.0.10.4-3ubuntu1) trusty; urgency=low
202
203 * Merge with Debian. Remaining changes:
204 - Link ebtables with --no-as-needed and adjust the link order to fix
205 crash when running ebtables.
206
207 -- Iain Lane <iain.lane@canonical.com> Fri, 22 Nov 2013 11:42:46 +0000
208
126ebtables (2.0.10.4-3) unstable; urgency=low209ebtables (2.0.10.4-3) unstable; urgency=low
127210
128 * packaging update:211 * packaging update:
@@ -130,6 +213,20 @@ ebtables (2.0.10.4-3) unstable; urgency=low
130213
131 -- William Dauchy <wdauchy@gmail.com> Mon, 06 May 2013 14:06:02 +0000214 -- William Dauchy <wdauchy@gmail.com> Mon, 06 May 2013 14:06:02 +0000
132215
216ebtables (2.0.10.4-2ubuntu2) saucy; urgency=low
217
218 * Add trailing "." to update-rc.d arguments (LP: #1176436)
219
220 -- Iain Lane <iain.lane@canonical.com> Sun, 05 May 2013 20:14:40 +0100
221
222ebtables (2.0.10.4-2ubuntu1) saucy; urgency=low
223
224 * Resynchronise with Debian. Remaining changes:
225 - Link ebtables with --no-as-needed and adjust the link order to fix
226 crash when running ebtables.
227
228 -- Colin Watson <cjwatson@ubuntu.com> Sat, 04 May 2013 11:06:40 -0700
229
133ebtables (2.0.10.4-2) unstable; urgency=low230ebtables (2.0.10.4-2) unstable; urgency=low
134231
135 * packaging update:232 * packaging update:
@@ -140,6 +237,14 @@ ebtables (2.0.10.4-2) unstable; urgency=low
140237
141 -- William Dauchy <wdauchy@gmail.com> Tue, 20 Mar 2013 15:46:02 +0000238 -- William Dauchy <wdauchy@gmail.com> Tue, 20 Mar 2013 15:46:02 +0000
142239
240ebtables (2.0.10.4-1ubuntu1) raring; urgency=low
241
242 * Resynchronise with Debian. Remaining changes:
243 - Link ebtables with --no-as-needed and adjust the link order to fix
244 crash when running ebtables.
245
246 -- Colin Watson <cjwatson@ubuntu.com> Mon, 26 Nov 2012 17:42:18 +0000
247
143ebtables (2.0.10.4-1) unstable; urgency=low248ebtables (2.0.10.4-1) unstable; urgency=low
144249
145 * New upstream release250 * New upstream release
@@ -169,6 +274,29 @@ ebtables (2.0.9.2-2.1) unstable; urgency=high
169274
170 -- Cyril Brulebois <kibi@debian.org> Sat, 03 Mar 2012 15:24:02 +0000275 -- Cyril Brulebois <kibi@debian.org> Sat, 03 Mar 2012 15:24:02 +0000
171276
277ebtables (2.0.9.2-2ubuntu3) quantal; urgency=low
278
279 * Rebuild for new armel compiler default of ARMv5t.
280
281 -- Colin Watson <cjwatson@ubuntu.com> Mon, 01 Oct 2012 21:01:35 +0100
282
283ebtables (2.0.9.2-2ubuntu2) precise; urgency=low
284
285 * Add patch 05link_with_no-as-needed.patch to link ebtables with
286 --no-as-needed and adjust the link order to fix crash when running
287 ebtables (LP: #899315)
288 * debian/rules: add -g option to DEBCFLAGS, so symbols can be extracted
289 into an ebtables-dbgsym package
290
291 -- Albert Damen <albrt@gmx.net> Sun, 04 Dec 2011 21:19:58 +0100
292
293ebtables (2.0.9.2-2ubuntu1) precise; urgency=low
294
295 * Add 04define__aligned_u64.patch to define __aligned_u64
296 before including linux/if_packet.h, resolving FTBFS.
297
298 -- Adam Conrad <adconrad@ubuntu.com> Fri, 02 Dec 2011 00:25:41 -0700
299
172ebtables (2.0.9.2-2) unstable; urgency=low300ebtables (2.0.9.2-2) unstable; urgency=low
173301
174 * Add a lintian override concerning the usage of -rpath that got lost302 * Add a lintian override concerning the usage of -rpath that got lost
diff --git a/debian/control b/debian/control
index 77e551d..f76b8f1 100644
--- a/debian/control
+++ b/debian/control
@@ -1,7 +1,8 @@
1Source: ebtables1Source: ebtables
2Section: net2Section: net
3Priority: optional3Priority: optional
4Maintainer: Debian Netfilter Packaging Team <pkg-netfilter-team@lists.alioth.debian.org>4Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
5XSBC-Original-Maintainer: Debian Netfilter Packaging Team <pkg-netfilter-team@lists.alioth.debian.org>
5Uploaders: Alberto Molina Coballes <alb.molina@gmail.com>6Uploaders: Alberto Molina Coballes <alb.molina@gmail.com>
6Standards-Version: 4.3.07Standards-Version: 4.3.0
7Build-Depends: debhelper (>= 11)8Build-Depends: debhelper (>= 11)
diff --git a/debian/ebtables.prerm b/debian/ebtables.prerm
index 1e4b23f..61b99b8 100644
--- a/debian/ebtables.prerm
+++ b/debian/ebtables.prerm
@@ -17,4 +17,9 @@ if [ "$1" = "remove" ] ; then
17 fi17 fi
18fi18fi
1919
20if [ "$1" = "failed-upgrade" ]; then
21 # Ignore failed prerm on old versions; see LP: #1774120
22 dpkg --compare-versions "$2" lt "2.0.10.4-3.5ubuntu5" && exit 0
23fi
24
20#DEBHELPER#25#DEBHELPER#
diff --git a/debian/examples/sysvinit/ebtables.init b/debian/examples/sysvinit/ebtables.init
index 06bf57f..b800521 100644
--- a/debian/examples/sysvinit/ebtables.init
+++ b/debian/examples/sysvinit/ebtables.init
@@ -49,7 +49,7 @@ function get_supported_tables() {
49 /sbin/ebtables -t filter -L 2>&1 1>/dev/null | grep -q permission49 /sbin/ebtables -t filter -L 2>&1 1>/dev/null | grep -q permission
50 if [ $? -eq 0 ]; then50 if [ $? -eq 0 ]; then
51 log_failure_msg "Error: insufficient privileges to access the ebtables rulesets."51 log_failure_msg "Error: insufficient privileges to access the ebtables rulesets."
52 exit 152 return
53 fi53 fi
54 for table in filter nat broute; do54 for table in filter nat broute; do
55 /sbin/ebtables -t $table -L &> /dev/null55 /sbin/ebtables -t $table -L &> /dev/null
@@ -140,6 +140,9 @@ case "$1" in
140 stop)140 stop)
141 [ "$EBTABLES_SAVE_ON_STOP" = "yes" ] && save141 [ "$EBTABLES_SAVE_ON_STOP" = "yes" ] && save
142 clear142 clear
143 # Never return failure for stop; it's not helpful, and causes problems
144 # in some cases during pkg upgrade, e.g. LP: #1774120
145 RETVAL=0
143 ;;146 ;;
144 restart|reload|force-reload)147 restart|reload|force-reload)
145 [ "$EBTABLES_SAVE_ON_RESTART" = "yes" ] && save148 [ "$EBTABLES_SAVE_ON_RESTART" = "yes" ] && save

Subscribers

People subscribed via source and target branches