From c998e195e4efac923a95e36b1f274c35b9b3f66b Mon Sep 17 00:00:00 2001 From: James Hilliard Date: Fri, 22 Jul 2022 00:05:04 -0600 Subject: [PATCH] package/poppler: set g-ir-scanner/g-ir-compiler paths The g-ir-scanner/g-ir-compiler paths don't always get picked up properly by cmake. Fixes: [ 98%] Linking CXX shared library libpoppler-glib.so [ 98%] Built target poppler-glib [ 98%] Generating Poppler-0.18.gir /bin/sh: 1: /home/buildroot/buildroot/output/per-package/poppler/host/aarch64-buildroot-linux-gnu/sysroot/home/buildroot/buildroot/output/per-package/poppler/host/bin/../aarch64-buildroot-linux-gnu/sysroot/usr/lib/pkgconfig/../../bin/g-ir-scanner: not found Signed-off-by: James Hilliard Signed-off-by: Arnout Vandecappelle (Essensium/Mind) --- package/poppler/poppler.mk | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/package/poppler/poppler.mk b/package/poppler/poppler.mk index 18c044a9f6..b54262e7c4 100644 --- a/package/poppler/poppler.mk +++ b/package/poppler/poppler.mk @@ -44,7 +44,10 @@ endif ifeq ($(BR2_PACKAGE_GOBJECT_INTROSPECTION),y) POPPLER_DEPENDENCIES += gobject-introspection -POPPLER_CONF_OPTS += -DENABLE_GOBJECT_INTROSPECTION=ON +POPPLER_CONF_OPTS += \ + -DENABLE_GOBJECT_INTROSPECTION=ON \ + -DINTROSPECTION_SCANNER=$(STAGING_DIR)/usr/bin/g-ir-scanner \ + -DINTROSPECTION_COMPILER=$(STAGING_DIR)/usr/bin/g-ir-compiler else POPPLER_CONF_OPTS += -DENABLE_GOBJECT_INTROSPECTION=OFF endif