I'm getting a jinja TemplateSyntaxError when rebuilding chromium-55.0.2883.75: # emerge -pqv '=www-client/chromium-55.0.2883.75::gentoo' [ebuild R ] www-client/chromium-55.0.2883.75 USE="cups (gn) gnome gnome-keyring hangouts (pic) proprietary-codecs pulseaudio suid system-ffmpeg tcmalloc -custom-cflags (-gtk3) -kerberos (-neon) (-selinux) {-test} -widevine" L10N="-am -ar -bg -bn -ca -cs -da -de -el -en-GB -es -es-419 -et -fa -fi -fil -fr -gu -he -hi -hr -hu -id -it -ja -kn -ko -lt -lv -ml -mr -ms -nb -nl -pl -pt-BR -pt-PT -ro -ru -sk -sl -sr -sv -sw -ta -te -th -tr -uk -vi -zh-CN -zh-TW" The error is: FAILED: python ../../third_party/WebKit/Source/bindings/scripts/idl_compiler.py --cache-dir gen/blink/bindings/scripts --output-dir gen/blink/bindings/core/v8 --info-dir gen/blink/bindings --target-component core ../../third_party/WebKit/Source/core/dom/ClientRectList.idl Traceback (most recent call last): File "../../third_party/WebKit/Source/bindings/scripts/idl_compiler.py", line 219, in <module> sys.exit(main()) File "../../third_party/WebKit/Source/bindings/scripts/idl_compiler.py", line 215, in main generate_bindings(options, input_filename) File "../../third_party/WebKit/Source/bindings/scripts/idl_compiler.py", line 158, in generate_bindings idl_compiler.compile_file(input_filename) File "../../third_party/WebKit/Source/bindings/scripts/idl_compiler.py", line 137, in compile_file self.compile_and_write(idl_filename) File "../../third_party/WebKit/Source/bindings/scripts/idl_compiler.py", line 120, in compile_and_write target_definitions, interface_name) File "/var/tmp/portage/www-client/chromium-55.0.2883.75/work/chromium-55.0.2883.75/third_party/WebKit/Source/bindings/scripts/code_generator_v8.py", line 144, in generate_code return self.generate_code_internal(definitions, definition_name) File "/var/tmp/portage/www-client/chromium-55.0.2883.75/work/chromium-55.0.2883.75/third_party/WebKit/Source/bindings/scripts/code_generator_v8.py", line 165, in generate_code_internal definitions.interfaces[definition_name]) File "/var/tmp/portage/www-client/chromium-55.0.2883.75/work/chromium-55.0.2883.75/third_party/WebKit/Source/bindings/scripts/code_generator_v8.py", line 212, in generate_interface_code component) File "/var/tmp/portage/www-client/chromium-55.0.2883.75/work/chromium-55.0.2883.75/third_party/WebKit/Source/bindings/scripts/code_generator.py", line 149, in render_template cpp_text = cpp_template.render(template_context) File "/usr/lib64/python2.7/site-packages/jinja2/environment.py", line 969, in render return self.environment.handle_exception(exc_info, True) File "/usr/lib64/python2.7/site-packages/jinja2/environment.py", line 742, in handle_exception reraise(exc_type, exc_value, tb) File "/var/tmp/portage/www-client/chromium-55.0.2883.75/work/chromium-55.0.2883.75/third_party/WebKit/Source/bindings/templates/attributes.cpp.tmpl", line 14, in template {% set define_exception_state -%} jinja2.exceptions.TemplateSyntaxError: expected token '=', got 'end of statement block' ninja: build stopped: subcommand failed. * ERROR: www-client/chromium-55.0.2883.75::gentoo failed (compile phase): * (no error message) * * Call stack: * ebuild.sh, line 115: Called src_compile * environment, line 5241: Called die * The specific snippet of code: * eninja -C out/Release ${ninja_targets} || die; * * If you need support, post the output of `emerge --info '=www-client/chromium-55.0.2883.75::gentoo'`, * the complete build log and the output of `emerge -pqv '=www-client/chromium-55.0.2883.75::gentoo'`. * * MemTotal: 16137504 kB * SwapTotal: 16777212 kB * * The complete build log is located at '/var/tmp/portage/www-client/chromium-55.0.2883.75/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/www-client/chromium-55.0.2883.75/temp/environment'. * Working directory: '/var/tmp/portage/www-client/chromium-55.0.2883.75/work/chromium-55.0.2883.75' * S: '/var/tmp/portage/www-client/chromium-55.0.2883.75/work/chromium-55.0.2883.75' Related forum post: https://forums.gentoo.org/viewtopic-p-8019510.html
Created attachment 460764 [details] build.log
Created attachment 460766 [details] environment
Created attachment 460768 [details] emerge --info
What version of dev-python/jinja?
* dev-python/jinja Latest version available: 2.8 Latest version installed: 2.8 Size of files: 349 KiB Homepage: http://jinja.pocoo.org/ https://pypi.python.org/pypi/Jinja2 Description: A small but fast and easy to use stand-alone template engine written in pure Python License: BSD
The weird thing is that my jinja version hasn't changed in months according to my emerge log, and I'm rebuilding chromium due to a library dependency change, not upgrading chromium. This version is already installed on my system, so obviously the last time I built it there were no problems. * www-client/chromium Latest version available: 55.0.2883.75 Latest version installed: 55.0.2883.75 Size of files: 499,274 KiB Homepage: http://chromium.org/ Description: Open-source version of Google Chrome web browser License: BSD
I re-emerged jinja, and I think the chromium build has gotten past the template issue. I'll confirm once I know for sure.
After re-emerging jinja I was able to emerge chromium without errors. I'll close this out.
Thanks for the tip ! I've got the same problem here, trying to make chromium compile on PowerPC, which indicates the issue is not architecture dependant. For any reason, system and world update did not update jinja which was still version 2.7.3. Updating jinja to version 2.8.0 solved the issue. I guess there is at least a missing dependency on jinja version 2.8.0 in chromium ebuilds: changing dev-python/jinja dependency into >=dev-python/jinja-2.8.0 might be a good idea (at least a good start...).
We switched to bundled jinja for M56 and M57; I may apply that change for M55 as well.
chromium-55 has been removed from the gentoo repository.