https://bz.mercurial-scm.org/show_bug.cgi?id=6407

            Bug ID: 6407
           Summary: Cannot build mercurial with Python 3.9: broken
                    hgdemandinfo
           Product: Mercurial
           Version: 5.4
          Hardware: PC
                OS: Linux
            Status: UNCONFIRMED
          Severity: feature
          Priority: wish
         Component: Mercurial
          Assignee: bugzi...@mercurial-scm.org
          Reporter: pstod...@redhat.com
                CC: mercurial-devel@mercurial-scm.org
    Python Version: ---

Created attachment 2086
  --> https://bz.mercurial-scm.org/attachment.cgi?id=2086&action=edit
hgdemandimport fix

Hi guys,
we have discovered problems during building of mercurial 5.4 with Python 3.9
[0] regarding changes in module loader. The issue is discussed with Python
upstream [1]. We already used the patch in attachment to fix the problem for
now.

Actual results for mercurial 5.4:

--- snippet ----
make -C doc
make[1]: Entering directory '/builddir/build/BUILD/mercurial-5.4/doc'
/usr/bin/python3 gendoc.py "hg-ssh.8" > hg-ssh.8.txt.tmp
Traceback (most recent call last):
  File "/builddir/build/BUILD/mercurial-5.4/doc/gendoc.py", line 39, in
<module>
    from mercurial.i18n import (
  File "/usr/lib64/python3.9/importlib/util.py", line 245, in __getattribute__
    self.__spec__.loader.exec_module(self)
SystemError: <built-in function compile> returned NULL without setting an error
make[1]: *** [Makefile:22: hg-ssh.8.txt] Error 1
make[1]: Leaving directory '/builddir/build/BUILD/mercurial-5.4/doc'
make: *** [Makefile:64: doc] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.j1o0Ut (%build)
---------------

Additional info:
The bug 6268 [2] is related to demandimport as well, but probably it's not
related to this particular issue.


[0] https://bugzilla.redhat.com/show_bug.cgi?id=1871992
[1] https://bugs.python.org/issue41631
[2] https://bz.mercurial-scm.org/show_bug.cgi?id=6268

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel

Reply via email to