Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: makefile should install only api.h header #2573

Merged
merged 1 commit into from
Aug 26, 2023
Merged

fix: makefile should install only api.h header #2573

merged 1 commit into from
Aug 26, 2023

Conversation

ahlinc
Copy link
Contributor

@ahlinc ahlinc commented Aug 26, 2023

This PR addresses an issue raised in tree-sitter/tree-sitter-bash#199 (comment)
Because Gentoo distributive solely relies on Tree-sitter's Makefile and got an issue due to an issue in the Makefile.

@ahlinc ahlinc merged commit fd58f87 into tree-sitter:master Aug 26, 2023
32 checks passed
@ahlinc ahlinc deleted the fix-makefile branch August 26, 2023 18:59
ahlinc added a commit that referenced this pull request Aug 26, 2023
fix: makefile should install only `api.h` header
gentoo-bot pushed a commit to gentoo/gentoo that referenced this pull request Aug 31, 2023
>=tree-sitter-0.20.8-r1 doesn't install parser.h anymore because it may be
mismatched with the version used to build the parser. Use one bundled with
rizin-shell-parser instead.

This should propagate into rizin-shell-parser when they regenerate
with a newer tree-sitter release (once one is made).

See also:
* tree-sitter/tree-sitter#2573
* tree-sitter/tree-sitter#2574

Bug: https://bugs.gentoo.org/912716
Closes: https://bugs.gentoo.org/913343
Signed-off-by: Sam James <sam@gentoo.org>
@aryx
Copy link

aryx commented Jan 31, 2024

Can we revert this? Semgrep needs the tree-sitter.h to compile semgrep.
This prevents us from installing semgrep via homebrew here: semgrep/semgrep#9693

@amaanq
Copy link
Member

amaanq commented Feb 2, 2024

We shouldn't revert this, api.h is the only relevant file for users to interact with when installing the lib - parser.h is more internal and is meant for a grammar's parser/scanner to consume, not front-facing users

I would say there's an issue with semgrep's build process if it's breaking the build

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants