* [gentoo-dev] upcoming problem? new-style virtuals and USE deps
@ 2010-02-22 18:46 Robin H. Johnson
2010-02-22 21:06 ` Zac Medico
0 siblings, 1 reply; 4+ messages in thread
From: Robin H. Johnson @ 2010-02-22 18:46 UTC (permalink / raw
To: gentoo-dev
So I've started to see the proliferation of manual || structures for USE deps,
where virtuals would normally be used, but it seems that either USE deps from
the virtuals aren't propogated down to the packages themselves, or developers
aren't aware of said propagation.
DEPEND="...
|| (
>=dev-db/mysql-5.0.76-r1[embedded?,-minimal]
>=dev-db/mysql-community-5.0.77-r1[embedded?,-minimal]
)
..."
dev-db/mysql-community will be dropped later this year, however before then
there will be 3 other variants added, all of which need to go into
virtual/mysql:
dev-db/mysql-cluster
dev-db/mariadb
dev-db/mysql-ourdelta
Suggestions on the actual problem source, and potential solutions welcome?
--
Robin Hugh Johnson
Gentoo Linux: Developer, Trustee & Infrastructure Lead
E-Mail : robbat2@gentoo.org
GnuPG FP : 11AC BA4F 4778 E3F6 E4ED F38E B27B 944E 3488 4E85
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-dev] upcoming problem? new-style virtuals and USE deps
2010-02-22 18:46 [gentoo-dev] upcoming problem? new-style virtuals and USE deps Robin H. Johnson
@ 2010-02-22 21:06 ` Zac Medico
2010-02-24 18:49 ` Ciaran McCreesh
0 siblings, 1 reply; 4+ messages in thread
From: Zac Medico @ 2010-02-22 21:06 UTC (permalink / raw
To: gentoo-dev
On 02/22/2010 10:46 AM, Robin H. Johnson wrote:
> So I've started to see the proliferation of manual || structures for USE deps,
> where virtuals would normally be used, but it seems that either USE deps from
> the virtuals aren't propogated down to the packages themselves, or developers
> aren't aware of said propagation.
>
> DEPEND="...
> || (
> >=dev-db/mysql-5.0.76-r1[embedded?,-minimal]
> >=dev-db/mysql-community-5.0.77-r1[embedded?,-minimal]
> )
> ..."
>
> dev-db/mysql-community will be dropped later this year, however before then
> there will be 3 other variants added, all of which need to go into
> virtual/mysql:
> dev-db/mysql-cluster
> dev-db/mariadb
> dev-db/mysql-ourdelta
>
> Suggestions on the actual problem source, and potential solutions welcome?
There was a bug in <sys-apps/portage-2.1.7 (fixed in svn r14281)
which prevented propagation of USE deps in virtuals. If you set
EAPI=3 in the ebuilds then that will ensure that users will not
encounter the bug.
--
Thanks,
Zac
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-dev] upcoming problem? new-style virtuals and USE deps
2010-02-22 21:06 ` Zac Medico
@ 2010-02-24 18:49 ` Ciaran McCreesh
2010-02-24 20:44 ` Zac Medico
0 siblings, 1 reply; 4+ messages in thread
From: Ciaran McCreesh @ 2010-02-24 18:49 UTC (permalink / raw
To: gentoo-dev
[-- Attachment #1: Type: text/plain, Size: 622 bytes --]
On Mon, 22 Feb 2010 13:06:37 -0800
Zac Medico <zmedico@gentoo.org> wrote:
> There was a bug in <sys-apps/portage-2.1.7 (fixed in svn r14281)
> which prevented propagation of USE deps in virtuals. If you set
> EAPI=3 in the ebuilds then that will ensure that users will not
> encounter the bug.
Wait, what? If you mean old-style virtuals, the position has always
been that it's illegal to dep upon them in any way other than a simple
virtual/foo with no operators. If you mean new-style virtuals, then
they should be taking care of propagating any relevant use dependencies
themselves.
--
Ciaran McCreesh
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-dev] upcoming problem? new-style virtuals and USE deps
2010-02-24 18:49 ` Ciaran McCreesh
@ 2010-02-24 20:44 ` Zac Medico
0 siblings, 0 replies; 4+ messages in thread
From: Zac Medico @ 2010-02-24 20:44 UTC (permalink / raw
To: gentoo-dev
On 02/24/2010 10:49 AM, Ciaran McCreesh wrote:
> On Mon, 22 Feb 2010 13:06:37 -0800
> Zac Medico <zmedico@gentoo.org> wrote:
>> There was a bug in <sys-apps/portage-2.1.7 (fixed in svn r14281)
>> which prevented propagation of USE deps in virtuals. If you set
>> EAPI=3 in the ebuilds then that will ensure that users will not
>> encounter the bug.
>
> Wait, what? If you mean old-style virtuals, the position has always
> been that it's illegal to dep upon them in any way other than a simple
> virtual/foo with no operators. If you mean new-style virtuals, then
> they should be taking care of propagating any relevant use dependencies
> themselves.
The portage bug that I referred to was with new-style virtuals. It
was due to complications in the code related to this bug:
http://bugs.gentoo.org/show_bug.cgi?id=141118
Due to that code, with <sys-apps/portage-2.1.7 you could get some
strange results with USE deps inside new-style virtuals. Nobody ever
reported a bug though, so maybe it's not very noticeable.
--
Thanks,
Zac
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-02-24 20:43 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-22 18:46 [gentoo-dev] upcoming problem? new-style virtuals and USE deps Robin H. Johnson
2010-02-22 21:06 ` Zac Medico
2010-02-24 18:49 ` Ciaran McCreesh
2010-02-24 20:44 ` Zac Medico
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox