In trying to cross-compile app-crypt/mit-krb5. The license checker tries to read a windows rtf file and complains about invalid characters.
Error below....
File "/mnt/host/source/chromite/licensing/ebuild_license_hook", line 168, in <module>
DoMain()
File "/mnt/host/source/chromite/licensing/ebuild_license_hook", line 164, in DoMain
commandline.ScriptWrapperMain(FindTarget)
File "/mnt/host/source/chromite/lib/commandline.py", line 834, in ScriptWrapperMain
ret = target(argv[1:])
File "/mnt/host/source/chromite/licensing/ebuild_license_hook.py", line 26, in main
licenses_lib.HookPackageProcess(opts.builddir)
File "/mnt/host/source/chromite/licensing/licenses_lib.py", line 1208, in HookPackageProcess
pkg.GetLicenses(build_info_dir, src_dir)
File "/mnt/host/source/chromite/licensing/licenses_lib.py", line 750, in GetLicenses
self._ExtractLicenses(src_dir, need_copyright_attribution)
File "/mnt/host/source/chromite/licensing/licenses_lib.py", line 525, in _ExtractLicenses
license_txt = ReadUnknownEncodedFile(license_path, 'Adding License')
File "/mnt/host/source/chromite/licensing/licenses_lib.py", line 1157, in ReadUnknownEncodedFile
(char_list, file_path))
ValueError: Illegal XML characters [u'\x00'] found in /build/samus/tmp/portage/app-crypt/mit-krb5-1.9.2-r2/work/krb5-1.9.2/src/windows/installer/nsis/licenses.rtf.
Comment 1 by dgarr...@chromium.org
, Oct 11 2016Labels: current-issue