Merge ~mirespace/ubuntu/+source/bridge-utils:merge-oracular-lp2064391 into ubuntu/+source/bridge-utils:debian/sid

Proposed by Miriam España Acebal
Status: Merged
Approved by: git-ubuntu bot
Approved revision: not available
Merge reported by: git-ubuntu bot
Merged at revision: 3a57c2454f239bdb5181605b17c4a3556b247fc8
Proposed branch: ~mirespace/ubuntu/+source/bridge-utils:merge-oracular-lp2064391
Merge into: ubuntu/+source/bridge-utils:debian/sid
Diff against target: 345 lines (+204/-5)
5 files modified
debian/bridge-network-interface.sh (+4/-1)
debian/bridge-utils-interfaces.5 (+1/-1)
debian/changelog (+187/-0)
debian/control (+2/-1)
debian/ifupdown.sh (+10/-2)
Reviewer Review Type Date Requested Status
git-ubuntu bot Approve
Andreas Hasenack Approve
Daniel Draper Pending
Canonical Server Reporter Pending
Review via email: mp+466451@code.launchpad.net

Description of the change

Hello team,

PPA for this merge is (all builds OK):
  ppa:mirespace/merge-bridge-utils-oracular-lp2064391
  https://launchpad.net/~mirespace/+archive/ubuntu/merge-bridge-utils-oracular-lp2064391

Usual tags are there:

  ❯ git tag | grep mirespace
mirespace/logical/1.7.1-1ubuntu2
mirespace/new/debian
mirespace/old/debian
mirespace/old/ubuntu
mirespace/reconstruct/1.7.1-1ubuntu2
mirespace/split/1.7.1-1ubuntu2

The package hasn't got DEP-8 tests (bug #1677763), but it has a test folder that was also not used at build time sadly. . These tests can be run manually.

It installs and uninstalls properly.

I was trying to check whether the delta we continue with is applicable, as the upstream project is kind of abandoned. This is also because in the README, you can see " This utility is DEPRECATED [...] use iproute2," and we now use netplan. So, I was unsuccessful in replicating scenarios that I found in some bugs with a netplan config (yes, I know mixing network tools is not the best approach).

Regarding that bugs, they are these: bug #1294172 (that states that was produced by the fix in bug #1003656 -one of the changes that remain in the delta we carry-), bug #1313796 .

I checked the reverse dependencies of bridge-utils, and lxc and cloud-init use it directly or indirectly:

❯ apt-cache rdepends --implicit --recurse bridge-utils | grep -E ^cloud-init
cloud-init
cloud-initramfs-growroot
cloud-initramfs-updateroot
cloud-initramfs-rescuevol
cloud-initramfs-rooturl
cloud-initramfs-dyn-netconf
cloud-initramfs-copymods
❯ apt-cache rdepends --implicit --recurse bridge-utils | grep -E ^lxc
lxc-utils
lxctl
lxc-templates
lxc
lxc1
lxc-dev
lxcfs

I wonder if we should continue to use bridge-utils... maybe the effort to move to iproute2 is huge.

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

Thanks for handling this merge!

The delta is very old, wow, one is even 12 years old dealing with ifup/down which we don't do anymore. But messing with that sounds like trouble :/ And the delta seems easy enough to carry, which is good.

The delta has good enough bug references, so we can keep track of it.

Other checks:
- tags verified
- range-diff is clean, no changes
- debian changes ok

+1

review: Approve
Revision history for this message
git-ubuntu bot (git-ubuntu-bot) wrote :

Approvers: ahasenack, mirespace
Uploaders: ahasenack
MP auto-approved

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

I forgot to sponsor this back then, sorry. Uploaded now:

