* [gentoo-portage-dev] forcing a USE flag if another is on
@ 2009-12-30 14:45 Amit Dor-Shifer
2009-12-30 16:20 ` [gentoo-portage-dev] " Duncan
2009-12-31 3:34 ` [gentoo-portage-dev] " Zac Medico
0 siblings, 2 replies; 4+ messages in thread
From: Amit Dor-Shifer @ 2009-12-30 14:45 UTC (permalink / raw
To: gentoo-portage-dev
Is there some method of specifing "if USE flag X is enabled, enable USE
flag y as-well"? Something like a "conditional" use.force file in profiles/.
Amit
^ permalink raw reply [flat|nested] 4+ messages in thread
* [gentoo-portage-dev] Re: forcing a USE flag if another is on
2009-12-30 14:45 [gentoo-portage-dev] forcing a USE flag if another is on Amit Dor-Shifer
@ 2009-12-30 16:20 ` Duncan
2009-12-31 2:09 ` Brian Harring
2009-12-31 3:34 ` [gentoo-portage-dev] " Zac Medico
1 sibling, 1 reply; 4+ messages in thread
From: Duncan @ 2009-12-30 16:20 UTC (permalink / raw
To: gentoo-portage-dev
Amit Dor-Shifer posted on Wed, 30 Dec 2009 16:45:40 +0200 as excerpted:
> Is there some method of specifing "if USE flag X is enabled, enable USE
> flag y as-well"? Something like a "conditional" use.force file in
> profiles/. Amit
That should be doable globally using /etc/portage/bashrc or the like (
/etc/portage/profile/bashrc). For specific packages, it's doable using
/etc/portage/env/cat-egory/<pkgname> files, altho that's not so well
documented.
In any of those cases, syntax is standard bash, so you get the full range
of bash conditionals and scripting available to setup your environment as
complicated as you wish. (However, it is my understanding that the
/etc/portage/env files only get sourced for the bash/ebuild.sh side of
portage, not for the python side, so stuff like depchecks and features
that are dealt with on the python side, won't necessarily work as
expected. Test it if in doubt... or put it in one of the bashrcs, with a
conditional so it's only applied to the package in question.)
--
Duncan - List replies preferred. No HTML msgs.
"Every nonfree program has a lord, a master --
and if you use the program, he is your master." Richard Stallman
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-portage-dev] Re: forcing a USE flag if another is on
2009-12-30 16:20 ` [gentoo-portage-dev] " Duncan
@ 2009-12-31 2:09 ` Brian Harring
0 siblings, 0 replies; 4+ messages in thread
From: Brian Harring @ 2009-12-31 2:09 UTC (permalink / raw
To: gentoo-portage-dev
[-- Attachment #1: Type: text/plain, Size: 705 bytes --]
On Wed, Dec 30, 2009 at 04:20:45PM +0000, Duncan wrote:
> Amit Dor-Shifer posted on Wed, 30 Dec 2009 16:45:40 +0200 as excerpted:
>
> > Is there some method of specifing "if USE flag X is enabled, enable USE
> > flag y as-well"? Something like a "conditional" use.force file in
> > profiles/. Amit
>
> That should be doable globally using /etc/portage/bashrc or the like (
> /etc/portage/profile/bashrc).
It's not doable via bashrc (bashrc runs at build time)- intentionally
to block abuses of this sort I might add.
Reiterating- playing w/ USE in bash doesn't change the USE state
python/package manager side, meaning you'll not get the proper
depedencies pulled in...
~harring
[-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-portage-dev] forcing a USE flag if another is on
2009-12-30 14:45 [gentoo-portage-dev] forcing a USE flag if another is on Amit Dor-Shifer
2009-12-30 16:20 ` [gentoo-portage-dev] " Duncan
@ 2009-12-31 3:34 ` Zac Medico
1 sibling, 0 replies; 4+ messages in thread
From: Zac Medico @ 2009-12-31 3:34 UTC (permalink / raw
To: gentoo-portage-dev
On 12/30/2009 06:45 AM, Amit Dor-Shifer wrote:
> Is there some method of specifing "if USE flag X is enabled, enable USE
> flag y as-well"? Something like a "conditional" use.force file in
> profiles/.
> Amit
We plan to extend the IUSE syntax to support that in a future EAPI.
See this bug:
http://bugs.gentoo.org/show_bug.cgi?id=238887
--
Thanks,
Zac
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-12-31 3:34 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-30 14:45 [gentoo-portage-dev] forcing a USE flag if another is on Amit Dor-Shifer
2009-12-30 16:20 ` [gentoo-portage-dev] " Duncan
2009-12-31 2:09 ` Brian Harring
2009-12-31 3:34 ` [gentoo-portage-dev] " Zac Medico
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox