Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 949635 - kde-apps/kdenetwork-meta: Add USE flag that removes kde-apps/kdeconnect
Summary: kde-apps/kdenetwork-meta: Add USE flag that removes kde-apps/kdeconnect
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal enhancement
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-02-11 21:56 UTC by Ciprian Ciubotariu
Modified: 2025-02-12 16:34 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
kdenetwork-meta-24.08.3-r1.ebuild (kdenetwork-meta-24.08.3-r1.ebuild,1.00 KB, text/plain)
2025-02-11 21:57 UTC, Ciprian Ciubotariu
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ciprian Ciubotariu 2025-02-11 21:56:10 UTC
Lately I noticed a new port opened on my system, apparently by the kdeconnectd process.

netstat -tulpn  | grep kdeconnect
tcp6       0      0 :::1716                 :::*                    LISTEN      4497/kdeconnectd    
udp6       0      0 :::1716                 :::*                                4497/kdeconnectd    

I could not find a KDE/Plasma setting to disable this daemon, and briefly searching the web revealed various hacks, such as removing executable bit on the program file, renaming it, or renaming the dbus launcher etc.

Luckily, Gentoo has USE flags, so we can just avoid installing the corresponding package. Judging by the solutions from other distros, removing it does not break the rest of KDE/Plasma.

I have already installed the build from my portage overlay here: https://github.com/CMoH/portage-overlay/blob/master/kde-apps/kdenetwork-meta/kdenetwork-meta-24.08.3-r1.ebuild

I will attach the ebuild, and also provide the patch diff, in the hope it can be easily applied to ulterior ebuild versions. Let me know.

Reproducible: Always
Comment 1 Ciprian Ciubotariu 2025-02-11 21:57:24 UTC
Created attachment 918793 [details]
kdenetwork-meta-24.08.3-r1.ebuild

New kdenetwork-meta ebuild for stable branch
Comment 2 Ciprian Ciubotariu 2025-02-11 21:58:57 UTC
Here is the patch, demonstrating changes to the original ebuild:

--- kdenetwork-meta-24.08.3-r1.ebuild   2025-02-11 23:40:15.977735750 +0200
+++ /var/db/repos/gentoo/kde-apps/kdenetwork-meta/kdenetwork-meta-24.08.3.ebuild        2024-12-04 20:11:28.000000000 +0200
@@ -9,14 +9,12 @@
 LICENSE="metapackage"
 SLOT="0"
 KEYWORDS="amd64 arm64 ~ppc64 ~x86"
-IUSE="+bittorrent dropbox kdeconnect samba +screencast +webengine"
+IUSE="+bittorrent dropbox samba +screencast +webengine"
 
 RDEPEND="
        >=kde-apps/kget-${PV}:*
        >=kde-apps/krdc-${PV}:*
-       kdeconnect? (
-               >=kde-misc/kdeconnect-${PV}:*
-       )
+       >=kde-misc/kdeconnect-${PV}:*
        >=net-im/tokodon-${PV}
        >=net-irc/konversation-${PV}:*
        >=net-misc/kio-zeroconf-${PV}:*
Comment 3 Ciprian Ciubotariu 2025-02-11 22:00:16 UTC
Actually, I did a reverse patch, instead of old vs new - sorry about that.
Comment 4 Andreas Sturmlechner gentoo-dev 2025-02-12 16:34:50 UTC
We're not micro-managing meta ebuilds. But you can already disable kdenetwork-meta via kde-apps-meta[-network] and then only pick those applications that you need.