New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
unintentional fwupd_client_connect API change between 1.6.1 and 1.6.2? #3644
Comments
|
Would it be possible to compile 1.6.3 with just that reverted to confirm that helps? I think it will. |
|
The other thing to mention - IIRC you don't need to explicitly call connect. It's implicitly called from other functions. So making a code change to not call it should help make your application work with all fwupd versions too, whether or not this API change happens. |
|
We dropped the explicit FwupdClient.connect() as it was preventing using the GObject.connect to connect up signals as we were overriding the method. I think "connect" for an unrelated thing was a really bad choice all those years ago. I think the solution we should do is:
|
|
Oh, so dropping the explicit |
|
switchboard-plug-about has removed this API call, as it turned out it wasn't even necessary to call |
See #3644 for details. Fixes fwupd/firmware-dell#105
See #3644 for details. Fixes fwupd/firmware-dell#105
See fwupd#3644 for details. Fixes fwupd/firmware-dell#105
See fwupd#3644 for details. Fixes fwupd/firmware-dell#105
See fwupd#3644 for details. Fixes fwupd/firmware-dell#105
decathorpe commentedAug 16, 2021
Describe the bug
One of my Fedora packages fails to compile since the fwupd package was updated from version 1.6.1 to 1.6.2. I was not sure whether this is caused by an upstream issue or not, so I opened a ticket with switchboard-plug-about first:
elementary/switchboard-plug-about#224
This is the error message:
Steps to Reproduce
Digging a bit deeper (running diffoscope between fwupd-devel 1.6.1 and fwupd-devel 1.6.2), it looks like there was an unintended (?) vala API change between those versions, namely, the
Fwupd.Client.connectmethod was removed:This seems to have been an intentional change:
08caad4
Which was part of a change to provide async methods in addition to sync methods, IIUC.
(Whether switchboard-plug-about should use the new async methods in the future is probably a different issue - but ubuntu has a different update policy there, so I don't know if they could even start relying on fwupd 1.6.2+ right now.)
Expected behavior
I would expect that "patch" version bumps should not change public APIs. Though it's possible that I just don't understand Vala / GObject well enough to understand whether this is an acceptable change or not. The commit messages related to the changes causing my issue seem to indicate that this is fine.
fwupd version information
With fwupd versions until 1.6.1, my package compiled fine. With version 1.6.2, it is broken.
The text was updated successfully, but these errors were encountered: