mach bootstrap fails on Ubuntu 20.04
Categories
(Firefox Build System :: Bootstrap Configuration, defect)
Tracking
(firefox77 fixed)
Tracking | Status | |
---|---|---|
firefox77 | --- | fixed |
People
(Reporter: BenB, Assigned: Sylvestre)
References
Details
Attachments
(1 file)
(deleted),
text/x-phabricator-request
|
Details |
Environment:
- Ubuntu 20.04
Reproduction:
- Check out source code
- Run
./mach bootstrap
Actual result:
-
Executing as root: sudo apt-get install autoconf2.13 build-essential nodejs python-pip python-setuptools unzip uuid zip python2.7 python2.7-dev
-
E: Package »python-pip« has no installation candidate
-
This is because python 2 is deprecated and python 3 is the standard now, but the Debian maintainers, in their unending wisdom, have not put python 3 in the "python-foo" package, but created python3-foo and python2.7-foo packages, and the python-foo packages are deprecated. This of course breaks all install scripts that reference python packages. However, python2.7-pip does not exist, only python3-pip. Python 2 is really deprecated.
Expected result:
python3-pip
andpython3-setuptools
is installed
Reporter | ||
Comment 1•5 years ago
|
||
Workaround:
sudo apt install python3-pip python3-setuptools python3-dev
./mach bootstrap --no-system-changes
Importance:
- Prevents everybody on Ubuntu 20.04 (which will be released in a few weeks) from building Firefox, unless they find the workaround above.
Reporter | ||
Updated•5 years ago
|
Reporter | ||
Comment 3•5 years ago
|
||
Compare also bug 1626103.
Assignee | ||
Comment 4•5 years ago
|
||
Reporter | ||
Comment 5•5 years ago
|
||
Hi Sylvestre, thanks for the quick patch!
(Sorry for commenting on the patch here, but Phab refuses my login, due to lack of multi-factor auth.)
I tried the patch and it does not work. You need to change python-pip
to python3-pip
. With this change, it works.
However, I see in the same file further down that there is already python3-pip
mentioned, if Python3 is installed.
Updated•5 years ago
|
Updated•5 years ago
|
Comment 8•5 years ago
|
||
bugherder |
Reporter | ||
Comment 9•5 years ago
|
||
Thank you!
Comment 10•5 years ago
|
||
This doesn't work on unstable/sid. (also fails if lsb-release is not installed)
Comment 11•5 years ago
|
||
(In reply to Mike Hommey [:glandium] from comment #10)
This doesn't work on unstable/sid. (also fails if lsb-release is not installed)
Same problem for me.
Comment 12•5 years ago
|
||
I THINK I have the same problem.
https://bugzilla.mozilla.org/show_bug.cgi?id=1630345
Assignee | ||
Comment 13•5 years ago
|
||
So, the issue is that I am not sure to detect if a package is available.
Glandium suggested that we could do an apt-cache show <package>
but the issue is that if there is any pinning (ex: a debian testing with stable as an available repo) done on the distro, it will fail.
Comment 15•5 years ago
|
||
For a particular version/setup of Debian GNU/Linux, I found a manual workaround. YMMV.
https://bugzilla.mozilla.org/show_bug.cgi?id=1630345#c5
Description
•