* [PATCH] webkitgtk: add REQUIRED_DISTRO_FEATURES
@ 2015-09-21 14:01 Martin Jansa
2015-09-21 16:01 ` Alexander Kanavin
0 siblings, 1 reply; 7+ messages in thread
From: Martin Jansa @ 2015-09-21 14:01 UTC (permalink / raw)
To: openembedded-core
* original webkit-gtk_1.8.3.bb recipe already had this, I don't know
why it was removed when upgrading to 2.8.5
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
---
meta/recipes-sato/webkit/webkitgtk_2.8.5.bb | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/meta/recipes-sato/webkit/webkitgtk_2.8.5.bb b/meta/recipes-sato/webkit/webkitgtk_2.8.5.bb
index 82d670d..859d0cb 100644
--- a/meta/recipes-sato/webkit/webkitgtk_2.8.5.bb
+++ b/meta/recipes-sato/webkit/webkitgtk_2.8.5.bb
@@ -18,7 +18,10 @@ SRC_URI = "\
SRC_URI[md5sum] = "df79991848a5096d3a75289ebce547ae"
SRC_URI[sha256sum] = "3d1f0c534935f43fd74df90f2648fcee672d60f1f57a30fa557a77891ae04d20"
-inherit cmake lib_package pkgconfig perlnative pythonnative
+inherit cmake lib_package pkgconfig perlnative pythonnative distro_features_check
+
+# depends on libxt
+REQUIRED_DISTRO_FEATURES = "x11"
DEPENDS = "zlib enchant libsoup-2.4 curl libxml2 cairo libxslt libxt libidn gnutls \
gtk+ gtk+3 gstreamer1.0 gstreamer1.0-plugins-base flex-native gperf-native sqlite3 \
--
2.5.1
^ permalink raw reply related [flat|nested] 7+ messages in thread* Re: [PATCH] webkitgtk: add REQUIRED_DISTRO_FEATURES
2015-09-21 14:01 [PATCH] webkitgtk: add REQUIRED_DISTRO_FEATURES Martin Jansa
@ 2015-09-21 16:01 ` Alexander Kanavin
2015-09-21 16:49 ` Burton, Ross
2015-09-21 18:57 ` Martin Jansa
0 siblings, 2 replies; 7+ messages in thread
From: Alexander Kanavin @ 2015-09-21 16:01 UTC (permalink / raw)
To: openembedded-core
On 09/21/2015 05:01 PM, Martin Jansa wrote:
> * original webkit-gtk_1.8.3.bb recipe already had this, I don't know
> why it was removed when upgrading to 2.8.5
It was removed because I couldn't figure out why it's actually needed.
What is the scenario?
Regards,
Alex
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] webkitgtk: add REQUIRED_DISTRO_FEATURES
2015-09-21 16:01 ` Alexander Kanavin
@ 2015-09-21 16:49 ` Burton, Ross
2015-09-22 11:12 ` alexander.kanavin
2015-09-21 18:57 ` Martin Jansa
1 sibling, 1 reply; 7+ messages in thread
From: Burton, Ross @ 2015-09-21 16:49 UTC (permalink / raw)
To: Alexander Kanavin; +Cc: OE-core
[-- Attachment #1: Type: text/plain, Size: 798 bytes --]
On 21 September 2015 at 17:01, Alexander Kanavin <
alexander.kanavin@linux.intel.com> wrote:
> On 09/21/2015 05:01 PM, Martin Jansa wrote:
>
>> * original webkit-gtk_1.8.3.bb recipe already had this, I don't know
>> why it was removed when upgrading to 2.8.5
>>
>
> It was removed because I couldn't figure out why it's actually needed.
> What is the scenario?
>
Remove x11 from DISTRO_FEATURES ("I'm building a product that doesn't need
or use X") and build webkitgtk. webkitgtk depends on libxt which depends
on libx11 which then refuses to build because you explicitly said you
didn't want X.
We're adding required_distro_feature annotations as required so that world
builds without X11 enabled still work by skipping the recipes instead of
failing to build.
Ross
[-- Attachment #2: Type: text/html, Size: 1469 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: [PATCH] webkitgtk: add REQUIRED_DISTRO_FEATURES
2015-09-21 16:49 ` Burton, Ross
@ 2015-09-22 11:12 ` alexander.kanavin
2015-09-22 13:17 ` Martin Jansa
0 siblings, 1 reply; 7+ messages in thread
From: alexander.kanavin @ 2015-09-22 11:12 UTC (permalink / raw)
To: openembedded-core
> Remove x11 from DISTRO_FEATURES ("I'm building a product that doesn't need
> or use X") and build webkitgtk. webkitgtk depends on libxt which depends
> on libx11 which then refuses to build because you explicitly said you
> didn't want X.
>
> We're adding required_distro_feature annotations as required so that world
> builds without X11 enabled still work by skipping the recipes instead of
> failing to build.
But this means you need to add this to every recipe that directly or
indirectly depends on libx11. Which is crazy awkward and error-prone.
Why can't the tools figure out which recipes should be excluded from
builds without explicit annotations?
Alex
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] webkitgtk: add REQUIRED_DISTRO_FEATURES
2015-09-21 16:01 ` Alexander Kanavin
2015-09-21 16:49 ` Burton, Ross
@ 2015-09-21 18:57 ` Martin Jansa
1 sibling, 0 replies; 7+ messages in thread
From: Martin Jansa @ 2015-09-21 18:57 UTC (permalink / raw)
To: Alexander Kanavin; +Cc: openembedded-core
[-- Attachment #1: Type: text/plain, Size: 543 bytes --]
On Mon, Sep 21, 2015 at 07:01:15PM +0300, Alexander Kanavin wrote:
> On 09/21/2015 05:01 PM, Martin Jansa wrote:
> > * original webkit-gtk_1.8.3.bb recipe already had this, I don't know
> > why it was removed when upgrading to 2.8.5
>
> It was removed because I couldn't figure out why it's actually needed.
> What is the scenario?
DISTROs without x11 shouldn't try to build webkitgtk, because it will
fail with ugly error message about libxt not being available.
--
Martin 'JaMa' Jansa jabber: Martin.Jansa@gmail.com
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 188 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2015-09-22 14:25 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-21 14:01 [PATCH] webkitgtk: add REQUIRED_DISTRO_FEATURES Martin Jansa
2015-09-21 16:01 ` Alexander Kanavin
2015-09-21 16:49 ` Burton, Ross
2015-09-22 11:12 ` alexander.kanavin
2015-09-22 13:17 ` Martin Jansa
2015-09-22 14:24 ` alexander.kanavin
2015-09-21 18:57 ` Martin Jansa
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox