From: Mark Hatle <mark.ha...@kernel.crashing.org> Some versions of hashlib don't appear to implement the second FIPS related argument. Detect this and support both versions.
Signed-off-by: Mark Hatle <mark.ha...@amd.com> Signed-off-by: Mark Hatle <mark.ha...@kernel.crashing.org> Signed-off-by: Ross Burton <ross.bur...@arm.com> Signed-off-by: Richard Purdie <richard.pur...@linuxfoundation.org> (cherry picked from commit 2bbabed51e3aca138486d3feef640f5d3249be40) Signed-off-by: Steve Sakoman <st...@sakoman.com> --- meta/classes/insane.bbclass | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/meta/classes/insane.bbclass b/meta/classes/insane.bbclass index 0d93d50e58..dfda70bad6 100644 --- a/meta/classes/insane.bbclass +++ b/meta/classes/insane.bbclass @@ -552,7 +552,10 @@ python populate_lic_qa_checksum() { import hashlib lineno = 0 license = [] - m = hashlib.new('MD5', usedforsecurity=False) + try: + m = hashlib.new('MD5', usedforsecurity=False) + except TypeError: + m = hashlib.new('MD5') for line in f: lineno += 1 if (lineno >= beginline): -- 2.25.1
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#172678): https://lists.openembedded.org/g/openembedded-core/message/172678 Mute This Topic: https://lists.openembedded.org/mt/94799064/21656 Group Owner: openembedded-core+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-