From 7d81ea2dcbda46b52566af06fafd2ecbd87ac155 Mon Sep 17 00:00:00 2001 From: Johannes Date: Sat, 27 Oct 2018 16:02:33 +0200 Subject: [PATCH] evolution-data-server: fix cross. --- .../patches/gen-tables.patch | 64 +++++++++++++++++++ srcpkgs/evolution-data-server/template | 3 +- 2 files changed, 65 insertions(+), 2 deletions(-) create mode 100644 srcpkgs/evolution-data-server/patches/gen-tables.patch diff --git a/srcpkgs/evolution-data-server/patches/gen-tables.patch b/srcpkgs/evolution-data-server/patches/gen-tables.patch new file mode 100644 index 00000000000..30a54f1e0f5 --- /dev/null +++ b/srcpkgs/evolution-data-server/patches/gen-tables.patch @@ -0,0 +1,64 @@ +camel-gen-tables and gen-western-table are executed in the build process so +they need to be built for the host architecture + +--- src/camel/CMakeLists.txt.orig 2018-10-27 15:24:42.168166299 +0200 ++++ src/camel/CMakeLists.txt 2018-10-27 15:37:04.341765727 +0200 +@@ -1,17 +1,10 @@ + glib_mkenums(camel-enumtypes camel-enums.h CAMEL_ENUMTYPES_H) + +-add_executable(camel-gen-tables +- camel-gen-tables.c +-) +- +-target_include_directories(camel-gen-tables PUBLIC +- ${CMAKE_BINARY_DIR} +-) + + add_custom_command( + OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/camel-mime-tables.c +- COMMAND ${CMAKE_CURRENT_BINARY_DIR}/camel-gen-tables >${CMAKE_CURRENT_BINARY_DIR}/camel-mime-tables.c +- DEPENDS camel-gen-tables ++ COMMAND /usr/bin/gcc ${CMAKE_CURRENT_SOURCE_DIR}/camel-gen-tables.c -I${CMAKE_BINARY_DIR} -o ${CMAKE_CURRENT_BINARY_DIR}/camel-gen-tables ++ && ${CMAKE_CURRENT_BINARY_DIR}/camel-gen-tables >${CMAKE_CURRENT_BINARY_DIR}/camel-mime-tables.c + ) + + set(SOURCES + +--- src/addressbook/libebook-contacts/CMakeLists.txt.orig 2018-10-27 15:42:14.644088211 +0200 ++++ src/addressbook/libebook-contacts/CMakeLists.txt 2018-10-27 15:45:43.359285829 +0200 +@@ -2,31 +2,12 @@ + + add_pkgconfig_file(libebook-contacts.pc.in libebook-contacts-${API_VERSION}.pc) + +-add_executable(gen-western-table +- gen-western-table.c +-) +- +-target_compile_definitions(gen-western-table PRIVATE +- -DG_LOG_DOMAIN=\"gen-western-table\" +-) +- +-target_compile_options(gen-western-table PUBLIC +- ${GNOME_PLATFORM_CFLAGS} +-) +- +-target_include_directories(gen-western-table PUBLIC +- ${CMAKE_BINARY_DIR} +- ${GNOME_PLATFORM_INCLUDE_DIRS} +-) +- +-target_link_libraries(gen-western-table +- ${GNOME_PLATFORM_LDFLAGS} +-) +- + add_custom_command( + OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/e-name-western-tables.h +- COMMAND ${CMAKE_CURRENT_BINARY_DIR}/gen-western-table "${CMAKE_CURRENT_SOURCE_DIR}/e-name-western-tables.h.in" >${CMAKE_CURRENT_BINARY_DIR}/e-name-western-tables.h +- DEPENDS gen-western-table e-name-western-tables.h.in ++ COMMAND /usr/bin/gcc ${CMAKE_CURRENT_SOURCE_DIR}/gen-western-table.c -I${CMAKE_BINARY_DIR} ++ -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -lglib-2.0 -o ${CMAKE_CURRENT_BINARY_DIR}/gen-western-table ++ && ${CMAKE_CURRENT_BINARY_DIR}/gen-western-table "${CMAKE_CURRENT_SOURCE_DIR}/e-name-western-tables.h.in" >${CMAKE_CURRENT_BINARY_DIR}/e-name-western-tables.h ++ DEPENDS e-name-western-tables.h.in + ) + + set(DEPENDENCIES diff --git a/srcpkgs/evolution-data-server/template b/srcpkgs/evolution-data-server/template index daa899307bf..e6c19625e89 100644 --- a/srcpkgs/evolution-data-server/template +++ b/srcpkgs/evolution-data-server/template @@ -5,7 +5,7 @@ revision=2 build_style=cmake configure_args="-DENABLE_UOA=OFF $(vopt_if gir '-DENABLE_INTROSPECTION=ON -DENABLE_VALA_BINDINGS=ON' '-DENABLE_WEATHER=OFF')" -hostmakedepends="flex glib-devel gperf intltool pkg-config +hostmakedepends="flex glib-devel gperf intltool pkg-config libglib-devel $(vopt_if gir 'gobject-introspection')" makedepends="libcanberra-devel libgdata-devel $(vopt_if gir libgweather-devel) libical-devel libsecret-devel mit-krb5-devel $(vopt_if gir 'vala-devel') webkit2gtk-devel" @@ -17,7 +17,6 @@ homepage="https://wiki.gnome.org/Apps/Evolution" changelog="https://raw.githubusercontent.com/GNOME/evolution-data-server/gnome-3-30/NEWS" distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz" checksum=5b3ab1557ea27475e5f78014ae5a4a989179cbf8c98ce7e26bd70b7767388e40 -nocross="attempts to run non-native binaries during compilation" build_options="gir" if [ -z "$CROSS_BUILD" ]; then