py-mercurial: update to 5.9.2. Changes not found. Fix four test failures while here.diff -r1.59 -r1.60 pkgsrc/devel/py-mercurial/Makefile
(wiz)
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | # $NetBSD: Makefile,v 1.59 2021/09/12 10:22:57 wiz Exp $ | 1 | # $NetBSD: Makefile,v 1.60 2021/10/13 12:35:29 wiz Exp $ | |
2 | # | 2 | # | |
3 | # Changelog sometimes at: https://www.mercurial-scm.org/wiki/WhatsNew | 3 | # Changelog sometimes at: https://www.mercurial-scm.org/wiki/WhatsNew | |
4 | 4 | |||
5 | DISTNAME= mercurial-${VERSION} | 5 | DISTNAME= mercurial-${VERSION} | |
6 | PKGNAME= ${PYPKGPREFIX}-${DISTNAME} | 6 | PKGNAME= ${PYPKGPREFIX}-${DISTNAME} | |
7 | CATEGORIES= devel scm | 7 | CATEGORIES= devel scm | |
8 | MASTER_SITES= https://www.mercurial-scm.org/release/ | 8 | MASTER_SITES= https://www.mercurial-scm.org/release/ | |
9 | 9 | |||
10 | MAINTAINER= wiz@NetBSD.org | 10 | MAINTAINER= wiz@NetBSD.org | |
11 | HOMEPAGE= https://www.mercurial-scm.org/ | 11 | HOMEPAGE= https://www.mercurial-scm.org/ | |
12 | COMMENT= Fast, lightweight source control management system | 12 | COMMENT= Fast, lightweight source control management system | |
13 | LICENSE= gnu-gpl-v2 OR gnu-gpl-v3 # OR newer | 13 | LICENSE= gnu-gpl-v2 OR gnu-gpl-v3 # OR newer | |
14 | 14 | |||
@@ -21,36 +21,30 @@ TEST_DEPENDS+= ${PYPKGPREFIX}-sqlite3-[0 | @@ -21,36 +21,30 @@ TEST_DEPENDS+= ${PYPKGPREFIX}-sqlite3-[0 | |||
21 | # https://bz.mercurial-scm.org/show_bug.cgi?id=4483 | 21 | # https://bz.mercurial-scm.org/show_bug.cgi?id=4483 | |
22 | # https://bz.mercurial-scm.org/show_bug.cgi?id=4485 | 22 | # https://bz.mercurial-scm.org/show_bug.cgi?id=4485 | |
23 | TEST_DEPENDS+= unzip-[0-9]*:../../archivers/unzip | 23 | TEST_DEPENDS+= unzip-[0-9]*:../../archivers/unzip | |
24 | 24 | |||
25 | USE_TOOLS+= gmake msgfmt | 25 | USE_TOOLS+= gmake msgfmt | |
26 | 26 | |||
27 | INSTALLATION_DIRS= bin ${PKGMANDIR}/man1 ${PKGMANDIR}/man5 | 27 | INSTALLATION_DIRS= bin ${PKGMANDIR}/man1 ${PKGMANDIR}/man5 | |
28 | INSTALLATION_DIRS+= share/doc/mercurial | 28 | INSTALLATION_DIRS+= share/doc/mercurial | |
29 | 29 | |||
30 | .include "version.mk" | 30 | .include "version.mk" | |
31 | .include "options.mk" | 31 | .include "options.mk" | |
32 | 32 | |||
33 | USE_TOOLS+= bash:test | 33 | USE_TOOLS+= bash:test | |
34 | # Known test failures as of 5.9.1 | 34 | # Known test failures as of 5.9.2 | |
35 | # test-persistent-nodemap.t | |||
36 | # https://bz.mercurial-scm.org/show_bug.cgi?id=6523 | |||
37 | # test-cloned-uncompressed | |||
38 | # https://bz.mercurial-scm.org/show_bug.cgi?id=6591 | |||
39 | # test-censor.t | |||
40 | # https://bz.mercurial-scm.org/show_bug.cgi?id=6585 | |||
41 | # test-removeemptydirs.t | 35 | # test-removeemptydirs.t | |
42 | # https://bz.mercurial-scm.org/show_bug.cgi?id=6587 | 36 | # https://bz.mercurial-scm.org/show_bug.cgi?id=6587 | |
43 | # | 37 | # | |
44 | # Ran 888 tests, 97 skipped, 5 failed. | 38 | # Ran 888 tests, 97 skipped, 1 failed. | |
45 | 39 | |||
46 | TEST_TARGET= tests | 40 | TEST_TARGET= tests | |
47 | TEST_MAKE_FLAGS+= PYTHON=${PYTHONBIN} TESTFLAGS=${_MAKE_JOBS:Q} | 41 | TEST_MAKE_FLAGS+= PYTHON=${PYTHONBIN} TESTFLAGS=${_MAKE_JOBS:Q} | |
48 | 42 | |||
49 | post-install: | 43 | post-install: | |
50 | ${INSTALL_DATA} ${WRKSRC}/doc/*.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1 | 44 | ${INSTALL_DATA} ${WRKSRC}/doc/*.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1 | |
51 | ${INSTALL_DATA} ${WRKSRC}/doc/*.5 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man5 | 45 | ${INSTALL_DATA} ${WRKSRC}/doc/*.5 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man5 | |
52 | ${INSTALL_DATA} ${WRKSRC}/README.rst \ | 46 | ${INSTALL_DATA} ${WRKSRC}/README.rst \ | |
53 | ${DESTDIR}${PREFIX}/share/doc/mercurial | 47 | ${DESTDIR}${PREFIX}/share/doc/mercurial | |
54 | 48 | |||
55 | .include "../../lang/python/distutils.mk" | 49 | .include "../../lang/python/distutils.mk" | |
56 | .include "../../mk/bsd.pkg.mk" | 50 | .include "../../mk/bsd.pkg.mk" |
@@ -1,5 +1,8 @@ | @@ -1,5 +1,8 @@ | |||
1 | $NetBSD: distinfo,v 1.107 2021/10/07 13:43:22 nia Exp $ | 1 | $NetBSD: distinfo,v 1.108 2021/10/13 12:35:29 wiz Exp $ | |
2 | 2 | |||
3 | RMD160 (mercurial-5.9.1.tar.gz) = d25686f9c34044b19c5dfac20a5f947d01786f06 | 3 | RMD160 (mercurial-5.9.2.tar.gz) = 29d52487d7da57c5182b6daad7e8ca73403933d7 | |
4 | SHA512 (mercurial-5.9.1.tar.gz) = 2fe734ff707a73d2537af0b0c98e1142fa52b41f7ec4d5572cc5a8479f2d081e69de8b3dd136915d84cde4283f239e0519435c1dfd861824e3021c4c78cd305f | 4 | SHA512 (mercurial-5.9.2.tar.gz) = 65002f90eb3050a0d257678f71e6f0c34b39cbb22b517ab265f25728a803012b95c6740f6cdbbabd994a2d66ca94499c4be42c882e299eb7e56412086211e861 | |
5 | Size (mercurial-5.9.1.tar.gz) = 8120006 bytes | 5 | Size (mercurial-5.9.2.tar.gz) = 8125497 bytes | |
6 | SHA1 (patch-tests_test-censor.t) = ad5fc991072b326965d8e87ef25d08321d480af8 | |||
7 | SHA1 (patch-tests_test-clone-uncompressed.t) = 58355e72b4d0b9cab2efbc16facca288bdbe4cb0 | |||
8 | SHA1 (patch-tests_test-persistent-nodemap.t) = 78b2576efd5154137996c259cb1e91229b820e0e |
@@ -1,3 +1,3 @@ | @@ -1,3 +1,3 @@ | |||
1 | # $NetBSD: version.mk,v 1.26 2021/09/12 10:22:57 wiz Exp $ | 1 | # $NetBSD: version.mk,v 1.27 2021/10/13 12:35:29 wiz Exp $ | |
2 | 2 | |||
3 | VERSION= 5.9.1 | 3 | VERSION= 5.9.2 |
$NetBSD: patch-tests_test-censor.t,v 1.1 2021/10/13 12:35:29 wiz Exp $
Fix test.
https://bz.mercurial-scm.org/show_bug.cgi?id=6585
--- tests/test-censor.t.orig 2021-10-05 15:47:21.000000000 +0000
+++ tests/test-censor.t
@@ -552,14 +552,14 @@ Make sure the last revision is a delta a
Censor the file
$ hg cat -r $B1 target | wc -l
- 50002 (re)
+ *50002 (re)
$ hg censor -r $B1 target
$ hg cat -r $B1 target | wc -l
- 0 (re)
+ *0 (re)
Check the children is fine
$ hg cat -r $B2 target | wc -l
- 50003 (re)
+ *50003 (re)
#endif
$NetBSD: patch-tests_test-clone-uncompressed.t,v 1.1 2021/10/13 12:35:29 wiz Exp $
Fix test.
https://bz.mercurial-scm.org/show_bug.cgi?id=6591
--- tests/test-clone-uncompressed.t.orig 2021-10-05 15:47:21.000000000 +0000
+++ tests/test-clone-uncompressed.t
@@ -96,7 +96,7 @@ Name with special characters
name causing issue6581
- $ mkdir --parents container/isam-build-centos7/
+ $ mkdir -p container/isam-build-centos7/
$ touch container/isam-build-centos7/bazel-coverage-generator-sandboxfs-compatibility-0758e3e4f6057904d44399bd666faba9e7f40686.patch
Add all that
$NetBSD: patch-tests_test-persistent-nodemap.t,v 1.1 2021/10/13 12:35:29 wiz Exp $
Fix test failure
https://bz.mercurial-scm.org/show_bug.cgi?id=6523
--- tests/test-persistent-nodemap.t.orig 2021-10-05 15:47:21.000000000 +0000
+++ tests/test-persistent-nodemap.t
@@ -1028,9 +1028,10 @@ truncate the file
$ datafilepath=`ls corruption-test-repo/.hg/store/00changelog*.nd`
$ f -s $datafilepath
corruption-test-repo/.hg/store/00changelog-*.nd: size=121088 (glob)
- $ dd if=$datafilepath bs=1000 count=10 of=$datafilepath-tmp status=noxfer
+ $ dd if=$datafilepath bs=1000 count=10 of=$datafilepath-tmp
10+0 records in
10+0 records out
+ * bytes transferred in * (glob)
$ mv $datafilepath-tmp $datafilepath
$ f -s $datafilepath
corruption-test-repo/.hg/store/00changelog-*.nd: size=10000 (glob)