Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 697956 - kde-apps/kde-apps-meta - add USE=games
Summary: kde-apps/kde-apps-meta - add USE=games
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords: EBUILD
Depends on:
Blocks:
 
Reported: 2019-10-18 03:18 UTC by Adrien Tougas
Modified: 2020-04-14 12:57 UTC (History)
1 user (show)

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


Attachments
Updated ebuild adding games use flag. (kde-apps-meta-19.04.3.ebuild,810 bytes, text/plain)
2019-10-18 03:18 UTC, Adrien Tougas
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Adrien Tougas 2019-10-18 03:18:44 UTC
Created attachment 593114 [details]
Updated ebuild adding games use flag.

Added 'games' use flag to kde-apps-meta ebuild to disable the building of the kdegames-meta build. This functionality is already present in gnome-base/gnome-extra-apps ebuild.
Comment 1 tdr 2019-10-18 03:51:27 UTC
Same method could be used to toggle the dep on kdeedu-meta and/or kdenetwork-meta.
Whether for only games or for other -meta rdeps, the method is already used to toggle accessibility, pim, and sdk related meta.


diff -u from /usr/portage/kde-apps/kde-apps-meta/kde-apps-meta-19.08.2.ebuild: 

@@ -9,16 +9,16 @@
 LICENSE="metapackage"
 SLOT="5"
 KEYWORDS="~amd64 ~arm64 ~x86"
-IUSE="accessibility pim sdk"
+IUSE="accessibility edu games network pim sdk"

 RDEPEND="
 	>=kde-apps/kdeadmin-meta-${PV}:${SLOT}
 	>=kde-apps/kdecore-meta-${PV}:${SLOT}
-	>=kde-apps/kdeedu-meta-${PV}:${SLOT}
-	>=kde-apps/kdegames-meta-${PV}:${SLOT}
+	edu? >=kde-apps/kdeedu-meta-${PV}:${SLOT}
+	games? >=kde-apps/kdegames-meta-${PV}:${SLOT}
 	>=kde-apps/kdegraphics-meta-${PV}:${SLOT}
 	>=kde-apps/kdemultimedia-meta-${PV}:${SLOT}
-	>=kde-apps/kdenetwork-meta-${PV}:${SLOT}
+	network? >=kde-apps/kdenetwork-meta-${PV}:${SLOT}
 	>=kde-apps/kdeutils-meta-${PV}:${SLOT}
 	accessibility? ( >=kde-apps/kdeaccessibility-meta-${PV}:${SLOT} )
 	pim? ( >=kde-apps/kdepim-meta-${PV}:${SLOT} )
Comment 2 Andreas Sturmlechner gentoo-dev 2019-10-18 17:47:06 UTC
If you want to pick certain package groups, why not simply emerge them separately?
Comment 3 Adrien Tougas 2019-10-20 12:01:09 UTC
Why have the accessibility, pim, and sdk useflags then?
Comment 4 Andreas Sturmlechner gentoo-dev 2019-10-20 12:06:32 UTC
accessibility has a very specific purpose, sdk as well, and pim comes with a huge dependency chain. Everything else are fairly standard desktop applications.
Comment 5 Andreas Sturmlechner gentoo-dev 2019-10-20 12:09:16 UTC
Which is to say, meta packages are there to pull in everything. And every USE flag needs to come with a good reason.
Comment 6 Adrien Tougas 2019-10-23 06:29:56 UTC
This use flag is needed to stop repeated installing of removed packages.
I've installed kde-meta (it is listed in my /var/lib/portage/world file),  and I've removed all the games that were pulled in with kdegames-meta, without this use flag, if I try emerge -uvaDN @world, it pulls in all those games I've already removed. (kdegames-meta is not in my portage world file)

Adding this USE flag would also bring this behaviour inline with what is already present in the gnome meta ebuilds, furthering the use of a global definition of -games to remove games from installed environments.
Comment 7 Andreas Sturmlechner gentoo-dev 2019-10-23 09:47:56 UTC
(In reply to Adrien Tougas from comment #6)
> This use flag is needed to stop repeated installing of removed packages.
> I've installed kde-meta (it is listed in my /var/lib/portage/world file), 
> and I've removed all the games that were pulled in with kdegames-meta,
> without this use flag, if I try emerge -uvaDN @world, it pulls in all those
> games I've already removed.
You're describing how you misunderstand the package management, there's nothing for us to fix here. :)

kde-apps/kde-meta pulls in kde-plasma/plasma-meta and kde-apps/kde-apps-meta. So you simply disentangle from there.

Drop kde-meta:
# emerge -C kde-meta

Install plasma-meta for the desktop:
# emerge --noreplace plasma-meta

For a list of smaller meta packages, that kde-apps-meta comprises of, look it up in our Wiki - pick your poison and simply don't install kdegames-meta.

https://wiki.gentoo.org/wiki/KDE#Applications
Comment 8 Andreas Sturmlechner gentoo-dev 2020-04-14 12:57:50 UTC
*** Bug 717384 has been marked as a duplicate of this bug. ***