From 5222380057b7571f155f7ee178c4985820fab033 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=BCller?= Date: Sun, 4 Aug 2019 22:37:47 +0200 Subject: [PATCH] libreoffice-native: use build target cross-toolset MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit For libreoffice 5.x native tools were built with target 'build-tools'. Could not get this to fly and remembered a thread started by me many years ago [1]. It mentions target 'cross-toolset' which builds fine with tiny configuration hacks. [1] https://lists.freedesktop.org/archives/libreoffice/2015-November/071255.html Signed-off-by: Andreas Müller --- .../libreoffice/libreoffice-native.bb | 31 +++++-------------- 1 file changed, 8 insertions(+), 23 deletions(-) diff --git a/recipes-libreoffice/libreoffice/libreoffice-native.bb b/recipes-libreoffice/libreoffice/libreoffice-native.bb index 62cf45e..1bfc4ca 100644 --- a/recipes-libreoffice/libreoffice/libreoffice-native.bb +++ b/recipes-libreoffice/libreoffice/libreoffice-native.bb @@ -79,6 +79,10 @@ do_configure() { autoconf cd $olddir PYTHON_CFLAGS=-I${STAGING_INCDIR_NATIVE}/${PYTHON_DIR}${PYTHON_ABI} PYTHON_LIBS="-L${STAGING_LIBDIR_NATIVE} -lpython${PYTHON_BASEVERSION}${PYTHON_ABI}" oe_runconf + # fake for cross-toolset + cp -f ${B}/config_host.mk ${B}/config_build.mk + cp -f ${B}/config_host_lang.mk ${B}/config_build_lang.mk + cp -rf ${B}/config_host ${B}/config_build } # for debugging - we can as we're native @@ -90,33 +94,14 @@ LDFLAGS += "-ldl" do_compile() { - # see pre_BuildTools.mk - BUILDDIR=${B} oe_runmake Executable_bestreversemap - BUILDDIR=${B} oe_runmake Executable_cfgex - BUILDDIR=${B} oe_runmake Executable_cpp - BUILDDIR=${B} oe_runmake Executable_gendict - BUILDDIR=${B} oe_runmake Executable_gencoll_rule - BUILDDIR=${B} oe_runmake Executable_genconv_dict + BUILDDIR=${B} oe_runmake cross-toolset + # gengal was not designed for build - we need to add it and it's dependencies BUILDDIR=${B} oe_runmake Executable_gengal - BUILDDIR=${B} oe_runmake Executable_genindex_data - BUILDDIR=${B} oe_runmake Executable_helpex - BUILDDIR=${B} oe_runmake Executable_idxdict - BUILDDIR=${B} oe_runmake Executable_makedepend - BUILDDIR=${B} oe_runmake Executable_propex - BUILDDIR=${B} oe_runmake Executable_saxparser - BUILDDIR=${B} oe_runmake Executable_svidl - BUILDDIR=${B} oe_runmake Executable_treex - BUILDDIR=${B} oe_runmake Executable_ulfex - BUILDDIR=${B} oe_runmake Executable_unoidl-check - BUILDDIR=${B} oe_runmake Executable_unoidl-write - BUILDDIR=${B} oe_runmake Executable_xrmex BUILDDIR=${B} oe_runmake Library_ucb1 BUILDDIR=${B} oe_runmake Library_configmgr BUILDDIR=${B} oe_runmake Library_fwk BUILDDIR=${B} oe_runmake Library_i18npool BUILDDIR=${B} oe_runmake Library_pyuno - BUILDDIR=${B} oe_runmake Library_expwrap - BUILDDIR=${B} oe_runmake Library_sax } # rsc @@ -157,9 +142,9 @@ do_install() { done # move saxparser.rdb to libdir - we'll need it for cross building - #cp -rf ${B}/workdir/Rdb/saxparser.rdb ${D}/${libdir} + cp -rf ${B}/workdir/Rdb/saxparser.rdb ${D}/${libdir} # fix library path - otherwise cross lib is pulled for native saxparse - #sed -i 's:LO_LIB_DIR:URE_INTERNAL_LIB_DIR:g' ${D}/${libdir}/saxparser.rdb + sed -i 's:LO_LIB_DIR:URE_INTERNAL_LIB_DIR:g' ${D}/${libdir}/saxparser.rdb # gengal script and binary to expected location install ${S}/svx/source/gengal/gengal.sh ${D}/${bindir}/gengal