FS#75796 - [firefox] Build environment detection does not pass

Attached to Project: Arch Linux
Opened by Dong Xu (eastdong) - Sunday, 04 September 2022, 07:30 GMT
Last edited by Jan Alexander Steffens (heftig) - Monday, 05 September 2022, 22:00 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Jan Alexander Steffens (heftig)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

firefox 104.1 checks the compilation environment when compiling and report:

```
pydantic 1.10.1 /usr/lib/python3.10/site-packages
pyparsing 2.4.7 /build/firefox/src/firefox-104.0.1/third_party/python/pyparsing
pyrsistent 0.16.0 /build/firefox/src/firefox-104.0.1/third_party/python/pyrsistent
pytoml 0.1.10 /build/firefox/src/firefox-104.0.1/third_party/python/pytoml
PyYAML 5.4.1 /build/firefox/src/firefox-104.0.1/third_party/python/PyYAML/lib3
redo 2.0.3 /build/firefox/src/firefox-104.0.1/third_party/python/redo
requests 2.25.1 /build/firefox/src/firefox-104.0.1/third_party/python/requests
requests-unixsocket 0.2.0 /build/firefox/src/firefox-104.0.1/third_party/python/requests_unixsocket
responses 0.10.6 /build/firefox/src/firefox-104.0.1/third_party/python/responses
rsa 3.1.4 /build/firefox/src/firefox-104.0.1/third_party/python/rsa
sentry-sdk 0.14.3 /build/firefox/src/firefox-104.0.1/third_party/python/sentry_sdk
setuptools 51.2.0 /tmp/tmphwiqd5hw/lib/python3.10/site-packages pip
six 1.13.0 /build/firefox/src/firefox-104.0.1/third_party/python/six
slugid 2.0.0 /build/firefox/src/firefox-104.0.1/third_party/python/slugid
taskcluster 44.2.2 /build/firefox/src/firefox-104.0.1/third_party/python/taskcluster
taskcluster-taskgraph 1.7.1 /build/firefox/src/firefox-104.0.1/third_party/python/taskcluster_taskgraph
taskcluster-urls 13.0.1 /build/firefox/src/firefox-104.0.1/third_party/python/taskcluster_urls
tomli 2.0.1 /usr/lib/python3.10/site-packages
tqdm 4.62.3 /build/firefox/src/firefox-104.0.1/third_party/python/tqdm
trove-classifiers 2022.8.31 /usr/lib/python3.10/site-packages
typing-extensions 3.10.0.0 /build/firefox/src/firefox-104.0.1/third_party/python/typing_extensions
urllib3 1.26.0 /build/firefox/src/firefox-104.0.1/third_party/python/urllib3
validate-pyproject 0.10.1 /usr/lib/python3.10/site-packages
voluptuous 0.12.1 /build/firefox/src/firefox-104.0.1/third_party/python/voluptuous
wheel 0.37.0 /tmp/tmphwiqd5hw/lib/python3.10/site-packages pip
yamllint 1.23.0 /build/firefox/src/firefox-104.0.1/third_party/python/yamllint
yarl 1.6.3 /build/firefox/src/firefox-104.0.1/third_party/python/yarl
zipp 3.4.1 /build/firefox/src/firefox-104.0.1/third_party/python/zipp
zstandard 0.18.0 /usr/lib/python3.10/site-packages
WARNING: You are using pip version 21.2.3; however, version 22.2.2 is available.
You should consider upgrading via the '/tmp/tmphwiqd5hw/bin/python -m pip install --upgrade pip' command.
pydantic 1.10.1 has requirement typing-extensions>=4.1.0, but you have typing-extensions 3.10.0.0.
```

The main package errors in this are `pydantic` and `typing-extensions`. I noticed that the ` python-typing_extensions` package was installed at compile time, but firefox's environment test still reads the software version in the source code by default.

Meanwhile, I found that in the arch repository, `pydantic 1.10` was updated after `firefox`, so I tried passing `python-pydantic-1.9.2-1` with -I when building firefox, and it passed the environment test.

This task depends upon

Closed by  Jan Alexander Steffens (heftig)
Monday, 05 September 2022, 22:00 GMT
Reason for closing:  Fixed
Additional comments about closing:  firefox 104.0.2-1
Comment by Darek (blablo) - Sunday, 04 September 2022, 15:06 GMT
You can switch to pip for now (export MACH_BUILD_PYTHON_NATIVE_PACKAGE_SOURCE=pip). System python packages broke the build.
thunderbird is also affected.

Comment by Dong Xu (eastdong) - Monday, 05 September 2022, 04:13 GMT
Thanks for the suggestion, I'll try it.

Loading...