summaryrefslogtreecommitdiffstats
path: root/meta/recipes-support
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-support')
-rw-r--r--meta/recipes-support/libical/libical/0001-Use-our-hand-build-native-src-generator.patch32
-rw-r--r--meta/recipes-support/libical/libical_3.0.9.bb12
2 files changed, 5 insertions, 39 deletions
diff --git a/meta/recipes-support/libical/libical/0001-Use-our-hand-build-native-src-generator.patch b/meta/recipes-support/libical/libical/0001-Use-our-hand-build-native-src-generator.patch
deleted file mode 100644
index 0813641ee9..0000000000
--- a/meta/recipes-support/libical/libical/0001-Use-our-hand-build-native-src-generator.patch
+++ /dev/null
@@ -1,32 +0,0 @@
1From 378df7d6ef9207d3e11a3de54ffd05c04c6c0e0b Mon Sep 17 00:00:00 2001
2From: Alexander Kanavin <alex.kanavin@gmail.com>
3Date: Wed, 24 Feb 2021 20:28:22 +0000
4Subject: [PATCH] Use our hand-build native src-generator
5
6Upstream-Status: Inappropriate [reported at https://github.com/libical/libical/issues/481]
7Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
8---
9 src/libical-glib/CMakeLists.txt | 7 +------
10 1 file changed, 1 insertion(+), 6 deletions(-)
11
12diff --git a/src/libical-glib/CMakeLists.txt b/src/libical-glib/CMakeLists.txt
13index 13f77aa..c337c9e 100644
14--- a/src/libical-glib/CMakeLists.txt
15+++ b/src/libical-glib/CMakeLists.txt
16@@ -74,12 +74,7 @@ endforeach()
17
18 if(CMAKE_CROSSCOMPILING)
19 # import native ical-glib-src-generator when cross-compiling
20- set(IMPORT_ICAL_GLIB_SRC_GENERATOR "ICAL_GLIB_SRC_GENERATOR-NOTFOUND"
21- CACHE FILEPATH
22- "Path to exported ical-glib-src-generator target from native build"
23- )
24- include(${IMPORT_ICAL_GLIB_SRC_GENERATOR})
25- set(ical-glib-src-generator_EXE native-ical-glib-src-generator)
26+ set(ical-glib-src-generator_EXE ${CMAKE_BINARY_DIR}/src-generator)
27 else()
28 set(ical-glib-src-generator_EXE ical-glib-src-generator)
29 endif()
30--
312.17.1
32
diff --git a/meta/recipes-support/libical/libical_3.0.9.bb b/meta/recipes-support/libical/libical_3.0.9.bb
index d03f2f6486..4c7027d14b 100644
--- a/meta/recipes-support/libical/libical_3.0.9.bb
+++ b/meta/recipes-support/libical/libical_3.0.9.bb
@@ -13,19 +13,13 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=1910a2a76ddf6a9ba369182494170d87 \
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-Use-our-hand-build-native-src-generator.patch \
17" 16"
18SRC_URI[sha256sum] = "bd26d98b7fcb2eb0cd5461747bbb02024ebe38e293ca53a7dfdcb2505265a728" 17SRC_URI[sha256sum] = "bd26d98b7fcb2eb0cd5461747bbb02024ebe38e293ca53a7dfdcb2505265a728"
19UPSTREAM_CHECK_URI = "https://github.com/libical/libical/releases" 18UPSTREAM_CHECK_URI = "https://github.com/libical/libical/releases"
20 19
21inherit cmake pkgconfig 20inherit cmake pkgconfig
22 21
23do_compile_prepend() { 22DEPENDS_append_class-target = "libical-native"
24 # As long as https://github.com/libical/libical/issues/481 is open build native src-generator manually
25 NATIVE_CFLAGS="${BUILD_CFLAGS} `pkg-config-native --cflags glib-2.0` `pkg-config-native --cflags libxml-2.0`"
26 NATIVE_LDFLAGS="${BUILD_LDFLAGS} `pkg-config-native --libs glib-2.0` `pkg-config-native --libs libxml-2.0`"
27 ${BUILD_CC} $NATIVE_CFLAGS ${S}/src/libical-glib/tools/generator.c ${S}/src/libical-glib/tools/xml-parser.c -o ${B}/src-generator $NATIVE_LDFLAGS
28}
29 23
30PACKAGECONFIG ??= "icu glib" 24PACKAGECONFIG ??= "icu glib"
31PACKAGECONFIG[bdb] = ",-DCMAKE_DISABLE_FIND_PACKAGE_BDB=True,db" 25PACKAGECONFIG[bdb] = ",-DCMAKE_DISABLE_FIND_PACKAGE_BDB=True,db"
@@ -38,6 +32,8 @@ EXTRA_OECMAKE += "-DPERL_EXECUTABLE=${HOSTTOOLS_DIR}/perl"
38# doc build fails with linker error (??) for libical-glib so disable it 32# doc build fails with linker error (??) for libical-glib so disable it
39EXTRA_OECMAKE += "-DICAL_BUILD_DOCS=false" 33EXTRA_OECMAKE += "-DICAL_BUILD_DOCS=false"
40 34
35EXTRA_OECMAKE_append_class-target = " -DIMPORT_ICAL_GLIB_SRC_GENERATOR=${STAGING_LIBDIR_NATIVE}/cmake/LibIcal/IcalGlibSrcGenerator.cmake"
36
41do_install_append () { 37do_install_append () {
42 # Remove build host references 38 # Remove build host references
43 sed -i \ 39 sed -i \
@@ -46,3 +42,5 @@ do_install_append () {
46 ${D}${libdir}/cmake/LibIcal/LibIcal*.cmake \ 42 ${D}${libdir}/cmake/LibIcal/LibIcal*.cmake \
47 ${D}${libdir}/cmake/LibIcal/Ical*.cmake 43 ${D}${libdir}/cmake/LibIcal/Ical*.cmake
48} 44}
45
46BBCLASSEXTEND = "native"