Disclaimer: this bug has been filed in a semi-automated manner. When emerging the package net-nds/openldap-2.4.30, the following elog messages are displayed: * Getting started using OpenLDAP? There is some documentation available: * Gentoo Guide to OpenLDAP Authentication * (http://www.gentoo.org/doc/en/ldap-howto.xml) * --- * An example file for tuning BDB backends with openldap is * DB_CONFIG.fast.example in /usr/share/doc/openldap-2.4.30/ Such messages should only be displayed when the package is a new install. These situations can be checked in the ebuild as follows: if ! has_version 'net-nds/openldap'; then See the tracker bug 440214 for more details.
Also: - elog "Adding $(basename ${x})" + einfo "Adding $(basename ${x})" Users do not need to see this after a successful build, only during (if at all).
What if it it built with USE=minimal, and then you are rebuilding with USE=-minimal, in that case, I want to display the message still, regardless of it being previously installed.
(In reply to Robin Johnson from comment #2) > What if it it built with USE=minimal, and then you are rebuilding with > USE=-minimal, in that case, I want to display the message still, regardless > of it being previously installed. Such check is possible in pkg_preinst(). You can save result to variable and check this variable in pkg_postinst(). pkg_preinst() { ! has_version net-nds/openldap || has_version "net-nds/openldap[minimal]" OPENLDAP_PRINT_MESSAGES=$((! $?)) } pkg_postinst() { if ((${OPENLDAP_PRINT_MESSAGES})); then elog ... fi }
thanks Arfrever, implemented now, with slight tweak