Re: [meta-gnome][PATCH] appstream-glib: fix manpage generation


Anuj Mittal
 

On Tue, 2022-09-20 at 10:31 +0200, Markus Volk wrote:
Creating manpages is set by default but fails with:

I/O error : Attempt to load network entity
http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl
warning: failed to load external entity
"http://docbook.sourceforge.net/release/xsl/current/manpages/docboo
k.xsl"
cannot parse
http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl
Disable manpage generation by default but fix the dependencies, so it
wouldn't fail

Signed-off-by: Markus Volk <f_l_k@...>
---
 .../recipes-support/appstream-glib/appstream-glib_0.7.18.bb    | 3
+++
 1 file changed, 3 insertions(+)

diff --git a/meta-gnome/recipes-support/appstream-glib/appstream-
glib_0.7.18.bb b/meta-gnome/recipes-support/appstream-glib/appstream-
glib_0.7.18.bb
index 45a28ed96..b5d60b13a 100644
--- a/meta-gnome/recipes-support/appstream-glib/appstream-
glib_0.7.18.bb
+++ b/meta-gnome/recipes-support/appstream-glib/appstream-
glib_0.7.18.bb
@@ -26,6 +26,9 @@ EXTRA_OEMESON = " \
     -Drpm=false \
 "
 
+PACKAGECONFIG ?= ""
+PACKAGECONFIG[man] = "-Dman=true,-Dman=false,docbook-xml-dtd4-native
docbook-xsl-stylesheets-native libxslt-native"
I think this should also inherit manpages bbclass for it to be enabled
correctly. The PACKAGECONFIG will also have to be changed to manpages
then.

Thanks,

Anuj

+
 FILES:${PN} += "${libdir}/asb-plugins-5"
 
 FILES:${PN}-dev += " \


Join {openembedded-devel@lists.openembedded.org to automatically receive all group messages.