diff options
| author | Alexander Kanavin <alex.kanavin@gmail.com> | 2021-03-01 19:30:04 +0100 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-03-10 10:30:39 +0000 |
| commit | ef39fa61d583145517ede9b884a0ee0d10a7ab44 (patch) | |
| tree | 9e5233a81aee5efb4427eeafd06141b43f76d7ad | |
| parent | be8062b07134f48764894d80adb8d9af54a9c0f7 (diff) | |
| download | poky-ef39fa61d583145517ede9b884a0ee0d10a7ab44.tar.gz | |
libical: drop the ad hoc native generator build
With a bit of help from upstream I figured out how to do
cross-builds the way upstream intends to.
(From OE-Core rev: f13c2cd727b01a3a11211a42c682ebb5eef9aa11)
Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
| -rw-r--r-- | meta/recipes-support/libical/libical/0001-Use-our-hand-build-native-src-generator.patch | 32 | ||||
| -rw-r--r-- | meta/recipes-support/libical/libical_3.0.9.bb | 12 |
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 @@ | |||
| 1 | From 378df7d6ef9207d3e11a3de54ffd05c04c6c0e0b Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Alexander Kanavin <alex.kanavin@gmail.com> | ||
| 3 | Date: Wed, 24 Feb 2021 20:28:22 +0000 | ||
| 4 | Subject: [PATCH] Use our hand-build native src-generator | ||
| 5 | |||
| 6 | Upstream-Status: Inappropriate [reported at https://github.com/libical/libical/issues/481] | ||
| 7 | Signed-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 | |||
| 12 | diff --git a/src/libical-glib/CMakeLists.txt b/src/libical-glib/CMakeLists.txt | ||
| 13 | index 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 | -- | ||
| 31 | 2.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 \ | |||
| 13 | SECTION = "libs" | 13 | SECTION = "libs" |
| 14 | 14 | ||
| 15 | SRC_URI = "https://github.com/${BPN}/${BPN}/releases/download/v${PV}/${BP}.tar.gz \ | 15 | SRC_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 | " |
| 18 | SRC_URI[sha256sum] = "bd26d98b7fcb2eb0cd5461747bbb02024ebe38e293ca53a7dfdcb2505265a728" | 17 | SRC_URI[sha256sum] = "bd26d98b7fcb2eb0cd5461747bbb02024ebe38e293ca53a7dfdcb2505265a728" |
| 19 | UPSTREAM_CHECK_URI = "https://github.com/libical/libical/releases" | 18 | UPSTREAM_CHECK_URI = "https://github.com/libical/libical/releases" |
| 20 | 19 | ||
| 21 | inherit cmake pkgconfig | 20 | inherit cmake pkgconfig |
| 22 | 21 | ||
| 23 | do_compile_prepend() { | 22 | DEPENDS_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 | ||
| 30 | PACKAGECONFIG ??= "icu glib" | 24 | PACKAGECONFIG ??= "icu glib" |
| 31 | PACKAGECONFIG[bdb] = ",-DCMAKE_DISABLE_FIND_PACKAGE_BDB=True,db" | 25 | PACKAGECONFIG[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 |
| 39 | EXTRA_OECMAKE += "-DICAL_BUILD_DOCS=false" | 33 | EXTRA_OECMAKE += "-DICAL_BUILD_DOCS=false" |
| 40 | 34 | ||
| 35 | EXTRA_OECMAKE_append_class-target = " -DIMPORT_ICAL_GLIB_SRC_GENERATOR=${STAGING_LIBDIR_NATIVE}/cmake/LibIcal/IcalGlibSrcGenerator.cmake" | ||
| 36 | |||
| 41 | do_install_append () { | 37 | do_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 | |||
| 46 | BBCLASSEXTEND = "native" | ||
