Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] mercurial: update to 6.5.2
@ 2023-10-11 23:19 coral-pink
  2023-10-12 12:30 ` [PR PATCH] [Closed]: " coral-pink
  0 siblings, 1 reply; 2+ messages in thread
From: coral-pink @ 2023-10-11 23:19 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 678 bytes --]

There is a new pull request by coral-pink against master on the void-packages repository

https://github.com/coral-pink/void-packages mercurial-6.5.2
https://github.com/void-linux/void-packages/pull/46625

mercurial: update to 6.5.2
Fixes Python 3.12 deprecation warnings. #46170

#### Testing the changes
- I tested the changes in this PR: **YES**

#### Local build testing
- I built this PR locally for my native architecture, (x86_64)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - x86_64-musl
  - aarch64
  - aarch64-musl
  - i686

A patch file from https://github.com/void-linux/void-packages/pull/46625.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-mercurial-6.5.2-46625.patch --]
[-- Type: text/x-diff, Size: 3459 bytes --]

From ba475ffafd8c24450b9de41e7c8ffda31b4b3aa6 Mon Sep 17 00:00:00 2001
From: Coral Pink <coral.pink@disr.it>
Date: Thu, 12 Oct 2023 01:05:53 +0200
Subject: [PATCH] mercurial: update to 6.5.2

---
 srcpkgs/mercurial/files/tests_blacklist       |  2 ++
 .../patches/00-fix-test-remotefilelog-gc.diff | 30 +++++++++++++++++++
 srcpkgs/mercurial/template                    |  9 +++---
 3 files changed, 36 insertions(+), 5 deletions(-)
 create mode 100644 srcpkgs/mercurial/files/tests_blacklist
 create mode 100644 srcpkgs/mercurial/patches/00-fix-test-remotefilelog-gc.diff

diff --git a/srcpkgs/mercurial/files/tests_blacklist b/srcpkgs/mercurial/files/tests_blacklist
new file mode 100644
index 0000000000000..e05d93e56985a
--- /dev/null
+++ b/srcpkgs/mercurial/files/tests_blacklist
@@ -0,0 +1,2 @@
+test-merge-tools.t 
+test-profile.t # https://bz.mercurial-scm.org/show_bug.cgi?id=6846
diff --git a/srcpkgs/mercurial/patches/00-fix-test-remotefilelog-gc.diff b/srcpkgs/mercurial/patches/00-fix-test-remotefilelog-gc.diff
new file mode 100644
index 0000000000000..444820157b934
--- /dev/null
+++ b/srcpkgs/mercurial/patches/00-fix-test-remotefilelog-gc.diff
@@ -0,0 +1,30 @@
+--- ./tests/hghave.py	2023-10-11 02:51:10.038038013 +0200
++++ ./tests/hghave.py	2023-10-11 02:50:44.353035951 +0200
+@@ -868,7 +868,7 @@
+
+ # Add "py36", "py37", ... as possible feature checks. Note that there's no
+ # punctuation here.
+-@checkvers("py", "Python >= %s", (3.6, 3.7, 3.8, 3.9, 3.10, 3.11))
++@checkvers("py", "Python >= %s", (3.6, 3.7, 3.8, 3.9, 3.10, 3.11, 3.12))
+ def has_python_range(v):
+     major, minor = v.split('.')[0:2]
+     py_major, py_minor = sys.version_info.major, sys.version_info.minor
+--- ./tests/test-remotefilelog-gc.t	2023-10-11 03:20:30.678179308 +0200
++++ ./tests/test-remotefilelog-gc.t	2023-10-11 03:20:23.587178739 +0200
+@@ -106,6 +106,11 @@
+ # Test that warning is displayed when the repo path is malformed
+ 
+   $ printf "asdas\0das" >> $CACHEDIR/repos
++#if py312
++  $ hg gc
++  abort: invalid path asdas\x00da: .*(null|NULL).* (re)
++  [255]
++#else
+ #if py311
+   $ hg gc
+   finished: removed 0 of 4 files (0.00 GB to 0.00 GB)
+@@ -114,3 +119,4 @@
+   abort: invalid path asdas\x00da: .*(null|NULL).* (re)
+   [255]
+ #endif
++#endif
diff --git a/srcpkgs/mercurial/template b/srcpkgs/mercurial/template
index 33d65655703a2..be8e49bb40ffa 100644
--- a/srcpkgs/mercurial/template
+++ b/srcpkgs/mercurial/template
@@ -1,7 +1,7 @@
 # Template file for 'mercurial'
 pkgname=mercurial
-version=6.5
-revision=2
+version=6.5.2
+revision=1
 build_style=python3-module
 hostmakedepends="python3 python3-setuptools python3-devel gettext git"
 makedepends="python3-devel"
@@ -14,7 +14,7 @@ maintainer="dataCobra <datacobra@thinkbot.de>"
 license="GPL-2.0-or-later"
 homepage="https://www.mercurial-scm.org/"
 distfiles="https://www.mercurial-scm.org/release/mercurial-${version}.tar.gz"
-checksum=a5603d0d395ebf67fe5d27abbb3bd37fcc01871ecf394c793672d2c1e68be7e7
+checksum=afc39d7067976593c8332b8e97a12afd393b55037c5fb9c3cab1a42c7560f60a
 
 pre_check() {
 	if [ "$XBPS_TARGET_LIBC" = musl ]; then
@@ -31,8 +31,7 @@ do_check() {
 	fi
 
 	cd tests
-	rm test-hghave.t test-merge-tools.t test-status.t test-status-eacces.t
-	PATH=/tmp/bin:$PATH python3 run-tests.py ${makejobs} ${_additional_test}
+	PATH=/tmp/bin:$PATH python3 run-tests.py --blacklist "${FILESDIR}/tests_blacklist" ${makejobs} ${_additional_test}
 }
 
 post_install() {

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PR PATCH] [Closed]: mercurial: update to 6.5.2
  2023-10-11 23:19 [PR PATCH] mercurial: update to 6.5.2 coral-pink
@ 2023-10-12 12:30 ` coral-pink
  0 siblings, 0 replies; 2+ messages in thread
From: coral-pink @ 2023-10-12 12:30 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 521 bytes --]

There's a closed pull request on the void-packages repository

mercurial: update to 6.5.2
https://github.com/void-linux/void-packages/pull/46625

Description:
Fixes Python 3.12 deprecation warnings. #46170

#### Testing the changes
- I tested the changes in this PR: **YES**

#### Local build testing
- I built this PR locally for my native architecture, (x86_64)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - x86_64-musl x
  - aarch64 x
  - aarch64-musl x
  - i686 x

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-10-12 12:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-11 23:19 [PR PATCH] mercurial: update to 6.5.2 coral-pink
2023-10-12 12:30 ` [PR PATCH] [Closed]: " coral-pink

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).