Files
Khem Raj 0c37249cb3 mercurial: Fix build with python3 linked against openssl 4.x
mercurial's setup.py treats ssl.HAS_TLSv1_2 as authoritative and refuses
to build at all:

  The `ssl` module does not advertise support for TLS 1.2.
  Please make sure that your Python installation was compiled against an
  OpenSSL version enabling these features (likely this requires the
  OpenSSL version to be at least 1.0.1).

  ERROR: mercurial-7.2.4-r0 do_compile: Execution of .../run.do_compile
  failed with exit code 1

Add a patch which only trusts the flag with OpenSSL < 4.0, in setup.py
and in sslutil.supportedprotocols (which otherwise loses b'tls1.2' and
makes `hg debuginstall` under-report the available protocols).

Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
2026-09-11 07:07:58 -07:00
..