Skip to content

Set SSL_BACKENDS from cmake build - #3736

Closed
webmaster128 wants to merge 2 commits into
curl:masterfrom
webmaster128:use-dawinssl-cmake
Closed

Set SSL_BACKENDS from cmake build#3736
webmaster128 wants to merge 2 commits into
curl:masterfrom
webmaster128:use-dawinssl-cmake

Conversation

@webmaster128

@webmaster128 webmaster128 commented Apr 5, 2019

Copy link
Copy Markdown
Contributor

This groups all SSL backends into the feature "SSL" and sets the SSL_BACKENDS analogue to configure.ac.

This is a preparation for #3733 but independent of the DarwinSSL issue.

Before

$ bash /build_dir/curl/curl-config --features
DarwinSSL
IPv6
unix-sockets
libz
AsynchDNS
$ bash /build_dir/curl/curl-config --ssl-backends

After

$ bash /build_dir/curl/curl-config --features
SSL
IPv6
unix-sockets
libz
AsynchDNS
$ bash /build_dir/curl/curl-config --ssl-backends
DarwinSSL

@MarcelRaad MarcelRaad left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool! This should also fix test 1014 on AppVeyor for the WinSSL and OpenSSL builds.

@MarcelRaad

Copy link
Copy Markdown
Member

Unfortunately, the CMake build failed for the non-SSL builds on AppVeyor:

-- Enabled features: IPv6 AsynchDNS
-- Enabled protocols: DICT FILE FTP GOPHER HTTP IMAP LDAP POP3 RTSP SMTP TELNET TFTP
CMake Error at CMakeLists.txt:1249 (list):
list sub-command SORT requires list to be present.

@webmaster128

Copy link
Copy Markdown
Contributor Author

Thanks @MarcelRaad! Hmm, looks like due to the lack of a proper type system, there is no way to create an empty list. So we need to check if the variable is empty before trying to sort, which adds 2 additional lines for each of those lists. I'll do that later today or tomorrow if nobody has a better idea that allows us to call sort on every element count >= 0.

Simon Warta added 2 commits April 6, 2019 15:06
In case of an empty list, SORTing leads to the cmake error "list
sub-command SORT requires list to be present."
This groups all SSL backends into the feature "SSL" and sets the
SSL_BACKENDS analogue to configure.ac
@webmaster128

Copy link
Copy Markdown
Contributor Author

I could reproduce the problem locally with no SSL backend enabled and fixed it now.

@MarcelRaad

Copy link
Copy Markdown
Member

Great, thanks! The AppVeyor failures are only the usual "slow response" tests, so I'm merging now.

MarcelRaad pushed a commit to MarcelRaad/curl that referenced this pull request Apr 6, 2019
This groups all SSL backends into the feature "SSL" and sets the
SSL_BACKENDS analogue to configure.ac

Closes curl#3736
@MarcelRaad MarcelRaad closed this in 1a3aa5c Apr 6, 2019
@webmaster128
webmaster128 deleted the use-dawinssl-cmake branch April 17, 2019 20:59
@lock lock Bot locked as resolved and limited conversation to collaborators Jul 16, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants