diff options
-rw-r--r-- | meta-oe/recipes-support/c-ares/c-ares/cmake-install-libcares.pc.patch | 27 | ||||
-rw-r--r-- | meta-oe/recipes-support/c-ares/c-ares_1.17.1.bb (renamed from meta-oe/recipes-support/c-ares/c-ares_1.16.1.bb) | 4 |
2 files changed, 12 insertions, 19 deletions
diff --git a/meta-oe/recipes-support/c-ares/c-ares/cmake-install-libcares.pc.patch b/meta-oe/recipes-support/c-ares/c-ares/cmake-install-libcares.pc.patch index 0eb7e4bbb3..c6f9c6de61 100644 --- a/meta-oe/recipes-support/c-ares/c-ares/cmake-install-libcares.pc.patch +++ b/meta-oe/recipes-support/c-ares/c-ares/cmake-install-libcares.pc.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From 12414304245cce6ef0e8b9547949be5109845353 Mon Sep 17 00:00:00 2001 | 1 | From 2cc41bee63223cb398ea932aad6ecc94ff5b61dd Mon Sep 17 00:00:00 2001 |
2 | From: Changqing Li <changqing.li@windriver.com> | 2 | From: Changqing Li <changqing.li@windriver.com> |
3 | Date: Tue, 24 Jul 2018 13:33:33 +0800 | 3 | Date: Tue, 24 Jul 2018 13:33:33 +0800 |
4 | Subject: [PATCH] cmake: Install libcares.pc | 4 | Subject: [PATCH] cmake: Install libcares.pc |
@@ -11,12 +11,13 @@ Signed-off-by: Alexey Firago <alexey_firago@mentor.com> | |||
11 | update to 1.14.0, fix patch warning | 11 | update to 1.14.0, fix patch warning |
12 | 12 | ||
13 | Signed-off-by: Changqing Li <changqing.li@windriver.com> | 13 | Signed-off-by: Changqing Li <changqing.li@windriver.com> |
14 | |||
14 | --- | 15 | --- |
15 | CMakeLists.txt | 28 +++++++++++++++++++++++----- | 16 | CMakeLists.txt | 23 +++++++++++++++++------ |
16 | 1 file changed, 23 insertions(+), 5 deletions(-) | 17 | 1 file changed, 17 insertions(+), 6 deletions(-) |
17 | 18 | ||
18 | diff --git a/CMakeLists.txt b/CMakeLists.txt | 19 | diff --git a/CMakeLists.txt b/CMakeLists.txt |
19 | index fd123e1..3a5878d 100644 | 20 | index 08c0247..0020d6b 100644 |
20 | --- a/CMakeLists.txt | 21 | --- a/CMakeLists.txt |
21 | +++ b/CMakeLists.txt | 22 | +++ b/CMakeLists.txt |
22 | @@ -214,22 +214,25 @@ ADD_DEFINITIONS(${SYSFLAGS}) | 23 | @@ -214,22 +214,25 @@ ADD_DEFINITIONS(${SYSFLAGS}) |
@@ -50,9 +51,9 @@ index fd123e1..3a5878d 100644 | |||
50 | 51 | ||
51 | # When checking for symbols, we need to make sure we set the proper | 52 | # When checking for symbols, we need to make sure we set the proper |
52 | # headers, libraries, and definitions for the detection to work properly | 53 | # headers, libraries, and definitions for the detection to work properly |
53 | @@ -554,6 +557,15 @@ CONFIGURE_FILE (ares_build.h.cmake ${PROJECT_BINARY_DIR}/ares_build.h) | 54 | @@ -551,6 +554,15 @@ ENDIF() |
54 | # Write ares_config.h configuration file. This is used only for the build. | 55 | # Record toplevel CMakeLists.txt path |
55 | CONFIGURE_FILE (ares_config.h.cmake ${PROJECT_BINARY_DIR}/ares_config.h) | 56 | set(CARES_TOPLEVEL_DIR "${CMAKE_CURRENT_SOURCE_DIR}") |
56 | 57 | ||
57 | +# Pass required CFLAGS to pkg-config in case of static library | 58 | +# Pass required CFLAGS to pkg-config in case of static library |
58 | +IF (CARES_STATIC) | 59 | +IF (CARES_STATIC) |
@@ -66,19 +67,11 @@ index fd123e1..3a5878d 100644 | |||
66 | 67 | ||
67 | # TRANSFORM_MAKEFILE_INC | 68 | # TRANSFORM_MAKEFILE_INC |
68 | # | 69 | # |
69 | @@ -728,6 +740,12 @@ IF (CARES_INSTALL) | 70 | @@ -624,7 +636,6 @@ IF (CARES_INSTALL) |
70 | INSTALL (FILES "${CMAKE_CURRENT_BINARY_DIR}/libcares.pc" COMPONENT Devel DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig") | 71 | INSTALL (FILES "${CMAKE_CURRENT_BINARY_DIR}/libcares.pc" COMPONENT Devel DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig") |
71 | ENDIF () | 72 | ENDIF () |
72 | 73 | ||
73 | +# pkg-config file | 74 | - |
74 | +IF (CARES_INSTALL) | ||
75 | + SET (PKGCONFIG_INSTALL_DIR "${CMAKE_INSTALL_LIBDIR}/pkgconfig") | ||
76 | + INSTALL (FILES "${CMAKE_CURRENT_BINARY_DIR}/libcares.pc" DESTINATION ${PKGCONFIG_INSTALL_DIR}) | ||
77 | +ENDIF () | ||
78 | + | ||
79 | # Legacy chain-building variables (provided for compatibility with old code). | 75 | # Legacy chain-building variables (provided for compatibility with old code). |
80 | # Don't use these, external code should be updated to refer to the aliases directly (e.g., Cares::cares). | 76 | # Don't use these, external code should be updated to refer to the aliases directly (e.g., Cares::cares). |
81 | SET (CARES_FOUND 1 CACHE INTERNAL "CARES LIBRARY FOUND") | 77 | SET (CARES_FOUND 1 CACHE INTERNAL "CARES LIBRARY FOUND") |
82 | -- | ||
83 | 2.17.1 | ||
84 | |||
diff --git a/meta-oe/recipes-support/c-ares/c-ares_1.16.1.bb b/meta-oe/recipes-support/c-ares/c-ares_1.17.1.bb index 67dd701807..92eb9dae5a 100644 --- a/meta-oe/recipes-support/c-ares/c-ares_1.16.1.bb +++ b/meta-oe/recipes-support/c-ares/c-ares_1.17.1.bb | |||
@@ -5,14 +5,14 @@ SECTION = "libs" | |||
5 | LICENSE = "MIT" | 5 | LICENSE = "MIT" |
6 | LIC_FILES_CHKSUM = "file://LICENSE.md;md5=fb997454c8d62aa6a47f07a8cd48b006" | 6 | LIC_FILES_CHKSUM = "file://LICENSE.md;md5=fb997454c8d62aa6a47f07a8cd48b006" |
7 | 7 | ||
8 | PV = "1.16.0+gitr${SRCPV}" | 8 | PV = "1.17.1" |
9 | 9 | ||
10 | SRC_URI = "\ | 10 | SRC_URI = "\ |
11 | git://github.com/c-ares/c-ares.git \ | 11 | git://github.com/c-ares/c-ares.git \ |
12 | file://cmake-install-libcares.pc.patch \ | 12 | file://cmake-install-libcares.pc.patch \ |
13 | file://0001-fix-configure-error-mv-libcares.pc.cmakein-to-libcar.patch \ | 13 | file://0001-fix-configure-error-mv-libcares.pc.cmakein-to-libcar.patch \ |
14 | " | 14 | " |
15 | SRCREV = "74a1426ba60e2cd7977e53a22ef839c87415066e" | 15 | SRCREV = "39c73b503d9ef70a58ad1f4a4643f15b01407c66" |
16 | 16 | ||
17 | UPSTREAM_CHECK_GITTAGREGEX = "cares-(?P<pver>\d+_(\d_?)+)" | 17 | UPSTREAM_CHECK_GITTAGREGEX = "cares-(?P<pver>\d+_(\d_?)+)" |
18 | 18 | ||