glib2.0 (2.77.0 ) breaks Netplan build

Bug #2026826 reported by Lukas Märdian
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
GLib
Fix Released
Unknown
glib2.0 (Ubuntu)
Fix Released
High
Sebastien Bacher

Bug Description

Netplan FTBFS as of the latest release of glib2.0 (2.77.0-0ubuntu1) in mantic-proposed.

See: https://launchpad.net/ubuntu/+source/netplan.io/0.106.1-3

When I downgrade glib in my sbuild environment, everything works as expected:

$ apt install libglib2.0-0=2.76.3-1ubuntu1 libglib2.0-bin=2.76.3-1ubuntu1 libglib2.0-dev=2.76.3-1ubuntu1 libglib2.0-dev-bin=2.76.3-1ubuntu1 libglib2.0-data=2.76.3-1ubuntu1

The build also works fine in Debian unstable, which is using glib2.0 2.74.6-2.

Netplan is using plenty of GLib's keyfile functions (https://docs.gtk.org/glib/struct.KeyFile.html), which seem to producing a different output with this newer release (some strange line breaks injected in the middle of a keyfile).

Example keyfile from the test_wifis.test_wifi_wowlan test, that should be generated by Netplan and the way it fails:

Expected output:
```
[connection]
id=netplan-wl0-homenet
type=wifi
interface-name=wl0

[wifi]
wake-on-wlan=330
ssid=homenet
mode=infrastructure

[ipv4]
method=link-local

[ipv6]
method=ignore
```

Failure:
```
E AssertionError: '[con[88 chars]330\n\nssid=homenet\nmode=infrastructure\n[ipv[44 chars]re\n' != '[con[88 chars]330\nssid=homenet\nmode=infrastructure\n\n[ipv[44 chars]re\n'
E [connection]
E id=netplan-wl0-homenet
E type=wifi
E interface-name=wl0
E
E [wifi]
E wake-on-wlan=330
E -
E ssid=homenet
E mode=infrastructure
E +
E [ipv4]
E method=link-local
E
E [ipv6]
E method=ignore
```

Revision history for this message
Lukas Märdian (slyon) wrote :

I'm tagging this block-proposed to avoid this broken GLib to move into mantic-release.

tags: added: block-proposed
Lukas Märdian (slyon)
description: updated
tags: added: rls-mm-incoming
Revision history for this message
Danilo Egea Gondolfo (danilogondolfo) wrote :
Changed in glib2.0 (Ubuntu):
status: New → In Progress
importance: Undecided → High
assignee: nobody → Sebastien Bacher (seb128)
Changed in glib:
status: Unknown → New
Revision history for this message
Jeremy Bícha (jbicha) wrote :

I've cherry-picked the !3498 upstream merge proposal for this issue.

Changed in glib2.0 (Ubuntu):
status: In Progress → Fix Committed
Revision history for this message
Lukas Märdian (slyon) wrote :

Thank you! The Netplan build seems to be fixed now. Removing the tag.

tags: removed: block-proposed
Changed in glib:
status: New → Fix Released
Revision history for this message
Julian Andres Klode (juliank) wrote :

Removing rls-mm-incoming, as this seems to be done.

tags: removed: rls-mm-incoming
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package glib2.0 - 2.77.0-0ubuntu3

---------------
glib2.0 (2.77.0-0ubuntu3) mantic; urgency=medium

  * d/p/gmain-Add-a-missing-return-on-error-path-in-g_main_c.patch,
    d/p/tests-Fix-pkg-config-test-for-multiarch-binaries-on-.patch,
    d/p/Revert-build-gmodule-2.0.pc-Move-compiler-flags-from.patch:
    - cherry pick some fixes from upstream
  * debian/patches/gio-Skip-broken-tests.patch:
    - remove the workaround now that there is a fix

 -- Sebastien Bacher <email address hidden> Fri, 21 Jul 2023 12:26:30 +0200

Changed in glib2.0 (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.