Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 82513 - Add FEATURES, ARCH, USERLAND to USE_EXPAND
Summary: Add FEATURES, ARCH, USERLAND to USE_EXPAND
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Enhancement/Feature Requests (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
: 78898 (view as bug list)
Depends on: 122382
Blocks:
  Show dependency tree
 
Reported: 2005-02-18 17:26 UTC by Ciaran McCreesh
Modified: 2006-11-27 08:23 UTC (History)
7 users (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 Ciaran McCreesh 2005-02-18 17:26:44 UTC
Please add FEATURES, ARCH and USERLAND to USE_EXPAND so that we can sanely handle maketest-specific deps, collision-protect-specific code without nasty hasq hacks, *bsd-specific deps and so on.
Comment 1 Aaron Walker (RETIRED) gentoo-dev 2005-02-18 17:52:57 UTC
ohhh yes pretty please.
Comment 2 solar (RETIRED) gentoo-dev 2005-02-18 17:57:20 UTC
Adding this to USE_EXPAND just somehow seems wrong. 
perhaps FEATURES_EXPAND, USERLAND_EXPAND, ARCH_EXPAND? 
USE_EXPAND somehow logically implies the env variable USE=.
Comment 3 Ciaran McCreesh 2005-02-18 18:11:55 UTC
No no. USE_EXPAND means it gets expanded *into* USE.
Comment 4 Kito (RETIRED) gentoo-dev 2005-02-18 19:18:16 UTC
what Aaron said =)
Comment 5 Kito (RETIRED) gentoo-dev 2005-02-18 19:49:24 UTC
Hopefully not too OT, but how about further implementation of glep 22? 
With the latest darwin profiles, we are slowly moving towards the exact situation the author described, the jumbling of arch-kernel-userland-libc. Shortly(couple months?) as wacky as it may sound, such configurations will exist:
  
  {x86,ppc,ppc64}-{darwin,od,macos}-{bsd,darwin,gnu}-darwin

obviously no x86-macos, and the darwin libc remains constant...  I would guess *bsd would have similar configurations available at some point as well.

So all that being said, was the possibility of doing things like: use *-darwin-gnu && foo
in ebuilds ever intended?

http://www.gentoo.org/proj/en/glep/glep-0022.html
Comment 6 SpanKY gentoo-dev 2005-02-18 20:11:36 UTC
what more do you really need for GLEP 22 ?

the KEYWORD explosion feature is in portage now
Comment 7 SpanKY gentoo-dev 2005-02-18 20:11:42 UTC
*** Bug 78898 has been marked as a duplicate of this bug. ***
Comment 8 Stephen Bennett (RETIRED) gentoo-dev 2005-03-24 13:07:05 UTC
And now we find a situation where KERNEL in this would be nice too (enabling linux-kernel-specific features; can't use USERLAND since people are starting to do GNU/kFreeBSD). Any word on whether people want to implement this?
Comment 9 Marius Mauch (RETIRED) gentoo-dev 2005-03-24 13:28:36 UTC
Personally I don't like FEATURES in that list, the others I don't mind.
Comment 10 Ciaran McCreesh 2005-03-24 13:33:12 UTC
Ok, if FEATURES is removed, is there an elegant way of handling maketest-specific dependencies?
Comment 11 Diego Elio Pettenò (RETIRED) gentoo-dev 2005-04-04 06:47:09 UTC
Following spb's comment #8, a KERNEL variable (use-expanded) could be useful for non-linux systems (g/fbsd, g/kfbsd, g/osx, g/darwin, ......).

See for example dnotify on kde-base/kdelibs and smbmount in net-fs/samba.
Comment 12 Stephen Bennett (RETIRED) gentoo-dev 2005-04-05 13:36:35 UTC
And we now find ourselves wanting to switch stuff based on the libc being used. So, that makes the list ARCH, KERNEL, USERLAND, LIBC please. :)
Comment 13 Diego Elio Pettenò (RETIRED) gentoo-dev 2005-05-02 07:13:01 UTC
I think just FEATURES is missing now, hoping LIBC is not making ebuild upsets.
Comment 14 Diego Elio Pettenò (RETIRED) gentoo-dev 2005-06-09 16:51:58 UTC
I think I can see why FEATURES is needed ... someone has something to say 
about this? 
Comment 15 Lina Pezzella (RETIRED) gentoo-dev 2005-06-09 19:21:58 UTC
FEATURES includes collision-protect. Systems that are -collision-protect often have updated versions
of dependencies which makes certain patches we use for ppc-macos collision-protect systems uneeded
and more exactly non-working.

I could also see instances with future pathspec implementations where this might be desired. For 
instance,
if FEATURES contains some indicator of where portage is installing to, the behavior of things like vim
plugins might need to depend on that installation target.

As far as ppc-macos is concerned at this point, our concern is with differentiating between
 collision-protect and non-collision-protect systems. If FEATURES in USE_EXPAND is undesirable, being
able to handle deps and patches based on profile would also work, although it would not address
the second point made above.
Comment 16 Marius Mauch (RETIRED) gentoo-dev 2005-06-09 20:27:27 UTC
FEATURES are not supposed to have an effect on the package itself, just how
portage handles the package. Packages behaving differently on certain FEATURES
settings are considered broken by me. The only valid point so far that I've seen
is with additional deps for src_test(), and that will probably be handled with
just USE=test or another similar workaround.
For the same reasons the prefix stuff won't be a FEATURES setting. As for the
"depending on profile" idea, that has a completely different set of issues.
Comment 17 Diego Elio Pettenò (RETIRED) gentoo-dev 2005-06-09 20:40:41 UTC
USE="test" is still a dirth hack, that's the problem. 
One should suppose that adding FEATURES="maketest" is enough to have it  
working. 
Comment 18 Marius Mauch (RETIRED) gentoo-dev 2005-06-09 22:01:15 UTC
I meant USE=test being added by portage automatically if test is in FEATURES
(maketest is obsolete), similar to ARCH (why was there a need to add that to
USE_EXPAND btw?)
Comment 19 Diego Elio Pettenò (RETIRED) gentoo-dev 2005-06-09 22:20:05 UTC
test/maketest whatever it's called it's that the same.. 
yep probably have it "forced" by portage should be good, but in that case 
better not have it in IUSE at all, and avoid users pull it from outside. 
 
About ARCH.. I think the idea was that ARCH should be just the first part of 
the keyword (so for example x86-fbsd $ARCH == x86) but atm it's not like so 
and so ARCH doesn't need to be use-expanded. 
 
Comment 20 Donnie Berkholz (RETIRED) gentoo-dev 2005-06-09 23:18:30 UTC
(In reply to comment #16)
> FEATURES are not supposed to have an effect on the package itself, just how
> portage handles the package. Packages behaving differently on certain FEATURES
> settings are considered broken by me. The only valid point so far that I've seen
> is with additional deps for src_test(), and that will probably be handled with
> just USE=test or another similar workaround.

Xorg's another exception to this. It has custom stripping code so it checks for
nostrip.
Comment 21 Brian Harring (RETIRED) gentoo-dev 2005-06-10 00:23:13 UTC
features="selinux" is another of the special cases (look into the use flag selinux).
So... strip, selinux, and test.

What valid examples are their for other features being used as conditionals in
*depend?
Specifically, example of why it would be useful/warranted for collision-protect?
Comment 22 Diego Elio Pettenò (RETIRED) gentoo-dev 2005-06-10 11:10:29 UTC
Not sure about collision-protect: the way it's used in Gentoo/OSX is almost 
completely different from the way it's used for example in Gentoo/FreeBSD: in 
the first case is used to avoid overwriting system files, in the latter it's 
used to see which packages aren't needed or must be removed from freebsd's 
base system). 
 
Comment 23 Lance Albertson (RETIRED) gentoo-dev 2005-07-27 06:40:27 UTC
What was decided about adding test to the USE=test for test deps?
Comment 24 Carsten Lohrke (RETIRED) gentoo-dev 2005-08-10 12:19:08 UTC
I don't like the way to convert everything into use flags. Imho ARCH, mmx etc.
should not be use flags, but go in a detailed profile tree, so users just have
to switch their profile symlink to crosscompile. 
Comment 25 Ciaran McCreesh 2005-08-10 12:22:17 UTC
Carlo -- I don't think you're understanding this bug.
Comment 26 Carsten Lohrke (RETIRED) gentoo-dev 2005-08-10 12:49:50 UTC
Ciaran, I think I do. I just want to get away from use flags for processor
specifics like mmx or altivec at all. And I don't think that has something to do
with maketest.
Comment 27 SpanKY gentoo-dev 2005-08-10 13:04:21 UTC
in order to 'get away' from processor-specific USE-flags, we need a target to
'go to' ... i dont believe ive ever seen/heard a proposal that didnt involve USE
flags
Comment 28 Ciaran McCreesh 2005-08-10 13:15:42 UTC
Carlo -- this bug, as it stands, is not related to CPU flags. If you're wanting
to move CPU flag stuff into its own expanded var, the portage side of things is
already there.
Comment 29 Jason Stubbs (RETIRED) gentoo-dev 2005-10-16 08:20:28 UTC
. 
Comment 30 Michael Cummings (RETIRED) gentoo-dev 2005-11-17 03:25:18 UTC
(In reply to comment #23)
> What was decided about adding test to the USE=test for test deps?

Ditto. perl herd packages have dependencies for testing that aren't required for
either building or installing. Is there any progress on this particular iota? :)
Comment 31 Jason Stubbs (RETIRED) gentoo-dev 2006-02-10 08:29:02 UTC
Bug 122382 for the specific FEATURES="test" issue. If there are any other FEATURES="..." issues, please open individual bugs for them.
Comment 32 Steve L 2006-11-27 02:50:53 UTC
Hi

 What's going on with this bug? There's been recent discussion of the same issue on -dev ( http://comments.gmane.org/gmane.linux.gentoo.devel/44019 ) and I can't work out why it's marked fixed. Also, it's marked as dependent on 122382 which is actually a dupe of 69021, which itself hasn't been resolved.

 I don't have any solutions, sorry, I'm just trying to flag the issue in an office admin sort of way.

Cheers,
Steve.
Comment 33 Alec Warner (RETIRED) archtester gentoo-dev Security 2006-11-27 08:23:48 UTC
(In reply to comment #32)
> Hi
> 
>  What's going on with this bug? There's been recent discussion of the same
> issue on -dev ( http://comments.gmane.org/gmane.linux.gentoo.devel/44019 ) and
> I can't work out why it's marked fixed. Also, it's marked as dependent on
> 122382 which is actually a dupe of 69021, which itself hasn't been resolved.
> 
>  I don't have any solutions, sorry, I'm just trying to flag the issue in an
> office admin sort of way.
> 
> Cheers,
> Steve.
> 

Because USERLAND is USE_EXPANDED, ARCH is already EXPANDED into USE in a weird ass method, and FEATURES will be in USE over my dead body :)