Firefox 46配置:Python virtualenv回归(带有bisect补丁)

时间:2016-05-12 05:40:02

标签: python firefox build virtualenv configure

当我尝试在Linux上配置Firefox 46时,出现以下错误:

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

我填写了以下错误,其中我做了一个bisect,用于识别导致此问题的补丁:

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

补丁如下:

The first bad revision is:
changeset:   317858:f7a8480e3efa
user:        Mike Hommey <mh+mozilla@glandium.org>
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(因为这个补丁),这里发生了什么?也许是一个虚拟的问题?

谢谢!

Ps:我的Python安装很好。直到现在我才遇到过这种问题。

1 个答案:

答案 0 :(得分:0)

最后,问题是由符号链接引起的。在这种情况下,Firefox构建系统似乎不会处理符号链接。解决方案是将〜/ .mozconfig的路径更改为实际位置(而不是符号链接)。您可以在此处查看更多详细信息:

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