libx11: skip self if x11 not in DISTRO_FEATURES
PATCH 1/1 libx11: skip self if x11 not in DISTRO_FEATURES
This stops (most) x11 packages leaking into a non-x11 distro by mistake.
--- meta/recipes-graphics/xorg-lib/libx11.inc | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-)
meta/recipes-graphics/xorg-lib/libx11.inc +5 -0
@@ -42,3 +42,8 @@ do_compile() { # Multiple libx11 derivatives from from this file and are selected by virtual/libx11 # A world build should only build the correct version, not all of them. EXCLUDE_FROM_WORLD = "1" + +python () { + if not oe.utils.contains ('DISTRO_FEATURES', 'x11', True, False, d): + raise bb.parse.SkipPackage("X11 not enabled for this DISTRO") +}
Signature · 1 line
1.7.4.1
Although, it is already mergerd by Richard, I really like this patch series (after testing it).
Quoted 1 line · Phil Blundell
This stops (most) x11 packages leaking into a non-x11 distro by mistake.
Will you submit this to meta-oe also?
This question might apply to a few of the other patches also.
Cheers,
Anders
Quoted 18 lines
Signed-off-by Phil Blundell <[email protected]>--- meta/recipes-graphics/xorg-lib/libx11.inc | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-)meta/recipes-graphics/xorg-lib/libx11.inc +5
-0@@ -42,3 +42,8 @@ do_compile() { # Multiple libx11 derivatives from from this file and are selected by virtual/libx11 # A world build should only build the correct version, not all of them. EXCLUDE_FROM_WORLD = "1" + +python () { + if not oe.utils.contains ('DISTRO_FEATURES', 'x11', True, False, d): + raise bb.parse.SkipPackage("X11 not enabled for this DISTRO") +}
Signature · 4 lines
Anders Darander ChargeStorm AB Tel: +46 702 44 84 36 Laxholmstorget 3 Email: [email protected] 602 21 Norrköping Web: www.chargestorm.se
Quoted 8 lines · Anders Darander
Although, it is already mergerd by Richard, I really like this patch series (after testing it).
Quoted 1 line · Phil Blundell
This stops (most) x11 packages leaking into a non-x11 distro by mistake.
Will you submit this to meta-oe also?
This question might apply to a few of the other patches also.
I hadn't planned to (in fact, I hadn't previously realised that meta-oe had its own copy of those files). If you think that would be a good idea then you're obviously welcome to do so, though.
p.
Quoted 5 lines · Phil Blundell
Quoted 4 lines · Anders Darander
Although, it is already mergerd by Richard, I really like this patch series (after testing it).
* Phil Blundell <[email protected]> [110812 17:57]:
Quoted 8 lines
Quoted 4 lines
Quoted 1 line
This stops (most) x11 packages leaking into a non-x11 distro by mistake.
Will you submit this to meta-oe also?
This question might apply to a few of the other patches also.I hadn't planned to (in fact, I hadn't previously realised that meta-oe had its own copy of those files). If you think that would be a good idea then you're obviously welcome to do so, though.
Ok, then I'll submit such a patch.
I didn't really this either, until just before lunch, when I found the reason that e.g. libxcb and libx11 still was being built...
The short-term solution is to get a similar patch applied to meta-oe. The long-term solution, any volunteers?, would be to convert the qt4-recipes in meta-to bbappends (if they still are needed).
Cheers,
Anders
Signature · 4 lines
Anders Darander ChargeStorm AB Tel: +46 702 44 84 36 Laxholmstorget 3 Email: [email protected] 602 21 Norrköping Web: www.chargestorm.se
Quoted 3 lines · On Monday 15 August 2011 14:15:47 Anders Darander wrote:
The short-term solution is to get a similar patch applied to meta-oe. The long-term solution, any volunteers?, would be to convert the qt4-recipes in meta-to bbappends (if they still are needed).
I already did this a few weeks ago. The only Qt 4 thing left that is a full recipe in meta-oe is qmake2 (for the target).
Cheers,
Paul
Signature · 2 lines
Paul Eggleton Intel Open Source Technology Centre
Quoted 4 lines · Paul Eggleton
Quoted 3 lines · On Monday 15 August 2011 14:15:47 Anders Darander wrote:
The short-term solution is to get a similar patch applied to meta-oe. The long-term solution, any volunteers?, would be to convert the qt4-recipes in meta-to bbappends (if they still are needed).
s/qt4*/libx11/ in this section.
Quoted 2 lines
I already did this a few weeks ago. The only Qt 4 thing left that is a full recipe in meta-oe is qmake2 (for the target).
My apologies... You're of course right, and that change is something I appreciate (it makes my life a lot simpler).
I've been struggling with a few other qt4-related issues (one or two RFC-patches will be submitted shortly), that's why I mistakenly wrote qt4.
I meant libx11 (in xorg-lib) in my last e-mail.
Cheers,
Anders
Signature · 4 lines
Anders Darander ChargeStorm AB Tel: +46 702 44 84 36 Laxholmstorget 3 Email: [email protected] 602 21 Norrköping Web: www.chargestorm.se
Quoted 5 lines · On Monday 15 August 2011 14:32:59 Anders Darander wrote:
I've been struggling with a few other qt4-related issues (one or two RFC-patches will be submitted shortly), that's why I mistakenly wrote qt4.
I meant libx11 (in xorg-lib) in my last e-mail.
Ah yes, I realised this after sending, no worries :)
I definitely agree, anything that's a duplicated recipe in meta-oe ought to be turned into a bbappend. In addition, any newer version in meta-oe of recipes in oe-core ought to just be pushed up to oe-core unless there is a really good reason to do otherwise.
Cheers,
Paul
Signature · 2 lines
Paul Eggleton Intel Open Source Technology Centre
Quoted 12 lines · Phil Blundell
This stops (most) x11 packages leaking into a non-x11 distro by mistake.
Signed-off-by Phil Blundell<[email protected]>--- meta/recipes-graphics/xorg-lib/libx11.inc | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-)meta/recipes-graphics/xorg-lib/libx11.inc +0
-0
meta/recipes-graphics/xorg-lib/libx11.inc do_compile() { · line 49
Quoted 8 lines
meta/recipes-graphics/xorg-lib/libx11.inc +5
-0@@ -42,3 +42,8 @@ do_compile() { # Multiple libx11 derivatives from from this file and are selected by virtual/libx11 # A world build should only build the correct version, not all of them. EXCLUDE_FROM_WORLD = "1" + +python () { + if not oe.utils.contains ('DISTRO_FEATURES', 'x11', True, False, d): + raise bb.parse.SkipPackage("X11 not enabled for this DISTRO") +}
This has been merged, sorry for the response delay
Thanks
Sau!