Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 606636 - www-client/chromium-55.0.2883.75 jinja TemplateSyntaxError in attributes.cpp.tmpl: expected token '=', got 'end of statement block'1
Summary: www-client/chromium-55.0.2883.75 jinja TemplateSyntaxError in attributes.cpp....
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Chromium Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-01-20 20:28 UTC by James Baldassari
Modified: 2017-01-28 04:59 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log.tbz2,83.50 KB, application/x-bzip-compressed-tar)
2017-01-20 20:31 UTC, James Baldassari
Details
environment (environment,206.33 KB, text/plain)
2017-01-20 20:31 UTC, James Baldassari
Details
emerge --info (file_606636.txt,7.17 KB, text/plain)
2017-01-20 20:31 UTC, James Baldassari
Details

Note You need to log in before you can comment on or make changes to this bug.
Description James Baldassari 2017-01-20 20:28:43 UTC
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
Comment 1 James Baldassari 2017-01-20 20:31:01 UTC
Created attachment 460764 [details]
build.log
Comment 2 James Baldassari 2017-01-20 20:31:17 UTC
Created attachment 460766 [details]
environment
Comment 3 James Baldassari 2017-01-20 20:31:44 UTC
Created attachment 460768 [details]
emerge --info
Comment 4 Mike Gilbert gentoo-dev 2017-01-20 20:38:32 UTC
What version of dev-python/jinja?
Comment 5 James Baldassari 2017-01-20 21:12:27 UTC
*  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
Comment 6 James Baldassari 2017-01-20 21:14:53 UTC
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
Comment 7 James Baldassari 2017-01-20 22:20:43 UTC
I re-emerged jinja, and I think the chromium build has gotten past the template issue.   I'll confirm once I know for sure.
Comment 8 James Baldassari 2017-01-21 04:21:08 UTC
After re-emerging jinja I was able to emerge chromium without errors.  I'll close this out.
Comment 9 Jocelyn Mayer 2017-01-25 21:28:02 UTC
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...).
Comment 10 Mike Gilbert gentoo-dev 2017-01-25 22:09:46 UTC
We switched to bundled jinja for M56 and M57; I may apply that change for M55 as well.
Comment 11 Mike Gilbert gentoo-dev 2017-01-28 04:59:51 UTC
chromium-55 has been removed from the gentoo repository.