diff options
Diffstat (limited to 'meta/recipes-gnome/gobject-introspection/gobject-introspection_1.50.0.bb')
-rw-r--r-- | meta/recipes-gnome/gobject-introspection/gobject-introspection_1.50.0.bb | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/meta/recipes-gnome/gobject-introspection/gobject-introspection_1.50.0.bb b/meta/recipes-gnome/gobject-introspection/gobject-introspection_1.50.0.bb index 0c29a3b377..15c8c00f0a 100644 --- a/meta/recipes-gnome/gobject-introspection/gobject-introspection_1.50.0.bb +++ b/meta/recipes-gnome/gobject-introspection/gobject-introspection_1.50.0.bb | |||
@@ -34,7 +34,7 @@ DEPENDS_append = " libffi zlib glib-2.0 python3 flex-native bison-native" | |||
34 | # (standard ldd doesn't work when cross-compiling). | 34 | # (standard ldd doesn't work when cross-compiling). |
35 | DEPENDS_class-target_append = " gobject-introspection-native qemu-native prelink-native" | 35 | DEPENDS_class-target_append = " gobject-introspection-native qemu-native prelink-native" |
36 | 36 | ||
37 | SSTATE_SCAN_FILES += "g-ir-scanner-qemuwrapper g-ir-scanner-wrapper g-ir-compiler-wrapper g-ir-scanner-lddwrapper Gio-2.0.gir" | 37 | SSTATE_SCAN_FILES += "g-ir-scanner-qemuwrapper g-ir-scanner-wrapper g-ir-compiler-wrapper g-ir-scanner-lddwrapper Gio-2.0.gir postinst-ldsoconf-${PN}" |
38 | 38 | ||
39 | do_configure_prepend_class-native() { | 39 | do_configure_prepend_class-native() { |
40 | # Tweak the native python scripts so that they don't refer to the | 40 | # Tweak the native python scripts so that they don't refer to the |
@@ -166,8 +166,13 @@ python gobject_introspection_preconfigure () { | |||
166 | oe.utils.write_ld_so_conf(d) | 166 | oe.utils.write_ld_so_conf(d) |
167 | } | 167 | } |
168 | 168 | ||
169 | SSTATEPOSTINSTFUNCS += "gobject_introspection_postinst" | 169 | SYSROOT_PREPROCESS_FUNCS_append = " gi_ldsoconf_sysroot_preprocess" |
170 | python gobject_introspection_postinst () { | 170 | gi_ldsoconf_sysroot_preprocess () { |
171 | if d.getVar("BB_CURRENTTASK").startswith("populate_sysroot"): | 171 | mkdir -p ${SYSROOT_DESTDIR}${bindir} |
172 | oe.utils.write_ld_so_conf(d) | 172 | dest=${SYSROOT_DESTDIR}${bindir}/postinst-ldsoconf-${PN} |
173 | echo "#!/bin/sh" > $dest | ||
174 | echo "echo mkdir -p ${STAGING_DIR_TARGET}${sysconfdir} > ${STAGING_DIR_TARGET}${sysconfdir}/ld.so.conf" >> $dest | ||
175 | echo "echo ${base_libdir} >> ${STAGING_DIR_TARGET}${sysconfdir}/ld.so.conf" >> $dest | ||
176 | echo "echo ${libdir} >> ${STAGING_DIR_TARGET}${sysconfdir}/ld.so.conf" >> $dest | ||
177 | chmod 755 $dest | ||
173 | } | 178 | } |