Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 172662 - PMS TODO: use conditionals in RESTRICT
Summary: PMS TODO: use conditionals in RESTRICT
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: PMS/EAPI (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: PMS/EAPI
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-29 11:09 UTC by Ciaran McCreesh
Modified: 2008-03-16 08:31 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 Ciaran McCreesh 2007-03-29 11:09:45 UTC
Discussion for PMS TODO: Should use conditionals be allowed in RESTRICT?
Comment 1 Brian Harring (RETIRED) gentoo-dev 2007-03-29 11:17:12 UTC
Better you provide a reason they shouldn't; they've been in since (roughly) .51_pre17, mainly to allow for restricting fetch, although they're also useful for the misc pkgs that need to disable tests for certain flags enabled (lapack comes to mind).
Comment 2 Ciaran McCreesh 2007-03-29 11:23:36 UTC
Well, the questions are a) whether anyone's using them, b) whether they've been supported long enough to be considered EAPI-0 material and c) whether ebuild(5) is wrong when it says they're not allowed.
Comment 3 Brian Harring (RETIRED) gentoo-dev 2007-03-29 11:39:22 UTC
svn conversion of portage mildly screwed things up, but can find reference to it from 10/05; iow, it's been out on releases for a long while.

Re: usage, atm not seeing anything, although was used at it's introduction.
Comment 4 Ciaran McCreesh 2007-04-11 20:38:51 UTC
Nothing in the tree uses them, and ebuild(5) and devmanual claim they're illegal. WONTFIXing, at least for EAPI 0.
Comment 5 SpanKY gentoo-dev 2007-04-11 20:43:21 UTC
ear mark it for EAPI-1 is better ... ferringb provided some good examples of where it'd be useful
Comment 6 Brian Harring (RETIRED) gentoo-dev 2007-04-11 21:13:06 UTC
Devmanual claiming something doesn't mean it's right (as you like to state, difference between policy and base format req).  Bluntly, devmanual not stating it is an oversight on their part- it was in prior to that doc being written.

Meanwhile, 
dev-python/numarray-1.5.2-r1 restrict="lapack? ( test )"

So yep, it's used.
Comment 7 SpanKY gentoo-dev 2007-04-13 07:42:16 UTC
in use in tree and is useful and is supported by portage -> add to EAPI-0
Comment 8 Daniel Ostrow (RETIRED) gentoo-dev 2007-04-13 23:15:23 UTC
I'd add that it is useful for one additional reason if we go the route of adding src_test as a mandatory phase. Specifically to be able to conditionally RESTRICT based on keyword, e.g. RESTRICT="ppc64? ( test )" for test suites that otherwise work but are known to fail on certain architectures (for endian or bitness reasons or whatever) where the desire or capability to fix the test suite does not exist.
Comment 9 Ciaran McCreesh 2008-03-16 08:31:43 UTC
c87c7a650743196266577f1c07acc4e669b5517e