siggen: Make calc_taskhash match get_taskhash for file checksums
PATCH 1/1 siggen: Make calc_taskhash match get_taskhash for file checksums
The code in these two functions is meant to be equivlanet in behaviour but isn't. Add in code to ensure files that don't exist are handled consistently by both functions. Users did report being able to generate tracebacks otherwise.
--- lib/bb/siggen.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
lib/bb/siggen.py +2 -1
@@ -667,7 +667,8 @@ def calc_taskhash(sigdata): data = data + sigdata['runtaskhashes'][dep] for c in sigdata['file_checksum_values']: - data = data + c[1] + if c[1]: + data = data + c[1] if 'taint' in sigdata: if 'nostamp:' in sigdata['taint']:
Signature · 1 line
2.7.4
Seeing this issue on some older (err, really olderrrr) versions of bitbake. How far back could we backport?
-M
Quoted 32 lines · Richard Purdie
The code in these two functions is meant to be equivlanet in behaviour but isn't. Add in code to ensure files that don't exist are handled consistently by both functions. Users did report being able to generate tracebacks otherwise.
Signed-off-by Richard Purdie <[email protected]>--- lib/bb/siggen.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)lib/bb/siggen.py +2
-2@@ -667,7 +667,8 @@ def calc_taskhash(sigdata): data = data + sigdata['runtaskhashes'][dep] for c in sigdata['file_checksum_values']: - data = data + c[1] + if c[1]: + data = data + c[1] if 'taint' in sigdata: if 'nostamp:' in sigdata['taint']: --2.7.4
--
_______________________________________________
bitbake-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/bitbake-devel
Quoted 2 lines · Matthew McClintock
Seeing this issue on some older (err, really olderrrr) versions of bitbake. How far back could we backport?
Technically 1.34, 1.32 and 1.30 (krogoth). How far back is "olderrrr' ?
- armin
Quoted 37 lines
-M
Quoted 32 lines · Richard Purdie
The code in these two functions is meant to be equivlanet in behaviour but isn't. Add in code to ensure files that don't exist are handled consistently by both functions. Users did report being able to generate tracebacks otherwise.
Signed-off-by Richard Purdie <[email protected]>--- lib/bb/siggen.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)lib/bb/siggen.py +2
-2@@ -667,7 +667,8 @@ def calc_taskhash(sigdata): data = data + sigdata['runtaskhashes'][dep] for c in sigdata['file_checksum_values']: - data = data + c[1] + if c[1]: + data = data + c[1] if 'taint' in sigdata: if 'nostamp:' in sigdata['taint']: --2.7.4
--
_______________________________________________
bitbake-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/bitbake-devel
Quoted 8 lines · On Thu, Jun 22, 2017 at 5:29 PM, akuster808 <[email protected]> wrote:
Quoted 3 lines · Matthew McClintock
Seeing this issue on some older (err, really olderrrr) versions of bitbake. How far back could we backport?
Technically 1.34, 1.32 and 1.30 (krogoth). How far back is "olderrrr' ?
I guess I'm seeing this on krogoth so that would be good.
-M
Quoted 11 lines · Matthew McClintock
Quoted 8 lines · On Thu, Jun 22, 2017 at 5:29 PM, akuster808 <[email protected]> wrote:
Quoted 5 lines · Matthew McClintock
Seeing this issue on some older (err, really olderrrr) versions of
bitbake. How far back could we backport?Technically 1.34, 1.32 and 1.30 (krogoth). How far back is "olderrrr' ?
I guess I'm seeing this on krogoth so that would be good.
Did backporting the patch fix it? There are a variety of ways you could hit this error and I want to confirm it was this specific issue you were hitting...
Cheers,
Richard
Quoted 9 lines · Richard Purdie
Quoted 8 lines · Matthew McClintock
Quoted 6 lines · On Thu, Jun 22, 2017 at 5:29 PM, akuster808 <[email protected]> wrote:
Quoted 5 lines · Matthew McClintock
Seeing this issue on some older (err, really olderrrr) versions of
bitbake. How far back could we backport?
Quoted 7 lines
Quoted 3 lines
Quoted 2 lines
Technically 1.34, 1.32 and 1.30 (krogoth). How far back is "olderrrr' ?
I guess I'm seeing this on krogoth so that would be good.
Did backporting the patch fix it? There are a variety of ways you could hit this error and I want to confirm it was this specific issue you were hitting...
Yes, we had an identical fix actually.
-M