* [gentoo-commits] repo/gentoo:master commit in: dev-libs/tree-sitter-css/, dev-libs/tree-sitter-css/files/
@ 2024-04-01 15:34 Matthew Smith
0 siblings, 0 replies; only message in thread
From: Matthew Smith @ 2024-04-01 15:34 UTC (permalink / raw
To: gentoo-commits
commit: a18074ab3baeceb198e6457a365d0a57d987b237
Author: Matthew Smith <matthew <AT> gentoo <DOT> org>
AuthorDate: Mon Apr 1 15:33:00 2024 +0000
Commit: Matthew Smith <matthew <AT> gentoo <DOT> org>
CommitDate: Mon Apr 1 15:33:00 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a18074ab
dev-libs/tree-sitter-css: fix test with >tree-sitter-0.22
Closes: https://bugs.gentoo.org/928010
Signed-off-by: Matthew Smith <matthew <AT> gentoo.org>
.../files/tree-sitter-css-0.20.0-test-selector.patch | 14 ++++++++++++++
dev-libs/tree-sitter-css/tree-sitter-css-0.20.0.ebuild | 6 ++++++
2 files changed, 20 insertions(+)
diff --git a/dev-libs/tree-sitter-css/files/tree-sitter-css-0.20.0-test-selector.patch b/dev-libs/tree-sitter-css/files/tree-sitter-css-0.20.0-test-selector.patch
new file mode 100644
index 000000000000..bbcec7e47e23
--- /dev/null
+++ b/dev-libs/tree-sitter-css/files/tree-sitter-css-0.20.0-test-selector.patch
@@ -0,0 +1,14 @@
+https://bugs.gentoo.org/928010
+https://github.com/tree-sitter/tree-sitter-css/issues/47
+https://github.com/tree-sitter/tree-sitter/issues/3238
+--- a/test/corpus/selectors.txt
++++ b/test/corpus/selectors.txt
+@@ -102,7 +102,7 @@ a::first-line {}
+ (block)))
+
+ =========================
+-::slotted pseudo element
++slotted pseudo element
+ =========================
+
+ ::slotted(button) {}
diff --git a/dev-libs/tree-sitter-css/tree-sitter-css-0.20.0.ebuild b/dev-libs/tree-sitter-css/tree-sitter-css-0.20.0.ebuild
index a1f48ed9e145..632f1a55a2fa 100644
--- a/dev-libs/tree-sitter-css/tree-sitter-css-0.20.0.ebuild
+++ b/dev-libs/tree-sitter-css/tree-sitter-css-0.20.0.ebuild
@@ -11,3 +11,9 @@ HOMEPAGE="https://github.com/tree-sitter/tree-sitter-css"
LICENSE="MIT"
SLOT="0"
KEYWORDS="amd64"
+
+PATCHES=(
+ # https://bugs.gentoo.org/928010
+ # Test name beginning with :: is incompatible with tree-sitter >0.22
+ "${FILESDIR}"/${PN}-0.20.0-test-selector.patch
+)
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2024-04-01 15:34 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-01 15:34 [gentoo-commits] repo/gentoo:master commit in: dev-libs/tree-sitter-css/, dev-libs/tree-sitter-css/files/ Matthew Smith
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox