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 03-24-2010, 05:30 PM
Peter Hjalmarsson
 
Default when to use a function and an implementation use flag.

I took a look at qemu-kvm and found something I percieve as funny:
It had a gnutls use-flag, but no ssl useflag.

As I see it is I want ssl/tls support it should be sufficient to enable
USE="ssl" and let the maintainer of said ebuild decide which
implementation (if more then one) I am better off with and only care
about the USE="gnutls openssl nss" if i really think the maintainer is
wrong.

For qemu-kvm the problem is that there is only one implementation (i.e.
gnutls), and if I want to have ssl support I have to enable gnutls for
this package.

When I wrote a bug about this I got a rather short reply from maintainer
about pointing me to the policy about this.
Now I know there was a disscussion a while back about this on the
mailinglist, but google fails me to find it, looking into the Gentoo
Development Guide [1] it fails me too.

There is not a _single_ word about how to handle if there is only one
implementation, but two use flags for this (one for the function
provided - ssl - and one for the actual implementation - gnutls).

So I have a question:
Is there no policy about this?
If there is could someone please point me towards it and also it in that
case may be time to update the gentoo development guide.

[1]
http://devmanual.gentoo.org/general-concepts/use-flags/index.html#conflicting-use-flags
 
Old 03-27-2010, 01:44 PM
Petteri Räty
 
Default when to use a function and an implementation use flag.

On 03/24/2010 08:30 PM, Peter Hjalmarsson wrote:

> For qemu-kvm the problem is that there is only one implementation (i.e.
> gnutls), and if I want to have ssl support I have to enable gnutls for
> this package.

In this case the ebuild should have only ssl use flag.

> When I wrote a bug about this I got a rather short reply from maintainer
> about pointing me to the policy about this.

Where did he point you to?

> So I have a question:
> Is there no policy about this?

The policy is that USE="ssl" controls whether to enable ssl support in
general. Then the specific use flags like gnutls and openssl control
what implementation to use if the package supports multiple.

USE="ssl" --> should always give you ssl support

> If there is could someone please point me towards it and also it in that
> case may be time to update the gentoo development guide.
>
> [1]
> http://devmanual.gentoo.org/general-concepts/use-flags/index.html#conflicting-use-flags
>

If you read the example code you see what I said is already done in the
example code.

Opened a bug for qemu-kvm:
http://bugs.gentoo.org/show_bug.cgi?id=311627

Opened a bug for repoman:
http://bugs.gentoo.org/show_bug.cgi?id=311629

Regards,
Petteri
 

Thread Tools




All times are GMT. The time now is 09:37 PM.

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