Closed Bug 1752824 Opened 3 years ago Closed 3 years ago

Geckoview substitution doesn't work due to python warning

Categories

(Firefox Build System :: Bootstrap Configuration, defect)

defect

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1743785

People

(Reporter: jnicol, Unassigned)

References

(Regression)

Details

Trying to build Fenix with dependencySubstitutions.geckoviewTopsrcdir set in local.properties no longer works. This is due to a python warning printed to stdout when attempting to import distutils here.

The warning is:

/home/jamie/src/gecko/mach:81: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives

It looks like we capture the stdout from mach then attempt to parse it as json, which fails due to the warning.

I'm building on Fedora 35. Commenting out the import distutils line avoids the bug, and we build successfully.

I'll chuck a workaround in the dupe'd bug.

Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → DUPLICATE
Has Regression Range: --- → yes
You need to log in before you can comment on or make changes to this bug.