mach bootstrap on Fedora 29 fails to install mercurial
Categories
(Firefox Build System :: Bootstrap Configuration, defect)
Tracking
(firefox73 fixed)
| Tracking | Status | |
|---|---|---|
| firefox73 | --- | fixed |
People
(Reporter: heycam, Assigned: kuleshovmail)
Details
Attachments
(2 files)
|
503 bytes,
patch
|
Details | Diff | Splinter Review | |
|
47 bytes,
text/x-phabricator-request
|
Details | Review |
Comment 1•6 years ago
•
|
||
This appears to be a mismatch between what the parent mozboot.base.BaseBootstrapper class and the CentOSFedoraBootstrapper subclass assume the upgrade_mercurial() method's responsibilities are.
Looking at "python/mozboot/mozboot/base.py", line 542, in ensure_mercurial_modern(): I'd guess the method assumes that the upgrade_mercurial() method not only updates Mercurial but also installs Mercurial if it is missing. It calls the upgrade_mercurial() method regardless of whether Mercurial is already installed and regardless of how it was installed.
The overridden method in CentOSFedoraBootstrapper always runs dnf update mercurial. It's assuming that Mercurial is already present and was installed via the package manager. It fails if neither of those are true, causing the error.
| Assignee | ||
Comment 2•6 years ago
|
||
Fix Firefox bootstrap on Centos/Fedora
| Assignee | ||
Comment 3•6 years ago
|
||
Comment 4•6 years ago
|
||
Please publish the patch on phabricator
https://firefox-source-docs.mozilla.org/tools/docs/contribute/how_to_contribute_firefox.html
| Assignee | ||
Updated•6 years ago
|
| Assignee | ||
Comment 5•6 years ago
|
||
If Mercurial (hg) is not installed on a Centos/Fedora system, execution
of:
$ ./mach bootstrap
will be failed as the bootstrap script tries to execute:
dnf update mercurial
This commit replaces 'dnf update' with 'dnf install' command
to install but not upgrade mercurial version.
Updated•6 years ago
|
Comment 7•6 years ago
|
||
Comment 8•6 years ago
|
||
| bugherder | ||
Description
•