foudfou / firetray-legacy

Automatically exported from code.google.com/p/firetray
Other
2 stars 1 forks source link

Firetray fails to build with xulrunner 9 #207

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Steps for reproducing the problem:

1.build firetray using xulrunner 9.0

Output of the error:

******************************
 TRAY COMPONENT BUILD OPTIONS
******************************
ERROR MESSAGES: on
DEBUG MESSAGES: off
DEBUG EVENT FILTERS: off
DEBUG FUNCTION CALLS: off
REMEMBER WINDOWS POSITION: on

scons: Reading SConscript files ...
linking:  --static 
Using GECKO_SDK=/usr/lib/xulrunner-devel-9.0
NPTRAY: nptray_x86_64
scons: done reading SConscript files.
scons: Building targets ...
xpidl -w -m header -Icomponents -I/usr/lib/xulrunner-devel-9.0/idl -e 
components/nsITray.h components/nsITray.idl
sh: xpidl: command not found
scons: *** [components/nsITray.h] Error 127
scons: building terminated because of errors.
error compiling firetray.xpi

Version of Firetray:

SVN revission 134

Application and version:

Thunderbird 9.0

On what distribution, version and architecture (x86 vs amd64)?

Please provide any additional information below.

xpidl has been deprecated (and is not anymore included) in favor of pyxpidl

https://developer.mozilla.org/en/XPIDL

Original issue reported on code.google.com by alfer...@gmail.com on 22 Dec 2011 at 10:57

GoogleCodeExporter commented 9 years ago
Failed to see the "On what distribution, version and architecture (x86 vs 
amd64)?" question.

Using archlinux amd64

Original comment by alfer...@gmail.com on 22 Dec 2011 at 10:59

GoogleCodeExporter commented 9 years ago
See my comment at issue 199:

http://code.google.com/p/firetray/issues/detail?id=199#c21

Original comment by vim...@gmx.com on 22 Dec 2011 at 5:32

GoogleCodeExporter commented 9 years ago
I've read about that, but I'm stuck at what changes must be done at the 
SConscript file you mentioned in the post at that issue.

Original comment by alfer...@gmail.com on 22 Dec 2011 at 6:06

GoogleCodeExporter commented 9 years ago
OK, I see. I've attached my SConscript file, which you may want to use until 
there is an official version. 

Only some minor changes are required:
1. Adding <xulrunner-sdk>/sdk/bin to the PATH environment variable because 
header.py and typelib.py are located in this directory (lines 34/35, 52, and 92)
2. Actually using header.py and typelib.py instead of xpidl for creating the 
two builders for xpt and header (lines 82 and 83)

HTH

Original comment by vim...@gmx.com on 22 Dec 2011 at 10:52

Attachments:

GoogleCodeExporter commented 9 years ago
scons: Reading SConscript files ...                                             

linking:  --static                                                              

Using GECKO_SDK=/home/oliver/firetray-read-only/xulrunner-sdk/                  

NPTRAY: nptray_x86_64                                                           

scons: done reading SConscript files.                                           

scons: Building targets ...                                                     

header.py -Icomponents -I/home/oliver/firetray-read-only/xulrunner-sdk/idl -o 
components/nsITray.h components/nsITray.idl                             
Traceback (most recent call last):                                              

  File "/home/oliver/firetray-read-only/xulrunner-sdk/sdk/bin/header.py", line 43, in <module>                                                        
    import sys, os.path, re, xpidl                                                                                                                    
  File "/home/oliver/firetray-read-only/xulrunner-sdk/sdk/bin/xpidl.py", line 960                                                                     
    except IDLError, e:                                                                                                                               
                   ^                                                                                                                                  
SyntaxError: invalid syntax                                                     

scons: *** [components/nsITray.h] Error 1                                       

scons: building terminated because of errors.                                   

error compiling firetray.xpi

Original comment by anonsph...@gmail.com on 23 Dec 2011 at 4:12

GoogleCodeExporter commented 9 years ago
Just a guess: Maybe a wrong Python version? Which version have you tried?

I've tried it with several versions; it builds with Python 2.6.7 and 2.7.2+ but 
not with 2.5.5 and -- unsurprisingly -- not with Python 3.2.2+.

Original comment by vim...@gmx.com on 23 Dec 2011 at 4:27

GoogleCodeExporter commented 9 years ago
It works after changing 

#!/usr/bin/env python

to 

#!/usr/bin/env python2

I'm really tired of this sh*t every 6 weeks ...

Thank you anyway! ;-)

Original comment by anonsph...@gmail.com on 23 Dec 2011 at 4:38

GoogleCodeExporter commented 9 years ago
Yep, understandable ;-) Great that it works now.

Original comment by vim...@gmx.com on 23 Dec 2011 at 4:46