meta-spdxscanner | dunfell | core-image-sato | do_spdx() error with some packages.
Updated with another failed package.
ERROR: *adwaita-icon-theme-3.34.3-r0* do_spdx: Could not invoke scancode
Command
'/home/yocto/output/build/tmp/work/all-poky-linux/adwaita-icon-theme/3.34.3-r0/recipe-sysroot-native/usr/bin/scancode
-lpci --spdx-tv /home/yocto/output/build/tmp/work/all-poky-linux/adwaita-icon-theme/3.34.3-r0/spdx_sstate_dir/allarch-poky-linux/adwaita-icon-theme-3.34.3-r0/adwaita-icon-theme-3.34.3.spdx /home/yocto/output/build/tmp/work/all-poky-linux/adwaita-icon-theme/3.34.3-r0/spdx_temp/'
returned 1:
b'Setup plugins...\nCollect file inventory...\nScan files for: info,
licenses, copyrights, packages with 1 process(es)...\nScanning done.\nSome
files failed to scan properly:\nPath:
spdx_temp/adwaita-icon-theme-3.34.3/src/fullcolor/legacy/accessories-dictionary.svg\nSummary:
info, licenses, copyrights, packages with 1 process(es)\nErrors
count: 1\nScan Speed: 0.88 files/sec. 31.42 KB/sec.\nInitial counts:
3178 resource(s): 3081 file(s) and 97 directorie(s) \nFinal counts: 3178
resource(s): 3081 file(s) and 97 directorie(s) for 107.63 MB\nTimings:\n
scan_start: 2020-06-10T194306.005261\n scan_end:
2020-06-10T204137.397551\n setup_scan:licenses: 1.45s\n setup: 1.45s\n
inventory: 1.16s\n scan:packages: 0.32s\n scan: 3507.48s\n
output:spdx-tv: 7.24s\n output: 7.24s\n total: 3518.95s\nRemoving
temporary files...done.\n'
ERROR: Logfile of failure stored in:/home/yocto/output/build/tmp/work/all-poky-linux/adwaita-icon-theme/3.34.3-r0/temp/log.do_spdx.15064
ERROR: Task
(/home/yocto/output/poky/meta/recipes-gnome/gnome/adwaita-icon-theme_3.34.3.bb:do_spdx)
failed with exit code '1'
Quoted 208 lines · Krishna via lists.yoctoproject.org
Hi,
I have added meta-spdxscanner in to my poky dunfell distro for core-image-sato build. I see the below packages have failed to generate SPDX doc with the errors below (all other packages are going fine so far).
ERROR: *gdk-pixbuf-2.40.0-r0*
do_compile: Execution ofQuoted 184 lines
'
/home/yocto/output/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/gdk-pixbuf/2.40.0-r0/temp/run.do_compile.5144' failed with exit code 1:
[1/2]/home/yocto/output/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/gdk-pixbuf/2.40.0-r0/recipe-sysroot-native/usr/bin/xsltproc--nonet --stringparam man.output.quietly 1 --stringparam funcsynopsis.style
ansi --stringparam man.th.extra1.suppress 1 --stringparam
man.authors.section.enabled 0 --stringparam man.copyright.section.enabled 0
-o docs/gdk-pixbuf-csource.1
http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl../gdk-pixbuf-2.40.0/docs/gdk-pixbuf-csource.xml
FAILED: docs/gdk-pixbuf-csource.1/home/yocto/output/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/gdk-pixbuf/2.40.0-r0/recipe-sysroot-native/usr/bin/xsltproc--nonet --stringparam man.output.quietly 1 --stringparam funcsynopsis.style
ansi --stringparam man.th.extra1.suppress 1 --stringparam
man.authors.section.enabled 0 --stringparam man.copyright.section.enabled 0
-o docs/gdk-pixbuf-csource.1
http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl../gdk-pixbuf-2.40.0/docs/gdk-pixbuf-csource.xml
I/O error : Attempt to load network entity
http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl
warning: failed to load external entity "
http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl"
cannot parse
http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl
ninja: build stopped: subcommand failed.
WARNING: exit code 1 from a shell command.ERROR: Logfile of failure stored in:
/home/yocto/output/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/gdk-pixbuf/2.40.0-r0/temp/log.do_compile.5144Log data follows:
| DEBUG: Executing shell functiondo_compile
| [1/2]/home/yocto/output/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/gdk-pixbuf/2.40.0-r0/recipe-sysroot-native/usr/bin/xsltproc--nonet --stringparam man.output.quietly 1 --stringparam funcsynopsis.style
ansi --stringparam man.th.extra1.suppress 1 --stringparam
man.authors.section.enabled 0 --stringparam man.copyright.section.enabled 0
-o docs/gdk-pixbuf-csource.1
http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl../gdk-pixbuf-2.40.0/docs/gdk-pixbuf-csource.xml
| FAILED: docs/gdk-pixbuf-csource.1
|/home/yocto/output/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/gdk-pixbuf/2.40.0-r0/recipe-sysroot-native/usr/bin/xsltproc--nonet --stringparam man.output.quietly 1 --stringparam funcsynopsis.style
ansi --stringparam man.th.extra1.suppress 1 --stringparam
man.authors.section.enabled 0 --stringparam man.copyright.section.enabled 0
-o docs/gdk-pixbuf-csource.1
http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl../gdk-pixbuf-2.40.0/docs/gdk-pixbuf-csource.xml
| I/O error : Attempt to load network entity
http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl
| warning: failed to load external entity "
http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl"
| cannot parse
http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl| ninja: build stopped: subcommand failed. | WARNING: exit code 1 from a shell command. | ERROR: Execution of'
/home/yocto/output/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/gdk-pixbuf/2.40.0-r0/temp/run.do_compile.5144' failed with exit code 1:
| [1/2]/home/yocto/output/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/gdk-pixbuf/2.40.0-r0/recipe-sysroot-native/usr/bin/xsltproc--nonet --stringparam man.output.quietly 1 --stringparam funcsynopsis.style
ansi --stringparam man.th.extra1.suppress 1 --stringparam
man.authors.section.enabled 0 --stringparam man.copyright.section.enabled 0
-o docs/gdk-pixbuf-csource.1
http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl../gdk-pixbuf-2.40.0/docs/gdk-pixbuf-csource.xml
| FAILED: docs/gdk-pixbuf-csource.1
|/home/yocto/output/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/gdk-pixbuf/2.40.0-r0/recipe-sysroot-native/usr/bin/xsltproc--nonet --stringparam man.output.quietly 1 --stringparam funcsynopsis.style
ansi --stringparam man.th.extra1.suppress 1 --stringparam
man.authors.section.enabled 0 --stringparam man.copyright.section.enabled 0
-o docs/gdk-pixbuf-csource.1
http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl../gdk-pixbuf-2.40.0/docs/gdk-pixbuf-csource.xml
| I/O error : Attempt to load network entity
http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl
| warning: failed to load external entity "
http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl"
| cannot parse
http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl| ninja: build stopped: subcommand failed. | WARNING: exit code 1 from a shell command. |ERROR: Task (/home/yocto/output/poky/meta/recipes-gnome/gdk-pixbuf/gdk-pixbuf_2.40.0.bb:do_compile) failed with exit code '1'
-----------------------------------------------------------------------------------------------
ERROR: *gettext-0.20.1-r0 do_spdx*: Could not invoke scancode Command '
/home/yocto/output/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/gettext/0.20.1-r0/recipe-sysroot-native/usr/bin/scancode
-lpci --spdx-tv/home/yocto/output/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/gettext/0.20.1-r0/spdx_sstate_dir/arm-poky-linux-gnueabi/gettext-0.20.1-r0/gettext-0.20.1.spdx/home/yocto/output/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/gettext/0.20.1-r0/spdx_temp/'
returned 1:
b'Setup plugins...\nCollect file inventory...\nScan files for: info,
licenses, copyrights, packages with 1 process(es)...\nScanning done.\nSome
files failed to scan properly:\nPath:
spdx_temp/gettext-0.20.1/gettext-tools/misc/archive.dir.tar\nSummary:
info, licenses, copyrights, packages with 1 process(es)\nErrors count:
1\nScan Speed: 0.67 files/sec. 12.99 KB/sec.\nInitial counts: 6072
resource(s): 5835 file(s) and 237 directorie(s) \nFinal counts: 6072
resource(s): 5835 file(s) and 237 directorie(s) for 110.01 MB\nTimings:\n
scan_start: 2020-06-09T135951.126968\nscan_end:
2020-06-09T162428.611805\n setup_scan:licenses: 1.30s\n setup: 1.30s\n
inventory: 1.93s\n scan:packages: 0.49s\n scan: 8672.24s\n
output:spdx-tv: 6.64s\n output: 6.64s\n total: 8684.54s\nRemoving
temporary files...done.\n'
ERROR: Logfile of failure stored in:/home/yocto/output/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/gettext/0.20.1-r0/temp/log.do_spdx.6774
ERROR: Task
(/home/yocto/output/poky/meta/recipes-core/gettext/gettext_0.20.1.bb:do_spdx)
failed with exit code '1'-----------------------------------------------------------------------------------------------
ERROR: *gnutls-3.6.12-r0 do_spdx*: Could not invoke scancode Command '
/home/yocto/output/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/gnutls/3.6.12-r0/recipe-sysroot-native/usr/bin/scancode
-lpci --spdx-tv/home/yocto/output/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/gnutls/3.6.12-r0/spdx_sstate_dir/arm-poky-linux-gnueabi/gnutls-3.6.12-r0/gnutls-3.6.12.spdx/home/yocto/output/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/gnutls/3.6.12-r0/spdx_temp/'
returned 1:
b'Setup plugins...\nCollect file inventory...\nScan files for: info,
licenses, copyrights, packages with 1 process(es)...\nScanning done.\nSome
files failed to scan properly:\nPath:
spdx_temp/gnutls-3.6.12/tests/data/long.pem\nSummary: info,
licenses, copyrights, packages with 1 process(es)\nErrors count: 1\nScan
Speed: 1.47 files/sec. 10.75 KB/sec.\nInitial counts: 6564 resource(s):
6456 file(s) and 108 directorie(s) \nFinal counts: 6564 resource(s): 6456
file(s) and 108 directorie(s) for 46.03 MB\nTimings:\nscan_start:
2020-06-09T171835.506413\nscan_end: 2020-06-09T183145.722364\n
setup_scan:licenses: 1.17s\n setup: 1.17s\n inventory: 1.88s\n
scan:packages: 0.52s\n scan: 4384.91s\n output:spdx-tv: 6.71s\n output:
6.71s\n total: 4397.42s\nRemoving temporary files...done.\n'
ERROR: Logfile of failure stored in:/home/yocto/output/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/gnutls/3.6.12-r0/temp/log.do_spdx.30861
ERROR: Task
(/home/yocto/output/poky/meta/recipes-support/gnutls/gnutls_3.6.12.bb:do_spdx)
failed with exit code '1'-------------------------------------------------------------------------------------------------
ERROR: *libpsl-0.21.0-r0 do_spdx:* Error executing a python function in
exec_python_func()autogenerated:The stack trace of python calls that resulted in this exception/failure was:
File: 'exec_python_func()autogenerated', lineno: 2, function: <module>0001: *** 0002:do_spdx(d) 0003: File: '/home/yocto/output/poky/meta-spdxscanner/classes/scancode-tk.bbclass', lineno: 110, function: do_spdx 0106: if os.path.exists(git_path): 0107: remove_dir_tree(git_path) 0108: invoke_scancode(info['sourcedir'],sstatefile) 0109: bb.warn("source dir = " + info['sourcedir']) *** 0110: if get_cached_spdx(sstatefile) != None: 0111: write_cached_spdx( info,sstatefile,cur_ver_code ) 0112: ## CREATE MANIFEST(write to outfile ) 0113: create_manifest(info,sstatefile) 0114: else:File:
'/home/yocto/output/poky/meta-spdxscanner/classes/spdx-common.bbclass',
lineno: 164, function:get_cached_spdx
0160: except subprocess.CalledProcessError as e:
0161: bb.error("Index creation command '%s' failed with
return code %d:\n%s" % (e.cmd, e.returncode, e.output))
0162: return None
0163: cached_spdx_info=output.decode('utf-8').split(': ')
*** 0164: return cached_spdx_info[1]
0165:
0166:#Find InfoInLicenseFile and fill into
PackageLicenseInfoInLicenseFile.
0167:deffind_infoinlicensefile(sstatefile):
0168: import subprocess
Exception: IndexError: list index out of rangeQuoted 8 lines
ERROR: Logfile of failure stored in:
/home/yocto/output/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/libpsl/0.21.0-r0/temp/log.do_spdx.17370
ERROR: Task
(/home/yocto/output/poky/meta/recipes-support/libpsl/libpsl_0.21.0.bb:do_spdx)
failed with exit code '1'-------------------------------------------------------------------------------------------------
All the other packages have built fine and generated the SPDX docs, please help me fix the issues with the above packages.
--
Regards,
Krishna Chaithanya B
Signature · 2 lines
Regards, Krishna Chaithanya B