Bug 470613 - Discover's PackageKit backend barely works in Qt6
Summary: Discover's PackageKit backend barely works in Qt6
Status: RESOLVED DOWNSTREAM
Alias: None
Product: Discover
Classification: Applications
Component: PackageKit (show other bugs)
Version: master
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL: https://bugzilla.redhat.com/show_bug....
Keywords: qt6
Depends on:
Blocks:
 
Reported: 2023-06-03 21:34 UTC by Nate Graham
Modified: 2023-10-23 15:52 UTC (History)
6 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Only 3 PackageKit-provided apps (309.58 KB, image/jpeg)
2023-06-11 17:45 UTC, Nate Graham
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nate Graham 2023-06-03 21:34:12 UTC
With Discover built against Qt6, its PackageKit backend does not seem to work properly. When I run `plasma-discover --backends packagekit`, I see only 3 apps (see attached screenshot) and it never finds any updates. It is essentially non-functional.

Note: this is using AppStream and AppStreamQt 1.0 built from source, so it might be a Nate problem or an AppStream integration issue. But I'm not sure how to debug that.
Comment 1 Nate Graham 2023-06-11 17:45:54 UTC
Created attachment 159603 [details]
Only 3 PackageKit-provided apps

Oops, forgot the attachment
Comment 2 Nate Graham 2023-07-16 10:57:55 UTC
*** Bug 472058 has been marked as a duplicate of this bug. ***
Comment 3 Nate Graham 2023-10-12 20:53:21 UTC
*** Bug 475377 has been marked as a duplicate of this bug. ***
Comment 4 Harald Sitter 2023-10-23 07:01:23 UTC
If you installed appstream into your home I'm sure it lacks integration with your actual package manager meaning it likely has no data from repositories.
Comment 5 Harald Sitter 2023-10-23 07:02:45 UTC
The duplicate reports look like neon bugs btw, unstable tends to have intermittent dependency problems as things fall into place.
Comment 6 Nate Graham 2023-10-23 13:59:12 UTC
Indeed, Appstream is installed in my homedir, because Discover depends on an unreleased version so there are no distro packages (except in neon I guess).

What's needed to make this work with AppStream installed in a homedir?
Comment 7 Nate Graham 2023-10-23 15:52:34 UTC
Harald and I talked and he discovered that it is indeed a Fedora-specific problem. Submitted https://bugzilla.redhat.com/show_bug.cgi?id=2245693 for that.

I can locally fix it with `sudo ln -s /usr/share/app-info/xmls/* /var/lib/swcatalog/xml/`. Not a long-term solution, obviously. Distros need to fix this. It may affect other distros too. All of them that still use a legacy path that's dropped in AppStream 1.0, essentially.