* Re: [oe-commits] Mark Hatle : base.bbclass: Deprecate the PRINC logic [not found] <20130528132841.A450B5039B@opal> @ 2013-05-28 13:46 ` Martin Jansa 2013-05-28 13:56 ` Martin Jansa 2013-05-28 14:06 ` [OE-core] " Richard Purdie 0 siblings, 2 replies; 4+ messages in thread From: Martin Jansa @ 2013-05-28 13:46 UTC (permalink / raw) To: openembedded-devel; +Cc: openembedded-core [-- Attachment #1: Type: text/plain, Size: 2987 bytes --] On Tue, May 28, 2013 at 01:28:41PM +0000, git@git.openembedded.org wrote: > Module: openembedded-core.git > Branch: master-next > Commit: e1cf564ebc8e7b4fa626a645356f6a4d7f5ba064 > URL: http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=e1cf564ebc8e7b4fa626a645356f6a4d7f5ba064 > > Author: Mark Hatle <mark.hatle@windriver.com> > Date: Tue May 21 13:29:03 2013 -0500 > > base.bbclass: Deprecate the PRINC logic > > The PRINC logic is now deprecated, the PR server should be used to handle > the automatic incrementing of the PR (package release) field. The default > setting of '0' has been removed, and a warning message has been added. How are people supposed to remove existing PRINC without causing version going backwards? Do I have to choose between seeing 100 warnings about deprecated PRINC or 100 ERRORs from buildhistory about versions going backwards? > Signed-off-by: Mark Hatle <mark.hatle@windriver.com> > Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> > > --- > > meta/classes/base.bbclass | 4 ++++ > meta/conf/bitbake.conf | 1 - > 2 files changed, 4 insertions(+), 1 deletions(-) > > 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) > diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf > index 174236d..115832c 100644 > --- a/meta/conf/bitbake.conf > +++ b/meta/conf/bitbake.conf > @@ -186,7 +186,6 @@ ASSUME_PROVIDED = "\ > PN = "${@bb.parse.BBHandler.vars_from_file(d.getVar('FILE'),d)[0] or 'defaultpkgname'}" > PV = "${@bb.parse.BBHandler.vars_from_file(d.getVar('FILE'),d)[1] or '1.0'}" > PR = "${@bb.parse.BBHandler.vars_from_file(d.getVar('FILE'),d)[2] or 'r0'}" > -PRINC ?= "0" > PF = "${PN}-${EXTENDPE}${PV}-${PR}" > EXTENDPE = "${@['','${PE\x7d_'][int(d.getVar('PE',1) or 0) > 0]}" > P = "${PN}-${PV}" > > _______________________________________________ > Openembedded-commits mailing list > Openembedded-commits@lists.openembedded.org > http://lists.openembedded.org/mailman/listinfo/openembedded-commits -- Martin 'JaMa' Jansa jabber: Martin.Jansa@gmail.com [-- Attachment #2: Digital signature --] [-- Type: application/pgp-signature, Size: 205 bytes --] ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [oe-commits] Mark Hatle : base.bbclass: Deprecate the PRINC logic 2013-05-28 13:46 ` [oe-commits] Mark Hatle : base.bbclass: Deprecate the PRINC logic Martin Jansa @ 2013-05-28 13:56 ` Martin Jansa 2013-05-28 14:06 ` [OE-core] " Richard Purdie 1 sibling, 0 replies; 4+ messages in thread From: Martin Jansa @ 2013-05-28 13:56 UTC (permalink / raw) To: openembedded-devel; +Cc: openembedded-core [-- Attachment #1: Type: text/plain, Size: 3616 bytes --] On Tue, May 28, 2013 at 03:46:06PM +0200, Martin Jansa wrote: > On Tue, May 28, 2013 at 01:28:41PM +0000, git@git.openembedded.org wrote: > > Module: openembedded-core.git > > Branch: master-next > > Commit: e1cf564ebc8e7b4fa626a645356f6a4d7f5ba064 > > URL: http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=e1cf564ebc8e7b4fa626a645356f6a4d7f5ba064 > > > > Author: Mark Hatle <mark.hatle@windriver.com> > > Date: Tue May 21 13:29:03 2013 -0500 > > > > base.bbclass: Deprecate the PRINC logic > > > > The PRINC logic is now deprecated, the PR server should be used to handle > > the automatic incrementing of the PR (package release) field. The default > > setting of '0' has been removed, and a warning message has been added. > > How are people supposed to remove existing PRINC without causing version > going backwards? > > Do I have to choose between seeing 100 warnings about deprecated PRINC > or 100 ERRORs from buildhistory about versions going backwards? Also subject: base.bbclass: BREAK and deprecate the PRINC logic would be more accurate ERROR: ExpansionError during parsing /OE/shr-core/meta-openembedded/meta-systemd/recipes-core/systemd/systemd-machine-units_1.0.bb: Failure expanding variable PRINC[:=], expression was ${@int(PRINC) + 2} which triggered exception NameError: name 'PRINC' is not defined > > Signed-off-by: Mark Hatle <mark.hatle@windriver.com> > > Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> > > > > --- > > > > meta/classes/base.bbclass | 4 ++++ > > meta/conf/bitbake.conf | 1 - > > 2 files changed, 4 insertions(+), 1 deletions(-) > > > > 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) > > diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf > > index 174236d..115832c 100644 > > --- a/meta/conf/bitbake.conf > > +++ b/meta/conf/bitbake.conf > > @@ -186,7 +186,6 @@ ASSUME_PROVIDED = "\ > > PN = "${@bb.parse.BBHandler.vars_from_file(d.getVar('FILE'),d)[0] or 'defaultpkgname'}" > > PV = "${@bb.parse.BBHandler.vars_from_file(d.getVar('FILE'),d)[1] or '1.0'}" > > PR = "${@bb.parse.BBHandler.vars_from_file(d.getVar('FILE'),d)[2] or 'r0'}" > > -PRINC ?= "0" > > PF = "${PN}-${EXTENDPE}${PV}-${PR}" > > EXTENDPE = "${@['','${PE\x7d_'][int(d.getVar('PE',1) or 0) > 0]}" > > P = "${PN}-${PV}" > > > > _______________________________________________ > > Openembedded-commits mailing list > > Openembedded-commits@lists.openembedded.org > > http://lists.openembedded.org/mailman/listinfo/openembedded-commits > > -- > Martin 'JaMa' Jansa jabber: Martin.Jansa@gmail.com -- Martin 'JaMa' Jansa jabber: Martin.Jansa@gmail.com [-- Attachment #2: Digital signature --] [-- Type: application/pgp-signature, Size: 205 bytes --] ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [OE-core] [oe-commits] Mark Hatle : base.bbclass: Deprecate the PRINC logic 2013-05-28 13:46 ` [oe-commits] Mark Hatle : base.bbclass: Deprecate the PRINC logic Martin Jansa 2013-05-28 13:56 ` Martin Jansa @ 2013-05-28 14:06 ` Richard Purdie 2013-05-28 15:36 ` Mark Hatle 1 sibling, 1 reply; 4+ messages in thread From: Richard Purdie @ 2013-05-28 14:06 UTC (permalink / raw) To: Martin Jansa, Mark Hatle; +Cc: openembedded-devel, openembedded-core On Tue, 2013-05-28 at 15:46 +0200, Martin Jansa wrote: > On Tue, May 28, 2013 at 01:28:41PM +0000, git@git.openembedded.org wrote: > > Module: openembedded-core.git > > Branch: master-next > > Commit: e1cf564ebc8e7b4fa626a645356f6a4d7f5ba064 > > URL: http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=e1cf564ebc8e7b4fa626a645356f6a4d7f5ba064 > > > > Author: Mark Hatle <mark.hatle@windriver.com> > > Date: Tue May 21 13:29:03 2013 -0500 > > > > base.bbclass: Deprecate the PRINC logic > > > > The PRINC logic is now deprecated, the PR server should be used to handle > > the automatic incrementing of the PR (package release) field. The default > > setting of '0' has been removed, and a warning message has been added. > > How are people supposed to remove existing PRINC without causing version > going backwards? > > Do I have to choose between seeing 100 warnings about deprecated PRINC > or 100 ERRORs from buildhistory about versions going backwards? Sorry, this is coming out a bit backwards. At the TSC meeting, we discussed ways of progressing with removal of PRINC as it is causing pain and we shouldn't need it any more. We were wondering if we could have the system warn on usage of PRINC, then accept PR bumps to the main recipe at the same time that the usage of PRINC was removed (taking PR bumps and removing PRINC seems to be the only way to proceed). Initially I wondered if we could make it a hard error, which would then force the PR bump to be in sync with the removal. People are justifiably concerned at the idea of hard errors though. Mark sent me a patch, I thought it was an RFC on the list and applied it to master-next to experiment with. It wasn't send to the list, I'm not sure what Mark's intention was, its possible I was supposed to raise the subject, then post the patch. Anyhow, as you point out, the patch has a couple of issues. We need to put back the default value into local.conf for now at the very least so this warns, rather than gives an obtuse error. Its not going into master until there is more discussion. So lets reset here, Mark will post the RFC patch and we can discuss whether there is a way we can get rid of the PRINC usage without causing people too many problems. Sorry for the confusion caused :/. Cheers, Richard ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [OE-core] [oe-commits] Mark Hatle : base.bbclass: Deprecate the PRINC logic 2013-05-28 14:06 ` [OE-core] " Richard Purdie @ 2013-05-28 15:36 ` Mark Hatle 0 siblings, 0 replies; 4+ messages in thread From: Mark Hatle @ 2013-05-28 15:36 UTC (permalink / raw) To: Richard Purdie; +Cc: openembedded-core, openembedded-devel On 5/28/13 9:06 AM, Richard Purdie wrote: > On Tue, 2013-05-28 at 15:46 +0200, Martin Jansa wrote: >> On Tue, May 28, 2013 at 01:28:41PM +0000, git@git.openembedded.org wrote: >>> Module: openembedded-core.git >>> Branch: master-next >>> Commit: e1cf564ebc8e7b4fa626a645356f6a4d7f5ba064 >>> URL: http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=e1cf564ebc8e7b4fa626a645356f6a4d7f5ba064 >>> >>> Author: Mark Hatle <mark.hatle@windriver.com> >>> Date: Tue May 21 13:29:03 2013 -0500 >>> >>> base.bbclass: Deprecate the PRINC logic >>> >>> The PRINC logic is now deprecated, the PR server should be used to handle >>> the automatic incrementing of the PR (package release) field. The default >>> setting of '0' has been removed, and a warning message has been added. >> >> How are people supposed to remove existing PRINC without causing version >> going backwards? >> >> Do I have to choose between seeing 100 warnings about deprecated PRINC >> or 100 ERRORs from buildhistory about versions going backwards? > > Sorry, this is coming out a bit backwards. > > At the TSC meeting, we discussed ways of progressing with removal of > PRINC as it is causing pain and we shouldn't need it any more. We were > wondering if we could have the system warn on usage of PRINC, then > accept PR bumps to the main recipe at the same time that the usage of > PRINC was removed (taking PR bumps and removing PRINC seems to be the > only way to proceed). Initially I wondered if we could make it a hard > error, which would then force the PR bump to be in sync with the > removal. People are justifiably concerned at the idea of hard errors > though. > > Mark sent me a patch, I thought it was an RFC on the list and applied it > to master-next to experiment with. It wasn't send to the list, I'm not > sure what Mark's intention was, its possible I was supposed to raise the > subject, then post the patch. Ya, this was a result of the TSC discussion. I sent it to Richard to get feedback on the approach, before it went to the list. > Anyhow, as you point out, the patch has a couple of issues. We need to > put back the default value into local.conf for now at the very least so > this warns, rather than gives an obtuse error. Its not going into master > until there is more discussion. > > So lets reset here, Mark will post the RFC patch and we can discuss > whether there is a way we can get rid of the PRINC usage without causing > people too many problems. Sorry for the confusion caused :/. I'll be happy to do so. --Mark > Cheers, > > Richard > > ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-05-28 15:36 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20130528132841.A450B5039B@opal>
2013-05-28 13:46 ` [oe-commits] Mark Hatle : base.bbclass: Deprecate the PRINC logic Martin Jansa
2013-05-28 13:56 ` Martin Jansa
2013-05-28 14:06 ` [OE-core] " Richard Purdie
2013-05-28 15:36 ` Mark Hatle
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox