summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAzamat H. Hackimov <azamat.hackimov@gmail.com>2024-04-10 13:17:29 +0300
committerYixun Lan <dlan@gentoo.org>2024-04-11 22:16:00 +0000
commit941b558de184e13bc703f04aa22c802c8a89da4b (patch)
treeaaf27ad755280da85b8c6fd7bc0c67b7e022c4ff /app-text/cmark
parentgnustep-base/gnustep-back-cairo: add missing x11-base/xorg-proto build dep (diff)
downloadgentoo-941b558de184e13bc703f04aa22c802c8a89da4b.tar.gz
gentoo-941b558de184e13bc703f04aa22c802c8a89da4b.tar.bz2
gentoo-941b558de184e13bc703f04aa22c802c8a89da4b.zip
app-text/cmark: fix test failures
Closes: https://bugs.gentoo.org/929043 Closes: https://github.com/gentoo/gentoo/pull/36191 Signed-off-by: Azamat H. Hackimov <azamat.hackimov@gmail.com> Signed-off-by: Yixun Lan <dlan@gentoo.org>
Diffstat (limited to 'app-text/cmark')
-rw-r--r--app-text/cmark/cmark-0.31.0.ebuild4
-rw-r--r--app-text/cmark/files/cmark-0.31.0_fix_api_test.patch17
2 files changed, 21 insertions, 0 deletions
diff --git a/app-text/cmark/cmark-0.31.0.ebuild b/app-text/cmark/cmark-0.31.0.ebuild
index da5a39b33e87..9d990ce41277 100644
--- a/app-text/cmark/cmark-0.31.0.ebuild
+++ b/app-text/cmark/cmark-0.31.0.ebuild
@@ -19,6 +19,10 @@ RESTRICT="!test? ( test )"
BDEPEND="test? ( ${PYTHON_DEPS} )"
+PATCHES=(
+ "${FILESDIR}/cmark-0.31.0_fix_api_test.patch"
+)
+
pkg_setup() {
use test && python-any-r1_pkg_setup
}
diff --git a/app-text/cmark/files/cmark-0.31.0_fix_api_test.patch b/app-text/cmark/files/cmark-0.31.0_fix_api_test.patch
new file mode 100644
index 000000000000..defecc445c4e
--- /dev/null
+++ b/app-text/cmark/files/cmark-0.31.0_fix_api_test.patch
@@ -0,0 +1,17 @@
+https://github.com/commonmark/cmark/commit/a739d4911b5fa5586679b8e55999719cc910d26b
+From: John MacFarlane <jgm@berkeley.edu>
+Date: Wed, 13 Mar 2024 14:31:28 -0700
+Subject: [PATCH] Flag root node as open...
+
+in `cmark_parser_new_with_mem_into_root`. Closes #532.
+--- a/src/blocks.c
++++ b/src/blocks.c
+@@ -98,6 +98,8 @@ cmark_parser *cmark_parser_new_with_mem_into_root(int options, cmark_mem *mem, c
+ cmark_strbuf_init(mem, &parser->linebuf, 0);
+ cmark_strbuf_init(mem, &parser->content, 0);
+
++ root->flags = CMARK_NODE__OPEN;
++
+ parser->refmap = cmark_reference_map_new(mem);
+ parser->root = root;
+ parser->current = root;