Caleb Tennis wrote:

> On Tuesday 20 June 2006 12:40, Stefan Schweizer wrote:
>> Hi,
>>
>> with kde4 approaching and the new Qt-4 being in the tree we suddenly see
>> the same problems that gtk had with the gtk2 flag again.
> 
> I think there's a lot of good thoughts surrounding how to handle this. 
> There are 2 categories of packages we need to concern ourselves with:
> 
> 1) A package can optionally add support for Qt3 or Qt4 (such as dbus).
> 
qt3 and qt4 is being used there already and it is obvious

> 2) A package requires either Qt3 or Qt4 (both not both?...such as
> x11-libs/qwt-5).


qt3 - enable optional qt3 support
qt4 - enable optional qt4 support

when both are possible its the maintainers decision, would look something
like this:

qt4? ( =x11-libs/qt-4* )
!qt4? ( qt3? ( =x11-libs/qt-3* )


Why you ask? Because a user does not care if packageX uses qt3 or qt4, he
just wants to use it.

But why do we have two useflags then?
Because the user should be able to disable optional support for either qt3
or qt4 or both for every package.

Disabling all optional qt4 support is only conveniently possible with a qt4
flag. Same for qt3.
We need separate flags here, otherwise you can just use one flag for
everything, it does not make sense to have two flags when one cannot be
used because the other is ambiguous.

> Solution: Build against qt4.  If you want to provide the same package for
> the qt3 version, add a new package to portage I suppose.

This "add a new package to portage" is not really the gentoo spirit of
following upstream tarballing, in my opinion.

> In the end, this is just merely suggestion.  I think each maintainer
> should come up with the best way to handle the situation unless someone is
> going to GLEP this.

We have 36 qt-use-packages, so we could have 36 different flags in the
end ;)
Trying to reach a consensus on the mailing list is a better idea imo.

> I think we should, however, do our best to avoid a situation where we have
> some ugly combination of USE="qt -qt3" or USE="qt4 -qt qt3"...

right you are. And since we already have a qt3 and a qt4 useflag in the tree
it is a good move to do this right.

-- 
gentoo-dev@gentoo.org mailing list

Reply via email to