Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 278745 - media-sound/line6usb FEATURES misuse (collision-protect)
Summary: media-sound/line6usb FEATURES misuse (collision-protect)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High QA (vote)
Assignee: Steve Arnold
URL:
Whiteboard:
Keywords: QAcanfix
Depends on:
Blocks: 174335
  Show dependency tree
 
Reported: 2009-07-22 19:18 UTC by Thilo Bangert (RETIRED) (RETIRED)
Modified: 2009-07-23 07:53 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 Thilo Bangert (RETIRED) (RETIRED) gentoo-dev 2009-07-22 19:18:56 UTC
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
Comment 1 Samuli Suominen (RETIRED) gentoo-dev 2009-07-22 19:24:52 UTC
there's no package called "media-sound"
Comment 2 Thilo Bangert (RETIRED) (RETIRED) gentoo-dev 2009-07-22 19:27:43 UTC
thanks
Comment 3 Steve Arnold archtester gentoo-dev 2009-07-23 02:31:39 UTC
Since the ebuild in question doesn't check either of those, is there an appropriate way to check for collision-protect or not?
Comment 4 Thilo Bangert (RETIRED) (RETIRED) gentoo-dev 2009-07-23 07:40:24 UTC
collision protection is a packagemanager feature. ebuilds should not know anything about it at all...

fix, whatever is causing the collision instead.

another, only slightly better workaround is to block on those packages, which install files of the same name. a real fix, like renaming the colliding files, would be preferred. (see also http://blog.flameeyes.eu/2008/12/28/blockers-abuse)

thanks
Comment 5 Samuli Suominen (RETIRED) gentoo-dev 2009-07-23 07:53:06 UTC
Removed.