Packaging Tree-Sitter-Grammar in openSUSE
Hey, In the las last few weeks on treesitter grammar parser packaging for text editors such as Emacs or Vim packaged for (open)SUSE. The packaging macros's and functions can be used for any rpm based distribution too. Using my packaging the packaging of treesitter grammars can be done in three simple steps. The tree-sitter package that includes all tools can be found here: https://build.opensuse.org/package/show/home:Thaodan:editors/tree-sitter I already packaged some grammars ready to be installed. I want to get these changes into Factory. Now I wonder how to best integrate them. The macros and scripts are now inside the main tree-sitter package. Initially I put them into the -devel package however since only the main package is needed to generate grammar sources and the main package isn't fully functional without nodejs I added them there. Is it ok to just use the editors project as the devel project for the grammar packages? Br, Björn Bidar
On Fri Mar 22, 2024 at 1:26 PM CET, Björn Bidar wrote:
I want to get these changes into Factory. Now I wonder how to best integrate them.
How is your package different from the one which already is in Factory (or in https://build.opensuse.org/package/show/editors/tree-sitter)? What did you need to change? Neovim already uses it. Best, Matěj -- http://matej.ceplovi.cz/blog/, @mcepl@floss.social GPG Finger: 3C76 A027 CA45 AD70 98B5 BC1D 7920 5802 880B C9D8 How many Bavarian Illuminati does it take to screw in a light bulb? Three: one to screw it in, and one to confuse the issue.
My "package" is not really a package but packaging infrastructure to package grammar so it can be shipped prebuilt in the repositories.
On Fri Mar 22, 2024 at 11:35 PM CET, Björn Bidar wrote:
My "package" is not really a package but packaging infrastructure to package grammar so it can be shipped prebuilt in the repositories.
Then probably you shouldn’t call your package as already existing one, unless you want to replace it. Matěj -- http://matej.ceplovi.cz/blog/, @mcepl@floss.social GPG Finger: 3C76 A027 CA45 AD70 98B5 BC1D 7920 5802 880B C9D8 I didn’t attend the funeral, but I sent a nice letter saying I approved of it. -- Mark Twain
Matěj Cepl wrote: How many Bavarian Illuminati does it take to screw in a light bulb? Three: one to screw it in, and one to confuse the issue. I didn’t attend the funeral, but I sent a nice letter saying I approved of it. -- Mark Twain Both of these are funny . . . the first one funnier than the second, for three reasons . . . one, I didn't realize there is a subculture of "Bavarian" illuminati . . . two, why would "illuminati" even need a light bulb???
participants (3)
-
Björn Bidar
-
Fritz Hudnut
-
Matěj Cepl