Firefox 46 配置:Python virtualenv 回归(带对分补丁)
Firefox 46 configure: Python virtualenv regression (with bisect patch)
当我尝试在 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
我填补了以下错误,我做了一个二等分识别导致这个问题的补丁:
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(因为这个补丁),这里发生了什么?也许是 virtualenv 问题?
谢谢!
Ps:我的 Python 安装没问题。到现在为止我从来没有遇到过这种问题。
最终,问题是由符号链接引起的。在这种情况下,Firefox 构建系统似乎不处理符号链接。解决方案是将 ~/.mozconfig 的路径更改为实际位置(而不是符号链接)。您可以在此处查看更多详细信息:
当我尝试在 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
我填补了以下错误,我做了一个二等分识别导致这个问题的补丁:
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(因为这个补丁),这里发生了什么?也许是 virtualenv 问题?
谢谢!
Ps:我的 Python 安装没问题。到现在为止我从来没有遇到过这种问题。
最终,问题是由符号链接引起的。在这种情况下,Firefox 构建系统似乎不处理符号链接。解决方案是将 ~/.mozconfig 的路径更改为实际位置(而不是符号链接)。您可以在此处查看更多详细信息: