pkgsrc-Changes archive

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

CVS commit: pkgsrc/devel/coccinelle



Module Name:    pkgsrc
Committed By:   wiz
Date:           Sun Jan 25 23:50:17 UTC 2026

Modified Files:
        pkgsrc/devel/coccinelle: Makefile PLIST distinfo
Added Files:
        pkgsrc/devel/coccinelle/patches:
            patch-bundles_pyml_pyml-current_pyml__arch.ml.c
Removed Files:
        pkgsrc/devel/coccinelle/patches: patch-configure.ac

Log Message:
coccinelle: update to 1.3.1.

* upcoming/planned/todo
** Language:
- Semantic patch for other languages
- Support metavariables, virtual rules and virtual identifiers
  in initialize and finalize rules
- Support for matching #ifdef, etc.
- function-typed metavariables
- virtual typedef, declarer name, iterator name
- regexps for type metavariables
- 'symbol' metadeclaration for C identifiers that are guaranteed not intended as meta variables.
- allow mixing isomorphisms with normal rules

** Features:
- New scripting languages
- more than one SP on the command line
- interpret #if, as is done for #ifdef
- restored support for with-python in configure and support for --python option
  in the command line to use a specific python interpreter
- Added 'make check-cpp' to run C++-specific tests and get a summary report
- Support for co_return (matched by 'return' and 'co_return' in SmPL)

** Bugfix:
- Add more information in documentation, man pages and wiki
- typedefs from C code should not be used before their point of inference
  (saved_typedefs in cprogram_of_file)


To generate a diff of this commit:
cvs rdiff -u -r1.45 -r1.46 pkgsrc/devel/coccinelle/Makefile
cvs rdiff -u -r1.9 -r1.10 pkgsrc/devel/coccinelle/PLIST
cvs rdiff -u -r1.16 -r1.17 pkgsrc/devel/coccinelle/distinfo
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/devel/coccinelle/patches/patch-bundles_pyml_pyml-current_pyml__arch.ml.c
cvs rdiff -u -r1.2 -r0 pkgsrc/devel/coccinelle/patches/patch-configure.ac

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

Modified files:

Index: pkgsrc/devel/coccinelle/Makefile
diff -u pkgsrc/devel/coccinelle/Makefile:1.45 pkgsrc/devel/coccinelle/Makefile:1.46
--- pkgsrc/devel/coccinelle/Makefile:1.45       Sat Nov 29 07:14:59 2025
+++ pkgsrc/devel/coccinelle/Makefile    Sun Jan 25 23:50:17 2026
@@ -1,7 +1,6 @@
-# $NetBSD: Makefile,v 1.45 2025/11/29 07:14:59 wiz Exp $
+# $NetBSD: Makefile,v 1.46 2026/01/25 23:50:17 wiz Exp $
 
-DISTNAME=      coccinelle-1.1.1
-PKGREVISION=   2
+DISTNAME=      coccinelle-1.3.1
 CATEGORIES=    devel
 MASTER_SITES=  ${MASTER_SITE_GITHUB:=coccinelle/}
 
@@ -11,12 +10,7 @@ COMMENT=     Tool for writing and applying s
 LICENSE=       gnu-gpl-v2
 
 TOOL_DEPENDS+= ocaml-findlib-[0-9]*:../../devel/ocaml-findlib
-
-# use included version, pkgsrc version makes ocamlopt dump core
-#DEPENDS+=             menhir>=20071212:../../devel/menhir
-
-# gmake[3]: *** No rule to make target 'stdcompat__root.cmt', needed by 'all-am'.  Stop.
-MAKE_JOBS_SAFE=                no
+TOOL_DEPENDS+= menhir>=20071212:../../devel/menhir
 
 GNU_CONFIGURE= yes
 USE_TOOLS+=    autoconf automake gmake pkg-config

Index: pkgsrc/devel/coccinelle/PLIST
diff -u pkgsrc/devel/coccinelle/PLIST:1.9 pkgsrc/devel/coccinelle/PLIST:1.10
--- pkgsrc/devel/coccinelle/PLIST:1.9   Sat Jun  4 10:44:31 2022
+++ pkgsrc/devel/coccinelle/PLIST       Sun Jan 25 23:50:17 2026
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.9 2022/06/04 10:44:31 wiz Exp $
+@comment $NetBSD: PLIST,v 1.10 2026/01/25 23:50:17 wiz Exp $
 bin/spatch
 bin/spgen
 lib/coccinelle/dllpyml_stubs.so
