https://bugzilla.redhat.com/show_bug.cgi?id=2028900
--- Comment #12 from Aleksei Bavshin alebastr89@gmail.com --- Spec URL: https://alebastr.fedorapeople.org/review/tree-sitter-cli/rust-tree-sitter-cl... SRPM URL: https://alebastr.fedorapeople.org/review/tree-sitter-cli/rust-tree-sitter-cl... Copr build: https://copr.fedorainfracloud.org/coprs/build/3938868
The patch was already sent to upstream in the bindgen PR, but I just made another PR for all accumulated architecture support fixes[1] and an issue[2] for the only remaining failure.
I also wonder if you could replace this: With setting INCLUDEDIR or something like that to the path of the tree-sitter sources that are bundled with rust-tree-sitter anyway.
Yup, good idea. Nothing there needs the shared library from libtree-sitter anyways and it's better to match the headers used for tests with the bundled library source. Replaced with an extremely evil symlink to %{cargo_registry}/tree-sitter-... and left an explanation with source code link. It really has to be done that way :(
I'm open to ideas on replacing a lovely reference to '../lib'[3] with a path to another crate's source. I had no luck searching for a code snippet or library :)
This file seems to be missing from the SRPM.
I don't think it's worth adding the file to the SRPM as it doesn't participate in the build and I just added a licensing summary. I'm going to keep the file in dist-git though. Does that sound fine?
Please exclude the npm / NodeJS files (npm/, emscripten-version) from getting installed with the -devel package, and investigate whether you need the "vendor/xterm-colors.json" file.
emscripten-version[4] and vendors/xterm-colors.json[5] both are necessary for building the crate. npm/ is unused though, so I'm removing it now.
Other changes: - updated to 0.20.6 as we're no longer care about the libtree-sitter version (well, mostly...) - added %ifarch conditionals for a test that requires nodejs
[1]: https://github.com/tree-sitter/tree-sitter/pull/1692 [2]: https://github.com/tree-sitter/tree-sitter/issues/1693 [3]: https://github.com/tree-sitter/tree-sitter/blob/ccd6bf554d922596ce905730d98a... [4]: https://github.com/tree-sitter/tree-sitter/blob/ccd6bf554d922596ce905730d98a... [5]: https://github.com/tree-sitter/tree-sitter/blob/ccd6bf554d922596ce905730d98a...