I have been getting the following build error. Any ideas on the best way to resolve
INFO : Generating license credits page. Time:
licenses: Unhandled exception:
Traceback (most recent call last):
File "/mnt/host/source/chromite/licensing/licenses", line 169, in <module>
DoMain()
File "/mnt/host/source/chromite/licensing/licenses", line 165, in DoMain
commandline.ScriptWrapperMain(FindTarget)
File "/mnt/host/source/chromite/lib/commandline.py", line 912, in ScriptWrapperMain
ret = target(argv[1:])
File "/mnt/host/source/chromite/licensing/licenses.py", line 224, in main
licensing.GenerateHTMLLicenseOutput(opts.output)
File "/mnt/host/source/chromite/licensing/licenses_lib.py", line 1080, in GenerateHTMLLicenseOutput
self._GeneratePackageLicenseText(pkg)
File "/mnt/host/source/chromite/licensing/licenses_lib.py", line 1018, in _GeneratePackageLicenseText
license_type = self.FindLicenseType(sln, board=self.board)
File "/mnt/host/source/chromite/licensing/licenses_lib.py", line 968, in FindLicenseType
after fixing the license.""" % (license_name, '\n'.join(set(stock + custom))))
AssertionError:
license as-is could not be found in /mnt/host/source/src/third_party/chromiumos-overlay/licenses
/mnt/host/source/src/overlays/overlay-amd64-generic/licenses
/mnt/host/source/src/third_party/portage-stable/licenses
/mnt/host/source/src/third_party/eclass-overlay/licenses
If the license in the ebuild is correct,
a) a stock license should be added to portage-stable/licenses :
running `cros_portage_upgrade` inside of the chroot should clone this repo
to /tmp/portage/:
find the new licenses under licenses, and add them to portage-stable/licenses
b) if it's a non gentoo package with a custom license, you can copy that license
to third_party/chromiumos-overlay/licenses/
Try re-running the script with -p cat/package-ver --generate
after fixing the license.
INFO : Unmounting image from /mnt/host/source/src/build/images/amd64-generic/R71-11117.0.2018_10_01_1008-a1/stateful and /mnt/host/source/src/build/images/amd64-generic/R71-11117.0.2018_10_01_1008-a1/rootfs
INFO : Unmounting temporary rootfs /mnt/host/source/src/build/images/amd64-generic/R71-11117.0.2018_10_01_1008-a1/rootfs//build/rootfs.
Cleaning up /usr/local symlinks for /mnt/host/source/src/build/images/amd64-generic/R71-11117.0.2018_10_01_1008-a1/stateful/dev_image
An error occurred in your build so your latest output directory is invalid.