pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/textproc/tree-sitter



Module Name:    pkgsrc
Committed By:   wiz
Date:           Sun Feb  2 17:51:10 UTC 2025

Modified Files:
        pkgsrc/textproc/tree-sitter: Makefile

Log Message:
tree-sitter: fix library on NetBSD

It was using sys/endian.h but limiting the scope to POSIX,
so two symbols this uses were not available.
Add upstream bug report in comment.

Bump PKGREVISION.


To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 pkgsrc/textproc/tree-sitter/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/textproc/tree-sitter/Makefile
diff -u pkgsrc/textproc/tree-sitter/Makefile:1.16 pkgsrc/textproc/tree-sitter/Makefile:1.17
--- pkgsrc/textproc/tree-sitter/Makefile:1.16   Sun Feb  2 15:54:44 2025
+++ pkgsrc/textproc/tree-sitter/Makefile        Sun Feb  2 17:51:10 2025
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.16 2025/02/02 15:54:44 wiz Exp $
+# $NetBSD: Makefile,v 1.17 2025/02/02 17:51:10 wiz Exp $
 
 DISTNAME=      tree-sitter-0.25.1
+PKGREVISION=   1
 CATEGORIES=    textproc
 MASTER_SITES=  ${MASTER_SITE_GITHUB:=tree-sitter/}
 GITHUB_TAG=    v${PKGVERSION_NOREV}
@@ -13,5 +14,8 @@ LICENSE=      mit
 USE_CC_FEATURES=       c11
 USE_TOOLS+=            gmake
 PKGCONFIG_OVERRIDE+=   lib/tree-sitter.pc.in
+# for be16toh and friends
+# https://github.com/tree-sitter/tree-sitter/issues/4180
+CFLAGS.NetBSD+=                -D_NETBSD_SOURCE
 
 .include "../../mk/bsd.pkg.mk"



Home | Main Index | Thread Index | Old Index