From 921846b8c04c3acf99eac6c20cd2fbf955f042d1 Mon Sep 17 00:00:00 2001 From: Joe Slater Date: Mon, 7 Apr 2014 14:37:25 -0700 Subject: [PATCH 1/1] libxslt-native: add populate_sysroot dependencies When libxslt-native populates sysroot from sstate we need to depend on libxml2. If we do not, xsltproc might try to use the host libxml2, which it was not linked against. Signed-off-by: Joe Slater --- meta/recipes-support/libxslt/libxslt_1.1.28.bb | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/meta/recipes-support/libxslt/libxslt_1.1.28.bb b/meta/recipes-support/libxslt/libxslt_1.1.28.bb index ae2e6b1..ab56fdd 100644 --- a/meta/recipes-support/libxslt/libxslt_1.1.28.bb +++ b/meta/recipes-support/libxslt/libxslt_1.1.28.bb @@ -37,3 +37,12 @@ FILES_${PN} += "${libdir}/libxslt-plugins" FILES_${PN}-dev += "${libdir}/xsltConf.sh" BBCLASSEXTEND = "native" + +# In order to be sure xsltproc can run after our populate_sysroot_setscene, we need +# to have runtime dependencies here. Both sets of dependencies are necessary! +# +LOCAL_SYSROOT_DEPS = "" +LOCAL_SYSROOT_DEPS_class-native = "libxml2-native:do_populate_sysroot_setscene" +do_populate_sysroot_setscene[depends] += "${LOCAL_SYSROOT_DEPS}" +do_populate_sysroot[depends] += "${@d.getVar('LOCAL_SYSROOT_DEPS', True).replace('_setscene','')}" + -- 1.7.3.4