Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build failure: fdroidserver #325076

Closed
jchv opened this issue Jul 6, 2024 · 0 comments · Fixed by #325093
Closed

Build failure: fdroidserver #325076

jchv opened this issue Jul 6, 2024 · 0 comments · Fixed by #325093

Comments

@jchv
Copy link
Contributor

jchv commented Jul 6, 2024

Steps To Reproduce

Steps to reproduce the behavior:

  1. nix build .#fdroidserver

Build log

https://gist.github.com/jchv/bfbdc6f796b650b61bdd00860d4adf38

...
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "<string>", line 1, in <lambda>
  File "/nix/store/z7xxy35k7620hs6fn6la5fg2lgklv72l-python3-3.12.4/lib/python3.12/importlib/__init__.py", line 90, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 995, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "/nix/store/zzgwcw24zfp0lja7mb305154xzsj82f4-fdroidserver-unstable-2023-10-23/lib/python3.12/site-packages/fdroidserver/__init__.py", line 34, in <module>
    from fdroidserver.common import (verify_apk_signature,
  File "/nix/store/zzgwcw24zfp0lja7mb305154xzsj82f4-fdroidserver-unstable-2023-10-23/lib/python3.12/site-packages/fdroidserver/common.py", line 60, in <module>
    from distutils.version import LooseVersion
ModuleNotFoundError: No module named 'distutils'

Additional context

Git bisect predictably found the culprit as 737b5cd, so it is related to the Python 3.12 upgrade. I suspect that all setuptools-based modules are broken; e.g. .#python3Packages.yq also stops building. Interestingly, .#python312Packages.yq built before, but not after. Not sure what that implies.

Notify maintainers

(Originally I had notified the Python team, but I removed them from this list because I am suspecting this regression may not be the result of any problem with the version flip itself, but the broken packages instead. Sorry.)

Notifying @linsui @jugendhacker from fdroidserver maintainers.

Metadata

Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

$ nix shell nixpkgs#nix-info -c nix-info -m
 - system: `"x86_64-linux"`
 - host os: `Linux 6.9.2, NixOS, 24.11 (Vicuna), 24.11.20240703.9f4128e`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.18.4`
 - channels(root): `"nixos"`
 - channels(john): `""`
 - nixpkgs: `/nix/store/qgbn0imyridkb9527v6gnv6z3jzzprb9-source`

Add a 👍 reaction to issues you find important.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant