Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] jinja TemplateSyntaxError building Chromium 55
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
jbaldassari
n00b
n00b


Joined: 24 Mar 2009
Posts: 13

PostPosted: Fri Jan 20, 2017 6:19 am    Post subject: [SOLVED] jinja TemplateSyntaxError building Chromium 55 Reply with quote

I ran into a problem that seems similar to the problem described in https://forums.gentoo.org/viewtopic-t-1057420.html and Bug 605140, but the error I'm getting is slightly different, and I have jinja 2.8 installed. After a world update, I needed to remerge chromium:

Code:
[ebuild  rR    ] www-client/chromium-55.0.2883.75


During the emerge I get these jinja template errors: http://pastebin.com/NyGUdpLj

Shorter version:

Code:
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'


I have jinja 2.8 installed:

Code:
*  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


emerge --info '=www-client/chromium-55.0.2883.75::gentoo' : http://pastebin.com/nUXpy7S9

emerge -pqv '=www-client/chromium-55.0.2883.75::gentoo' :

Code:
[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"


Anyone else run into this?


Last edited by jbaldassari on Sat Jan 21, 2017 4:20 am; edited 1 time in total
Back to top
View user's profile Send private message
kharitonow
n00b
n00b


Joined: 10 Dec 2015
Posts: 38

PostPosted: Fri Jan 20, 2017 8:37 am    Post subject: Reply with quote

I would try the easiest way: to keyword 56.0.2924.59 version and try to build it.
Back to top
View user's profile Send private message
jbaldassari
n00b
n00b


Joined: 24 Mar 2009
Posts: 13

PostPosted: Fri Jan 20, 2017 5:50 pm    Post subject: Reply with quote

Quote:
I would try the easiest way: to keyword 56.0.2924.59 version and try to build it.


Maybe I'll give that a shot. It's just weird because I'm not upgrading Chromium, I'm just rebuilding it. I already have chromium-55.0.2883.75 installed, and it compiled fine the last time. I also checked my emerge log to find out if jinja had been updated recently (since the last time I built Chromium), but it has been at v2.8 for months. I don't believe I've made any USE flag changes either. One other thing I tried was clearing out the temp dir for the build and also removing all the Chromium distfiles just to make sure I didn't get some bad copy. That didn't work either. Well, maybe I'll just try going to a more recent version of Chromium.
Back to top
View user's profile Send private message
jbaldassari
n00b
n00b


Joined: 24 Mar 2009
Posts: 13

PostPosted: Fri Jan 20, 2017 8:04 pm    Post subject: Reply with quote

It turns out that all later versions of Chromium require GCC v5+, and I don't think I'm brave enough to unmask that one. Still getting the Jinja template errors on www-client/chromium-55.0.2883.75.
Back to top
View user's profile Send private message
jbaldassari
n00b
n00b


Joined: 24 Mar 2009
Posts: 13

PostPosted: Fri Jan 20, 2017 8:45 pm    Post subject: Reply with quote

Created a bug report:

https://bugs.gentoo.org/show_bug.cgi?id=606636
Back to top
View user's profile Send private message
jbaldassari
n00b
n00b


Joined: 24 Mar 2009
Posts: 13

PostPosted: Sat Jan 21, 2017 4:19 am    Post subject: Reply with quote

Found a fix. After re-emerging dev-python/jinja I was able to emerge chromium without errors.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum