clearlinux / distribution

Placeholder repository to allow filing of general bugs/issues/etc against the Clear Linux OS for Intel Architecture linux distribution
520 stars 29 forks source link

curl - add more protocols and features #1969

Open takov opened 4 years ago

takov commented 4 years ago

I am with ClearLinux 33090 and curl version: 7.70.0. Currently curl supports the following protocols and features: Protocols: dict file ftp ftps http https imap imaps rtsp smtp smtps Features: AsynchDNS HTTP2 HTTPS-proxy IPv6 Largefile libz SSL TLS-SRP UnixSockets

curl from other distros is enabled to supports more protocols: Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp scp sftp smb smbs smtp smtps telnet tftp Features: AsynchDNS IDN IPv6 Largefile GSS-API Kerberos SPNEGO NTLM NTLM_WB SSL libz TLS-SRP HTTP2 UnixSockets HTTPS-proxy PSL

It would be really grade if not all but at least:

ahkok commented 4 years ago

Yes and ... maybe no. curl is part of our core bundle and adding some of these protocols would mean a sizeable increase of our base OS. I don't think we can make this pluggable, but, that is the main reason why we haven't enabled some of these yet.

takov commented 4 years ago

Thank you for the quick response. It make sense.

thiagomacieira commented 4 years ago

@ahkok do we need curl or libcurl?

If it's libcurl, we can have two libraries, one in a fallback search path in the core OS, the second with more features in case the user wants to.

If it's the binary, we'd have to make one exec() the other if it's present, like we've done for emacs/emacs-x11, usrbinpython, etc.

ahkok commented 4 years ago

we need libcurl in os-core. We can absolutely make a second curl that has all the fruits and vegetables.

thiagomacieira commented 4 years ago

It's likely that curl itself doesn't have features, that they come from libcurl. So we'd need two libs like I outlined. That probably means modifying the dynamic linker to have an extra fallback path we can install minimal libs to.

ahkok commented 4 years ago

Note: HTTPS-proxy is supported, it's in the list of features that curl outputs.

ahkok commented 4 years ago

The other items you're requesting are indeed something we want to keep out of os-core and thus this will be not trivial.