FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Gentoo > Gentoo Development

 
 
LinkBack Thread Tools
 
Old 02-22-2010, 05:46 PM
"Robin H. Johnson"
 
Default upcoming problem? new-style virtuals and USE deps

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
 
Old 02-22-2010, 08:06 PM
Zac Medico
 
Default upcoming problem? new-style virtuals and USE deps

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
 
Old 02-24-2010, 05:49 PM
Ciaran McCreesh
 
Default upcoming problem? new-style virtuals and USE deps

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
 
Old 02-24-2010, 07:44 PM
Zac Medico
 
Default upcoming problem? new-style virtuals and USE deps

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
 

Thread Tools




All times are GMT. The time now is 04:08 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org