All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] packagegroup-core-x11: add upgrade path from meta-oe task-x11*
@ 2012-09-04 20:58 Martin Jansa
  2012-09-04 20:58 ` [PATCH 2/2] packagegroup-core-x11: split machine specific parts to separate recipe packagegroup-core-x11-server Martin Jansa
  0 siblings, 1 reply; 5+ messages in thread
From: Martin Jansa @ 2012-09-04 20:58 UTC (permalink / raw)
  To: openembedded-core; +Cc: Paul Eggleton

From: Paul Eggleton <paul.eggleton@linux.intel.com>

This recipe was structured in order to replace task-x11 from meta-oe,
which it hopefully can now that a runtime upgrade path is in place.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
---
 .../recipes-graphics/packagegroups/packagegroup-core-x11.bb | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)

diff --git a/meta/recipes-graphics/packagegroups/packagegroup-core-x11.bb b/meta/recipes-graphics/packagegroups/packagegroup-core-x11.bb
index 3704521..e306c08 100644
--- a/meta/recipes-graphics/packagegroups/packagegroup-core-x11.bb
+++ b/meta/recipes-graphics/packagegroups/packagegroup-core-x11.bb
@@ -3,7 +3,7 @@
 #
 
 LICENSE = "MIT"
-PR = "r36"
+PR = "r37"
 
 inherit packagegroup
 
@@ -39,3 +39,14 @@ RDEPENDS_${PN}-utils = "\
     xset \
     xrandr \
     "
+
+# Allow replacing task-x11* in meta-oe
+RPROVIDES_${PN} = "task-x11"
+RREPLACES_${PN} = "task-x11"
+RCONFLICTS_${PN} = "task-x11"
+RPROVIDES_${PN}-xserver = "task-x11-server task-xserver"
+RREPLACES_${PN}-xserver = "task-x11-server"
+RCONFLICTS_${PN}-xserver = "task-x11-server"
+RPROVIDES_${PN}-utils = "task-x11-utils"
+RREPLACES_${PN}-utils = "task-x11-utils"
+RCONFLICTS_${PN}-utils = "task-x11-utils"
-- 
1.7.12




^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH 2/2] packagegroup-core-x11: split machine specific parts to separate recipe packagegroup-core-x11-server
  2012-09-04 20:58 [PATCH 1/2] packagegroup-core-x11: add upgrade path from meta-oe task-x11* Martin Jansa
@ 2012-09-04 20:58 ` Martin Jansa
  2012-09-06 23:29   ` Richard Purdie
  0 siblings, 1 reply; 5+ messages in thread
From: Martin Jansa @ 2012-09-04 20:58 UTC (permalink / raw)
  To: openembedded-core

* add new packagegroup-core-x11-server to SIGGEN_EXCLUDERECIPES_ABISAFE,
  so that recipes depending on it are not rebuilt after every machine
  swtich
* allows to remove task-x11-server and task-x11 from meta-oe without 
  loosing any functionality
* be carefull with default XSERVER value which does not have 
  xf86-input-mouse and xf86-input-keyboard)
* VIRTUAL-RUNTIME_xserver_common which defaults to x11-common in oe-core 
  and xserver-common in meta-oe's task-x11

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
---
 meta/conf/layer.conf                               |  1 +
 .../packagegroups/packagegroup-core-x11-xserver.bb | 24 ++++++++++++++++++++++
 .../packagegroups/packagegroup-core-x11.bb         | 16 ++-------------
 3 files changed, 27 insertions(+), 14 deletions(-)
 create mode 100644 meta/recipes-graphics/packagegroups/packagegroup-core-x11-xserver.bb

diff --git a/meta/conf/layer.conf b/meta/conf/layer.conf
index dfcb1f3..ed50f1c 100644
--- a/meta/conf/layer.conf
+++ b/meta/conf/layer.conf
@@ -24,4 +24,5 @@ SIGGEN_EXCLUDERECIPES_ABISAFE += " \
   base-files \
   keymaps \
   udev-extraconf \
+  packagegroup-x11-xserver \
 "
diff --git a/meta/recipes-graphics/packagegroups/packagegroup-core-x11-xserver.bb b/meta/recipes-graphics/packagegroups/packagegroup-core-x11-xserver.bb
new file mode 100644
index 0000000..bf39e63
--- /dev/null
+++ b/meta/recipes-graphics/packagegroups/packagegroup-core-x11-xserver.bb
@@ -0,0 +1,24 @@
+#
+# Copyright (C) 2011 Intel Corporation
+#
+
+LICENSE = "MIT"
+PR = "r38"
+
+inherit packagegroup
+
+PACKAGE_ARCH = "${MACHINE_ARCH}"
+
+PACKAGES = "${PN}"
+
+XSERVER ?= "xserver-xorg xf86-video-fbdev xf86-input-evdev"
+
+SUMMARY_${PN} = "X11 display server"
+RDEPENDS_${PN} = "\
+    ${XSERVER} \
+    "
+
+# Allow replacing task-x11-server in meta-oe
+RPROVIDES_${PN} = "task-x11-server task-xserver"
+RREPLACES_${PN} = "task-x11-server task-xserver"
+RCONFLICTS_${PN} = "task-x11-server task-xserver"
diff --git a/meta/recipes-graphics/packagegroups/packagegroup-core-x11.bb b/meta/recipes-graphics/packagegroups/packagegroup-core-x11.bb
index e306c08..e89df3a 100644
--- a/meta/recipes-graphics/packagegroups/packagegroup-core-x11.bb
+++ b/meta/recipes-graphics/packagegroups/packagegroup-core-x11.bb
@@ -3,15 +3,11 @@
 #
 
 LICENSE = "MIT"
-PR = "r37"
+PR = "r38"
 
 inherit packagegroup
 
-PACKAGE_ARCH = "${MACHINE_ARCH}"
-
-PACKAGES = "${PN} ${PN}-xserver ${PN}-utils"
-
-XSERVER ?= "xserver-xorg xf86-video-fbdev xf86-input-evdev"
+PACKAGES = "${PN} ${PN}-utils"
 
 # xserver-common, x11-common
 VIRTUAL-RUNTIME_xserver_common ?= "x11-common"
@@ -25,11 +21,6 @@ RDEPENDS_${PN} = "\
     ${PN}-utils \
     "
 
-SUMMARY_${PN}-xserver = "X11 display server"
-RDEPENDS_${PN}-xserver = "\
-    ${XSERVER} \
-    "
-
 SUMMARY_${PN}-utils = "X11 basic utilities and init"
 RDEPENDS_${PN}-utils = "\
     ${VIRTUAL-RUNTIME_xserver_common} \
@@ -44,9 +35,6 @@ RDEPENDS_${PN}-utils = "\
 RPROVIDES_${PN} = "task-x11"
 RREPLACES_${PN} = "task-x11"
 RCONFLICTS_${PN} = "task-x11"
-RPROVIDES_${PN}-xserver = "task-x11-server task-xserver"
-RREPLACES_${PN}-xserver = "task-x11-server"
-RCONFLICTS_${PN}-xserver = "task-x11-server"
 RPROVIDES_${PN}-utils = "task-x11-utils"
 RREPLACES_${PN}-utils = "task-x11-utils"
 RCONFLICTS_${PN}-utils = "task-x11-utils"
-- 
1.7.12




^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH 2/2] packagegroup-core-x11: split machine specific parts to separate recipe packagegroup-core-x11-server
  2012-09-04 20:58 ` [PATCH 2/2] packagegroup-core-x11: split machine specific parts to separate recipe packagegroup-core-x11-server Martin Jansa
@ 2012-09-06 23:29   ` Richard Purdie
  2012-09-06 23:34     ` Martin Jansa
  0 siblings, 1 reply; 5+ messages in thread
From: Richard Purdie @ 2012-09-06 23:29 UTC (permalink / raw)
  To: Martin Jansa; +Cc: openembedded-core

On Tue, 2012-09-04 at 22:58 +0200, Martin Jansa wrote:
> * add new packagegroup-core-x11-server to SIGGEN_EXCLUDERECIPES_ABISAFE,
>   so that recipes depending on it are not rebuilt after every machine
>   swtich
> * allows to remove task-x11-server and task-x11 from meta-oe without 
>   loosing any functionality
> * be carefull with default XSERVER value which does not have 
>   xf86-input-mouse and xf86-input-keyboard)
> * VIRTUAL-RUNTIME_xserver_common which defaults to x11-common in oe-core 
>   and xserver-common in meta-oe's task-x11
> 
> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
> ---
>  meta/conf/layer.conf                               |  1 +
>  .../packagegroups/packagegroup-core-x11-xserver.bb | 24 ++++++++++++++++++++++
>  .../packagegroups/packagegroup-core-x11.bb         | 16 ++-------------
>  3 files changed, 27 insertions(+), 14 deletions(-)
>  create mode 100644 meta/recipes-graphics/packagegroups/packagegroup-core-x11-xserver.bb

This sneaked in with a load of other patches. I never meant to merge
this as I consider it broken.

Task packages are cheap and having them being machine specific imposes
little overhead. Splitting this into two just increases the parsing
overhead through the number of recipes and doesn't do much else since
there are still machine specific packages involved, all dependencies
still get built etc. so I really don't see the point of the added
complexity.

I'll get flamed to death if I revert this now so I guess I'm stuck :(

Cheers,

Richard




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH 2/2] packagegroup-core-x11: split machine specific parts to separate recipe packagegroup-core-x11-server
  2012-09-06 23:29   ` Richard Purdie
@ 2012-09-06 23:34     ` Martin Jansa
  2012-09-06 23:37       ` Richard Purdie
  0 siblings, 1 reply; 5+ messages in thread
From: Martin Jansa @ 2012-09-06 23:34 UTC (permalink / raw)
  To: Richard Purdie; +Cc: openembedded-core

[-- Attachment #1: Type: text/plain, Size: 1798 bytes --]

On Fri, Sep 07, 2012 at 12:29:59AM +0100, Richard Purdie wrote:
> On Tue, 2012-09-04 at 22:58 +0200, Martin Jansa wrote:
> > * add new packagegroup-core-x11-server to SIGGEN_EXCLUDERECIPES_ABISAFE,
> >   so that recipes depending on it are not rebuilt after every machine
> >   swtich
> > * allows to remove task-x11-server and task-x11 from meta-oe without 
> >   loosing any functionality
> > * be carefull with default XSERVER value which does not have 
> >   xf86-input-mouse and xf86-input-keyboard)
> > * VIRTUAL-RUNTIME_xserver_common which defaults to x11-common in oe-core 
> >   and xserver-common in meta-oe's task-x11
> > 
> > Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
> > ---
> >  meta/conf/layer.conf                               |  1 +
> >  .../packagegroups/packagegroup-core-x11-xserver.bb | 24 ++++++++++++++++++++++
> >  .../packagegroups/packagegroup-core-x11.bb         | 16 ++-------------
> >  3 files changed, 27 insertions(+), 14 deletions(-)
> >  create mode 100644 meta/recipes-graphics/packagegroups/packagegroup-core-x11-xserver.bb
> 
> This sneaked in with a load of other patches. I never meant to merge
> this as I consider it broken.
> 
> Task packages are cheap and having them being machine specific imposes
> little overhead. Splitting this into two just increases the parsing
> overhead through the number of recipes and doesn't do much else since
> there are still machine specific packages involved, all dependencies
> still get built etc. so I really don't see the point of the added
> complexity.

Yes task-* are cheap but if such recipe is in RDEPENDS of some other
more expensive recipe then it's better when it's excluded from sstate.
 
Cheers,

-- 
Martin 'JaMa' Jansa     jabber: Martin.Jansa@gmail.com

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 205 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH 2/2] packagegroup-core-x11: split machine specific parts to separate recipe packagegroup-core-x11-server
  2012-09-06 23:34     ` Martin Jansa
@ 2012-09-06 23:37       ` Richard Purdie
  0 siblings, 0 replies; 5+ messages in thread
From: Richard Purdie @ 2012-09-06 23:37 UTC (permalink / raw)
  To: Martin Jansa; +Cc: openembedded-core

On Fri, 2012-09-07 at 01:34 +0200, Martin Jansa wrote:
> On Fri, Sep 07, 2012 at 12:29:59AM +0100, Richard Purdie wrote:
> > On Tue, 2012-09-04 at 22:58 +0200, Martin Jansa wrote:
> > > * add new packagegroup-core-x11-server to SIGGEN_EXCLUDERECIPES_ABISAFE,
> > >   so that recipes depending on it are not rebuilt after every machine
> > >   swtich
> > > * allows to remove task-x11-server and task-x11 from meta-oe without 
> > >   loosing any functionality
> > > * be carefull with default XSERVER value which does not have 
> > >   xf86-input-mouse and xf86-input-keyboard)
> > > * VIRTUAL-RUNTIME_xserver_common which defaults to x11-common in oe-core 
> > >   and xserver-common in meta-oe's task-x11
> > > 
> > > Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
> > > ---
> > >  meta/conf/layer.conf                               |  1 +
> > >  .../packagegroups/packagegroup-core-x11-xserver.bb | 24 ++++++++++++++++++++++
> > >  .../packagegroups/packagegroup-core-x11.bb         | 16 ++-------------
> > >  3 files changed, 27 insertions(+), 14 deletions(-)
> > >  create mode 100644 meta/recipes-graphics/packagegroups/packagegroup-core-x11-xserver.bb
> > 
> > This sneaked in with a load of other patches. I never meant to merge
> > this as I consider it broken.
> > 
> > Task packages are cheap and having them being machine specific imposes
> > little overhead. Splitting this into two just increases the parsing
> > overhead through the number of recipes and doesn't do much else since
> > there are still machine specific packages involved, all dependencies
> > still get built etc. so I really don't see the point of the added
> > complexity.
> 
> Yes task-* are cheap but if such recipe is in RDEPENDS of some other
> more expensive recipe then it's better when it's excluded from sstate.

Which expensive recipes RDEPEND on task/packagegroup recipes?

Cheers,

Richard




^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-09-06 23:49 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-09-04 20:58 [PATCH 1/2] packagegroup-core-x11: add upgrade path from meta-oe task-x11* Martin Jansa
2012-09-04 20:58 ` [PATCH 2/2] packagegroup-core-x11: split machine specific parts to separate recipe packagegroup-core-x11-server Martin Jansa
2012-09-06 23:29   ` Richard Purdie
2012-09-06 23:34     ` Martin Jansa
2012-09-06 23:37       ` Richard Purdie

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.