Skip to content

Commit ee8cdc6

Browse files
arekmulajcar87
authored andcommitted
c-ares: publish version 1.34.6 (conan-io#29214)
* Added c-ares 1.34.6 * c-ares versions * c-ares: cleanup * c-ares: linter fixes --------- Co-authored-by: Luis Caro Campos <3535649+jcar87@users.noreply.github.com>
1 parent d10600d commit ee8cdc6

File tree

4 files changed

+6
-78
lines changed

4 files changed

+6
-78
lines changed

recipes/c-ares/all/conandata.yml

Lines changed: 3 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,8 @@
11
sources:
2-
"1.34.5":
3-
url: "https://github.com/c-ares/c-ares/releases/download/v1.34.5/c-ares-1.34.5.tar.gz"
4-
sha256: "7d935790e9af081c25c495fd13c2cfcda4792983418e96358ef6e7320ee06346"
5-
"1.34.3":
6-
url: "https://github.com/c-ares/c-ares/releases/download/v1.34.3/c-ares-1.34.3.tar.gz"
7-
sha256: "26e1f7771da23e42a18fdf1e58912a396629e53a2ac71b130af93bbcfb90adbe"
8-
"1.34.1":
9-
url: "https://github.com/c-ares/c-ares/releases/download/v1.34.1/c-ares-1.34.1.tar.gz"
10-
sha256: "7e846f1742ab5998aced36d170408557de5292b92ec404fb0f7422f946d60103"
11-
"1.33.1":
12-
url: "https://github.com/c-ares/c-ares/releases/download/v1.33.1/c-ares-1.33.1.tar.gz"
13-
sha256: "06869824094745872fa26efd4c48e622b9bd82a89ef0ce693dc682a23604f415"
14-
"1.33.0":
15-
url: "https://github.com/c-ares/c-ares/releases/download/v1.33.0/c-ares-1.33.0.tar.gz"
16-
sha256: "3e41df2f172041eb4ecb754a464c11ccc5046b2a1c8b1d6a40dac45d3a3b2346"
17-
"1.32.3":
18-
url: "https://github.com/c-ares/c-ares/releases/download/v1.32.3/c-ares-1.32.3.tar.gz"
19-
sha256: "5f02cc809aac3f6cc5edc1fac6c4423fd5616d7406ce47b904c24adf0ff2cd0f"
20-
"1.32.2":
21-
url: "https://github.com/c-ares/c-ares/releases/download/v1.32.2/c-ares-1.32.2.tar.gz"
22-
sha256: "072ff6b30b9682d965b87eb9b77851dc1cd8e6d8090f6821a56bd8fa89595061"
23-
"1.32.1":
24-
url: "https://github.com/c-ares/c-ares/releases/download/v1.32.1/c-ares-1.32.1.tar.gz"
25-
sha256: "63be2c4ee121faa47e9766f735b4cde750fff2c563f81c11e572d3dc6401e5e7"
26-
"1.31.0":
27-
url: "https://github.com/c-ares/c-ares/releases/download/v1.31.0/c-ares-1.31.0.tar.gz"
28-
sha256: "0167a33dba96ca8de29f3f598b1e6cabe531799269fd63d0153aa0e6f5efeabd"
2+
"1.34.6":
3+
url: "https://github.com/c-ares/c-ares/releases/download/v1.34.6/c-ares-1.34.6.tar.gz"
4+
sha256: "912dd7cc3b3e8a79c52fd7fb9c0f4ecf0aaa73e45efda880266a2d6e26b84ef5"
295
# keep 1.25.0 for libnghttp2, trantor, libcoro
306
"1.25.0":
317
url: "https://github.com/c-ares/c-ares/releases/download/cares-1_25_0/c-ares-1.25.0.tar.gz"
328
sha256: "71832b93a48f5ff579c505f4869120c14e57b783275367207f1a98314aa724e5"
33-
patches:
34-
"1.33.0":
35-
- patch_file: "patches/1.33.0-0001-fix-tcp-fastopen.patch"
36-
patch_description: "fix compilation error for TCP_FASTOPEN_CONNECT"
37-
patch_type: "portability"
38-
patch_source: "https://github.com/c-ares/c-ares/commit/4abdf7de3678d98f474bd2abeedea741f6c50231"

recipes/c-ares/all/conanfile.py

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
from conan import ConanFile
22
from conan.tools.apple import is_apple_os
33
from conan.tools.cmake import CMake, CMakeToolchain, cmake_layout
4-
from conan.tools.files import collect_libs, copy, get, rm, rmdir, apply_conandata_patches, export_conandata_patches
5-
from conan.tools.scm import Version
4+
from conan.tools.files import collect_libs, copy, get, rm, rmdir
65
import os
76

87
required_conan_version = ">=1.53.0"
@@ -30,9 +29,6 @@ class CAresConan(ConanFile):
3029
"multithreading": True,
3130
}
3231

33-
def export_sources(self):
34-
export_conandata_patches(self)
35-
3632
def config_options(self):
3733
if self.settings.os == "Windows":
3834
del self.options.fPIC
@@ -60,7 +56,6 @@ def generate(self):
6056
tc.generate()
6157

6258
def build(self):
63-
apply_conandata_patches(self)
6459
cmake = CMake(self)
6560
cmake.configure()
6661
cmake.build()
@@ -85,20 +80,12 @@ def package_info(self):
8580
self.cpp_info.components["cares"].defines.append("CARES_STATICLIB")
8681
if self.settings.os == "Linux":
8782
self.cpp_info.components["cares"].system_libs.append("rt")
88-
if Version(self.version) >= "1.23.0":
89-
self.cpp_info.components["cares"].system_libs.append("pthread")
83+
self.cpp_info.components["cares"].system_libs.append("pthread")
9084
elif self.settings.os == "Windows":
9185
self.cpp_info.components["cares"].system_libs.extend(["ws2_32", "advapi32"])
9286
self.cpp_info.components["cares"].system_libs.append("iphlpapi")
9387
elif is_apple_os(self):
9488
self.cpp_info.components["cares"].system_libs.append("resolv")
9589

96-
# TODO: to remove in conan v2 once cmake_find_package* & pkg_config generators removed
97-
self.cpp_info.names["pkg_config"] = "libcares"
98-
self.cpp_info.components["cares"].names["cmake_find_package"] = "cares"
99-
self.cpp_info.components["cares"].names["cmake_find_package_multi"] = "cares"
100-
self.cpp_info.components["cares"].names["pkg_config"] = "libcares"
10190
self.cpp_info.components["cares"].set_property("cmake_target_name", "c-ares::cares")
10291
self.cpp_info.components["cares"].set_property("pkg_config_name", "libcares")
103-
if self.options.tools:
104-
self.env_info.PATH.append(os.path.join(self.package_folder, "bin"))

recipes/c-ares/all/patches/1.33.0-0001-fix-tcp-fastopen.patch

Lines changed: 0 additions & 13 deletions
This file was deleted.

recipes/c-ares/config.yml

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,5 @@
11
versions:
2-
"1.34.5":
3-
folder: all
4-
"1.34.3":
5-
folder: all
6-
"1.34.1":
7-
folder: all
8-
"1.33.1":
9-
folder: all
10-
"1.33.0":
11-
folder: all
12-
"1.32.3":
13-
folder: all
14-
"1.32.2":
15-
folder: all
16-
"1.32.1":
17-
folder: all
18-
"1.31.0":
2+
"1.34.6":
193
folder: all
204
"1.25.0":
215
folder: all

0 commit comments

Comments
 (0)