* [RFC PATCH] base.bbclass: Deprecate the PRINC logic
@ 2013-05-29 13:51 ` Mark Hatle
0 siblings, 0 replies; 12+ messages in thread
From: Mark Hatle @ 2013-05-29 13:51 UTC (permalink / raw)
To: openembedded-core; +Cc: openembedded-devel
Background:
At the recent TSC meeting we were discussing ways of removing the PRINC
in favor of the PR server, which should now be standard. The first step
in this process is coming up with a simple patch that declared PRINC as
deprecated. If this type of patch is successful, the block of code could
be replaced with a bb.error eventually.
It is not expected that this patch will go in by itself, but instead
should be coordinated with changes to the recipes in common layers such
as openembedded-core, meta-openembedded/meta-* and other community layers.
The commit message follows:
The PRINC logic is now deprecated, the PR server should be used to handle
the automatic incrementing of the PR (package release) field.
A warning message has been added when princ is defined as anything but '0'.
The default setting of '0' has been retained as some layers use embedded
python to increment the PRINC filed. This fails if the base PRINC is not
defined.
Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
---
meta/classes/base.bbclass | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass
index b1642a2..29084a2 100644
--- a/meta/classes/base.bbclass
+++ b/meta/classes/base.bbclass
@@ -465,8 +465,12 @@ python () {
appendVar('EXTRA_OECONF', extraconf)
# If PRINC is set, try and increase the PR value by the amount specified
+ # The PR server is now the preferred way to handle PR changes based on
+ # the checksum of the recipe (including bbappend). The PRINC is now
+ # obsolete. Return a warning to the user.
princ = d.getVar('PRINC', True)
if princ and princ != "0":
+ bb.warn("Use of PRINC is deprecated. The PR server should be used to automatically increment the PR. See: https://wiki.yoctoproject.org/wiki/PR_Service"
pr = d.getVar('PR', True)
pr_prefix = re.search("\D+",pr)
prval = re.search("\d+",pr)
--
1.8.1.2.545.g2f19ada
^ permalink raw reply related [flat|nested] 12+ messages in thread
* [RFC PATCH] base.bbclass: Deprecate the PRINC logic
@ 2013-05-29 13:51 ` Mark Hatle
0 siblings, 0 replies; 12+ messages in thread
From: Mark Hatle @ 2013-05-29 13:51 UTC (permalink / raw)
To: openembedded-core; +Cc: richard.purdie, openembedded-devel
Background:
At the recent TSC meeting we were discussing ways of removing the PRINC
in favor of the PR server, which should now be standard. The first step
in this process is coming up with a simple patch that declared PRINC as
deprecated. If this type of patch is successful, the block of code could
be replaced with a bb.error eventually.
It is not expected that this patch will go in by itself, but instead
should be coordinated with changes to the recipes in common layers such
as openembedded-core, meta-openembedded/meta-* and other community layers.
The commit message follows:
The PRINC logic is now deprecated, the PR server should be used to handle
the automatic incrementing of the PR (package release) field.
A warning message has been added when princ is defined as anything but '0'.
The default setting of '0' has been retained as some layers use embedded
python to increment the PRINC filed. This fails if the base PRINC is not
defined.
Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
---
meta/classes/base.bbclass | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass
index b1642a2..29084a2 100644
--- a/meta/classes/base.bbclass
+++ b/meta/classes/base.bbclass
@@ -465,8 +465,12 @@ python () {
appendVar('EXTRA_OECONF', extraconf)
# If PRINC is set, try and increase the PR value by the amount specified
+ # The PR server is now the preferred way to handle PR changes based on
+ # the checksum of the recipe (including bbappend). The PRINC is now
+ # obsolete. Return a warning to the user.
princ = d.getVar('PRINC', True)
if princ and princ != "0":
+ bb.warn("Use of PRINC is deprecated. The PR server should be used to automatically increment the PR. See: https://wiki.yoctoproject.org/wiki/PR_Service"
pr = d.getVar('PR', True)
pr_prefix = re.search("\D+",pr)
prval = re.search("\d+",pr)
--
1.8.1.2.545.g2f19ada
^ permalink raw reply related [flat|nested] 12+ messages in thread
* Re: [RFC PATCH] base.bbclass: Deprecate the PRINC logic
2013-05-29 13:51 ` Mark Hatle
(?)
@ 2013-05-29 14:11 ` Richard Purdie
-1 siblings, 0 replies; 12+ messages in thread
From: Richard Purdie @ 2013-05-29 14:11 UTC (permalink / raw)
To: Mark Hatle; +Cc: openembedded-devel, openembedded-core
On Wed, 2013-05-29 at 08:51 -0500, Mark Hatle wrote:
> Background:
>
> At the recent TSC meeting we were discussing ways of removing the PRINC
> in favor of the PR server, which should now be standard. The first step
> in this process is coming up with a simple patch that declared PRINC as
> deprecated. If this type of patch is successful, the block of code could
> be replaced with a bb.error eventually.
>
> It is not expected that this patch will go in by itself, but instead
> should be coordinated with changes to the recipes in common layers such
> as openembedded-core, meta-openembedded/meta-* and other community layers.
>
> The commit message follows:
>
> The PRINC logic is now deprecated, the PR server should be used to handle
> the automatic incrementing of the PR (package release) field.
>
> A warning message has been added when princ is defined as anything but '0'.
>
> The default setting of '0' has been retained as some layers use embedded
> python to increment the PRINC filed. This fails if the base PRINC is not
> defined.
>
> Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
> ---
> meta/classes/base.bbclass | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass
> index b1642a2..29084a2 100644
> --- a/meta/classes/base.bbclass
> +++ b/meta/classes/base.bbclass
> @@ -465,8 +465,12 @@ python () {
> appendVar('EXTRA_OECONF', extraconf)
>
> # If PRINC is set, try and increase the PR value by the amount specified
> + # The PR server is now the preferred way to handle PR changes based on
> + # the checksum of the recipe (including bbappend). The PRINC is now
> + # obsolete. Return a warning to the user.
> princ = d.getVar('PRINC', True)
> if princ and princ != "0":
> + bb.warn("Use of PRINC is deprecated. The PR server should be used to automatically increment the PR. See: https://wiki.yoctoproject.org/wiki/PR_Service"
There is a missing ")" here.
Cheers,
Richard
> pr = d.getVar('PR', True)
> pr_prefix = re.search("\D+",pr)
> prval = re.search("\d+",pr)
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [RFC PATCH] base.bbclass: Deprecate the PRINC logic
2013-05-29 13:51 ` Mark Hatle
@ 2013-05-29 14:37 ` Martin Jansa
-1 siblings, 0 replies; 12+ messages in thread
From: Martin Jansa @ 2013-05-29 14:37 UTC (permalink / raw)
To: Mark Hatle; +Cc: openembedded-devel, openembedded-core
[-- Attachment #1: Type: text/plain, Size: 2643 bytes --]
On Wed, May 29, 2013 at 08:51:36AM -0500, Mark Hatle wrote:
> Background:
>
> At the recent TSC meeting we were discussing ways of removing the PRINC
> in favor of the PR server, which should now be standard. The first step
> in this process is coming up with a simple patch that declared PRINC as
> deprecated. If this type of patch is successful, the block of code could
> be replaced with a bb.error eventually.
>
> It is not expected that this patch will go in by itself, but instead
> should be coordinated with changes to the recipes in common layers such
> as openembedded-core, meta-openembedded/meta-* and other community layers.
This doesn't say what's the process of getting all PR increments
applied.
Should we send list of recipes and required PR increments per layer (and
someone will sum these increments and create actual PR bump from it). Or
will we take turns and send actual PR bump patches per layer and someone
will define order of layers to go in (so that we prevent many conflicts
while merging)?
> The commit message follows:
>
> The PRINC logic is now deprecated, the PR server should be used to handle
> the automatic incrementing of the PR (package release) field.
>
> A warning message has been added when princ is defined as anything but '0'.
>
> The default setting of '0' has been retained as some layers use embedded
> python to increment the PRINC filed. This fails if the base PRINC is not
> defined.
>
> Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
> ---
> meta/classes/base.bbclass | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass
> index b1642a2..29084a2 100644
> --- a/meta/classes/base.bbclass
> +++ b/meta/classes/base.bbclass
> @@ -465,8 +465,12 @@ python () {
> appendVar('EXTRA_OECONF', extraconf)
>
> # If PRINC is set, try and increase the PR value by the amount specified
> + # The PR server is now the preferred way to handle PR changes based on
> + # the checksum of the recipe (including bbappend). The PRINC is now
> + # obsolete. Return a warning to the user.
> princ = d.getVar('PRINC', True)
> if princ and princ != "0":
> + bb.warn("Use of PRINC is deprecated. The PR server should be used to automatically increment the PR. See: https://wiki.yoctoproject.org/wiki/PR_Service"
> pr = d.getVar('PR', True)
> pr_prefix = re.search("\D+",pr)
> prval = re.search("\d+",pr)
> --
> 1.8.1.2.545.g2f19ada
>
--
Martin 'JaMa' Jansa jabber: Martin.Jansa@gmail.com
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 205 bytes --]
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [RFC PATCH] base.bbclass: Deprecate the PRINC logic
@ 2013-05-29 14:37 ` Martin Jansa
0 siblings, 0 replies; 12+ messages in thread
From: Martin Jansa @ 2013-05-29 14:37 UTC (permalink / raw)
To: Mark Hatle; +Cc: richard.purdie, openembedded-devel, openembedded-core
[-- Attachment #1: Type: text/plain, Size: 2643 bytes --]
On Wed, May 29, 2013 at 08:51:36AM -0500, Mark Hatle wrote:
> Background:
>
> At the recent TSC meeting we were discussing ways of removing the PRINC
> in favor of the PR server, which should now be standard. The first step
> in this process is coming up with a simple patch that declared PRINC as
> deprecated. If this type of patch is successful, the block of code could
> be replaced with a bb.error eventually.
>
> It is not expected that this patch will go in by itself, but instead
> should be coordinated with changes to the recipes in common layers such
> as openembedded-core, meta-openembedded/meta-* and other community layers.
This doesn't say what's the process of getting all PR increments
applied.
Should we send list of recipes and required PR increments per layer (and
someone will sum these increments and create actual PR bump from it). Or
will we take turns and send actual PR bump patches per layer and someone
will define order of layers to go in (so that we prevent many conflicts
while merging)?
> The commit message follows:
>
> The PRINC logic is now deprecated, the PR server should be used to handle
> the automatic incrementing of the PR (package release) field.
>
> A warning message has been added when princ is defined as anything but '0'.
>
> The default setting of '0' has been retained as some layers use embedded
> python to increment the PRINC filed. This fails if the base PRINC is not
> defined.
>
> Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
> ---
> meta/classes/base.bbclass | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass
> index b1642a2..29084a2 100644
> --- a/meta/classes/base.bbclass
> +++ b/meta/classes/base.bbclass
> @@ -465,8 +465,12 @@ python () {
> appendVar('EXTRA_OECONF', extraconf)
>
> # If PRINC is set, try and increase the PR value by the amount specified
> + # The PR server is now the preferred way to handle PR changes based on
> + # the checksum of the recipe (including bbappend). The PRINC is now
> + # obsolete. Return a warning to the user.
> princ = d.getVar('PRINC', True)
> if princ and princ != "0":
> + bb.warn("Use of PRINC is deprecated. The PR server should be used to automatically increment the PR. See: https://wiki.yoctoproject.org/wiki/PR_Service"
> pr = d.getVar('PR', True)
> pr_prefix = re.search("\D+",pr)
> prval = re.search("\d+",pr)
> --
> 1.8.1.2.545.g2f19ada
>
--
Martin 'JaMa' Jansa jabber: Martin.Jansa@gmail.com
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 205 bytes --]
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [RFC PATCH] base.bbclass: Deprecate the PRINC logic
2013-05-29 14:37 ` Martin Jansa
(?)
@ 2013-05-29 14:47 ` Richard Purdie
2013-05-29 17:00 ` [OE-core] " Otavio Salvador
-1 siblings, 1 reply; 12+ messages in thread
From: Richard Purdie @ 2013-05-29 14:47 UTC (permalink / raw)
To: Martin Jansa; +Cc: openembedded-devel, openembedded-core
On Wed, 2013-05-29 at 16:37 +0200, Martin Jansa wrote:
> On Wed, May 29, 2013 at 08:51:36AM -0500, Mark Hatle wrote:
> > Background:
> >
> > At the recent TSC meeting we were discussing ways of removing the PRINC
> > in favor of the PR server, which should now be standard. The first step
> > in this process is coming up with a simple patch that declared PRINC as
> > deprecated. If this type of patch is successful, the block of code could
> > be replaced with a bb.error eventually.
> >
> > It is not expected that this patch will go in by itself, but instead
> > should be coordinated with changes to the recipes in common layers such
> > as openembedded-core, meta-openembedded/meta-* and other community layers.
>
> This doesn't say what's the process of getting all PR increments
> applied.
>
> Should we send list of recipes and required PR increments per layer (and
> someone will sum these increments and create actual PR bump from it). Or
> will we take turns and send actual PR bump patches per layer and someone
> will define order of layers to go in (so that we prevent many conflicts
> while merging)?
This is something we need to figure out. The realistic process is
probably do this layer by layer. If we can batch some up together that
would obviously be better...
Cheers,
Richard
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [RFC PATCH] base.bbclass: Deprecate the PRINC logic
2013-05-29 14:47 ` Richard Purdie
@ 2013-05-29 17:00 ` Otavio Salvador
0 siblings, 0 replies; 12+ messages in thread
From: Otavio Salvador @ 2013-05-29 17:00 UTC (permalink / raw)
To: Richard Purdie
Cc: Patches and discussions about the oe-core layer,
OpenEmbedded Devel List
[-- Attachment #1: Type: text/plain, Size: 1927 bytes --]
On Wed, May 29, 2013 at 11:47 AM, Richard Purdie <
richard.purdie@linuxfoundation.org> wrote:
> On Wed, 2013-05-29 at 16:37 +0200, Martin Jansa wrote:
> > On Wed, May 29, 2013 at 08:51:36AM -0500, Mark Hatle wrote:
> > > Background:
> > >
> > > At the recent TSC meeting we were discussing ways of removing the PRINC
> > > in favor of the PR server, which should now be standard. The first
> step
> > > in this process is coming up with a simple patch that declared PRINC as
> > > deprecated. If this type of patch is successful, the block of code
> could
> > > be replaced with a bb.error eventually.
> > >
> > > It is not expected that this patch will go in by itself, but instead
> > > should be coordinated with changes to the recipes in common layers such
> > > as openembedded-core, meta-openembedded/meta-* and other community
> layers.
> >
> > This doesn't say what's the process of getting all PR increments
> > applied.
> >
> > Should we send list of recipes and required PR increments per layer (and
> > someone will sum these increments and create actual PR bump from it). Or
> > will we take turns and send actual PR bump patches per layer and someone
> > will define order of layers to go in (so that we prevent many conflicts
> > while merging)?
>
> This is something we need to figure out. The realistic process is
> probably do this layer by layer. If we can batch some up together that
> would obviously be better...
>
If this is the case, to ensure we have the PR in sync we should have it
PRINC as a bb.error; this will cause some pain but will avoid PRServer
picking the layer PRINC and losing it in next build. Or does PRServer
handle this gracefully?
Regards,
--
Otavio Salvador O.S. Systems
http://www.ossystems.com.br http://projetos.ossystems.com.br
Mobile: +55 (53) 9981-7854 Mobile: +1 (347) 903-9750
[-- Attachment #2: Type: text/html, Size: 2609 bytes --]
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [OE-core] [RFC PATCH] base.bbclass: Deprecate the PRINC logic
@ 2013-05-29 17:00 ` Otavio Salvador
0 siblings, 0 replies; 12+ messages in thread
From: Otavio Salvador @ 2013-05-29 17:00 UTC (permalink / raw)
To: Richard Purdie
Cc: Patches and discussions about the oe-core layer,
OpenEmbedded Devel List
On Wed, May 29, 2013 at 11:47 AM, Richard Purdie <
richard.purdie@linuxfoundation.org> wrote:
> On Wed, 2013-05-29 at 16:37 +0200, Martin Jansa wrote:
> > On Wed, May 29, 2013 at 08:51:36AM -0500, Mark Hatle wrote:
> > > Background:
> > >
> > > At the recent TSC meeting we were discussing ways of removing the PRINC
> > > in favor of the PR server, which should now be standard. The first
> step
> > > in this process is coming up with a simple patch that declared PRINC as
> > > deprecated. If this type of patch is successful, the block of code
> could
> > > be replaced with a bb.error eventually.
> > >
> > > It is not expected that this patch will go in by itself, but instead
> > > should be coordinated with changes to the recipes in common layers such
> > > as openembedded-core, meta-openembedded/meta-* and other community
> layers.
> >
> > This doesn't say what's the process of getting all PR increments
> > applied.
> >
> > Should we send list of recipes and required PR increments per layer (and
> > someone will sum these increments and create actual PR bump from it). Or
> > will we take turns and send actual PR bump patches per layer and someone
> > will define order of layers to go in (so that we prevent many conflicts
> > while merging)?
>
> This is something we need to figure out. The realistic process is
> probably do this layer by layer. If we can batch some up together that
> would obviously be better...
>
If this is the case, to ensure we have the PR in sync we should have it
PRINC as a bb.error; this will cause some pain but will avoid PRServer
picking the layer PRINC and losing it in next build. Or does PRServer
handle this gracefully?
Regards,
--
Otavio Salvador O.S. Systems
http://www.ossystems.com.br http://projetos.ossystems.com.br
Mobile: +55 (53) 9981-7854 Mobile: +1 (347) 903-9750
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [RFC PATCH] base.bbclass: Deprecate the PRINC logic
2013-05-29 17:00 ` [OE-core] " Otavio Salvador
@ 2013-05-29 21:24 ` Richard Purdie
-1 siblings, 0 replies; 12+ messages in thread
From: Richard Purdie @ 2013-05-29 21:24 UTC (permalink / raw)
To: Otavio Salvador
Cc: Patches and discussions about the oe-core layer,
OpenEmbedded Devel List
On Wed, 2013-05-29 at 14:00 -0300, Otavio Salvador wrote:
> On Wed, May 29, 2013 at 11:47 AM, Richard Purdie
> <richard.purdie@linuxfoundation.org> wrote:
> On Wed, 2013-05-29 at 16:37 +0200, Martin Jansa wrote:
> > On Wed, May 29, 2013 at 08:51:36AM -0500, Mark Hatle wrote:
> > > Background:
> > >
> > > At the recent TSC meeting we were discussing ways of
> removing the PRINC
> > > in favor of the PR server, which should now be standard.
> The first step
> > > in this process is coming up with a simple patch that
> declared PRINC as
> > > deprecated. If this type of patch is successful, the
> block of code could
> > > be replaced with a bb.error eventually.
> > >
> > > It is not expected that this patch will go in by itself,
> but instead
> > > should be coordinated with changes to the recipes in
> common layers such
> > > as openembedded-core, meta-openembedded/meta-* and other
> community layers.
> >
> > This doesn't say what's the process of getting all PR
> increments
> > applied.
> >
> > Should we send list of recipes and required PR increments
> per layer (and
> > someone will sum these increments and create actual PR bump
> from it). Or
> > will we take turns and send actual PR bump patches per layer
> and someone
> > will define order of layers to go in (so that we prevent
> many conflicts
> > while merging)?
>
>
> This is something we need to figure out. The realistic process
> is
> probably do this layer by layer. If we can batch some up
> together that
> would obviously be better...
> If this is the case, to ensure we have the PR in sync we should have
> it PRINC as a bb.error; this will cause some pain but will avoid
> PRServer picking the layer PRINC and losing it in next build. Or does
> PRServer handle this gracefully?
I proposed this but other TSC members didn't like the approach and would
prefer a grace/warning period, maybe spanning until after the next
release.
I can see the arguments both ways...
Cheers,
Richard
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [OE-core] [RFC PATCH] base.bbclass: Deprecate the PRINC logic
@ 2013-05-29 21:24 ` Richard Purdie
0 siblings, 0 replies; 12+ messages in thread
From: Richard Purdie @ 2013-05-29 21:24 UTC (permalink / raw)
To: Otavio Salvador
Cc: Patches and discussions about the oe-core layer,
OpenEmbedded Devel List
On Wed, 2013-05-29 at 14:00 -0300, Otavio Salvador wrote:
> On Wed, May 29, 2013 at 11:47 AM, Richard Purdie
> <richard.purdie@linuxfoundation.org> wrote:
> On Wed, 2013-05-29 at 16:37 +0200, Martin Jansa wrote:
> > On Wed, May 29, 2013 at 08:51:36AM -0500, Mark Hatle wrote:
> > > Background:
> > >
> > > At the recent TSC meeting we were discussing ways of
> removing the PRINC
> > > in favor of the PR server, which should now be standard.
> The first step
> > > in this process is coming up with a simple patch that
> declared PRINC as
> > > deprecated. If this type of patch is successful, the
> block of code could
> > > be replaced with a bb.error eventually.
> > >
> > > It is not expected that this patch will go in by itself,
> but instead
> > > should be coordinated with changes to the recipes in
> common layers such
> > > as openembedded-core, meta-openembedded/meta-* and other
> community layers.
> >
> > This doesn't say what's the process of getting all PR
> increments
> > applied.
> >
> > Should we send list of recipes and required PR increments
> per layer (and
> > someone will sum these increments and create actual PR bump
> from it). Or
> > will we take turns and send actual PR bump patches per layer
> and someone
> > will define order of layers to go in (so that we prevent
> many conflicts
> > while merging)?
>
>
> This is something we need to figure out. The realistic process
> is
> probably do this layer by layer. If we can batch some up
> together that
> would obviously be better...
> If this is the case, to ensure we have the PR in sync we should have
> it PRINC as a bb.error; this will cause some pain but will avoid
> PRServer picking the layer PRINC and losing it in next build. Or does
> PRServer handle this gracefully?
I proposed this but other TSC members didn't like the approach and would
prefer a grace/warning period, maybe spanning until after the next
release.
I can see the arguments both ways...
Cheers,
Richard
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [RFC PATCH] base.bbclass: Deprecate the PRINC logic
2013-05-29 21:24 ` [OE-core] " Richard Purdie
(?)
@ 2013-05-29 21:29 ` Mark Hatle
2013-05-29 22:57 ` Otavio Salvador
-1 siblings, 1 reply; 12+ messages in thread
From: Mark Hatle @ 2013-05-29 21:29 UTC (permalink / raw)
To: openembedded-core
On 5/29/13 4:24 PM, Richard Purdie wrote:
> On Wed, 2013-05-29 at 14:00 -0300, Otavio Salvador wrote:
>> On Wed, May 29, 2013 at 11:47 AM, Richard Purdie
>> <richard.purdie@linuxfoundation.org> wrote:
>> On Wed, 2013-05-29 at 16:37 +0200, Martin Jansa wrote:
>> > On Wed, May 29, 2013 at 08:51:36AM -0500, Mark Hatle wrote:
>> > > Background:
>> > >
>> > > At the recent TSC meeting we were discussing ways of
>> removing the PRINC
>> > > in favor of the PR server, which should now be standard.
>> The first step
>> > > in this process is coming up with a simple patch that
>> declared PRINC as
>> > > deprecated. If this type of patch is successful, the
>> block of code could
>> > > be replaced with a bb.error eventually.
>> > >
>> > > It is not expected that this patch will go in by itself,
>> but instead
>> > > should be coordinated with changes to the recipes in
>> common layers such
>> > > as openembedded-core, meta-openembedded/meta-* and other
>> community layers.
>> >
>> > This doesn't say what's the process of getting all PR
>> increments
>> > applied.
>> >
>> > Should we send list of recipes and required PR increments
>> per layer (and
>> > someone will sum these increments and create actual PR bump
>> from it). Or
>> > will we take turns and send actual PR bump patches per layer
>> and someone
>> > will define order of layers to go in (so that we prevent
>> many conflicts
>> > while merging)?
>>
>>
>> This is something we need to figure out. The realistic process
>> is
>> probably do this layer by layer. If we can batch some up
>> together that
>> would obviously be better...
>
>> If this is the case, to ensure we have the PR in sync we should have
>> it PRINC as a bb.error; this will cause some pain but will avoid
>> PRServer picking the layer PRINC and losing it in next build. Or does
>> PRServer handle this gracefully?
>
> I proposed this but other TSC members didn't like the approach and would
> prefer a grace/warning period, maybe spanning until after the next
> release.
>
> I can see the arguments both ways...
I prefer the warning for one release approach. What I'm afraid will happen is
oe-core is released in the Fall, and a group of users migrates to it from the
last release and suddenly all of their layers break. These are the people who
do not keep up with day to day development.
With the warning, they won't be immediately blocked -- but will be sufficiently
annoyed (and warned) that they need to fix something or it will break.
--Mark
> Cheers,
>
> Richard
>
>
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core
>
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [RFC PATCH] base.bbclass: Deprecate the PRINC logic
2013-05-29 21:29 ` Mark Hatle
@ 2013-05-29 22:57 ` Otavio Salvador
0 siblings, 0 replies; 12+ messages in thread
From: Otavio Salvador @ 2013-05-29 22:57 UTC (permalink / raw)
To: Mark Hatle; +Cc: Patches and discussions about the oe-core layer
[-- Attachment #1: Type: text/plain, Size: 3874 bytes --]
On Wed, May 29, 2013 at 6:29 PM, Mark Hatle <mark.hatle@windriver.com>wrote:
> On 5/29/13 4:24 PM, Richard Purdie wrote:
>
>> On Wed, 2013-05-29 at 14:00 -0300, Otavio Salvador wrote:
>>
>>> On Wed, May 29, 2013 at 11:47 AM, Richard Purdie
>>> <richard.purdie@**linuxfoundation.org<richard.purdie@linuxfoundation.org>>
>>> wrote:
>>> On Wed, 2013-05-29 at 16:37 +0200, Martin Jansa wrote:
>>> > On Wed, May 29, 2013 at 08:51:36AM -0500, Mark Hatle wrote:
>>> > > Background:
>>> > >
>>> > > At the recent TSC meeting we were discussing ways of
>>> removing the PRINC
>>> > > in favor of the PR server, which should now be standard.
>>> The first step
>>> > > in this process is coming up with a simple patch that
>>> declared PRINC as
>>> > > deprecated. If this type of patch is successful, the
>>> block of code could
>>> > > be replaced with a bb.error eventually.
>>> > >
>>> > > It is not expected that this patch will go in by itself,
>>> but instead
>>> > > should be coordinated with changes to the recipes in
>>> common layers such
>>> > > as openembedded-core, meta-openembedded/meta-* and other
>>> community layers.
>>> >
>>> > This doesn't say what's the process of getting all PR
>>> increments
>>> > applied.
>>> >
>>> > Should we send list of recipes and required PR increments
>>> per layer (and
>>> > someone will sum these increments and create actual PR bump
>>> from it). Or
>>> > will we take turns and send actual PR bump patches per layer
>>> and someone
>>> > will define order of layers to go in (so that we prevent
>>> many conflicts
>>> > while merging)?
>>>
>>>
>>> This is something we need to figure out. The realistic process
>>> is
>>> probably do this layer by layer. If we can batch some up
>>> together that
>>> would obviously be better...
>>>
>>
>> If this is the case, to ensure we have the PR in sync we should have
>>> it PRINC as a bb.error; this will cause some pain but will avoid
>>> PRServer picking the layer PRINC and losing it in next build. Or does
>>> PRServer handle this gracefully?
>>>
>>
>> I proposed this but other TSC members didn't like the approach and would
>> prefer a grace/warning period, maybe spanning until after the next
>> release.
>>
>> I can see the arguments both ways...
>>
>
> I prefer the warning for one release approach. What I'm afraid will
> happen is oe-core is released in the Fall, and a group of users migrates to
> it from the last release and suddenly all of their layers break. These are
> the people who do not keep up with day to day development.
>
> With the warning, they won't be immediately blocked -- but will be
> sufficiently annoyed (and warned) that they need to fix something or it
> will break.
The problem is the following:
OE-Core adds warning;
Layer1 submit the PR bump request and drop the internal PRINC
Layer1 gets PRINC removal commited
User1 updates Layer1 (and OE-Core didn't yet apply the PR bump)
PR goes backwards.
Now the inverse:
OE-Core adds warning;
Layer1 submit the PR bump request and drop the internal PRINC
OE-Core commits PR bump
User1 updates Layer1 (and OE-Core didn't yet apply the PR bump)
PR goes forward as PRINC didn't yet been removed so when Layer1 is updated
again, it will go backwards
--
Otavio Salvador O.S. Systems
http://www.ossystems.com.br http://projetos.ossystems.com.br
Mobile: +55 (53) 9981-7854 Mobile: +1 (347) 903-9750
[-- Attachment #2: Type: text/html, Size: 5401 bytes --]
^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2013-05-29 22:57 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-29 13:51 [RFC PATCH] base.bbclass: Deprecate the PRINC logic Mark Hatle
2013-05-29 13:51 ` Mark Hatle
2013-05-29 14:11 ` Richard Purdie
2013-05-29 14:37 ` Martin Jansa
2013-05-29 14:37 ` Martin Jansa
2013-05-29 14:47 ` Richard Purdie
2013-05-29 17:00 ` Otavio Salvador
2013-05-29 17:00 ` [OE-core] " Otavio Salvador
2013-05-29 21:24 ` Richard Purdie
2013-05-29 21:24 ` [OE-core] " Richard Purdie
2013-05-29 21:29 ` Mark Hatle
2013-05-29 22:57 ` Otavio Salvador
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.