Source: mercurial
Version:  6.9.3-1
Severity: serious
Tags: FTBFS, patch
User: debian-ri...@lists.debian.org
Usertags: riscv64
X-Debbugs-Cc: debian-ri...@lists.debian.org

Dear mercurial maintainer,
The package mercurial build failed on riscv64.The crucial buildd log below:
```

 debian/rules override_dh_auto_build
make[1]: Entering directory '/build/reproducible-path/mercurial-6.9.3'
/usr/bin/make all PYTHON=python3.13
make[2]: Entering directory '/build/reproducible-path/mercurial-6.9.3'
python3.13 setup.py  build
Traceback (most recent call last):
  File "/build/reproducible-path/mercurial-6.9.3/setup.py", line 114,
in <module>
    from distutils.core import setup
ModuleNotFoundError: No module named 'distutils'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/build/reproducible-path/mercurial-6.9.3/setup.py", line 116,
in <module>
    from setuptools import setup
ModuleNotFoundError: No module named 'setuptools'

```
The full buildd log is here:
https://buildd.debian.org/status/fetch.php?pkg=mercurial&arch=riscv64&ver=6.9.3-1&stamp=1741327548&raw=0
My solution to this issue:
  This issue is caused by setuptools not being automatically installed on
the RISC-V architecture and needs to be explicitly installed in
debian/control.  I have tested this solution,and it works well.The
debpatch is in the attachment.
Gui-Yue
Best Regards

Attachment: fix_mercurial_failed_on_riscv.patch
Description: Binary data

Reply via email to