diff options
author | Andreas Müller <schnitzeltony@gmail.com> | 2019-10-19 15:06:33 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-11-04 13:39:04 +0000 |
commit | ae479d86d16293a18d7c3ba093534bec59fa6a78 (patch) | |
tree | c878362c0bb05de2c15f04dcbc6dabf0ff60276c /meta/recipes-support | |
parent | ce0b46650f448bf2d7df00fa297f1565c80021b4 (diff) | |
download | poky-ae479d86d16293a18d7c3ba093534bec59fa6a78.tar.gz |
libical: add PACKAGECONFIG glib and enable it by default
* As long as there is no solution upstream [1] build src-generator native and
adjust cmake file to find it
* libical-glib is a mandatory dependency for evolution-data-server >= 3.34
[1] https://github.com/libical/libical/issues/394
(From OE-Core rev: 0dabbf6307bfef5927d7a92b31f3eac1d698972a)
Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-support')
-rw-r--r-- | meta/recipes-support/libical/libical/0001-Use-our-hand-build-native-src-generator.patch | 33 | ||||
-rw-r--r-- | meta/recipes-support/libical/libical_3.0.6.bb | 24 |
2 files changed, 49 insertions, 8 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 new file mode 100644 index 0000000000..b7b757d74b --- /dev/null +++ b/meta/recipes-support/libical/libical/0001-Use-our-hand-build-native-src-generator.patch | |||
@@ -0,0 +1,33 @@ | |||
1 | From e33bc310238bba1690f2c71ad333e10b9e422ea9 Mon Sep 17 00:00:00 2001 | ||
2 | From: =?UTF-8?q?Andreas=20M=C3=BCller?= <schnitzeltony@gmail.com> | ||
3 | Date: Sat, 19 Oct 2019 14:23:06 +0200 | ||
4 | Subject: [PATCH] Use our hand-build native src-generator | ||
5 | MIME-Version: 1.0 | ||
6 | Content-Type: text/plain; charset=UTF-8 | ||
7 | Content-Transfer-Encoding: 8bit | ||
8 | |||
9 | Upstream-Status: Inappropriate [oe-core specific] | ||
10 | |||
11 | Signed-off-by: Andreas Müller <schnitzeltony@gmail.com> | ||
12 | --- | ||
13 | src/libical-glib/CMakeLists.txt | 4 ++-- | ||
14 | 1 file changed, 2 insertions(+), 2 deletions(-) | ||
15 | |||
16 | diff --git a/src/libical-glib/CMakeLists.txt b/src/libical-glib/CMakeLists.txt | ||
17 | index f3704e6..ce9db16 100644 | ||
18 | --- a/src/libical-glib/CMakeLists.txt | ||
19 | +++ b/src/libical-glib/CMakeLists.txt | ||
20 | @@ -63,8 +63,8 @@ endforeach() | ||
21 | |||
22 | add_custom_command ( | ||
23 | OUTPUT ${LIBICAL_GLIB_SOURCES} ${CMAKE_CURRENT_BINARY_DIR}/libical-glib-private.h ${CMAKE_CURRENT_BINARY_DIR}/i-cal-forward-declarations.h | ||
24 | - COMMAND ${EXECUTABLE_OUTPUT_PATH}/src-generator "${CMAKE_CURRENT_SOURCE_DIR}/tools" "${CMAKE_CURRENT_SOURCE_DIR}/api" | ||
25 | - DEPENDS ${EXECUTABLE_OUTPUT_PATH}/src-generator ${xml_files} | ||
26 | + COMMAND ${CMAKE_BINARY_DIR}/src-generator "${CMAKE_CURRENT_SOURCE_DIR}/tools" "${CMAKE_CURRENT_SOURCE_DIR}/api" | ||
27 | + DEPENDS ${CMAKE_BINARY_DIR}/src-generator ${xml_files} | ||
28 | ) | ||
29 | |||
30 | configure_file( | ||
31 | -- | ||
32 | 2.21.0 | ||
33 | |||
diff --git a/meta/recipes-support/libical/libical_3.0.6.bb b/meta/recipes-support/libical/libical_3.0.6.bb index 032f3655e9..f9be898a12 100644 --- a/meta/recipes-support/libical/libical_3.0.6.bb +++ b/meta/recipes-support/libical/libical_3.0.6.bb | |||
@@ -7,27 +7,35 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=1910a2a76ddf6a9ba369182494170d87 \ | |||
7 | file://LICENSE.MPL2.txt;md5=9741c346eef56131163e13b9db1241b3" | 7 | file://LICENSE.MPL2.txt;md5=9741c346eef56131163e13b9db1241b3" |
8 | SECTION = "libs" | 8 | SECTION = "libs" |
9 | 9 | ||
10 | SRC_URI = "https://github.com/${BPN}/${BPN}/releases/download/v${PV}/${BP}.tar.gz" | 10 | SRC_URI = " \ |
11 | 11 | https://github.com/${BPN}/${BPN}/releases/download/v${PV}/${BP}.tar.gz \ | |
12 | file://0001-Use-our-hand-build-native-src-generator.patch \ | ||
13 | " | ||
12 | SRC_URI[md5sum] = "463a59244c6767b8e67b29379405e297" | 14 | SRC_URI[md5sum] = "463a59244c6767b8e67b29379405e297" |
13 | SRC_URI[sha256sum] = "5c8a21c2b732ece4a33e5c862970b4f35a8548bbcda50de5695f6fc211ac4d97" | 15 | SRC_URI[sha256sum] = "5c8a21c2b732ece4a33e5c862970b4f35a8548bbcda50de5695f6fc211ac4d97" |
14 | UPSTREAM_CHECK_URI = "https://github.com/libical/libical/releases" | 16 | UPSTREAM_CHECK_URI = "https://github.com/libical/libical/releases" |
15 | 17 | ||
16 | inherit cmake pkgconfig | 18 | inherit cmake pkgconfig |
17 | 19 | ||
18 | PACKAGECONFIG ??= "icu" | 20 | do_compile_prepend() { |
21 | # As long as https://github.com/libical/libical/issues/394 is open build native src-generator manually | ||
22 | NATIVE_CFLAGS="${BUILD_CFLAGS} `pkg-config-native --cflags glib-2.0` `pkg-config-native --cflags libxml-2.0`" | ||
23 | NATIVE_LDFLAGS="${BUILD_LDFLAGS} `pkg-config-native --libs glib-2.0` `pkg-config-native --libs libxml-2.0`" | ||
24 | ${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 | ||
25 | } | ||
26 | |||
27 | PACKAGECONFIG ??= "icu glib" | ||
19 | PACKAGECONFIG[bdb] = ",-DCMAKE_DISABLE_FIND_PACKAGE_BDB=True,db" | 28 | PACKAGECONFIG[bdb] = ",-DCMAKE_DISABLE_FIND_PACKAGE_BDB=True,db" |
29 | PACKAGECONFIG[glib] = "-DICAL_GLIB=True,-DICAL_GLIB=False,glib-2.0-native libxml2-native glib-2.0 libxml2" | ||
20 | # ICU is used for RSCALE (RFC7529) support | 30 | # ICU is used for RSCALE (RFC7529) support |
21 | PACKAGECONFIG[icu] = ",-DCMAKE_DISABLE_FIND_PACKAGE_ICU=True,icu" | 31 | PACKAGECONFIG[icu] = ",-DCMAKE_DISABLE_FIND_PACKAGE_ICU=True,icu" |
22 | 32 | ||
23 | # No need to use perl-native, the host perl is sufficient. | 33 | # No need to use perl-native, the host perl is sufficient. |
24 | EXTRA_OECMAKE += "-DPERL_EXECUTABLE=${HOSTTOOLS_DIR}/perl" | 34 | EXTRA_OECMAKE += "-DPERL_EXECUTABLE=${HOSTTOOLS_DIR}/perl" |
35 | # doc build fails with linker error (??) for libical-glib so disable it | ||
36 | EXTRA_OECMAKE += "-DICAL_BUILD_DOCS=false" | ||
25 | 37 | ||
26 | # The glib library can't be cross-compiled, disable for now. | 38 | do_install_append () { |
27 | # https://github.com/libical/libical/issues/394 | ||
28 | EXTRA_OECMAKE += "-DICAL_GLIB=false" | ||
29 | |||
30 | do_install_append_class-target () { | ||
31 | # Remove build host references | 39 | # Remove build host references |
32 | sed -i \ | 40 | sed -i \ |
33 | -e 's,${STAGING_LIBDIR},${libdir},g' \ | 41 | -e 's,${STAGING_LIBDIR},${libdir},g' \ |