From 59270e9ca11f78278ac04fc9442d1f69e57c8138 Mon Sep 17 00:00:00 2001 From: Arturo Buzarra Date: Tue, 27 Apr 2021 16:54:02 +0200 Subject: [PATCH] gatesgarth migration: libical: fix build adding custom recipe v3.0.8 Commit ae479d86d1("libical: add PACKAGECONFIG glib and enable it by default") introduces a workaround to fix the build with glib support and enables it by default, but this support is unstable and this workaround is not needed on v3.0.8. Added original recipe without that workaround to avoid the build issue. https://jira.digi.com/browse/DEL-7508 Signed-off-by: Arturo Buzarra --- .../recipes-support/libical/libical_3.0.8.bb | 40 +++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 meta-digi-dey/recipes-support/libical/libical_3.0.8.bb diff --git a/meta-digi-dey/recipes-support/libical/libical_3.0.8.bb b/meta-digi-dey/recipes-support/libical/libical_3.0.8.bb new file mode 100644 index 000000000..0fac8d4ae --- /dev/null +++ b/meta-digi-dey/recipes-support/libical/libical_3.0.8.bb @@ -0,0 +1,40 @@ +SUMMARY = "iCal and scheduling (RFC 2445, 2446, 2447) library" +HOMEPAGE = "https://github.com/libical/libical" +BUGTRACKER = "https://github.com/libical/libical/issues" +LICENSE = "LGPLv2.1 | MPL-2.0" +LIC_FILES_CHKSUM = "file://LICENSE;md5=1910a2a76ddf6a9ba369182494170d87 \ + file://LICENSE.LGPL21.txt;md5=933adb561f159e7c3da079536f0ed871 \ + file://LICENSE.MPL2.txt;md5=f75d2927d3c1ed2414ef72048f5ad640 \ + " +SECTION = "libs" + +FILESEXTRAPATHS_prepend := "${COREBASE}/meta/recipes-support/libical/libical:" + +SRC_URI = " \ + https://github.com/${BPN}/${BPN}/releases/download/v${PV}/${BP}.tar.gz \ + file://0001-Use-our-hand-build-native-src-generator.patch \ +" +SRC_URI[md5sum] = "41bd1f1fcdcb4779cea478bb55cf07bf" +SRC_URI[sha256sum] = "09fecacaf75ba5a242159e3a9758a5446b5ce4d0ab684f98a7040864e1d1286f" +UPSTREAM_CHECK_URI = "https://github.com/libical/libical/releases" + +inherit cmake pkgconfig + +PACKAGECONFIG ??= "icu glib" +PACKAGECONFIG[bdb] = ",-DCMAKE_DISABLE_FIND_PACKAGE_BDB=True,db" +PACKAGECONFIG[glib] = "-DICAL_GLIB=True,-DICAL_GLIB=False,glib-2.0-native libxml2-native glib-2.0 libxml2" +# ICU is used for RSCALE (RFC7529) support +PACKAGECONFIG[icu] = ",-DCMAKE_DISABLE_FIND_PACKAGE_ICU=True,icu" + +# No need to use perl-native, the host perl is sufficient. +EXTRA_OECMAKE += "-DPERL_EXECUTABLE=${HOSTTOOLS_DIR}/perl" +# doc build fails with linker error (??) for libical-glib so disable it +EXTRA_OECMAKE += "-DICAL_BUILD_DOCS=false" + +do_install_append () { + # Remove build host references + sed -i \ + -e 's,${STAGING_LIBDIR},${libdir},g' \ + -e 's,${STAGING_INCDIR},${includedir},g' \ + ${D}${libdir}/cmake/LibIcal/LibIcal*.cmake +}