Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 524384 - www-client/firefox-32.0 - .../work/mozilla-release/python/mozbuild/mozbuild/mozinfo.py", line 29: SyntaxError: invalid syntax
Summary: www-client/firefox-32.0 - .../work/mozilla-release/python/mozbuild/mozbuild/m...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-10-03 14:10 UTC by Puggan
Modified: 2014-10-06 17:49 UTC (History)
0 users

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


Attachments
emerge --info (firefox-32.einfo,15.53 KB, text/plain)
2014-10-04 08:58 UTC, Puggan
Details
build.log (firefox-32.build.log,63.42 KB, text/plain)
2014-10-04 08:58 UTC, Puggan
Details
build.log using python2.7 (firefox-32.0.python27.build.log,65.07 KB, text/plain)
2014-10-04 10:38 UTC, Puggan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Puggan 2014-10-03 14:10:59 UTC
When compiling www-client/firefox-32.0

I get the error:
File "/var/tmp/portage/www-client/firefox-32.0/work/mozilla-release/python/mozbuild/mozbuild/mozinfo.py", line 29
    import os

My guess is its using /usr/bin/python = /usr/bin/python3.3, and the mozinfo.py is require python2
Comment 1 Puggan 2014-10-03 14:11:47 UTC
missed a important row, error was:

  File "/var/tmp/portage/www-client/firefox-32.0/work/mozilla-release/python/mozbuild/mozbuild/mozinfo.py", line 29
    import os
         ^
SyntaxError: invalid syntax
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2014-10-03 14:57:02 UTC
1) Please post your `emerge --info' output in a comment.
2) Please attach the entire build log to this bug report.
Comment 3 Puggan 2014-10-04 08:58:04 UTC
Created attachment 386022 [details]
emerge --info
Comment 4 Puggan 2014-10-04 08:58:41 UTC
Created attachment 386024 [details]
build.log
Comment 5 Puggan 2014-10-04 10:38:46 UTC
Created attachment 386036 [details]
build.log using python2.7

after switching to python 2.7
"eselect python set python2.7"

also fails, but somewere else:
The error occurred while processing the following file:

    /var/tmp/portage/www-client/firefox-32.0/work/mozilla-release/content/media/webrtc/moz.build

The underlying problem is a Python syntax error on line 48:

                    'LoadMonitor
Comment 6 Ian Stakenvicius (RETIRED) gentoo-dev 2014-10-06 15:05:23 UTC
(In reply to Puggan from comment #5)
> Created attachment 386036 [details]
> build.log using python2.7
> 
> after switching to python 2.7
> "eselect python set python2.7"
> 
> also fails, but somewere else:
> The error occurred while processing the following file:
> 
>    
> /var/tmp/portage/www-client/firefox-32.0/work/mozilla-release/content/media/
> webrtc/moz.build
> 
> The underlying problem is a Python syntax error on line 48:
> 
>                     'LoadMonitor

It seems -really- odd that this is the first time this bug has come up...  

First off, the version of python that is eselect'ed shouldn't make any difference.  The mozilla build system only supports python2 and so 2.7 should always be used.  I'll confirm in the code that any relevant shebangs are correct, but iirc $(PYTHON) is defined in ./configure so this should be fine.  

Is there by chance anything out of the ordinary in terms of your portage environment?  ie some special hack you may have put into /etc/portage/profile/bashrc or similar, especially one related to python?  (just asking, because it'll save me a massive amount of time for me if you do)
Comment 7 Puggan 2014-10-06 17:49:46 UTC
Looks like it's some kind of hardware failer, alot more packages fails to combile whit odd messages, for exemple can't re compile gcc or wget.

Don't think you need to investigate this more. sorry for wasting some of your time.