summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-oe/recipes-support/libcppkafka/libcppkafka/0001-cmake-Use-CMAKE_INSTALL_LIBDIR.patch30
-rw-r--r--meta-oe/recipes-support/libcppkafka/libcppkafka_git.bb12
2 files changed, 8 insertions, 34 deletions
diff --git a/meta-oe/recipes-support/libcppkafka/libcppkafka/0001-cmake-Use-CMAKE_INSTALL_LIBDIR.patch b/meta-oe/recipes-support/libcppkafka/libcppkafka/0001-cmake-Use-CMAKE_INSTALL_LIBDIR.patch
deleted file mode 100644
index d78ee7a8df..0000000000
--- a/meta-oe/recipes-support/libcppkafka/libcppkafka/0001-cmake-Use-CMAKE_INSTALL_LIBDIR.patch
+++ /dev/null
@@ -1,30 +0,0 @@
1From 51ec4c1f533dee9a499490c1c5bbd23d2191a4a7 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Sun, 20 Mar 2022 11:14:25 -0700
4Subject: [PATCH] cmake: Use CMAKE_INSTALL_LIBDIR
5
6Do not hardcode library path, this helps it install in right location
7independent of platforms, e.g. ppc64 uses lib64 and not lib
8
9Upstream-Status: Submitted [https://github.com/mfontanini/cppkafka/pull/291]
10Signed-off-by: Khem Raj <raj.khem@gmail.com>
11---
12 CMakeLists.txt | 2 +-
13 1 file changed, 1 insertion(+), 1 deletion(-)
14
15diff --git a/CMakeLists.txt b/CMakeLists.txt
16index c4e44e6..25ec1ce 100644
17--- a/CMakeLists.txt
18+++ b/CMakeLists.txt
19@@ -51,7 +51,7 @@ option(CPPKAFKA_EXPORT_CMAKE_CONFIG "Generate CMake config, target and version f
20 set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_SOURCE_DIR}/cmake/")
21
22 if (NOT CPPKAFKA_CONFIG_DIR)
23- set(CPPKAFKA_CONFIG_DIR lib/cmake/${PROJECT_NAME})
24+ set(CPPKAFKA_CONFIG_DIR ${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME})
25 endif()
26
27 # Maintain previous compatibility
28--
292.35.1
30
diff --git a/meta-oe/recipes-support/libcppkafka/libcppkafka_git.bb b/meta-oe/recipes-support/libcppkafka/libcppkafka_git.bb
index fd57e4e283..cf2d933169 100644
--- a/meta-oe/recipes-support/libcppkafka/libcppkafka_git.bb
+++ b/meta-oe/recipes-support/libcppkafka/libcppkafka_git.bb
@@ -9,17 +9,21 @@ file://LICENSE;md5=d8b4ca15d239dc1485ef495c8f1bcc72 \
9" 9"
10 10
11SRC_URI = "git://github.com/mfontanini/cppkafka;protocol=https;branch=master \ 11SRC_URI = "git://github.com/mfontanini/cppkafka;protocol=https;branch=master \
12 file://0001-cmake-Use-CMAKE_INSTALL_LIBDIR.patch \
13" 12"
14SRCREV = "5e4b350806d561473138ce7a982e8f6cf2e77733" 13SRCREV = "91ac543cbd2228588dcf24a6ca357f8be0f4e5ab"
15 14
16DEPENDS = "librdkafka boost chrpath-replacement-native" 15BASEPV = "0.4.0"
16PV = "${BASEPV}+git"
17
18DEPENDS = "librdkafka curl boost chrpath-replacement-native"
17 19
18inherit cmake 20inherit cmake
19 21
22EXTRA_OECMAKE = "-DCPPKAFKA_BUILD_SHARED=ON"
23
20S = "${WORKDIR}/git" 24S = "${WORKDIR}/git"
21 25
22do_install:append(){ 26do_install:append(){
23 chrpath -d ${D}${libdir}/libcppkafka.so.0.3.1 27 chrpath -d ${D}${libdir}/libcppkafka.so.${BASEPV}
24 sed -i -e 's|${STAGING_INCDIR}|\$\{includedir\}|g' ${D}${datadir}/pkgconfig/cppkafka.pc 28 sed -i -e 's|${STAGING_INCDIR}|\$\{includedir\}|g' ${D}${datadir}/pkgconfig/cppkafka.pc
25} 29}