Closed decathorpe closed 3 years ago
Looks like the Fwupd.Client.connet
method was removed from the fwupd VAPI with version 1.6.2, as a diff between 1.6.1 and 1.6.2 shows:
public bool clear_results (string device_id, GLib.Cancellable? cancellable = null) throws GLib.Error;
[Version (since = "1.5.0")]
public async bool clear_results_async (string device_id, GLib.Cancellable? cancellable) throws GLib.Error;
- [Version (since = "0.7.1")]
- public bool connect (GLib.Cancellable? cancellable = null) throws GLib.Error;
[Version (since = "1.5.0")]
public async bool connect_async (GLib.Cancellable? cancellable) throws GLib.Error;
[Version (since = "1.4.5")]
I can't tell if this is intentional or not, but there were some changes to Fwupd.Client between fwupd 1.6.1 and 1.6.2, related to making an async version of connect, or something like that, and the API of Fwupd.Client.connect changed to include an error message or something like that (I do not know GObject C well) ...
I've asked with fwupd upstream if this was an unintentional change or not ... https://github.com/fwupd/fwupd/issues/3644
Though switchboard-plug-about could start using the new async APIs instead, if it's possible to depend on fwupd >= 1.6.2?
By reading the code and commit description, it looks like we probably don't need to call connect
at all, as it looks like it's called internally in libfwupd anyway. So we can probably drop that and carry on as normal. Just needs someone to test that change 😅
Thanks for the fix! :)
Since fwupd was updated from 1.6.1 to 1.6.2, I'm getting the following error when compiling switchboard-plug-about:
These are all warnings and errors from the build log: