Skip to content

Commit be89ba5

Browse files
committed
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)
1 parent 572d0af commit be89ba5

5 files changed

Lines changed: 27 additions & 37 deletions

File tree

devel/coccinelle/Makefile

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
# $NetBSD: Makefile,v 1.45 2025/11/29 07:14:59 wiz Exp $
1+
# $NetBSD: Makefile,v 1.46 2026/01/25 23:50:17 wiz Exp $
22

3-
DISTNAME= coccinelle-1.1.1
4-
PKGREVISION= 2
3+
DISTNAME= coccinelle-1.3.1
54
CATEGORIES= devel
65
MASTER_SITES= ${MASTER_SITE_GITHUB:=coccinelle/}
76

@@ -11,12 +10,7 @@ COMMENT= Tool for writing and applying semantic patches
1110
LICENSE= gnu-gpl-v2
1211

1312
TOOL_DEPENDS+= ocaml-findlib-[0-9]*:../../devel/ocaml-findlib
14-
15-
# use included version, pkgsrc version makes ocamlopt dump core
16-
#DEPENDS+= menhir>=20071212:../../devel/menhir
17-
18-
# gmake[3]: *** No rule to make target 'stdcompat__root.cmt', needed by 'all-am'. Stop.
19-
MAKE_JOBS_SAFE= no
13+
TOOL_DEPENDS+= menhir>=20071212:../../devel/menhir
2014

2115
GNU_CONFIGURE= yes
2216
USE_TOOLS+= autoconf automake gmake pkg-config

devel/coccinelle/PLIST

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@comment $NetBSD: PLIST,v 1.9 2022/06/04 10:44:31 wiz Exp $
1+
@comment $NetBSD: PLIST,v 1.10 2026/01/25 23:50:17 wiz Exp $
22
bin/spatch
33
bin/spgen
44
lib/coccinelle/dllpyml_stubs.so
@@ -8,14 +8,14 @@ lib/coccinelle/ocaml/ast_c.cmi
88
lib/coccinelle/ocaml/ast_c.cmx
99
lib/coccinelle/ocaml/ast_cocci.cmi
1010
lib/coccinelle/ocaml/ast_cocci.cmx
11+
lib/coccinelle/ocaml/cocciconfig.cmi
12+
lib/coccinelle/ocaml/cocciconfig.cmx
1113
lib/coccinelle/ocaml/coccilib.cmi
1214
lib/coccinelle/ocaml/coccilib.cmx
1315
lib/coccinelle/ocaml/commands.cmi
1416
lib/coccinelle/ocaml/commands.cmx
1517
lib/coccinelle/ocaml/common.cmi
1618
lib/coccinelle/ocaml/common.cmx
17-
lib/coccinelle/ocaml/config.cmi
18-
lib/coccinelle/ocaml/config.cmx
1919
lib/coccinelle/ocaml/dumper.cmi
2020
lib/coccinelle/ocaml/dumper.cmx
2121
lib/coccinelle/ocaml/exposed_modules.cmi
@@ -68,3 +68,4 @@ man/man1/spatch.1
6868
man/man1/spgen.1
6969
man/man3/Coccilib.3
7070
share/bash-completion/completions/spatch
71+
share/metainfo/io.github.coccinelle.coccinelle.metainfo.xml

devel/coccinelle/distinfo

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
$NetBSD: distinfo,v 1.16 2022/06/04 10:47:48 wiz Exp $
1+
$NetBSD: distinfo,v 1.17 2026/01/25 23:50:17 wiz Exp $
22

3-
BLAKE2s (coccinelle-1.1.1.tar.gz) = 708c24fc57f1cebb3502c9503e7c0119318b0b5b37a6d7805f1cf3306f970e81
4-
SHA512 (coccinelle-1.1.1.tar.gz) = f935aef406d3356a8e3d08fa7dacd6dd8d49aeb3f00668b775a63881b8d8a259acbbaa21348cb32a8a1cc5cf13dcf10d7e871de0f7c0abb6e45eac24e892df98
5-
Size (coccinelle-1.1.1.tar.gz) = 2743457 bytes
6-
SHA1 (patch-configure.ac) = 03767414219f0bf6195fb24991ce8363fca28394
3+
BLAKE2s (coccinelle-1.3.1.tar.gz) = 1b804e12d35b0e97107eabdfc8aefc9e321d207d18d26a2874c832cd561d138a
4+
SHA512 (coccinelle-1.3.1.tar.gz) = 0e50aa0f1ae174eb698fc8df3d1ef03e94bddddcec468061682bb54890c41d16427c6641e97cfc12774ef4331ff3f547ed12222431441370ebb91e9efaf94717
5+
Size (coccinelle-1.3.1.tar.gz) = 3115706 bytes
6+
SHA1 (patch-bundles_pyml_pyml-current_pyml__arch.ml.c) = 3d9964d3ada0b62902b82296609310d484d4492e
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
$NetBSD: patch-bundles_pyml_pyml-current_pyml__arch.ml.c,v 1.1 2026/01/25 23:50:17 wiz Exp $
2+
3+
NetBSD doesn't define 'unix'
4+
5+
--- bundles/pyml/pyml-current/pyml_arch.ml.c.orig 2026-01-25 23:45:56.634799893 +0000
6+
+++ bundles/pyml/pyml-current/pyml_arch.ml.c
7+
@@ -3,7 +3,7 @@
8+
#elif defined(WIN32) || defined(_WIN32)
9+
#define PLATFORM_NAME Windows
10+
#define WIN_HANDLE_FD
11+
-#elif unix
12+
+#elif defined(unix) || defined(__NetBSD__)
13+
#define PLATFORM_NAME Unix
14+
#else
15+
#error "Unknown platform"

devel/coccinelle/patches/patch-configure.ac

Lines changed: 0 additions & 20 deletions
This file was deleted.

0 commit comments

Comments
 (0)