public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] multi-backend support for ssl/tls in curl
@ 2018-04-22 14:34 Matthew Thode
  2018-04-23  6:26 ` Michał Górny
  0 siblings, 1 reply; 7+ messages in thread
From: Matthew Thode @ 2018-04-22 14:34 UTC (permalink / raw
  To: gentoo-dev

[-- Attachment #1: Type: text/plain, Size: 348 bytes --]

The short of it is that curl supports having multiple backends.  I'd
like to have that feature enabled so libraries and userland can choose
the backend they wish to use.

https://bugs.gentoo.org/653076 has the specifics, but I cannot see a
reason why we are artifically limiting the backed to just one.

-- 
Matthew Thode (prometheanfire)

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-dev] multi-backend support for ssl/tls in curl
  2018-04-22 14:34 [gentoo-dev] multi-backend support for ssl/tls in curl Matthew Thode
@ 2018-04-23  6:26 ` Michał Górny
  2018-04-23  7:57   ` Gordon Pettey
  0 siblings, 1 reply; 7+ messages in thread
From: Michał Górny @ 2018-04-23  6:26 UTC (permalink / raw
  To: gentoo-dev

W dniu nie, 22.04.2018 o godzinie 09∶34 -0500, użytkownik Matthew Thode
napisał:
> The short of it is that curl supports having multiple backends.  I'd
> like to have that feature enabled so libraries and userland can choose
> the backend they wish to use.
> 
> https://bugs.gentoo.org/653076 has the specifics, but I cannot see a
> reason why we are artifically limiting the backed to just one.
> 

How would you solve the problem of packages requiring specific SSL
backend?  Currently they enforce it via USE dependency on cURL.

-- 
Best regards,
Michał Górny



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-dev] multi-backend support for ssl/tls in curl
  2018-04-23  6:26 ` Michał Górny
@ 2018-04-23  7:57   ` Gordon Pettey
  2018-04-23 14:22     ` Matthew Thode
  2018-04-23 15:47     ` Michał Górny
  0 siblings, 2 replies; 7+ messages in thread
From: Gordon Pettey @ 2018-04-23  7:57 UTC (permalink / raw
  To: gentoo-dev

On Mon, Apr 23, 2018 at 1:26 AM, Michał Górny <mgorny@gentoo.org> wrote:
> W dniu nie, 22.04.2018 o godzinie 09∶34 -0500, użytkownik Matthew Thode
> napisał:
>> The short of it is that curl supports having multiple backends.  I'd
>> like to have that feature enabled so libraries and userland can choose
>> the backend they wish to use.
>>
>> https://bugs.gentoo.org/653076 has the specifics, but I cannot see a
>> reason why we are artifically limiting the backed to just one.
>>
>
> How would you solve the problem of packages requiring specific SSL
> backend?  Currently they enforce it via USE dependency on cURL.

Perhaps with exactly the same USE dependencies that already exists,
just without the at-most-one limitation on curl itself?


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-dev] multi-backend support for ssl/tls in curl
  2018-04-23  7:57   ` Gordon Pettey
@ 2018-04-23 14:22     ` Matthew Thode
  2018-04-23 15:47     ` Michał Górny
  1 sibling, 0 replies; 7+ messages in thread