Uploading bridge-utils_1.7.1-2ubuntu1.dsc
Uploading bridge-utils_1.7.1-2ubuntu1.debian.tar.xz
Uploading bridge-utils_1.7.1-2ubuntu1_source.buildinfo
Uploading bridge-utils_1.7.1-2ubuntu1_source.changes

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/debian/bridge-network-interface.sh b/debian/bridge-network-interface.sh
2index b62f333..ce13f37 100644
3--- a/debian/bridge-network-interface.sh
4+++ b/debian/bridge-network-interface.sh
5@@ -29,7 +29,10 @@ if [ -d /run/network ]; then
6 $INTERFACE|$INTERFACE.*)
7 create_vlan_port
8 if [ -d /sys/class/net/$port ]; then
9- ifup --allow auto $i
10+ if [ ! -d /sys/class/net/$i ]; then
11+ brctl addbr $i
12+ fi
13+ brctl addif $i $port && ip link set dev $port up &&
14 if [ -e /proc/sys/net/ipv6/conf/$port ]; then ip link set $port addrgenmode none;fi
15 if [ "$(ifquery "$i"|sed -n -e's/^bridge[_-]hw: //p')" = "$port" ]; then
16 ip link set dev "$i" address "$(ip link show dev "$port" 2>/dev/null|sed -n "s|.*link/ether \([^ ]*\) brd.*|\1|p")"
17diff --git a/debian/bridge-utils-interfaces.5 b/debian/bridge-utils-interfaces.5
18index f44aeb5..c16ebd1 100644
19--- a/debian/bridge-utils-interfaces.5
20+++ b/debian/bridge-utils-interfaces.5
21@@ -173,7 +173,7 @@ have a fractional part.
22 .TP
23 .BI bridge_gcint " time"
24 set garbage collection interval to \fItime\fP seconds, default is 4,
25-can have a fractional part.
26+can have a fractional part. Available on Linux kernel versions < 2.6.0.
27 .TP
28 .BI bridge_hello " time"
29 set hello time to \fItime\fP seconds, default is 2, can have a
30diff --git a/debian/changelog b/debian/changelog
31index f68a589..4eb47dd 100644
32--- a/debian/changelog
33+++ b/debian/changelog
34@@ -1,3 +1,16 @@
35+bridge-utils (1.7.1-2ubuntu1) oracular; urgency=medium
36+
37+ * Merge with Debian unstable (LP: #2064391). Remaining changes:
38+ - debian/bridge-network-interface.sh: Don't call ifup from
39+ bridge-network-interface, instead just call brctl and let
40+ udev/upstart bring the interface up (LP: 1003656).
41+ - debian/ifupdown.sh: Handle bridge params which use port and
42+ value (LP: 1576876).
43+ - debian/bridge-utils-interface.5: Update unsettable gcint value
44+ for newer kernels (LP: 1576858).
45+
46+ -- Miriam España Acebal <miriam.espana@canonical.com> Mon, 27 May 2024 17:13:05 +0200
47+
48 bridge-utils (1.7.1-2) unstable; urgency=low
49
50 [ Debian Janitor ]
51@@ -9,6 +22,26 @@ bridge-utils (1.7.1-2) unstable; urgency=low
52
53 -- Santiago García Mantiñán <manty@debian.org> Fri, 01 Mar 2024 23:09:33 +0100
54
55+bridge-utils (1.7.1-1ubuntu2) noble; urgency=high
56+
57+ * No change rebuild for 64-bit time_t and frame pointers.
58+
59+ -- Julian Andres Klode <juliank@ubuntu.com> Mon, 08 Apr 2024 17:54:51 +0200
60+
61+bridge-utils (1.7.1-1ubuntu1) lunar; urgency=medium
62+
63+ * Merge from Debian unstable, remaining changes:
64+ - Don't call ifup from bridge-network-interface, instead just call brctl
65+ and let udev/upstart bring the interface up.
66+ - debian/ifupdown.sh: Handle bridge params which use port and value
67+ - debian/bridge-utils-interface.5:
68+ + Update unsettable gcint value for newer kernels
69+ * Dropped changes, no longer applicable:
70+ - debian/bridge-utils-interface.5:
71+ + Update max, default value for path cost
72+
73+ -- Graham Inggs <ginggs@ubuntu.com> Thu, 23 Feb 2023 15:07:42 +0000
74+
75 bridge-utils (1.7.1-1) unstable; urgency=low
76
77 * New upstream version.
78@@ -32,6 +65,30 @@ bridge-utils (1.7-2) unstable; urgency=medium
79
80 -- Santiago García Mantiñán <manty@debian.org> Mon, 03 Oct 2022 23:11:46 +0200
81
82+bridge-utils (1.7-1ubuntu3) jammy; urgency=medium
83+
84+ * No-change rebuild for ppc64el baseline bump.
85+
86+ -- Łukasz 'sil2100' Zemczak <lukasz.zemczak@ubuntu.com> Wed, 23 Mar 2022 10:44:35 +0100
87+
88+bridge-utils (1.7-1ubuntu2) impish; urgency=medium
89+
90+ * No-change rebuild to build packages with zstd compression.
91+
92+ -- Matthias Klose <doko@ubuntu.com> Thu, 07 Oct 2021 12:09:41 +0200
93+
94+bridge-utils (1.7-1ubuntu1) impish; urgency=low
95+
96+ * Merge from Debian unstable. Remaining changes:
97+ - Don't call ifup from bridge-network-interface, instead just call brctl
98+ and let udev/upstart bring the interface up.
99+ - debian/ifupdown.sh: Handle bridge params which use port and value
100+ - debian/bridge-utils-interface.5:
101+ + Update max, default value for path cost
102+ + Update unsettable gcint value for newer kernels
103+
104+ -- Steve Langasek <steve.langasek@ubuntu.com> Wed, 17 Mar 2021 12:32:22 -0700
105+
106 bridge-utils (1.7-1) unstable; urgency=medium
107
108 * New upstream version.
109@@ -59,6 +116,18 @@ bridge-utils (1.6-6) unstable; urgency=medium
110
111 -- Santiago Garcia Mantinan <manty@debian.org> Tue, 16 Feb 2021 13:29:04 +0100
112
113+bridge-utils (1.6-5ubuntu1) hirsute; urgency=low
114+
115+ * Merge from Debian unstable. Remaining changes:
116+ - Don't call ifup from bridge-network-interface, instead just call brctl
117+ and let udev/upstart bring the interface up.
118+ - debian/ifupdown.sh: Handle bridge params which use port and value
119+ - debian/bridge-utils-interface.5:
120+ + Update max, default value for path cost
121+ + Update unsettable gcint value for newer kernels
122+
123+ -- Steve Langasek <steve.langasek@ubuntu.com> Fri, 29 Jan 2021 12:30:23 -0800
124+
125 bridge-utils (1.6-5) unstable; urgency=low
126
127 * Overload bridge_hw to allow do specify an interface as well as the
128@@ -75,6 +144,18 @@ bridge-utils (1.6-4) unstable; urgency=low
129
130 -- Santiago Garcia Mantinan <manty@debian.org> Thu, 21 Jan 2021 10:51:31 +0100
131
132+bridge-utils (1.6-3ubuntu1) groovy; urgency=low
133+
134+ * Merge from Debian unstable. Remaining changes:
135+ - Don't call ifup from bridge-network-interface, instead just call brctl
136+ and let udev/upstart bring the interface up.
137+ - debian/ifupdown.sh: Handle bridge params which use port and value
138+ - debian/bridge-utils-interface.5:
139+ + Update max, default value for path cost
140+ + Update unsettable gcint value for newer kernels
141+
142+ -- Steve Langasek <steve.langasek@ubuntu.com> Fri, 01 May 2020 15:37:05 -0700
143+
144 bridge-utils (1.6-3) unstable; urgency=medium
145
146 * Support VLAN aware setups where we need vlan filtering.
147@@ -84,6 +165,18 @@ bridge-utils (1.6-3) unstable; urgency=medium
148
149 -- Santiago Garcia Mantinan <manty@debian.org> Thu, 30 Apr 2020 10:06:38 +0200
150
151+bridge-utils (1.6-2ubuntu1) disco; urgency=low
152+
153+ * Merge from Debian unstable. Remaining changes:
154+ - Don't call ifup from bridge-network-interface, instead just call brctl
155+ and let udev/upstart bring the interface up.
156+ - debian/ifupdown.sh: Handle bridge params which use port and value
157+ - debian/bridge-utils-interface.5:
158+ + Update max, default value for path cost
159+ + Update unsettable gcint value for newer kernels
160+
161+ -- Steve Langasek <steve.langasek@ubuntu.com> Fri, 01 Feb 2019 13:07:54 -0800
162+
163 bridge-utils (1.6-2) unstable; urgency=medium
164
165 * Bump Standards-Version.
166@@ -101,12 +194,39 @@ bridge-utils (1.6-1) unstable; urgency=low
167
168 -- Santiago Garcia Mantinan <manty@debian.org> Tue, 15 Jan 2019 13:18:33 +0100
169
170+bridge-utils (1.5-16ubuntu1) cosmic; urgency=low
171+
172+ * Merge from Debian unstable. Remaining changes:
173+ - Don't call ifup from bridge-network-interface, instead just call brctl
174+ and let udev/upstart bring the interface up.
175+ - debian/ifupdown.sh: Handle bridge params which use port and value
176+ - debian/bridge-utils-interface.5:
177+ + Update max, default value for path cost
178+ + Update unsettable gcint value for newer kernels
179+
180+ -- Steve Langasek <steve.langasek@ubuntu.com> Tue, 15 May 2018 07:25:38 -0700
181+
182 bridge-utils (1.5-16) unstable; urgency=medium
183
184 * Don't set dev globally at bridge-utils.sh. Closes: #873086.
185
186 -- Santiago Garcia Mantinan <manty@debian.org> Sun, 08 Apr 2018 23:06:30 +0200
187
188+bridge-utils (1.5-15ubuntu1) bionic; urgency=low
189+
190+ * Merge from Debian unstable. Remaining changes:
191+ - Don't call ifup from bridge-network-interface, instead just call brctl
192+ and let udev/upstart bring the interface up.
193+ - debian/ifupdown.sh: Handle bridge params which use port and value
194+ - debian/bridge-utils-interface.5:
195+ + Update max, default value for path cost
196+ + Update unsettable gcint value for newer kernels
197+ * Dropped changes, included in Debian:
198+ - Set BRIDGE_HOTPLUG=yes as that's the behaviour we had in the past and
199+ need for the event based networking. Reverting change from 1.5-4.
200+
201+ -- Steve Langasek <steve.langasek@ubuntu.com> Fri, 16 Mar 2018 16:10:39 -0700
202+
203 bridge-utils (1.5-15) unstable; urgency=medium
204
205 * Fix substrings on interfaces. Closes: #873087.
206@@ -152,6 +272,26 @@ bridge-utils (1.5-10) unstable; urgency=low
207
208 -- Santiago Garcia Mantinan <manty@debian.org> Thu, 10 Nov 2016 22:23:49 +0100
209
210+bridge-utils (1.5-9ubuntu2) yakkety; urgency=medium
211+
212+ * debian/ifupdown.sh:
213+ - Handle bridge params which use port and value (LP: #1576876)
214+ * debian/bridge-utils-interface.5:
215+ - Update max, default value for path cost (LP: #1576870)
216+ - Update unsettable gcint value for newer kernels (LP: #1576858)
217+
218+ -- Ryan Harper <ryan.harper@canonical.com> Thu, 05 May 2016 10:38:12 -0500
219+
220+bridge-utils (1.5-9ubuntu1) wily; urgency=low
221+
222+ * Merge from Debian unstable (LP: #1487108). Remaining changes:
223+ - Set BRIDGE_HOTPLUG=yes as that's the behaviour we had in the past and
224+ need for the event based networking. Reverting change from 1.5-4.
225+ - Don't call ifup from bridge-network-interface, instead just call brctl
226+ and let udev/upstart bring the interface up.
227+
228+ -- Andy Whitcroft <apw@ubuntu.com> Thu, 20 Aug 2015 17:02:39 +0100
229+
230 bridge-utils (1.5-9) unstable; urgency=low
231
232 * Fix kernel version check and adjust it to match kernel behaviours.
233@@ -170,6 +310,18 @@ bridge-utils (1.5-8) unstable; urgency=low
234
235 -- Santiago Garcia Mantinan <manty@debian.org> Sat, 07 Dec 2013 18:55:13 +0100
236
237+bridge-utils (1.5-7ubuntu1) utopic; urgency=medium
238+
239+ * Resynchronise with Debian. Remaining changes:
240+ - Set BRIDGE_HOTPLUG=yes as that's the behaviour we had in the past and
241+ need for the event based networking. Reverting change from 1.5-4.
242+ - Don't call ifup from bridge-network-interface, instead just call brctl
243+ and let udev/upstart bring the interface up.
244+ - Use dh_strip rather than "install -s", since it supports
245+ cross-building.
246+
247+ -- Colin Watson <cjwatson@ubuntu.com> Wed, 30 Apr 2014 12:16:28 +0100
248+
249 bridge-utils (1.5-7) unstable; urgency=low
250
251 * The scripts now use iproute instead of ifconfig. Closes: #698630.
252@@ -178,6 +330,22 @@ bridge-utils (1.5-7) unstable; urgency=low
253
254 -- Santiago Garcia Mantinan <manty@debian.org> Fri, 8 Nov 2013 09:55:25 +0100
255
256+bridge-utils (1.5-6ubuntu2) trusty; urgency=medium
257+
258+ * Use dh_strip rather than "install -s", since it supports cross-building.
259+
260+ -- Colin Watson <cjwatson@ubuntu.com> Fri, 10 Jan 2014 14:42:13 +0000
261+
262+bridge-utils (1.5-6ubuntu1) raring; urgency=low
263+
264+ * Merge from Debian unstable. Remaining changes:
265+ - Set BRIDGE_HOTPLUG=yes as that's the behaviour we had in the past and
266+ need for the event based networking. Reverting change from 1.5-4.
267+ - Don't call ifup from bridge-network-interface, instead just call brctl
268+ and let udev/upstart bring the interface up.
269+
270+ -- Logan Rosen <logatronico@gmail.com> Mon, 19 Nov 2012 21:28:42 -0500
271+
272 bridge-utils (1.5-6) unstable; urgency=low
273
274 * Will rewrite post wheezy, changing to suggests. Closes: #693095.
275@@ -192,6 +360,24 @@ bridge-utils (1.5-5) unstable; urgency=low
276
277 -- Santiago Garcia Mantinan <manty@debian.org> Thu, 08 Nov 2012 19:56:15 +0100
278
279+bridge-utils (1.5-4ubuntu2) quantal; urgency=low
280+
281+ * Revert last chance as udev doesn't accept that syntax.
282+ * Set BRIDGE_HOTPLUG=yes as that's the behaviour we had in the past and
283+ need for the event based networking. Reverting change from 1.5-4.
284+ * Don't call ifup from bridge-network-interface, instead just call brctl
285+ and let udev/upstart bring the interface up (LP: #1003656)
286+
287+ -- Stéphane Graber <stgraber@ubuntu.com> Tue, 11 Sep 2012 10:45:45 -0400
288+
289+bridge-utils (1.5-4ubuntu1) quantal; urgency=low
290+
291+ * Start bridge-network-interface in the background to avoid blocking the
292+ rest of the udev events (most importantly the upstart one).
293+ (LP: #1003656)
294+
295+ -- Stéphane Graber <stgraber@ubuntu.com> Fri, 07 Sep 2012 17:35:13 -0400
296+
297 bridge-utils (1.5-4) unstable; urgency=low
298
299 * Remove mkdir and exit if /run/network doesn't exist. Thanks
300@@ -445,3 +631,4 @@ bridge-utils (0.9.2-1) unstable; urgency=low
301 Local variables:
302 mode: debian-changelog
303 End:
304+
305diff --git a/debian/control b/debian/control
306index 208c32a..2c6b8a0 100644
307--- a/debian/control
308+++ b/debian/control
309@@ -1,7 +1,8 @@
310 Source: bridge-utils
311 Section: net
312 Priority: optional
313-Maintainer: Santiago García Mantiñán <manty@debian.org>
314+Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
315+XSBC-Original-Maintainer: Santiago García Mantiñán <manty@debian.org>
316 Standards-Version: 4.6.2
317 Vcs-Git: https://salsa.debian.org/manty/bridge-utils.git
318 Vcs-Browser: https://salsa.debian.org/manty/bridge-utils
319diff --git a/debian/ifupdown.sh b/debian/ifupdown.sh
320index 31bd1b2..63277f8 100644
321--- a/debian/ifupdown.sh
322+++ b/debian/ifupdown.sh
323@@ -146,12 +146,20 @@ if [ "$MODE" = "start" ] ; then
324
325 if [ "$IF_BRIDGE_PATHCOST" ]
326 then
327- brctl setpathcost $IFACE $IF_BRIDGE_PATHCOST
328+ echo "$IF_BRIDGE_PATHCOST" | {
329+ while read PORT COST; do
330+ brctl setpathcost $IFACE $PORT $COST
331+ done
332+ }
333 fi
334
335 if [ "$IF_BRIDGE_PORTPRIO" ]
336 then
337- brctl setportprio $IFACE $IF_BRIDGE_PORTPRIO
338+ echo "$IF_BRIDGE_PORTPRIO" | {
339+ while read PORT PRIO; do
340+ brctl setportprio $IFACE $PORT $PRIO
341+ done
342+ }
343 fi
344
345 if [ "$IF_BRIDGE_STP" ]

Subscribers

People subscribed via source and target branches