SRCREV defined too late -how to fix?
After a recent commit that rearranged where (and how) SRCREVs are defined, building results in:
NOTE: preferred version 2.6.27.8+svnr1 of linux-ixp4xx not available (for item kernel)
NOTE: preferred version 2.6.27.8+svnr1 of linux-ixp4xx not available (for item kernel-module-ext2)
NOTE: preferred version 2.6.27.8+svnr1 of linux-ixp4xx not available (for item kernel-module-jbd) (etc.)
Note the bogus "svnr1" on the end -- I think this has happened because someone changed OE to define SRCREVs in each package. So now, deep in recipes/linux/linux-ixp4xx.inc, we find:
SRCREV = "1089"
I think that's wrong.
It *does* (sort of) work -- it actually results in that SRCREV (1089) being built, despite the messages (above) telling you that it can't find the PREFERRED_VERSION with SRCREV == 1.
But what that line does is not really what we (the ixp4xx kernel maintainers) had in mind.
The idea is that the SRCREV, along with the kernel version, would be defined as a preferred version, like this line which is in machine/include/ixp4xx.inc:
PREFERRED_VERSION_linux-ixp4xx ?= "2.6.24.7+svnr${SRCREV}"
Of course, SlugOS overrides that because that distro prefers a more recent kerrnel:
PREFERRED_VERSION_linux-ixp4xx = "2.6.27.8+svnr${SRCREV}"
That's not really a "recent" kernel, of course -- my local.conf file has a more recent one that I've not yet committed. The point is that the way it *USED* to work, one could use the normal means to set both PREFERRED_VERSION and SRCREV. With the recent commit, we can't do that anymore.
Apparently SRCREV isn't defined soon enough with this new structure, so we get the messages about svnr1 not being available. And, of course, one cannot override the preferred version anymore due to the use of "=" instead of "=?" for the assignment. (At the very least, when all the SRCREVs were moved into the recipes, shouldn't the weak assignments have been preserved?)
At any rate, I wish to remove the bogus messages about svnr1, and I want to restore the behavior that would allow me to provide the SRCREV in my local.conf. What is the correct way to do this with the new "world order" as it relates to SRCREVs? To what config file do I move that SRCREV="1089"? Who would I anger if I just put it back to the way it was?
-Mike (mwester)
Quoted 48 lines · Mike Westerhof
After a recent commit that rearranged where (and how) SRCREVs are defined, building results in:
NOTE: preferred version 2.6.27.8+svnr1 of linux-ixp4xx not available (for item kernel)
NOTE: preferred version 2.6.27.8+svnr1 of linux-ixp4xx not available (for item kernel-module-ext2)
NOTE: preferred version 2.6.27.8+svnr1 of linux-ixp4xx not available (for item kernel-module-jbd)
(etc.)Note the bogus "svnr1" on the end -- I think this has happened because someone changed OE to define SRCREVs in each package. So now, deep in recipes/linux/linux-ixp4xx.inc, we find:
SRCREV = "1089"
I think that's wrong.
It *does* (sort of) work -- it actually results in that SRCREV (1089) being built, despite the messages (above) telling you that it can't find the
PREFERRED_VERSIONwith SRCREV == 1.But what that line does is not really what we (the ixp4xx kernel maintainers) had in mind.
The idea is that the SRCREV, along with the kernel version, would be defined as a preferred version, like this line which is in machine/include/ixp4xx.inc:
PREFERRED_VERSION_linux-ixp4xx ?= "2.6.24.7+svnr${SRCREV}"
Of course, SlugOS overrides that because that distro prefers a more recent kerrnel:
PREFERRED_VERSION_linux-ixp4xx = "2.6.27.8+svnr${SRCREV}"
That's not really a "recent" kernel, of course -- my local.conf file has a more recent one that I've not yet committed. The point is that the way it *USED* to work, one could use the normal means to set both
PREFERRED_VERSIONand SRCREV. With the recent commit, we can't do that anymore.Apparently SRCREV isn't defined soon enough with this new structure, so we get the messages about svnr1 not being available. And, of course, one cannot override the preferred version anymore due to the use of "=" instead of "=?" for the assignment. (At the very least, when all the SRCREVs were moved into the recipes, shouldn't the weak assignments have been preserved?)
Quoted 5 lines
At any rate, I wish to remove the bogus messages about svnr1, and I want to restore the behavior that would allow me to provide the SRCREV in my local.conf. What is the correct way to do this with the new "world order"
as it relates to SRCREVs? To what config file do I move that
SRCREV="1089"? Who would I anger if I just put it back to the way it was?
From what RP was saying on IRC the other day, you can utilize "%" in version preferences for versions that include srcrev, as a marker. 2.6.27.8+svnr%.
I haven't looked at that code, though, so I may be completely out in left
field here :)
Signature · 5 lines
Christopher Larson clarson at kergoth dot com Founder - BitBake, OpenEmbedded, OpenZaurus Maintainer - Tslib Senior Software Engineer, Mentor Graphics
Quoted 57 lines · Chris Larson
Quoted 53 lines · Mike Westerhof
After a recent commit that rearranged where (and how) SRCREVs are defined, building results in:
NOTE: preferred version 2.6.27.8+svnr1 of linux-ixp4xx not available (for item kernel)
NOTE: preferred version 2.6.27.8+svnr1 of linux-ixp4xx not available (for item kernel-module-ext2)
NOTE: preferred version 2.6.27.8+svnr1 of linux-ixp4xx not available (for item kernel-module-jbd)
(etc.)Note the bogus "svnr1" on the end -- I think this has happened because someone changed OE to define SRCREVs in each package. So now, deep in recipes/linux/linux-ixp4xx.inc, we find:
SRCREV = "1089"
I think that's wrong.
It *does* (sort of) work -- it actually results in that SRCREV (1089) being built, despite the messages (above) telling you that it can't find the
PREFERRED_VERSIONwith SRCREV == 1.But what that line does is not really what we (the ixp4xx kernel maintainers) had in mind.
The idea is that the SRCREV, along with the kernel version, would be defined as a preferred version, like this line which is in machine/include/ixp4xx.inc:
PREFERRED_VERSION_linux-ixp4xx ?= "2.6.24.7+svnr${SRCREV}"
Of course, SlugOS overrides that because that distro prefers a more recent kerrnel:
PREFERRED_VERSION_linux-ixp4xx = "2.6.27.8+svnr${SRCREV}"
That's not really a "recent" kernel, of course -- my local.conf file has a more recent one that I've not yet committed. The point is that the way it *USED* to work, one could use the normal means to set both
PREFERRED_VERSIONand SRCREV. With the recent commit, we can't do that anymore.Apparently SRCREV isn't defined soon enough with this new structure, so we get the messages about svnr1 not being available. And, of course, one cannot override the preferred version anymore due to the use of "=" instead of "=?" for the assignment. (At the very least, when all the SRCREVs were moved into the recipes, shouldn't the weak assignments have been preserved?)
At any rate, I wish to remove the bogus messages about svnr1, and I want to restore the behavior that would allow me to provide the SRCREV in my local.conf. What is the correct way to do this with the new "world order"
as it relates to SRCREVs? To what config file do I move that
SRCREV="1089"? Who would I anger if I just put it back to the way it was?
Quoted 4 lines
Quoted 1 line
From what RP was saying on IRC the other day, you can utilize "%" in version
preferences for versions that include srcrev, as a marker. 2.6.27.8+svnr%.
I haven't looked at that code, though, so I may be completely out in left
field here :)
NOTE: preferred version 2.6.27.8+svnr% of linux-ixp4xx not available (for item kernel)
NOTE: preferred version 2.6.27.8+svnr% of linux-ixp4xx not available (for item kernel-module-ext2)
NOTE: preferred version 2.6.27.8+svnr% of linux-ixp4xx not available (for item kernel-module-jbd)
:( Does this %-sign feature perhaps require a new bitbake version?
-Mike
Quoted 14 lines · Mike Westerhof
Quoted 13 lines · Chris Larson
Quoted 11 lines · Mike Westerhof
After a recent commit that rearranged where (and how) SRCREVs are defined, building results in:
NOTE: preferred version 2.6.27.8+svnr1 of linux-ixp4xx not available (for item kernel)
NOTE: preferred version 2.6.27.8+svnr1 of linux-ixp4xx not available (for item kernel-module-ext2)
NOTE: preferred version 2.6.27.8+svnr1 of linux-ixp4xx not available (for item kernel-module-jbd)
(etc.)
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Note the bogus "svnr1" on the end -- I think this has happened because someone changed OE to define SRCREVs in each package. So now, deep in recipes/linux/linux-ixp4xx.inc, we find:
Hi, that was me, sorry for inconvenience, but we should be able to resolve it..
Quoted 15 lines
Quoted 15 lines
Quoted 15 lines
SRCREV = "1089"
I think that's wrong.
It *does* (sort of) work -- it actually results in that SRCREV (1089) being built, despite the messages (above) telling you that it can't find the
PREFERRED_VERSIONwith SRCREV == 1.But what that line does is not really what we (the ixp4xx kernel maintainers) had in mind.
The idea is that the SRCREV, along with the kernel version, would be defined as a preferred version, like this line which is in machine/include/ixp4xx.inc:
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
PREFERRED_VERSION_linux-ixp4xx ?= "2.6.24.7+svnr${SRCREV}"
Of course, SlugOS overrides that because that distro prefers a more recent kerrnel:
PREFERRED_VERSION_linux-ixp4xx = "2.6.27.8+svnr${SRCREV}"
This is exact line from your local.conf? Where did you define that newer SRCREV for this PV?. I've grepped whole tree for
defined SRCREV_pn-something and changed that (see OPKG_SRCREV also defined in SlugOS conf).
Have you tried
SRCREV_pn-linux-ixp4xx = "4833" PREFERRED_VERSION_linux-ixp4xx = "2.6.27.8+svnr${SRCREV_pn-linux-ixp4xx}"
in your local.conf?
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
That's not really a "recent" kernel, of course -- my local.conf file has a more recent one that I've not yet committed. The point is that the way it *USED* to work, one could use the normal means to set both
PREFERRED_VERSIONand SRCREV. With the recent commit, we can't do that anymore.Apparently SRCREV isn't defined soon enough with this new structure, so we get the messages about svnr1 not being available. And, of course, one cannot override the preferred version anymore due to the use of "=" instead of "=?" for the assignment. (At the very least, when all the SRCREVs were moved into the recipes, shouldn't the weak assignments have been preserved?)
Yes you can override it with _pn-something in local.conf (as ie fso-autorev.conf, shr-autorev.conf), SRCREV_pn-abc = "123" is preferred over SRCREV = "12" in abc_svn.bb. Doesn't matter if there was weak or normal assignment in recipe.
The point for not-weak assignement is because some time ago, RP said, that would be better to define SRCREV = None ie in bitbake.conf to get better error message than those "svnr1". Using weak SRCREV in recipes wouldn't be possible.
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
At any rate, I wish to remove the bogus messages about svnr1, and I want to restore the behavior that would allow me to provide the SRCREV in my local.conf. What is the correct way to do this with the new "world order"
as it relates to SRCREVs? To what config file do I move that
SRCREV="1089"? Who would I anger if I just put it back to the way it was?
Please try solution suggested above first.
Quoted 5 lines
Quoted 4 lines
Quoted 1 line
From what RP was saying on IRC the other day, you can utilize "%" in version
preferences for versions that include srcrev, as a marker. 2.6.27.8+svnr%.
I haven't looked at that code, though, so I may be completely out in left
field here :)
Quoted 8 lines
NOTE: preferred version 2.6.27.8+svnr% of linux-ixp4xx not available (for item kernel)
NOTE: preferred version 2.6.27.8+svnr% of linux-ixp4xx not available (for item kernel-module-ext2)
NOTE: preferred version 2.6.27.8+svnr% of linux-ixp4xx not available (for item kernel-module-jbd):( Does this %-sign feature perhaps require a new bitbake version?
Yes this needs bitbake master.
Regards,
Signature · 3 lines
uin:136542059 jid:[email protected] Jansa Martin sip:[email protected] JaMa
Quoted 15 lines · Martin Jansa
Quoted 14 lines · Mike Westerhof
Quoted 13 lines · Chris Larson
Quoted 11 lines · Mike Westerhof
After a recent commit that rearranged where (and how) SRCREVs are defined, building results in:
NOTE: preferred version 2.6.27.8+svnr1 of linux-ixp4xx not available (for item kernel)
NOTE: preferred version 2.6.27.8+svnr1 of linux-ixp4xx not available (for item kernel-module-ext2)
NOTE: preferred version 2.6.27.8+svnr1 of linux-ixp4xx not available (for item kernel-module-jbd)
(etc.)
Quoted 6 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Note the bogus "svnr1" on the end -- I think this has happened because someone changed OE to define SRCREVs in each package. So now, deep in recipes/linux/linux-ixp4xx.inc, we find:
Hi, that was me, sorry for inconvenience, but we should be able to resolve it..
I hope so. Cleaning stuff up and making it all pretty is great, but it really sucks when it not only breaks things, but also removes functionality we previously enjoyed. :(
Quoted 20 lines
Quoted 20 lines
Quoted 20 lines
Quoted 20 lines
SRCREV = "1089"
I think that's wrong.
It *does* (sort of) work -- it actually results in that SRCREV (1089) being built, despite the messages (above) telling you that it can't find the
PREFERRED_VERSIONwith SRCREV == 1.But what that line does is not really what we (the ixp4xx kernel maintainers) had in mind.
The idea is that the SRCREV, along with the kernel version, would be defined as a preferred version, like this line which is in machine/include/ixp4xx.inc:
PREFERRED_VERSION_linux-ixp4xx ?= "2.6.24.7+svnr${SRCREV}"
Of course, SlugOS overrides that because that distro prefers a more recent kerrnel:
Quoted 6 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
PREFERRED_VERSION_linux-ixp4xx = "2.6.27.8+svnr${SRCREV}"
This is exact line from your local.conf? Where did you define that newer SRCREV for this PV?. I've grepped whole tree for
defined SRCREV_pn-something and changed that (seeOPKG_SRCREValso defined in SlugOS conf).
This is the exact line from openembedded/conf/distro/include/preferred-slugos-versions.inc, actually.
It doesn't matter if I remove the similar line from my local.conf; it still fails because SRCREV is not defined when the line is evaluated. Any user building any IXP4xx kernel in OE will be greeted with the aforementioned messages, even if they have an empty local.conf.
Quoted 6 lines
Have you tried
SRCREV_pn-linux-ixp4xx = "4833" PREFERRED_VERSION_linux-ixp4xx = "2.6.27.8+svnr${SRCREV_pn-linux-ixp4xx}"
in your local.conf?
So basically, you are suggesting that we leave the SRCREV in the package, but I should define it along with the preferred kernel in one of the SlugOS distro config files -- in other words, it's reverting your changes specifically for SlugOS and the ixp4xx kernel.
I'm fine with that; I like the old behavior far better than the (mis)behavior I observe with the new model. I'll try that and if it works, I can commit that change.
Quoted 21 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
That's not really a "recent" kernel, of course -- my local.conf file has a more recent one that I've not yet committed. The point is that the way it *USED* to work, one could use the normal means to set both
PREFERRED_VERSIONand SRCREV. With the recent commit, we can't do that anymore.Apparently SRCREV isn't defined soon enough with this new structure, so we get the messages about svnr1 not being available. And, of course, one cannot override the preferred version anymore due to the use of "=" instead of "=?" for the assignment. (At the very least, when all the SRCREVs were moved into the recipes, shouldn't the weak assignments have been preserved?)
Yes you can override it with _pn-something in local.conf (as ie fso-autorev.conf, shr-autorev.conf), SRCREV_pn-abc = "123" is preferred over SRCREV = "12" in abc_svn.bb. Doesn't matter if there was weak or normal assignment in recipe.
The point for not-weak assignement is because some time ago, RP said, that would be better to define SRCREV = None ie in bitbake.conf to get better error message than those "svnr1". Using weak SRCREV in recipes wouldn't be possible.
Quoted 7 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
At any rate, I wish to remove the bogus messages about svnr1, and I want to restore the behavior that would allow me to provide the SRCREV in my local.conf. What is the correct way to do this with the new "world order"
as it relates to SRCREVs? To what config file do I move that
SRCREV="1089"? Who would I anger if I just put it back to the way it was?Please try solution suggested above first.
But if understand your proposed solution, it is just putting it back to the way it was for SlugOS. (It'll still be broken for Angstrom and other distros that build IXP4xx kernels, though).
Quoted 11 lines
Quoted 11 lines
Quoted 4 lines
Quoted 1 line
From what RP was saying on IRC the other day, you can utilize "%" in version
preferences for versions that include srcrev, as a marker. 2.6.27.8+svnr%.
I haven't looked at that code, though, so I may be completely out in left
field here :)NOTE: preferred version 2.6.27.8+svnr% of linux-ixp4xx not available (for item kernel)
NOTE: preferred version 2.6.27.8+svnr% of linux-ixp4xx not available (for item kernel-module-ext2)
NOTE: preferred version 2.6.27.8+svnr% of linux-ixp4xx not available (for item kernel-module-jbd)
Quoted 3 lines
Quoted 1 line
:( Does this %-sign feature perhaps require a new bitbake version?
Yes this needs bitbake master.
That doesn't help me, then. I can probably upgrade, but I'd like to get this kernel issue resolved before I upgrade bitbake and do all the testing necessary to make sure it all still works.
Quoted 1 line
Regards,
-Mike (mwester)
Quoted 2 lines · Mike Westerhof
This is the exact line from openembedded/conf/distro/include/preferred-slugos-versions.inc, actually.
Ah sorry, that I missed that (grep for SRCREV_pn).
Quoted 4 lines
It doesn't matter if I remove the similar line from my local.conf; it still fails because SRCREV is not defined when the line is evaluated. Any user building any IXP4xx kernel in OE will be greeted with the aforementioned messages, even if they have an empty local.conf.
I don't think so, the only problem is when you have to define PREFERRED_VERSION_linux-ixp4xx (without SRCREV-pn-linux-ixp4xx definition).
To be honest SRCREV in linux-ixp4xx.inc is really strange, I put it there as it's as close to previous state as possible (same SRCREV is share between all versions of linux-ixp4xx recipe). I would expect different SRCREV of patchset for different module=${KERNEL_RELEASE} (I think it's harder to test all KERNEL_RELEASEs when you need to bump patchset SRCREV for latest RELEASE or unnecesarry kernel upgrades for users of older KERNEL_RELEASE when someone bumped patches only to get more patches for latest RELEASE without any change in their old version.
Quoted 11 lines
Quoted 6 lines
Have you tried
SRCREV_pn-linux-ixp4xx = "4833" PREFERRED_VERSION_linux-ixp4xx = "2.6.27.8+svnr${SRCREV_pn-linux-ixp4xx}"
in your local.conf?
So basically, you are suggesting that we leave the SRCREV in the package, but I should define it along with the preferred kernel in one of the SlugOS distro config files -- in other words, it's reverting your changes specifically for SlugOS and the ixp4xx kernel.
I really don't mind moving SRCREV_pn-linux-ixp4xx to SlugOS config if it's easier for you. Or you can as well increase DEFAULT_PREFERENCE in that 2.6.27.8 recipe for slugos or all and drop PREFERRED_VERSION_linux-ixp4xx from config.
Quoted 31 lines
I'm fine with that; I like the old behavior far better than the (mis)behavior I observe with the new model. I'll try that and if it works, I can commit that change.
Quoted 27 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
That's not really a "recent" kernel, of course -- my local.conf file has a more recent one that I've not yet committed. The point is that the way it *USED* to work, one could use the normal means to set both
PREFERRED_VERSIONand SRCREV. With the recent commit, we can't do that anymore.Apparently SRCREV isn't defined soon enough with this new structure, so we get the messages about svnr1 not being available. And, of course, one cannot override the preferred version anymore due to the use of "=" instead of "=?" for the assignment. (At the very least, when all the SRCREVs were moved into the recipes, shouldn't the weak assignments have been preserved?)
Yes you can override it with _pn-something in local.conf (as ie fso-autorev.conf, shr-autorev.conf), SRCREV_pn-abc = "123" is preferred over SRCREV = "12" in abc_svn.bb. Doesn't matter if there was weak or normal assignment in recipe.
The point for not-weak assignement is because some time ago, RP said, that would be better to define SRCREV = None ie in bitbake.conf to get better error message than those "svnr1". Using weak SRCREV in recipes wouldn't be possible.
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
At any rate, I wish to remove the bogus messages about svnr1, and I want to restore the behavior that would allow me to provide the SRCREV in my local.conf. What is the correct way to do this with the new "world order"
as it relates to SRCREVs? To what config file do I move that
SRCREV="1089"? Who would I anger if I just put it back to the way it was?
Quoted 5 lines
Quoted 1 line
Please try solution suggested above first.
But if understand your proposed solution, it is just putting it back to the way it was for SlugOS. (It'll still be broken for Angstrom and other distros that build IXP4xx kernels, though).
I don't see PREFERRED_VERSION_linux-ixp4xx in Angstrom configs so I think that only those who has PREFERRED_VERSION_linux-ixp4xx in local.conf needs to define preferred SRCREV there as well.
Regards,
Signature · 3 lines
uin:136542059 jid:[email protected] Jansa Martin sip:[email protected] JaMa
Quoted 8 lines · Martin Jansa
To be honest SRCREV in linux-ixp4xx.inc is really strange, I put it there as it's as close to previous state as possible (same SRCREV is share between all versions of linux-ixp4xx recipe). I would expect different SRCREV of patchset for different module=${KERNEL_RELEASE} (I think it's harder to test all
KERNEL_RELEASEswhen you need to bump patchset SRCREV for latest RELEASE or unnecesarry kernel upgrades for users of olderKERNEL_RELEASEwhen someone bumped patches only to get more patches for latest RELEASE without any change in their old version.
To finish my thought..
With this new layout (SRCREV in recipe) it will be much easier to bump SRCREV ie only for linux-ixp4xx_2.6.29.bb (overwritting shared SRCREV from linux-ixp4xx.inc after its include), but be aware that if you put SRCREV_pn-linux-ixp4xx in distro config you will also overwrite this locally bumped SRCREV which can be confusing a bit.
Regards,
Signature · 3 lines
uin:136542059 jid:[email protected] Jansa Martin sip:[email protected] JaMa