From: Matthew Thode @ 2018-04-23 14:22 UTC (permalink / raw
  To: gentoo-dev

[-- Attachment #1: Type: text/plain, Size: 999 bytes --]

On 18-04-23 02:57:50, Gordon Pettey wrote:
> On Mon, Apr 23, 2018 at 1:26 AM, Michał Górny <mgorny@gentoo.org> wrote:
> > W dniu nie, 22.04.2018 o godzinie 09∶34 -0500, użytkownik Matthew Thode
> > napisał:
> >> The short of it is that curl supports having multiple backends.  I'd
> >> like to have that feature enabled so libraries and userland can choose
> >> the backend they wish to use.
> >>
> >> https://bugs.gentoo.org/653076 has the specifics, but I cannot see a
> >> reason why we are artifically limiting the backed to just one.
> >>
> >
> > How would you solve the problem of packages requiring specific SSL
> > backend?  Currently they enforce it via USE dependency on cURL.
> 
> Perhaps with exactly the same USE dependencies that already exists,
> just without the at-most-one limitation on curl itself?
> 

Yep, as described in the bug, there if a program requires use of a
specific backend it's able to request it.

-- 
Matthew Thode (prometheanfire)

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-dev] multi-backend support for ssl/tls in curl
  2018-04-23  7:57   ` Gordon Pettey
  2018-04-23 14:22     ` Matthew Thode
@ 2018-04-23 15:47     ` Michał Górny
  2018-04-23 16:00       ` James Le Cuirot
  1 sibling, 1 reply; 7+ messages in thread
From: Michał Górny @ 2018-04-23 15:47 UTC (permalink / raw
  To: gentoo-dev

W dniu pon, 23.04.2018 o godzinie 02∶57 -0500, użytkownik Gordon Pettey
napisał:
> On Mon, Apr 23, 2018 at 1:26 AM, Michał Górny <mgorny@gentoo.org> wrote:
> > W dniu nie, 22.04.2018 o godzinie 09∶34 -0500, użytkownik Matthew Thode
> > napisał:
> > > The short of it is that curl supports having multiple backends.  I'd
> > > like to have that feature enabled so libraries and userland can choose
> > > the backend they wish to use.
> > > 
> > > https://bugs.gentoo.org/653076 has the specifics, but I cannot see a
> > > reason why we are artifically limiting the backed to just one.
> > > 
> > 
> > How would you solve the problem of packages requiring specific SSL
> > backend?  Currently they enforce it via USE dependency on cURL.
> 
> Perhaps with exactly the same USE dependencies that already exists,
> just without the at-most-one limitation on curl itself?
> 

This doesn't guarantee that the required backend will actually be used. 
Well, unless it blocks any other USE flag from being enabled but that
defeats the purpose.

-- 
Best regards,
Michał Górny



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-dev] multi-backend support for ssl/tls in curl
  2018-04-23 15:47     ` Michał Górny
@ 2018-04-23 16:00       ` James Le Cuirot
  2018-04-23 16:58         ` Matthew Thode
  0 siblings, 1 reply; 7+ messages in thread
From: James Le Cuirot @ 2018-04-23 16:00 UTC (permalink / raw
  To: gentoo-dev

On Mon, 23 Apr 2018 17:47:27 +0200
Michał Górny <mgorny@gentoo.org> wrote:

> W dniu pon, 23.04.2018 o godzinie 02∶57 -0500, użytkownik Gordon
> Pettey napisał:
> > On Mon, Apr 23, 2018 at 1:26 AM, Michał Górny <mgorny@gentoo.org>
> > wrote:  
> > > W dniu nie, 22.04.2018 o godzinie 09∶34 -0500, użytkownik Matthew
> > > Thode napisał:  
> > > > The short of it is that curl supports having multiple
> > > > backends.  I'd like to have that feature enabled so libraries
> > > > and userland can choose the backend they wish to use.
> > > > 
> > > > https://bugs.gentoo.org/653076 has the specifics, but I cannot
> > > > see a reason why we are artifically limiting the backed to just
> > > > one. 
> > > 
> > > How would you solve the problem of packages requiring specific SSL
> > > backend?  Currently they enforce it via USE dependency on cURL.  
> > 
> > Perhaps with exactly the same USE dependencies that already exists,
> > just without the at-most-one limitation on curl itself? 
> 
> This doesn't guarantee that the required backend will actually be
> used. Well, unless it blocks any other USE flag from being enabled
> but that defeats the purpose.

Proprietary software that's linked against a specific backend usually
links to libcurl-gnutls.so.4 or whatever specifically as that's what
Debian provides. If it points to just libcurl.so.4 but only works
against a specific backend then we could use chrpath to change it to
the specific name.

-- 
James Le Cuirot (chewi)
Gentoo Linux Developer


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-dev] multi-backend support for ssl/tls in curl
  2018-04-23 16:00       ` James Le Cuirot
@ 2018-04-23 16:58         ` Matthew Thode
  0 siblings, 0 replies; 7+ messages in thread
From: Matthew Thode @ 2018-04-23 16:58 UTC (permalink / raw
  To: gentoo-dev

[-- Attachment #1: Type: text/plain, Size: 1889 bytes --]

On 18-04-23 17:00:45, James Le Cuirot wrote:
> On Mon, 23 Apr 2018 17:47:27 +0200
> Michał Górny <mgorny@gentoo.org> wrote:
> 
> > W dniu pon, 23.04.2018 o godzinie 02∶57 -0500, użytkownik Gordon
> > Pettey napisał:
> > > On Mon, Apr 23, 2018 at 1:26 AM, Michał Górny <mgorny@gentoo.org>
> > > wrote:  
> > > > W dniu nie, 22.04.2018 o godzinie 09∶34 -0500, użytkownik Matthew
> > > > Thode napisał:  
> > > > > The short of it is that curl supports having multiple
> > > > > backends.  I'd like to have that feature enabled so libraries
> > > > > and userland can choose the backend they wish to use.
> > > > > 
> > > > > https://bugs.gentoo.org/653076 has the specifics, but I cannot
> > > > > see a reason why we are artifically limiting the backed to just
> > > > > one. 
> > > > 
> > > > How would you solve the problem of packages requiring specific SSL
> > > > backend?  Currently they enforce it via USE dependency on cURL.  
> > > 
> > > Perhaps with exactly the same USE dependencies that already exists,
> > > just without the at-most-one limitation on curl itself? 
> > 
> > This doesn't guarantee that the required backend will actually be
> > used. Well, unless it blocks any other USE flag from being enabled
> > but that defeats the purpose.
> 
> Proprietary software that's linked against a specific backend usually
> links to libcurl-gnutls.so.4 or whatever specifically as that's what
> Debian provides. If it points to just libcurl.so.4 but only works
> against a specific backend then we could use chrpath to change it to
> the specific name.
> 

The way that curl installs it's libs for multi-backend (I'm currently
using the proposed patch) is to still just install a single library.  To
get something like debian does with libcurl-gnutls we'd need to do
separate builds.

-- 
Matthew Thode (prometheanfire)

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2018-04-23 16:58 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-04-22 14:34 [gentoo-dev] multi-backend support for ssl/tls in curl Matthew Thode
2018-04-23  6:26 ` Michał Górny
2018-04-23  7:57   ` Gordon Pettey
2018-04-23 14:22     ` Matthew Thode
2018-04-23 15:47     ` Michał Górny
2018-04-23 16:00       ` James Le Cuirot
2018-04-23 16:58         ` Matthew Thode

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox