summaryrefslogtreecommitdiffstats
path: root/meta/recipes-support/libical
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2022-03-03 20:46:35 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-03-04 17:14:15 +0000
commitd4cd5a35d27b155d414aade981cb560915bfbe87 (patch)
tree347fcf767bb5a86fb1c2a0e3767919758bab2437 /meta/recipes-support/libical
parentef20f069d07af3ea8cfc195fba8d5c4323e0c3b8 (diff)
downloadpoky-d4cd5a35d27b155d414aade981cb560915bfbe87.tar.gz
libical: Do not set CC explicitly for gir compiler
This ensures that right sysroot is used during build, otherwise we see warnings in build about using wrong sysroot and it fails explicitly with clang x86_64-yoe-linux-ld: warning: library search path "/usr/lib/gcc/x86_6 4-pc-linux-gnu/11.2.0/../../../../lib64" is unsafe for cross-compilation x86_64-yoe-linux-ld: cannot find /usr/lib/clang/14.0.0/lib/linux/libc lang_rt.builtins-x86_64.a: No such file or directory (From OE-Core rev: e591b462227ded84f3f8e7273200824ad63313c4) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-support/libical')
-rw-r--r--meta/recipes-support/libical/libical/0001-cmake-Do-not-export-CC-into-gir-compiler.patch33
-rw-r--r--meta/recipes-support/libical/libical_3.0.14.bb4
2 files changed, 36 insertions, 1 deletions
diff --git a/meta/recipes-support/libical/libical/0001-cmake-Do-not-export-CC-into-gir-compiler.patch b/meta/recipes-support/libical/libical/0001-cmake-Do-not-export-CC-into-gir-compiler.patch
new file mode 100644
index 0000000000..3841c060ee
--- /dev/null
+++ b/meta/recipes-support/libical/libical/0001-cmake-Do-not-export-CC-into-gir-compiler.patch
@@ -0,0 +1,33 @@
1From c06d8a8990c996cbb854508a944202ba70ba7a7c Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Thu, 3 Mar 2022 20:10:04 -0800
4Subject: [PATCH] cmake: Do not export CC into gir compiler
5
6this helps cross compilers where full compiler commandline defines the
7compiler rather than just CC variable, therefore let it use the default
8values from environment and not synthesize it from CMAKE_C_COMPILER just
9for this case.
10
11Upstream-Status: Submitted [https://github.com/libical/libical/pull/552]
12Signed-off-by: Khem Raj <raj.khem@gmail.com>
13---
14 cmake/modules/GObjectIntrospectionMacros.cmake | 3 +--
15 1 file changed, 1 insertion(+), 2 deletions(-)
16
17diff --git a/cmake/modules/GObjectIntrospectionMacros.cmake b/cmake/modules/GObjectIntrospectionMacros.cmake
18index 83aff931..d7d3f898 100644
19--- a/cmake/modules/GObjectIntrospectionMacros.cmake
20+++ b/cmake/modules/GObjectIntrospectionMacros.cmake
21@@ -50,8 +50,7 @@ macro(gir_add_introspections introspections_girs)
22 set(_gir_libtool "--no-libtool")
23
24 add_custom_command(
25- COMMAND ${CMAKE_COMMAND} -E env "CC='${CMAKE_C_COMPILER}'"
26- ${GObjectIntrospection_SCANNER}
27+ COMMAND ${GObjectIntrospection_SCANNER}
28 ${GObjectIntrospection_SCANNER_ARGS}
29 --namespace=${_gir_namespace}
30 --nsversion=${_gir_version}
31--
322.35.1
33
diff --git a/meta/recipes-support/libical/libical_3.0.14.bb b/meta/recipes-support/libical/libical_3.0.14.bb
index 879ad8ed59..af8bc59dae 100644
--- a/meta/recipes-support/libical/libical_3.0.14.bb
+++ b/meta/recipes-support/libical/libical_3.0.14.bb
@@ -12,7 +12,9 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=1910a2a76ddf6a9ba369182494170d87 \
12 " 12 "
13SECTION = "libs" 13SECTION = "libs"
14 14
15SRC_URI = "https://github.com/${BPN}/${BPN}/releases/download/v${PV}/${BP}.tar.gz" 15SRC_URI = "https://github.com/${BPN}/${BPN}/releases/download/v${PV}/${BP}.tar.gz \
16 file://0001-cmake-Do-not-export-CC-into-gir-compiler.patch \
17 "
16SRC_URI[sha256sum] = "4284b780356f1dc6a01f16083e7b836e63d3815e27ed0eaaad684712357ccc8f" 18SRC_URI[sha256sum] = "4284b780356f1dc6a01f16083e7b836e63d3815e27ed0eaaad684712357ccc8f"
17UPSTREAM_CHECK_URI = "https://github.com/libical/libical/releases" 19UPSTREAM_CHECK_URI = "https://github.com/libical/libical/releases"
18 20