coccinelle: Add support for *BSD

There is nothing specific to Linux in pyml_arch_linux.ml.
All related definitions should applies to any Unix-like systems
with which(1) and .so.
This commit is contained in:
Leonardo Taccari 2020-07-08 00:12:41 +02:00
parent c6a155c1d5
commit 1c4a34ef8c
4 changed files with 48 additions and 18 deletions

View File

@ -1,29 +1,58 @@
@comment $NetBSD$
bin/pycocci
bin/spatch
bin/spatch.opt
bin/spgen
lib/coccinelle/ocaml/ast0_cocci.cmi
lib/coccinelle/ocaml/ast0_cocci.cmx
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/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
lib/coccinelle/ocaml/exposed_modules.cmx
lib/coccinelle/ocaml/externalanalysis.cmi
lib/coccinelle/ocaml/externalanalysis.cmx
lib/coccinelle/ocaml/flag.cmi
lib/coccinelle/ocaml/flag.cmx
lib/coccinelle/ocaml/flag_parsing_c.cmi
lib/coccinelle/ocaml/flag_parsing_c.cmx
lib/coccinelle/ocaml/iteration.cmi
lib/coccinelle/ocaml/iteration.cmx
lib/coccinelle/ocaml/lexer_c.cmi
lib/coccinelle/ocaml/lexer_c.cmx
lib/coccinelle/ocaml/lib_parsing_c.cmi
lib/coccinelle/ocaml/lib_parsing_c.cmx
lib/coccinelle/ocaml/ocamlcocci_aux.cmi
lib/coccinelle/ocaml/ocamlcocci_aux.cmx
lib/coccinelle/ocaml/parmap.cmi
lib/coccinelle/ocaml/parmap.cmx
lib/coccinelle/ocaml/parse_c.cmi
lib/coccinelle/ocaml/parse_c.cmx
lib/coccinelle/ocaml/parser_c.cmi
lib/coccinelle/ocaml/parser_c.cmx
lib/coccinelle/ocaml/prepare_ocamlcocci.cmi
lib/coccinelle/ocaml/prepare_ocamlcocci.cmx
lib/coccinelle/ocaml/pretty_print_c.cmi
lib/coccinelle/ocaml/pretty_print_c.cmx
lib/coccinelle/ocaml/regexp.cmi
lib/coccinelle/ocaml/regexp.cmx
lib/coccinelle/ocaml/run_ocamlcocci.cmi
lib/coccinelle/ocaml/run_ocamlcocci.cmx
lib/coccinelle/ocaml/token_c.cmi
lib/coccinelle/ocaml/token_c.cmx
lib/coccinelle/ocaml/visitor_c.cmi
lib/coccinelle/ocaml/visitor_c.cmx
lib/coccinelle/ocaml/yes_prepare_ocamlcocci.cmi
lib/coccinelle/ocaml/yes_prepare_ocamlcocci.cmx
lib/coccinelle/python/coccilib/__init__.py
lib/coccinelle/python/coccilib/coccigui/__init__.py
lib/coccinelle/python/coccilib/coccigui/coccigui.py
@ -41,12 +70,10 @@ lib/coccinelle/python/coccilib/output.py
lib/coccinelle/python/coccilib/report.py
lib/coccinelle/python/coccilib/trac.py
lib/coccinelle/python/coccilib/xml_firehose.py
lib/coccinelle/spatch.opt
lib/coccinelle/spgen/spgen
lib/coccinelle/spgen/spgen.opt
lib/coccinelle/standard.h
lib/coccinelle/standard.iso
man/man1/pycocci.1
man/man1/spatch.1
man/man1/spgen.1
man/man3/Coccilib.3
share/bash-completion/completions/spatch

View File

@ -1,19 +1,6 @@
Still not ready for using it to update devel/coccinelle. The following issues
should be investigated further and if possible fixed:
- Build fails with:
/usr/pkg/bin/gmake -C bundles/pyml all
gmake[1]: Entering directory
'/tmp/pkgsrc/wip/coccinelle/work/coccinelle-1.0.8/bundles/pyml'
Makefile:34: *** recipe commences before first target. Stop.
gmake[1]: Leaving directory
'/tmp/pkgsrc/wip/coccinelle/work/coccinelle-1.0.8/bundles/pyml'
gmake: *** [Makefile:480:
/tmp/pkgsrc/wip/coccinelle/work/coccinelle-1.0.8/bundles/pyml/pyml.cmxa] Error 2
-- leot (2020/07/07)
- Update to coccinelle-1.0.6 breaks textproc/coccigrep
XXXleot: provide a simple command to test that.

View File

@ -5,6 +5,7 @@ RMD160 (coccinelle-1.0.8.tar.gz) = 2c7676dc5c0bdb6839b665e78cc7ca65db0c15f0
SHA512 (coccinelle-1.0.8.tar.gz) = 496b1632c92cc026fbe28f784f56d4cd78f89a8ccd28dc7db1069c0c6b2b239675a10da305e37ed2a03c605668ecd3399aeed522f12ec3fbbf3ca07277ab7bce
Size (coccinelle-1.0.8.tar.gz) = 2670961 bytes
SHA1 (patch-Makefile) = 834190a7229cfd4c5942c31cb59e9b77cda16a30
SHA1 (patch-bundles_pyml_Makefile) = f299bec6cdc082e00a8496e5da94fb3b4720692b
SHA1 (patch-bundles_stdcompat_stdcompat-current_stdcompat____arrayLabels__s.mli.in) = ce10bd3db37f072fe4842ed294462567129d5bf8
SHA1 (patch-bundles_stdcompat_stdcompat-current_stdcompat____array__s.mli.in) = 138eadb0fbe37118c1676459e9247732e3443cfd
SHA1 (patch-bundles_stdcompat_stdcompat-current_stdcompat____buffer__s.mli.in) = 16d56373a98f5be8b2dc0eb64a4e07f2bfdf97d4

View File

@ -0,0 +1,15 @@
$NetBSD$
Add support for *BSD.
--- bundles/pyml/Makefile.orig 2019-09-25 09:19:54.000000000 +0000
+++ bundles/pyml/Makefile
@@ -30,6 +30,8 @@ else ifeq ($(ARCH),Darwin)
PYML_ARCH=pyml_arch_darwin.ml
else ifeq ($(findstring CYGWIN,$(ARCH)),CYGWIN)
PYML_ARCH=pyml_arch_cygwin.ml
+else ifeq ($(findstring BSD,$(ARCH)),BSD)
+ PYML_ARCH=pyml_arch_linux.ml
else
$(error Unsupported OS $(ARCH)
endif