From 792caa8d9e760bf89ff81a7f3ff3a78d6b1e106e Mon Sep 17 00:00:00 2001 From: Jason Watson Date: Fri, 22 Mar 2024 10:11:50 -0400 Subject: [PATCH] Update platform-specific options for libcurl --- bootstrap.py | 4 ++-- slm.toml | 4 ++-- src/conan-utils.stanza | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/bootstrap.py b/bootstrap.py index 4aa9d73..e454443 100755 --- a/bootstrap.py +++ b/bootstrap.py @@ -28,7 +28,6 @@ def eprint(msg): "term-colors": { "git": "StanzaOrg/term-colors", "version": "0.1.1" }, "libcurl": { "pkg": "libcurl", "type": "conan", "version": "8.6.0", "options": { - "fPIC": "True", "shared": "False", "with_brotli": "False", "with_c_ares": "False", @@ -72,13 +71,14 @@ def eprint(msg): "with_zlib": "True", "with_zstd": "False", "linux": { + "fPIC": "True", "with_ssl": "openssl" }, "macos": { + "fPIC": "True", "with_ssl": "darwinssl" }, "windows": { - "fPIC": "False", "with_ssl": "schannel", "with_unix_sockets": "False" } diff --git a/slm.toml b/slm.toml index 6a7759c..a0feb30 100644 --- a/slm.toml +++ b/slm.toml @@ -18,7 +18,6 @@ term-colors = { git = "StanzaOrg/term-colors", version = pkg="libcurl" version="8.6.0" type="conan" -options.fPIC = "True" options.shared = "False" options.with_brotli = "False" options.with_c_ares = "False" @@ -61,8 +60,9 @@ options.with_verbose_debug = "True" options.with_verbose_strings = "True" options.with_zlib = "True" options.with_zstd = "False" +options.linux.fPIC = "True" options.linux.with_ssl = "openssl" +options.macos.fPIC = "True" options.macos.with_ssl = "darwinssl" -options.windows.fPIC = "False" options.windows.with_ssl = "schannel" options.windows.with_unix_sockets = "False" diff --git a/src/conan-utils.stanza b/src/conan-utils.stanza index bbb7663..c5dd63c 100644 --- a/src/conan-utils.stanza +++ b/src/conan-utils.stanza @@ -251,14 +251,14 @@ public defn conan-fully-qualify-latest-version (cv:ConanVersion, -- options:Toml ; Look for platform-specific options (if any) and apply them to the ; requested options hashtable, overrding existing values. Ignore other platforms. debug("conan-fully-qualify-latest-version: looking for platform-specific options") - match(get-table?(options, lower-case(current_conan_os))): + match(get-table?(options, current_conan_os_lc)): (osopts:One): debug("conan-fully-qualify-latest-version: found platform-specific options: \"%_\"" % [to-string(entries(value(osopts)))]) for o in entries(value(osopts)) do: debug("conan-fully-qualify-latest-version: platform-specific option \"%_\" = \"%_\"" % [key(o), value(o)]) set(htro, to-string(key(o)), to-string(value(o))) (_): - debug("conan-fully-qualify-latest-version: no platform-specific options found") + debug("conan-fully-qualify-latest-version: no platform-specific options found for platform \"%_\"" % [current_conan_os_lc]) false ; search for available recipe revisions using just the name and version