Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 278951 - dev-lang/mono FEATURES misuse (test)
Summary: dev-lang/mono FEATURES misuse (test)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High QA (vote)
Assignee: dotnet project
URL:
Whiteboard:
Keywords: QAcanfix
Depends on:
Blocks: 174335
  Show dependency tree
 
Reported: 2009-07-24 18:51 UTC by Thilo Bangert (RETIRED) (RETIRED)
Modified: 2010-10-14 09:45 UTC (History)
0 users

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 Thilo Bangert (RETIRED) (RETIRED) gentoo-dev 2009-07-24 18:51:04 UTC
The above package has been found to use FEATURES in at least one of its ebuilds.

affected ebuilds:
mono-1.2.5.1-r1.ebuild:         hasq test $FEATURES && die "Make check failed. See above for details."
mono-1.2.5.1-r1.ebuild:         hasq test $FEATURES || eerror "Make check failed. See above for details."
mono-1.2.6-r3.ebuild:           hasq test $FEATURES && die "Make check failed. See above for details."
mono-1.2.6-r3.ebuild:           hasq test $FEATURES || eerror "Make check failed. See above for details."
mono-2.0.1-r1.ebuild:           hasq test $FEATURES && die "Make check failed. See above for details."
mono-2.0.1-r1.ebuild:           hasq test $FEATURES || eerror "Make check failed. See above for details."

If this has been fixed for more recent versions of the package, please leave this bug open until all older versions have been removed from the tree.

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
Comment 1 Pacho Ramos gentoo-dev 2010-07-03 17:00:50 UTC
Feel free to go ahead and fix them if you want :-)

Thanks
Comment 2 Alistair Bush (RETIRED) gentoo-dev 2010-10-14 09:45:54 UTC
Believe this to be fixed as the those ebuilds have been treecleaned.