Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package tree-sitter-luau for
openSUSE:Factory checked in at 2026-05-04 12:53:03
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/tree-sitter-luau (Old)
and /work/SRC/openSUSE:Factory/.tree-sitter-luau.new.30200 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "tree-sitter-luau"
Mon May 4 12:53:03 2026 rev:3 rq:1350411 version:1.2.0
Changes:
--------
--- /work/SRC/openSUSE:Factory/tree-sitter-luau/tree-sitter-luau.changes
2025-01-01 23:08:14.601286757 +0100
+++
/work/SRC/openSUSE:Factory/.tree-sitter-luau.new.30200/tree-sitter-luau.changes
2026-05-04 12:55:48.915154676 +0200
@@ -1,0 +2,13 @@
+Tue Mar 17 21:54:21 UTC 2026 - Matej Cepl <[email protected]>
+
+- Add require-correct-lua.patch which uses the openSUSE-installed
+ module path (tree-sitter-lua) instead of the npm scoped package
+ name (@muniftanjim/tree-sitter-lua), and handle ESM default
+ export from tree-sitter-lua grammar.
+
+-------------------------------------------------------------------
+Thu Mar 5 21:29:50 UTC 2026 - Björn Kettunen <[email protected]>
+
+- Remove redundant Neovim workaround
+
+-------------------------------------------------------------------
New:
----
_scmsync.obsinfo
build.specials.obscpio
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ tree-sitter-luau.spec ++++++
--- /var/tmp/diff_new_pack.zwZA6O/_old 2026-05-04 12:55:49.843192871 +0200
+++ /var/tmp/diff_new_pack.zwZA6O/_new 2026-05-04 12:55:49.859193530 +0200
@@ -1,7 +1,7 @@
#
# spec file for package tree-sitter-luau
#
-# Copyright (c) 2024 SUSE LLC
+# Copyright (c) 2026 SUSE LLC and contributors
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -24,6 +24,10 @@
License: MIT
URL: https://github.com/tree-sitter-grammars/tree-sitter-luau
Source0: %{url}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
+# PATCH-FIX-OPENSUSE require-correct-lua.patch [email protected]
+# Use the openSUSE-installed module path (tree-sitter-lua) instead of
+# the npm scoped package name (@muniftanjim/tree-sitter-lua), and
+# handle ESM default export from tree-sitter-lua grammar
Patch0: require-correct-lua.patch
BuildRequires: tree-sitter
BuildRequires: treesitter_grammar_src(tree-sitter-lua)
@@ -43,17 +47,9 @@
%treesitter_install
%treesitter_devel_install
-#neovim stuff
-install -d %{buildroot}%{_libdir}/tree_sitter
-ln -s %{_libdir}/lib%{name}.so %{buildroot}%{_libdir}/tree_sitter/%{_name}.so
-
%files
%license LICENSE
%treesitter_files
-%{_libdir}/tree_sitter/%{_name}.so
-%if 0%{?suse_version} < 1600
-%dir %{_libdir}/tree_sitter
-%endif
%treesitter_devel_package
++++++ _scmsync.obsinfo ++++++
mtime: 1773944117
commit: 35519a2d0999308e108d7f4192030387c4f514420fc17a2984e1e4569a12e60a
url: https://src.opensuse.org/tree-sitter/tree-sitter-luau
revision: 35519a2d0999308e108d7f4192030387c4f514420fc17a2984e1e4569a12e60a
projectscmsync: https://src.opensuse.org/tree-sitter/_ObsPrj
++++++ build.specials.obscpio ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/.gitignore new/.gitignore
--- old/.gitignore 1970-01-01 01:00:00.000000000 +0100
+++ new/.gitignore 2026-03-20 11:00:04.000000000 +0100
@@ -0,0 +1,4 @@
+*.obscpio
+*.osc
+_build.*
+.pbuild
++++++ require-correct-lua.patch ++++++
--- /var/tmp/diff_new_pack.zwZA6O/_old 2026-05-04 12:55:50.079202585 +0200
+++ /var/tmp/diff_new_pack.zwZA6O/_new 2026-05-04 12:55:50.083202750 +0200
@@ -1,12 +1,18 @@
-diff -rub tree-sitter-luau-1.2.0/grammar.js
tree-sitter-luau-1.2.0-patched/grammar.js
---- tree-sitter-luau-1.2.0/grammar.js 2024-12-22 23:40:18.000000000 +0100
-+++ tree-sitter-luau-1.2.0-patched/grammar.js 2024-12-31 17:57:39.827601739
+0100
-@@ -8,7 +8,7 @@
+---
+ grammar.js | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+Index: tree-sitter-luau-1.2.0/grammar.js
+===================================================================
+--- tree-sitter-luau-1.2.0.orig/grammar.js 2024-12-22 23:40:18.000000000
+0100
++++ tree-sitter-luau-1.2.0/grammar.js 2026-03-17 22:50:34.122560421 +0100
+@@ -8,7 +8,8 @@
/// <reference types="tree-sitter-cli/dsl" />
// @ts-check
-const lua = require('@muniftanjim/tree-sitter-lua/grammar');
-+const lua = require('tree-sitter-lua/grammar');
++const _lua_module = require('tree-sitter-lua/grammar');
++const lua = _lua_module.default || _lua_module;
const PREC = {
ASSIGN: 0,