From: Yann E. MORIN <yann.morin.1998@free.fr>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH v3 7/7] package/gupnp-dlna: add optional dependency for gobject-introspection
Date: Sun, 29 Mar 2020 22:42:51 +0200 [thread overview]
Message-ID: <20200329204251.GP22325@scaer> (raw)
In-Reply-To: <20200327183000.1005676-7-aduskett@gmail.com>
Adam, All,
Bringing Thomas in the loop: I have a question for you...
Adam, there is also a question for you...
On 2020-03-27 11:30 -0700, aduskett at gmail.com spake thusly:
> From: Adam Duskett <Aduskett@gmail.com>
>
> If gobject-introspection is selected, explicitly set --enable-introspection in
> the configure options and add a dependency for both gobject-introspection and
> host-vala.
>
> Host-vala is necessary because the introspection includes vala bindings files
> with no way to explicitly disable them.
Adam, this one is for you: what good are vala bindings for? Why do we
care in Buildroot, Do we have a package that may use them?
> Signed-off-by: Adam Duskett <Aduskett@gmail.com>
> ---
> package/gupnp-dlna/gupnp-dlna.mk | 14 ++++++++++----
> 1 file changed, 10 insertions(+), 4 deletions(-)
>
> diff --git a/package/gupnp-dlna/gupnp-dlna.mk b/package/gupnp-dlna/gupnp-dlna.mk
> index 85d30b7cd2..845667ca53 100644
> --- a/package/gupnp-dlna/gupnp-dlna.mk
> +++ b/package/gupnp-dlna/gupnp-dlna.mk
> @@ -15,15 +15,21 @@ GUPNP_DLNA_LICENSE_FILES = COPYING
> GUPNP_DLNA_INSTALL_STAGING = YES
> GUPNP_DLNA_DEPENDENCIES = host-pkgconf libglib2 libxml2
>
> -GUPNP_DLNA_CONF_OPTS = \
> - --disable-introspection \
> - --disable-legacy-gstreamer-metadata-backend
> +GUPNP_DLNA_CONF_OPTS = --disable-legacy-gstreamer-metadata-backend
>
> ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BASE),y)
> GUPNP_DLNA_CONF_OPTS += --enable-gstreamer-metadata-backend
> GUPNP_DLNA_DEPENDENCIES += gstreamer1 gst1-plugins-base
> +# Gobject-introspection requires gstreamer .gir files.
> +# Vala bindings are created with the .gir files.
> +ifeq ($(BR2_PACKAGE_GOBJECT_INTROSPECTION),y)
> +GUPNP_DLNA_CONF_OPTS += --enable-introspection
> +GUPNP_DLNA_DEPENDENCIES += host-vala gobject-introspection
> +endif
So, vala is _not_ needed to build with introspection.
However, when building with introspection, vala bindings _can_ be
generated if the needed tools are present. But this is totally optional.
However, vala is a host-only package, that has no entry on the menuconfig
(because it is just a tool akin to bison, flex et al.).
So, we have no way to express automatically whether vala bindings should
be enabled.
However, it might be possible that an earlier package has brought
host-vala. So we may or may not have host-vala built by the time
gupnp-dlna is built.
As such, we have three options:
1. Forcibly bring a dependency ti host-vala and build vala bindings,
like Adam did;
2. Add an option to gupnp-dlna to build vala bindings;
3. Add a vala/Config.in/host to manually enable vala, and thus
automatically build the vala bindings.
I am basically OK with point 1, but I'd like a second pair of eyes...
Regards,
Yann E. MORIN.
> else
> -GUPNP_DLNA_CONF_OPTS += --disable-gstreamer-metadata-backend
> +GUPNP_DLNA_CONF_OPTS += \
> + --disable-gstreamer-metadata-backend \
> + --disable-introspection
> endif
>
> $(eval $(autotools-package))
> --
> 2.25.1
>
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
--
.-----------------.--------------------.------------------.--------------------.
| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ |
| +33 561 099 427 `------------.-------: X AGAINST | \e/ There is no |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |
'------------------------------^-------^------------------^--------------------'
next prev parent reply other threads:[~2020-03-29 20:42 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-03-27 18:29 [Buildroot] [PATCH v3 1/7] package/vala/vala-wrapper: fix wrapper aduskett at gmail.com
2020-03-27 18:29 ` [Buildroot] [PATCH v3 2/7] package/vala: install wrapper to vapigen aduskett at gmail.com
2020-03-29 15:13 ` Yann E. MORIN
2020-03-27 18:29 ` [Buildroot] [PATCH v3 3/7] package/gssdp: enable vala support if gobject-introspection is selected aduskett at gmail.com
2020-03-31 21:16 ` Yann E. MORIN
2020-03-27 18:29 ` [Buildroot] [PATCH v3 4/7] package/gssdp: bump version to 1.2.2 aduskett at gmail.com
2020-03-29 19:52 ` Yann E. MORIN
2020-03-27 18:29 ` [Buildroot] [PATCH v3 5/7] package/gupnp: " aduskett at gmail.com
2020-03-27 18:29 ` [Buildroot] [PATCH v3 6/7] package/gupnp: Depend on host-vala if gobject-introspection is selected aduskett at gmail.com
2020-03-31 21:17 ` Yann E. MORIN
2020-03-27 18:30 ` [Buildroot] [PATCH v3 7/7] package/gupnp-dlna: add optional dependency for gobject-introspection aduskett at gmail.com
2020-03-29 20:42 ` Yann E. MORIN [this message]
2020-04-06 20:38 ` Thomas Petazzoni
2020-04-06 20:49 ` Yann E. MORIN
2020-03-29 14:50 ` [Buildroot] [PATCH v3 1/7] package/vala/vala-wrapper: fix wrapper Yann E. MORIN
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=20200329204251.GP22325@scaer \
--to=yann.morin.1998@free.fr \
--cc=buildroot@busybox.net \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox