All of lore.kernel.org
 help / color / mirror / Atom feed
From: Bruce Ashfield <bruce.ashfield@gmail.com>
To: Markus Volk <f_l_k@t-online.de>
Cc: meta-virtualization@lists.yoctoproject.org
Subject: Re: [meta-virtualization][PATCHv2] libvirt-glib: fix introspection and documentation build
Date: Mon, 4 Sep 2023 03:03:55 +0000	[thread overview]
Message-ID: <ZPVJGypEsVRycQF2@gmail.com> (raw)
In-Reply-To: <20230829060759.80856-1-f_l_k@t-online.de>

v2 is staged.

Bruce

In message: [meta-virtualization][PATCHv2] libvirt-glib: fix introspection and documentation build
on 29/08/2023 Markus Volk wrote:

> Building Gobject introspection during cross-compilation is not an easy task.
> Therefore, the meson.build file disables the build for introspection and
> also for gtkdoc by default.
> This commit adds a patch to enable this, as introspection can be easily built
> on newer platforms with yocto/oe.
> 
> The options to enable/disable introspection/doc are defined as feature
> while the corresponding bbclass defines it as a boolean.
> Override this so that it should be possible to be enabled/disabled by using DISTRO_FEATURES.
> 
> Inherit  gettext bbclass as used in libvirt-glib.
> 
> Add a missing dependency on libxslt.
> Signed-off-by: Markus Volk <f_l_k@t-online.de>
> ---
>  ...ild-allow-crosscompiling-gir-and-doc.patch | 37 +++++++++++++++++++
>  .../libvirt/libvirt-glib_4.0.0.bb             | 15 ++++++--
>  2 files changed, 48 insertions(+), 4 deletions(-)
>  create mode 100644 recipes-extended/libvirt/libvirt-glib/0001-meson.build-allow-crosscompiling-gir-and-doc.patch
> 
> diff --git a/recipes-extended/libvirt/libvirt-glib/0001-meson.build-allow-crosscompiling-gir-and-doc.patch b/recipes-extended/libvirt/libvirt-glib/0001-meson.build-allow-crosscompiling-gir-and-doc.patch
> new file mode 100644
> index 00000000..cd17bbbf
> --- /dev/null
> +++ b/recipes-extended/libvirt/libvirt-glib/0001-meson.build-allow-crosscompiling-gir-and-doc.patch
> @@ -0,0 +1,37 @@
> +From 019d727990d41b5d7911895b75bcb021e4cca3c6 Mon Sep 17 00:00:00 2001
> +From: Markus Volk <f_l_k@t-online.de>
> +Date: Mon, 21 Aug 2023 10:23:08 +0200
> +Subject: [PATCH] meson.build: allow crosscompiling gir and doc
> +
> +Upstream-Status: Inappropriate [oe specific]
> +
> +Signed-off-by: Markus Volk <f_l_k@t-online.de>
> +---
> + meson.build | 2 +-
> + 1 file changed, 1 insertion(+), 1 deletion(-)
> +
> +diff --git a/meson.build b/meson.build
> +index 134feb6..a089f42 100644
> +--- a/meson.build
> ++++ b/meson.build
> +@@ -58,7 +58,7 @@ includedir = join_paths(prefix, get_option('includedir'))
> + 
> + # gobject introspection
> + gir = find_program('g-ir-scanner', required: get_option('introspection'))
> +-enable_introspection = gir.found() and not meson.is_cross_build()
> ++enable_introspection = gir.found()
> + 
> + # vala
> + vapi_opt = get_option('vapi')
> +@@ -73,7 +73,7 @@ endif
> + # gtk-doc
> + if not get_option('docs').disabled()
> +   gtk_doc = find_program('gtkdoc-scan', required: get_option('docs'))
> +-  enable_doc = gtk_doc.found() and not meson.is_cross_build()
> ++  enable_doc = gtk_doc.found()
> + else
> +   enable_doc = false
> + endif
> +-- 
> +2.41.0
> +
> diff --git a/recipes-extended/libvirt/libvirt-glib_4.0.0.bb b/recipes-extended/libvirt/libvirt-glib_4.0.0.bb
> index a5cd8276..7ca65a95 100644
> --- a/recipes-extended/libvirt/libvirt-glib_4.0.0.bb
> +++ b/recipes-extended/libvirt/libvirt-glib_4.0.0.bb
> @@ -3,12 +3,19 @@ HOMEPAGE = "http://libvirt.org"
>  LICENSE = "LGPL-2.1-only"
>  LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c"
>  
> -DEPENDS = "glib-2.0 libvirt libxml2"
> +DEPENDS = "glib-2.0 libvirt libxml2 libxslt"
>  
> -SRC_URI = "git://gitlab.com/libvirt/libvirt-glib;protocol=https;branch=master"
> +SRC_URI = " \
> +	git://gitlab.com/libvirt/libvirt-glib;protocol=https;branch=master \
> +	file://0001-meson.build-allow-crosscompiling-gir-and-doc.patch \
> +"
>  
>  SRCREV = "e0bfc34682744a74b850fa217e9c206a9eb80612"
>  S = "${WORKDIR}/git"
>  
> -inherit meson pkgconfig gobject-introspection vala
> -GIR_MESON_OPTION = ''
> +inherit meson pkgconfig gobject-introspection gettext vala gtk-doc
> +
> +GIR_MESON_ENABLE_FLAG = 'enabled'
> +GIR_MESON_DISABLE_FLAG = 'disabled'
> +GTKDOC_MESON_ENABLE_FLAG = 'enabled'
> +GTKDOC_MESON_DISABLE_FLAG = 'disabled'
> -- 
> 2.41.0
> 

> 
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#8259): https://lists.yoctoproject.org/g/meta-virtualization/message/8259
> Mute This Topic: https://lists.yoctoproject.org/mt/101026154/1050810
> Group Owner: meta-virtualization+owner@lists.yoctoproject.org
> Unsubscribe: https://lists.yoctoproject.org/g/meta-virtualization/unsub [bruce.ashfield@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
> 



  reply	other threads:[~2023-09-04  3:04 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-29  6:07 [meta-virtualization][PATCHv2] libvirt-glib: fix introspection and documentation build Markus Volk
2023-09-04  3:03 ` Bruce Ashfield [this message]
     [not found] <177DD60BD2874A85.27837@lists.yoctoproject.org>
2023-08-22 22:53 ` Markus Volk
  -- strict thread matches above, loose matches on Subject: below --
2023-08-22 22:46 Markus Volk
2023-08-24  2:29 ` Bruce Ashfield

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ZPVJGypEsVRycQF2@gmail.com \
    --to=bruce.ashfield@gmail.com \
    --cc=f_l_k@t-online.de \
    --cc=meta-virtualization@lists.yoctoproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.