Bug 280746 - sysutils/plasma5-discover: empty settings
Summary: sysutils/plasma5-discover: empty settings
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-kde (group)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-08-11 08:43 UTC by Graham Perrin
Modified: 2025-01-12 13:22 UTC (History)
2 users (show)

See Also:


Attachments
Screenshot: System Settings: Software Update (176.47 KB, image/png)
2025-01-12 13:22 UTC, Graham Perrin
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Graham Perrin 2024-08-11 08:43:02 UTC
At the Home tab: 

> Unable to load applications
> 
> Please verify Internet connectivity

At the Settings tab: nothing.

Maybe relevant, three errors when Discover starts. All the same: 

> The name org.freedesktop.PackageKit was not provided by any .service files

% pkg iinfo sysutils/plasma5-discover ; uname -aKU
plasma5-discover-5.27.11_1
FreeBSD mowa219-gjp4-zbook-freebsd 15.0-CURRENT FreeBSD 15.0-CURRENT main-n271642-aea9dba46b81 GENERIC-NODEBUG amd64 1500023 1500023
% pkg info -A plasma5-discover
plasma5-discover-5.27.11_1:
        FreeBSD_version: 1500017
        build_timestamp: 2024-04-06T11:59:38+0000
        built_by       : poudriere-git-3.4.1-1-g1e9f97d6
        cpe            : cpe:2.3:a:kde:discover:5.27.11:::::freebsd15:x64:1
        port_checkout_unclean: no
        port_git_hash  : 542e878a66e
        ports_top_checkout_unclean: no
        ports_top_git_hash: 58278ae132f
        repo_type      : binary
        repository     : FreeBSD-ports
%
Comment 1 Graham Perrin 2024-08-11 08:47:06 UTC
I guess, the Home tab issue relates to <https://lists.freebsd.org/archives/freebsd-desktop/2024-April/004257.html>: 

> … another component required to fully utilize application store apps - 
> AppStream. The work on this front is being done too, but for now you 
> won't be able to search and install packages - only update them. …
Comment 2 bsduck 2025-01-07 13:31:32 UTC
I just discovered that Discover is now usable on FreeBSD for package upgrades. However, on Plasma 5 you need to manually install ports-mgmt/packagekit for it to work. With PackageKit installed, the Settings tab isn't empty anymore but shows the enabled package repository.

So the fix is easy: just add ports-mgmt/packagekit to the dependencies of sysutils/plasma5-discover (it's already there for sysutils/plasma6-discover).

When it comes to browsing and installing applications however, it seems still not functional. The link in the previous comment mentions AppStream as the missing component - it is already installed. I noticed the existence of a related pkg plugin by Gleb Popov: ports-mgmt/pkg-appstream, so I installed and enabled it in pkg.conf but that didn't help with Discover.
Comment 3 Graham Perrin 2025-01-07 19:59:00 UTC
(In reply to bsduck from comment #2)

> add ports-mgmt/packagekit to the dependencies of sysutils/plasma5-discover

Already installed. 

grahamperrin:~ % pkg_tree -r PackageKit-Qt5
PackageKit-Qt5-1.1.2
 \__ plasma5-discover-5.27.11_1
grahamperrin:~ % 


<https://github.com/freebsd/freebsd-ports/commit/542e878a66ed0f6dd84cbba87b068e7b5a4fdcd2#diff-f6d3ebefb0b68c597ed08f0f4eeb004a6a41eca4dd08e00bc7af8a7b6aa634b2R10-R11>
Comment 4 bsduck 2025-01-08 11:37:20 UTC
(In reply to Graham Perrin from comment #3)

That's not the same package. PackageKit-Qt5 contains only the Qt bindings for PackageKit, not the actual PackageKit software. You need both.
Comment 5 commit-hook freebsd_committer freebsd_triage 2025-01-08 15:14:36 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=03e50d1a881343d0b97225c0416eff9260e22500

commit 03e50d1a881343d0b97225c0416eff9260e22500
Author:     Gleb Popov <arrowd@FreeBSD.org>
AuthorDate: 2025-01-08 07:50:08 +0000
Commit:     Gleb Popov <arrowd@FreeBSD.org>
CommitDate: 2025-01-08 15:13:34 +0000

    sysutils/plasma5-discover: Run-depend on PackageKit

    PR:             280746

 sysutils/plasma5-discover/Makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
Comment 6 Graham Perrin 2025-01-12 13:17:10 UTC
(In reply to bsduck from comment #4)

Thanks for clarifying.
Comment 7 Graham Perrin 2025-01-12 13:22:43 UTC
Created attachment 256642 [details]
Screenshot: System Settings: Software Update

Discover ▶Settings ▶ More Actions ▶ Configure Updates…

Multiple enabled repositories include the combination of 
FreeBSD-ports + FreeBSD-base, so I refrain from automated updates.