2016-05-12 29 views
0

當我試圖在Linux上配置的Firefox 46,我得到以下錯誤:火狐46配置:Python中的virtualenv迴歸(帶對開補丁)

0:03.58 checking for python2.7... /usr/local/bin/python2.7 
0:03.58 Creating Python environment 
0:03.63 checking Python environment is Mozilla virtualenv... Traceback (most recent call last): 
0:03.63 File "<string>", line 1, in <module> 
0:03.63 ImportError: No module named mozbuild.base 
0:03.63 configure: error: Python environment does not appear to be sane. 
0:03.63 ------ config.log ------ 
0:03.63 This file contains any messages produced by compilers while 
0:03.63 running configure, to aid debugging if configure makes a mistake. 
0:03.63 
0:03.63 configure:1208: checking host system type 
0:03.63 configure:1229: checking target system type 
0:03.63 configure:1247: checking build system type 
0:03.63 configure:1327: checking for mawk 
0:03.63 configure:1327: checking for gawk 
0:03.63 configure:1412: checking for python2.7 
0:03.63 configure:1522: checking Python environment is Mozilla virtualenv 
0:03.63 configure: error: Python environment does not appear to be sane. 
0:03.63 *** Fix above errors and then restart with\ 
0:03.64    "/usr/local/bin/make -f client.mk build" 
0:03.64 client.mk:359: recipe for target 'configure' failed 
0:03.64 make: *** [configure] Error 1 

我填寫下面的錯誤,我做了平分識別補丁導致此問題:

https://bugzilla.mozilla.org/show_bug.cgi?id=1268251

將修補程序如下:

The first bad revision is: 
changeset: 317858:f7a8480e3efa 
user:  Mike Hommey <[email protected]> 
date:  Wed Jan 20 11:07:58 2016 +0900 
summary:  Bug 1240990 - Define all backends in one place. r=gps 

https://hg.mozilla.org/mozilla-central/rev/f7a8480e3efa

我聯繫了補丁的作者,但他沒有找到解決方法。

因爲我總是可以配置,編譯和安裝Firefox 45及更低版本,但不是46(因爲這個補丁),這裏發生了什麼?也許是一個virtualenv問題?

謝謝!

Ps:我的Python安裝很好。直到現在,我從來沒有遇到過這樣的問題。

回答

0

最後,問題是由符號鏈接引起的。在這種情況下,似乎Firefox構建系統不處理符號鏈接。解決方案是將〜/ .mozconfig的路徑更改爲實際位置(而不是符號鏈接)。您可以在這裏看到更多細節:

https://bugzilla.mozilla.org/show_bug.cgi?id=1268251