Disclaimer: this bug has been filed in a semi-automated manner.
When emerging the package kde-base/kdm-4.8.5, the following elog messages are displayed:
* You have compiled 'kdm' with consolekit support. If you want to use kdm,
* make sure consolekit daemon is running and started at login time
* rc-update add consolekit default && /etc/init.d/consolekit start
Such messages should only be displayed when the package is a new install, or when the relevant USE flag is not enabled in the current installed version.
These situations can be checked in the ebuild as follows:
if use consolekit && ! has_version 'kde-base/kdm[consolekit]'; then
See the tracker bug 440214 for more details.
Already is USE-dependent, thank you very much. Fix your script, and review these before posting them.
The "if use consolekit" part is already there, yes.
But the "if ! has_version 'kde-base/kdm[consolekit]" part is not.
It's up to you to decide if you want to show this message at every update when the use flag is enabled, but this is not a bug in my script.