Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 668916 - kde-apps/kate USE="markdown graph" instead of postinst message
Summary: kde-apps/kate USE="markdown graph" instead of postinst message
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: Normal enhancement (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard: fixed in 18.12.0
Keywords:
: 668918 668922 668934 668936 668938 668942 (view as bug list)
Depends on:
Blocks:
 
Reported: 2018-10-18 08:17 UTC by Jaak Ristioja
Modified: 2018-12-13 22:46 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jaak Ristioja 2018-10-18 08:17:23 UTC
The functionality of ktexteditorpreview plugin can be extended with:
  kde-misc/kmarkdownwebview
  media-gfx/kgraphviewer

I'm tired of having to see and delete this postinst message every time I update KDE. Wouldn't it be possible to convert this into USE-flags which pull in the required packages as runtime dependencies?
Comment 1 Andreas Sturmlechner gentoo-dev 2018-10-18 08:30:41 UTC
Portage does not support optional runtime dependencies. Having to rebuild kate simply to gain this optional runtime dependency is unacceptable. Once a future EAPI supports this functionality we will happily migrate to it.

What exactly do you have to 'delete' there?
Comment 2 Jaak Ristioja 2018-10-18 09:09:21 UTC
(In reply to Andreas Sturmlechner from comment #1)
> What exactly do you have to 'delete' there?

Well, elog creates the respective log file in /var/log/portage/elog/ and I can read these (hopefully important) messages and delete them from inside the elogv application. For example:

# cat /var/log/portage/elog/kde-apps\:kate-18.08.2\:20181018-090315.log 
LOG: postinst
The functionality of ktexteditorpreview plugin can be extended with:
  kde-misc/kmarkdownwebview
  media-gfx/kgraphviewer

Anyway, after having read https://devmanual.gentoo.org/general-concepts/dependencies/index.html#runtime-dependencies and if I understand it correctly, these dependencies RDEPEND correctly, then it seems that these dependencies could belong to RDEPEND conditionally based on the respective USE-flags.
Comment 3 Andreas Sturmlechner gentoo-dev 2018-10-18 10:20:18 UTC
(In reply to Jaak Ristioja from comment #2)
> Anyway, after having read
> https://devmanual.gentoo.org/general-concepts/dependencies/index.
> html#runtime-dependencies and if I understand it correctly, these
> dependencies RDEPEND correctly, then it seems that these dependencies could
> belong to RDEPEND conditionally based on the respective USE-flags.

That leads to exactly what I described above. Yes, you can do that - but it means completely unnecessary rebuilds of kate solely for the purpose of getting an optional RDEPEND. We do optional RDEPENDs (without any build switches) on meta packages and python packages, where rebuild basically does not matter. Not where it wastes compile time.

Until portage supports optional runtime dependencies properly (without having to rebuild kate, in this case), we have the choice between the pkg_postinst messages or depending on it unconditionally. More people would complain about the latter case.
Comment 4 Andreas Sturmlechner gentoo-dev 2018-10-18 10:35:47 UTC
See also: https://www.gentoo.org/glep/glep-0062.html
Comment 5 Andreas Sturmlechner gentoo-dev 2018-10-18 22:21:47 UTC
Another option might be using einfo instead of elog.
Comment 6 Andreas Sturmlechner gentoo-dev 2018-10-22 14:27:36 UTC
*** Bug 668922 has been marked as a duplicate of this bug. ***
Comment 7 Andreas Sturmlechner gentoo-dev 2018-10-22 14:27:42 UTC
*** Bug 668934 has been marked as a duplicate of this bug. ***
Comment 8 Andreas Sturmlechner gentoo-dev 2018-10-22 14:27:47 UTC
*** Bug 668918 has been marked as a duplicate of this bug. ***
Comment 9 Andreas Sturmlechner gentoo-dev 2018-10-22 14:27:50 UTC
*** Bug 668942 has been marked as a duplicate of this bug. ***
Comment 10 Andreas Sturmlechner gentoo-dev 2018-10-22 14:28:15 UTC
*** Bug 668936 has been marked as a duplicate of this bug. ***
Comment 11 Andreas Sturmlechner gentoo-dev 2018-10-22 14:30:34 UTC
*** Bug 668938 has been marked as a duplicate of this bug. ***
Comment 12 Andreas Sturmlechner gentoo-dev 2018-10-22 21:27:28 UTC
We're doing nothing else than optfeature, basically, without inheriting eutils.
Comment 13 Andreas Sturmlechner gentoo-dev 2018-11-02 15:34:34 UTC
Or we could add some of these optional runtime deps to the respective parent *-meta packages.
Comment 14 Andreas Sturmlechner gentoo-dev 2018-12-13 22:46:27 UTC
Several adjustments in 18.12.x ebuilds and meta packages have been made to both reduce elog chatter and make the options more visible through USE flags.