The above package has been found to use FEATURES in at least one of its ebuilds. FEATURES is a portage specific package manager configuration variable not specified in PMS and cannot reliably be used in ebuilds or eclasses. Usually there are a number of ways to achieve the same thing though. In other cases, the usage of FEATURES in the ebuild is simply invalid. If you need to check whether "test" is in ${FEATURES}, you can test if the USE flag "test" is set, since it will be activated in that case. When you check for "userpriv" in ${FEATURES} you may be able to something like the following instead: if [[ ${EUID} -eq 0 ]]; then rootstuff else nonrootstuff fi Thanks
Created attachment 218851 [details, diff] Replace FEATURES/noman by doc USE flag for dev-libs/openssl-0.9.8l-r2 ebuild Here is a patch against =dev-libs/openssl-0.9.8l-r2 to replace the test for noman in FEATURES by a doc USE flag. I chose the doc USE flags because it is described as "Adds extra documentation (API, Javadoc, etc)" but it could easily changed if needed. The doc USE flag is on by default to preserve backward compatibility for most people. To emerge =dev-libs/openssl-0.9.8l-r2 ebuild with man pages: # emerge -av1 '=dev-libs/openssl-0.9.8l-r2' To emerge =dev-libs/openssl-0.9.8l-r2 ebuild without man pages: # USE=-doc emerge -av1 '=dev-libs/openssl-0.9.8l-r2' Similar patch could be created for =dev-libs/openssl-1.0.0_beta5 but I wait for feedback on the patch for =dev-libs/openssl-0.9.8l-r2 to do the job. Any comments ?
Comment on attachment 218851 [details, diff] Replace FEATURES/noman by doc USE flag for dev-libs/openssl-0.9.8l-r2 ebuild USE=doc does not cover man pages
(In reply to comment #2) > (From update of attachment 218851 [details, diff]) > USE=doc does not cover man pages > Is there another USE flag I can use instead of doc ? Is USE=man OK ?
The ebuild should always install man pages. A user can use the following setting in /etc/make.conf to not install man pages: INSTALL_MASK="/usr/share/man"
(In reply to comment #4) > The ebuild should always install man pages. > A user can use the following setting in /etc/make.conf to not install man > pages: > > INSTALL_MASK="/usr/share/man" > I see you point. I'm going to attach a patch for the =dev-libs/openssl-0.9.8n ebuild to simply remove the test for noman in FEATURES.
Created attachment 225465 [details, diff] Remove test for noman in FEATURES
The FEATURES usage here is fine; the pkg doesn't rely on FEATURES awareness, it optionally flips off manpage generation from even occuring via it.