@@ -8,14 +8,14 @@ lib/coccinelle/ocaml/ast_c.cmi
 lib/coccinelle/ocaml/ast_c.cmx
 lib/coccinelle/ocaml/ast_cocci.cmi
 lib/coccinelle/ocaml/ast_cocci.cmx
+lib/coccinelle/ocaml/cocciconfig.cmi
+lib/coccinelle/ocaml/cocciconfig.cmx
 lib/coccinelle/ocaml/coccilib.cmi
 lib/coccinelle/ocaml/coccilib.cmx
 lib/coccinelle/ocaml/commands.cmi
 lib/coccinelle/ocaml/commands.cmx
 lib/coccinelle/ocaml/common.cmi
 lib/coccinelle/ocaml/common.cmx
-lib/coccinelle/ocaml/config.cmi
-lib/coccinelle/ocaml/config.cmx
 lib/coccinelle/ocaml/dumper.cmi
 lib/coccinelle/ocaml/dumper.cmx
 lib/coccinelle/ocaml/exposed_modules.cmi
@@ -68,3 +68,4 @@ man/man1/spatch.1
 man/man1/spgen.1
 man/man3/Coccilib.3
 share/bash-completion/completions/spatch
+share/metainfo/io.github.coccinelle.coccinelle.metainfo.xml

Index: pkgsrc/devel/coccinelle/distinfo
diff -u pkgsrc/devel/coccinelle/distinfo:1.16 pkgsrc/devel/coccinelle/distinfo:1.17
--- pkgsrc/devel/coccinelle/distinfo:1.16       Sat Jun  4 10:47:48 2022
+++ pkgsrc/devel/coccinelle/distinfo    Sun Jan 25 23:50:17 2026
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.16 2022/06/04 10:47:48 wiz Exp $
+$NetBSD: distinfo,v 1.17 2026/01/25 23:50:17 wiz Exp $
 
-BLAKE2s (coccinelle-1.1.1.tar.gz) = 708c24fc57f1cebb3502c9503e7c0119318b0b5b37a6d7805f1cf3306f970e81
-SHA512 (coccinelle-1.1.1.tar.gz) = f935aef406d3356a8e3d08fa7dacd6dd8d49aeb3f00668b775a63881b8d8a259acbbaa21348cb32a8a1cc5cf13dcf10d7e871de0f7c0abb6e45eac24e892df98
-Size (coccinelle-1.1.1.tar.gz) = 2743457 bytes
-SHA1 (patch-configure.ac) = 03767414219f0bf6195fb24991ce8363fca28394
+BLAKE2s (coccinelle-1.3.1.tar.gz) = 1b804e12d35b0e97107eabdfc8aefc9e321d207d18d26a2874c832cd561d138a
+SHA512 (coccinelle-1.3.1.tar.gz) = 0e50aa0f1ae174eb698fc8df3d1ef03e94bddddcec468061682bb54890c41d16427c6641e97cfc12774ef4331ff3f547ed12222431441370ebb91e9efaf94717
+Size (coccinelle-1.3.1.tar.gz) = 3115706 bytes
+SHA1 (patch-bundles_pyml_pyml-current_pyml__arch.ml.c) = 3d9964d3ada0b62902b82296609310d484d4492e

Added files:

Index: pkgsrc/devel/coccinelle/patches/patch-bundles_pyml_pyml-current_pyml__arch.ml.c
diff -u /dev/null pkgsrc/devel/coccinelle/patches/patch-bundles_pyml_pyml-current_pyml__arch.ml.c:1.1
--- /dev/null   Sun Jan 25 23:50:17 2026
+++ pkgsrc/devel/coccinelle/patches/patch-bundles_pyml_pyml-current_pyml__arch.ml.c     Sun Jan 25 23:50:17 2026
@@ -0,0 +1,15 @@
+$NetBSD: patch-bundles_pyml_pyml-current_pyml__arch.ml.c,v 1.1 2026/01/25 23:50:17 wiz Exp $
+
+NetBSD doesn't define 'unix'
+
+--- bundles/pyml/pyml-current/pyml_arch.ml.c.orig      2026-01-25 23:45:56.634799893 +0000
++++ bundles/pyml/pyml-current/pyml_arch.ml.c
+@@ -3,7 +3,7 @@
+ #elif defined(WIN32) || defined(_WIN32)
+   #define PLATFORM_NAME Windows
+   #define WIN_HANDLE_FD
+-#elif unix
++#elif defined(unix) || defined(__NetBSD__)
+   #define PLATFORM_NAME Unix
+ #else
+   #error "Unknown platform"



Home | Main Index | Thread Index | Old Index