fetch: use BPN instead
Ping.
Quoted 36 lines · Mingli
From: Mingli Yu <[email protected]>
When checking for the non-existing file, BPN is actually the acutal recipe name. And we should use BPN for the error message and it also fix the below test when multilib is enabled.
$ oe-selftest -r bbtests.BitbakeTests.test_invalid_recipe_src_uriSigned-off-by Mingli Yu <[email protected]>--- lib/bb/fetch2/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)lib/bb/fetch2/__init__.py +1
-2@@ -1236,7 +1236,7 @@ def get_checksum_file_list(d): if not found: bb.fatal(("Unable to get checksum for %s SRC_URI entry %s: file could not be found" "\nThe following paths were searched:" - "\n%s") % (d.getVar('PN'), os.path.basename(f), '\n'.join(paths))) + "\n%s") % (d.getVar('BPN'), os.path.basename(f), '\n'.join(paths))) return " ".join(filelist) -=-=-=-=-=-=-=-=-=-=-=-Links: You receive all messages sent to this group.
View/Reply Online (#13896): https://lists.openembedded.org/g/bitbake-devel/message/13896
Mute This Topic: https://lists.openembedded.org/mt/93032280/3618448
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/bitbake-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
BPN is not defined by bitbake, you're hardcoding OE-specifics into bitbake with this patch.
Quoted 50 lines · Mingli
Ping.
Quoted 3 lines · Mingli
From: Mingli Yu <[email protected]>
When checking for the non-existing file, BPN is actually the acutal
recipe
Quoted 1 line
name. And we should use BPN for the error message and it also fix the
below
Quoted 13 lines
test when multilib is enabled.
$ oe-selftest -r bbtests.BitbakeTests.test_invalid_recipe_src_uriSigned-off-by Mingli Yu <[email protected]>--- lib/bb/fetch2/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)lib/bb/fetch2/__init__.py +0
-0lib/bb/fetch2/__init__.py def get_checksum_file_list(d): · line 1237
Quoted 2 lines
lib/bb/fetch2/__init__.py +0
-0@@ -1236,7 +1236,7 @@ def get_checksum_file_list(d): if not found: bb.fatal(("Unable to get checksum for %s SRC_URI entry%s: file could not be found"
lib/bb/fetch2/__init__.py def get_checksum_file_list(d): · line 1239
Quoted 2 lines
lib/bb/fetch2/__init__.py +0
-1"\nThe following paths were searched:" - "\n%s") % (d.getVar('PN'),
os.path.basename(f), '\n'.join(paths)))lib/bb/fetch2/__init__.py def get_checksum_file_list(d): · line 1239
Quoted 1 line
lib/bb/fetch2/__init__.py +1
-0+ "\n%s") % (d.getVar('BPN'),
os.path.basename(f), '\n'.join(paths)))lib/bb/fetch2/__init__.py def get_checksum_file_list(d): · line 1242
Quoted 8 lines
lib/bb/fetch2/__init__.py +0
-0return " ".join(filelist)-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#13942):
https://lists.openembedded.org/g/bitbake-devel/message/13942
Mute This Topic: https://lists.openembedded.org/mt/93032280/3617123
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/bitbake-devel/unsub [ [email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Signature · 4 lines
Christopher Larson [email protected], [email protected], [email protected] Principal Software Engineer, Embedded Linux Solutions, Siemens Digital Industries Software
Quoted 2 lines · Christopher Larson
BPN is not defined by bitbake, you're hardcoding OE-specifics into bitbake with this patch.
This was accidentally applied from the patch queue but I've reverted it, Chris is correct.
If you still think this isn't right, please show the error you're seeing with the selftest as we need more information to help further.
Cheers,
Richard
Quoted 11 lines · Richard Purdie
[Please note: This e-mail is from an EXTERNAL e-mail address]
Quoted 2 lines · Christopher Larson
BPN is not defined by bitbake, you're hardcoding OE-specifics into bitbake with this patch.
This was accidentally applied from the patch queue but I've reverted it, Chris is correct.
If you still think this isn't right, please show the error you're seeing with the selftest as we need more information to help further.
Thanks Richard!
I'm investigating the issue and the selftest error as below at my side.
[16:28:09-0700] 2022-09-04 23:28:09,939 - oe-selftest - INFO - test_invalid_recipe_src_uri (bbtests.BitbakeTests)
[16:28:30-0700] 2022-09-04 23:28:30,995 - oe-selftest - INFO - ... FAIL
[16:28:31-0700] 2022-09-04 23:28:30,996 - oe-selftest - INFO - Traceback (most recent call last):
[16:28:31-0700] File "/home/wrlbuild/builds/builds-a80eaaf7-3f98-4b80-aa48-5d3265e7075a/layers/oe-core/meta/lib/oeqa/selftest/cases/bbtests.py", line 153, in test_invalid_recipe_src_uri
[16:28:31-0700] self.assertIn('Unable to get checksum for man-db SRC_URI entry invalid: file could not be found', result.output)
[16:28:31-0700] AssertionError: 'Unable to get checksum for man-db SRC_URI entry invalid: file could not be found' not found in "Loading cache...done.\nLoaded 8181 entries from dependency cache.\nParsing recipes...ERROR: /home/wrlbuild/builds/builds-a80eaaf7-3f98-4b80-aa48-5d3265e7075a/layers/oe-core/meta/recipes-extended/man-db/man-db_2.10.2.bb: Unable to get checksum for lib32-man-db SRC_URI entry invalid: file could not be found\nThe following paths were searched:\n/home/wrlbuild/builds/builds-a80eaaf7-3f98-4b80-aa48-5d3265e7075a/layers/oe-core/meta/recipes-extended/man-db/man-db-2.10.2/osv-wrlinux/invalid\n/home/wrlbuild/builds/builds-a80eaaf7-3f98-4b80-aa48-5d3265e7075a/layers/oe-core/meta/recipes-extended/man-db/man-db/osv-wrlinux/invalid\n/home/wrlbuild/builds/builds-a80eaaf7-3f98-4b80-aa48-5d3265e7075a/layers/oe-core/meta/recipes-extended/man-db/files/osv-wrlinux/invalid\n/home/wrlbuild/builds/builds-a80eaaf7-3f98-4b80-aa48-5d3265e7075a/layers/oe-core/meta/recipes-extended/man-db/man-db-2.10.2/wrlinux-graphics/invalid\n/home/wrlbuild/builds/builds-a80eaaf7-3f98-4b80-aa48-5d3265e7075a/layers/oe-core/meta/recipes-extended/man-db/man-db/wrlinux-graphics/invalid\n/home/wrlbuild/builds/builds-a80eaaf7-3f98-4b80-aa48-5d3265e7075a/layers/oe-core/meta/recipes-extended/man-db/files/wrlinux-graphics/invalid\n/home/wrlbuild/builds/builds-a80eaaf7-3f98-4b80-aa48-5d3265e7075a/layers/oe-core/meta/recipes-extended/man-db/man-db-2.10.2/qemux86-64/invalid\n/home/wrlbuild/builds/builds-a80eaaf7-3f98-4b80-aa48-5d3265e7075a/layers/oe-core/meta/recipes-extended/man-db/man-db/qemux86-64/invalid\n/home/wrlbuild/builds/builds-a80eaaf7-3f98-4b80-aa48-5d3265e7075a/layers/oe-core/meta/recipes-extended/man-db/files/qemux86-64/invalid\n/home/wrlbuild/builds/builds-a80eaaf7-3f98-4b80-aa48-5d3265e7075a/layers/oe-core/meta/recipes-extended/man-db/man-db-2.10.2/qemuall/invalid\n/home/wrlbuild/builds/builds-a80eaaf7-3f98-4b80-aa48-5d3265e7075a/layers/oe-core/meta/recipes-extended/man-db/man-db/qemuall/invalid\n/home/wrlbuild/builds/builds-a80eaaf7-3f98-4b80-aa48-5d3265e7075a/layers/oe-core/meta/recipes-extended/man-db/files/qemuall/invalid\n/home/wrlbuild/builds/builds-a80eaaf7-3f98-4b80-aa48-5d3265e7075a/layers/oe-core/meta/recipes-extended/man-db/man-db-2.10.2/x86/invalid\n/home/wrlbuild/builds/builds-a80eaaf7-3f98-4b80-aa48-5d3265e7075a/layers/oe-core/meta/recipes-extended/man-db/man-db/x86/invalid\n/home/wrlbuild/builds/builds-a80eaaf7-3f98-4b80-aa48-5d3265e7075a/layers/oe-core/meta/recipes-extended/man-db/files/x86/invalid\n/home/wrlbuild/builds/builds-a80eaaf7-3f98-4b80-aa48-5d3265e7075a/layers/oe-core/meta/recipes-extended/man-db/man-db-2.10.2/i686/invalid\n/home/wrlbuild/builds/builds-a80eaaf7-3f98-4b80-aa48-5d3265e7075a/layers/oe-core/meta/recipes-extended/man-db/man-db/i686/invalid\n/home/wrlbuild/builds/builds-a80eaaf7-3f98-4b80-aa48-5d3265e7075a/layers/oe-core/meta/recipes-extended/man-db/files/i686/invalid\n/home/wrlbuild/builds/builds-a80eaaf7-3f98-4b80-aa48-5d3265e7075a/layers/oe-core/meta/recipes-extended/man-db/man-db-2.10.2/invalid\n/home/wrlbuild/builds/builds-a80eaaf7-3f98-4b80-aa48-5d3265e7075a/layers/oe-core/meta/recipes-extended/man-db/man-db/invalid\n/home/wrlbuild/builds/builds-a80eaaf7-3f98-4b80-aa48-5d3265e7075a/layers/oe-core/meta/recipes-extended/man-db/files/invalid\nERROR: Parsing halted due to errors, see error messages above\n\nSummary: There was 1 WARNING message.\nSummary: There were 2 ERROR messages, returning a non-zero exit code."
Thanks,
Quoted 4 lines
Cheers,
Richard