Bug 470613

Summary: Discover's PackageKit backend barely works in Qt6
Product: [Applications] Discover Reporter: Nate Graham <nate>
Component: PackageKitAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED DOWNSTREAM    
Severity: normal CC: aleixpol, enricobe, nicolas.fella, sitter, tomas.nackaerts, viikramsiingh07
Priority: NOR Keywords: qt6
Version First Reported In: master   
Target Milestone: ---   
Platform: Other   
OS: Linux   
URL: https://bugzilla.redhat.com/show_bug.cgi?id=2245693
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Only 3 PackageKit-provided apps

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.