diff mbox series

[meta-oe,08/13] mercurial: Upgrade 7.2.4 -> 7.2.5

Message ID 20261203075202.3404502-9-khem.raj@oss.qualcomm.com
State New
Headers show
Series Recipe upgrades for meta-oe | expand

Commit Message

Khem Raj Dec. 3, 2026, 7:51 a.m. UTC
Security and bug fix release:

- Upgrade the vendored zstd to 1.6.0 for CVE-2026-124851; upgrade Rust
  extension dependencies with advisories (RUSTSEC-2026-0391,
  RUSTSEC-2026-0395 to RUSTSEC-2026-0406)
- New storage.revlog.validate-incoming-content option, enabled by
  server.validate, to check incoming revisions against their node id
- rebase keeps the filelog ancestry of both sides of a merge; fix a
  dirstate crash on files of 2 GiB or more, HTTP pushes hanging on
  mid-request authentication and stale branchmap v3 heads
- Several fixes for experimental changegroup v4 / delta-info
- setup.py accepts ssl.HAS_TLSv1_3 in addition to ssl.HAS_TLSv1_2

Refresh 0001-ssl-do-not-treat-ssl.HAS_TLSv1_2-as-authoritative-wi.patch:
drop its setup.py hunk, which is fixed upstream by the HAS_TLSv1_3
check; the sslutil.py part is still needed for OpenSSL 4.

AI-Generated: Uses Claude Code
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
---
 ...-ssl.HAS_TLSv1_2-as-authoritative-wi.patch | 26 +++----------------
 ...{mercurial_7.2.4.bb => mercurial_7.2.5.bb} |  2 +-
 2 files changed, 5 insertions(+), 23 deletions(-)
 rename meta-oe/recipes-devtools/mercurial/{mercurial_7.2.4.bb => mercurial_7.2.5.bb} (96%)
diff mbox series

Patch

diff --git a/meta-oe/recipes-devtools/mercurial/mercurial/0001-ssl-do-not-treat-ssl.HAS_TLSv1_2-as-authoritative-wi.patch b/meta-oe/recipes-devtools/mercurial/mercurial/0001-ssl-do-not-treat-ssl.HAS_TLSv1_2-as-authoritative-wi.patch
index e21376768b..265bed49cd 100644
--- a/meta-oe/recipes-devtools/mercurial/mercurial/0001-ssl-do-not-treat-ssl.HAS_TLSv1_2-as-authoritative-wi.patch
+++ b/meta-oe/recipes-devtools/mercurial/mercurial/0001-ssl-do-not-treat-ssl.HAS_TLSv1_2-as-authoritative-wi.patch
@@ -25,12 +25,14 @@  Only trust ssl.HAS_TLSv1_2 with OpenSSL < 4.0 and assume TLS 1.2 is
 available otherwise. TLS 1.0 and TLS 1.1 are deliberately not assumed:
 they are disabled in the default OpenSSL 4.0 configuration.
 
+The setup.py check was fixed upstream in 7.2.5 (it now also accepts
+ssl.HAS_TLSv1_3), so only sslutil.py needs patching.
+
 Upstream-Status: Pending
 Signed-off-by: Khem Raj <raj.khem@gmail.com>
 ---
  mercurial/sslutil.py | 13 ++++++++++++-
- setup.py             |  9 ++++++++-
- 2 files changed, 20 insertions(+), 2 deletions(-)
+ 1 file changed, 12 insertions(+), 1 deletion(-)
 
 diff --git a/mercurial/sslutil.py b/mercurial/sslutil.py
 index fd8333e..f278b26 100644
@@ -61,23 +63,3 @@  index fd8333e..f278b26 100644
      supportedprotocols.add(b'tls1.2')
  if getattr(ssl, 'HAS_TLSv1_3', False):
      supportedprotocols.add(b'tls1.3')
-diff --git a/setup.py b/setup.py
-index ca70bc0..18d958a 100644
---- a/setup.py
-+++ b/setup.py
-@@ -12,7 +12,14 @@ import sys
- import sysconfig
- import tempfile
-
--if not ssl.HAS_TLSv1_2:
-+# OpenSSL 4.0 removed the version specific TLSv1_2_method() API, so CPython
-+# reports ssl.HAS_TLSv1_2 as False when built against it (see CPython issue
-+# gh-146207). TLS 1.2 itself is still fully supported there and remains
-+# selectable through ssl.SSLContext.minimum_version, so the flag can only be
-+# trusted with older OpenSSL releases.
-+has_tlsv1_2 = ssl.HAS_TLSv1_2 or ssl.OPENSSL_VERSION_INFO[0] >= 4
-+
-+if not has_tlsv1_2:
-     error = """
- The `ssl` module does not advertise support for TLS 1.2.
- Please make sure that your Python installation was compiled against an OpenSSL
diff --git a/meta-oe/recipes-devtools/mercurial/mercurial_7.2.4.bb b/meta-oe/recipes-devtools/mercurial/mercurial_7.2.5.bb
similarity index 96%
rename from meta-oe/recipes-devtools/mercurial/mercurial_7.2.4.bb
rename to meta-oe/recipes-devtools/mercurial/mercurial_7.2.5.bb
index de398d52a5..b707c3ae74 100644
--- a/meta-oe/recipes-devtools/mercurial/mercurial_7.2.4.bb
+++ b/meta-oe/recipes-devtools/mercurial/mercurial_7.2.5.bb
@@ -12,7 +12,7 @@  inherit python3native python3targetconfig
 SRC_URI = "https://www.mercurial-scm.org/release/${BP}.tar.gz \
            file://0001-ssl-do-not-treat-ssl.HAS_TLSv1_2-as-authoritative-wi.patch \
            "
-SRC_URI[sha256sum] = "85839e0f39e6cb893a88932aa36ef661759f3c5c5de4551ad26bd9df53cb71a2"
+SRC_URI[sha256sum] = "717da551ddd9feb301454cd9a24623122c15d5d1929a55b71afd8ae0c0b9e239"
 
 # Constrain the version to digits-and-dots, otherwise the auto-derived regex
 # also matches the X.Yrc0 pre-releases in the same directory and picks those.