pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/coccinelle Update to 0.1.7.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/06c2484981e6
branches:  trunk
changeset: 392262:06c2484981e6
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Wed Apr 29 11:21:52 2009 +0000

description:
Update to 0.1.7.
Did I never commit this??

* 0.1.7

** Language:
- initialize and finalize script code, cf demos/initial_final.cocci

** Features:
- -iso_limit option to limit the depth of isomorphism application
- with the dir option, the include path is implicitly set to the "include"
  subdirectory of the specified directory, if the option -I is not used.
- give a seed for the name of a fresh identifier
- better handling of cpp "constructed" identifiers as in a##b, that in
  the futur will make it easier to match over those idents.
  cf tests/pb_parsing_macro.c. Thanks to Ali-Erdem Ozcan for pointing
  out the problem. A new "parsing hack hint" is also available:
  YACFE_IDENT_BUILDER, cf standard.h.

** Bugfix:
- drop excessive "optimization" in ctl generation for while and for loops
- allow . as the name of the directory
- for type inference for an assignment, take the type of the right-hand
  side expression, not the type of the assigned variable
- allow for with a declartion in the first header element, as in C++
  (partial support)
- allow for matching against variable declarations that include only
  storage, eg static, but no type at all.
- allow for matching against types that contain both short/long and int
- allow the type metavariable in the SmPL code "unsigned T" to match a T
  that is a type consisting of more than one word, eg long int.
- -ifdef_to_if option made to process nested ifdefs
  (partial support)

** Internals:
- improve and fix installation process (usable on BSD)
- improve and fix testing process
- apply patches from Eugeniy Meshcheryakov
- reorganize the way we parse C identifiers, especially concatenated cpp
  identifiers as in a##b. This may lead to some regressions as we may
  not parse as much code as before.
- removed popl/ and popl09/ and popl related stuff from official distrib.

diffstat:

 devel/coccinelle/Makefile         |  14 ++++++++++----
 devel/coccinelle/PLIST            |   3 ++-
 devel/coccinelle/distinfo         |  11 ++++++-----
 devel/coccinelle/patches/patch-aa |  17 +++++++++++++++++
 devel/coccinelle/patches/patch-ab |  15 +++++++++++++++
 5 files changed, 50 insertions(+), 10 deletions(-)

diffs (110 lines):

diff -r 3008ada81f07 -r 06c2484981e6 devel/coccinelle/Makefile
--- a/devel/coccinelle/Makefile Wed Apr 29 10:54:22 2009 +0000
+++ b/devel/coccinelle/Makefile Wed Apr 29 11:21:52 2009 +0000
@@ -1,15 +1,21 @@
-# $NetBSD: Makefile,v 1.3 2009/04/06 10:11:05 wiz Exp $
+# $NetBSD: Makefile,v 1.4 2009/04/29 11:21:52 wiz Exp $
 
-DISTNAME=      coccinelle-0.1.6a
+DISTNAME=      coccinelle-0.1.7
 CATEGORIES=    devel
-MASTER_SITES=  http://www.emn.fr/x-info/coccinelle/distrib/
+MASTER_SITES=  http://aryx.cs.uiuc.edu/~pad/software/project-coccinelle/#http://www.emn.fr/x-info/coccinelle/distrib/
 EXTRACT_SUFX=  .tgz
 
 MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
 HOMEPAGE=      http://www.emn.fr/x-info/coccinelle/
 COMMENT=       Tool for writing and applying semantic patches
 
+BUILD_DEPENDS+=        ocaml-findlib-[0-9]*:../../devel/ocaml-findlib
+DEPENDS+=      menhir-[0-9]*:../../devel/menhir
+
+LICENSE=       gnu-gpl-v2
+
 PKG_DESTDIR_SUPPORT=   user-destdir
+#MAKE_JOBS_SAFE=               no
 
 HAS_CONFIGURE= yes
 USE_TOOLS=     gmake perl
@@ -37,7 +43,7 @@
 
 .include "../../mk/dlopen.buildlink3.mk"
 
-BUILDLINK_TRANSFORM+=   opt:-ldl:${BUILDLINK_LDADD.dl:M*}
+BUILDLINK_TRANSFORM+=  opt:-ldl:${BUILDLINK_LDADD.dl:M*}
 
 .include "../../lang/ocaml/buildlink3.mk"
 .include "../../lang/python/application.mk"
diff -r 3008ada81f07 -r 06c2484981e6 devel/coccinelle/PLIST
--- a/devel/coccinelle/PLIST    Wed Apr 29 10:54:22 2009 +0000
+++ b/devel/coccinelle/PLIST    Wed Apr 29 11:21:52 2009 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.2 2009/04/06 10:11:05 wiz Exp $
+@comment $NetBSD: PLIST,v 1.3 2009/04/29 11:21:52 wiz Exp $
 bin/spatch
 bin/spatch.opt
 lib/dllpycaml_stubs.so
@@ -16,6 +16,7 @@
 share/coccinelle/python/coccilib/elems.py
 share/coccinelle/python/coccilib/output.py
 share/coccinelle/python/coccilib/output_base.py
+share/coccinelle/python/coccilib/output_gui.py
 share/coccinelle/python/coccilib/output_trac.py
 share/coccinelle/spatch
 share/coccinelle/spatch.opt
diff -r 3008ada81f07 -r 06c2484981e6 devel/coccinelle/distinfo
--- a/devel/coccinelle/distinfo Wed Apr 29 10:54:22 2009 +0000
+++ b/devel/coccinelle/distinfo Wed Apr 29 11:21:52 2009 +0000
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.3 2009/04/06 10:11:05 wiz Exp $
+$NetBSD: distinfo,v 1.4 2009/04/29 11:21:52 wiz Exp $
 
-SHA1 (coccinelle-0.1.6a.tgz) = 31bcd77f8708da23604821392f87468f6c8325cc
-RMD160 (coccinelle-0.1.6a.tgz) = fa42b46da2c3c81b1d2023a2132c7bf1822a4a55
-Size (coccinelle-0.1.6a.tgz) = 2909054 bytes
-SHA1 (patch-ad) = c3e41db702596255c60357676b713429dfb0a1ea
+SHA1 (coccinelle-0.1.7.tgz) = d8976c170bc1ca3c6642e678c5235fb7ba74e340
+RMD160 (coccinelle-0.1.7.tgz) = 2485754f041bcae2f049933eb1194f9a1758accc
+Size (coccinelle-0.1.7.tgz) = 1686438 bytes
+SHA1 (patch-aa) = 12614a91c49a3bbf4d707b4a65fee5e3aba58b3f
+SHA1 (patch-ab) = 0be4fb19afdb530c5d27f0611cc9d245b6db0bad
diff -r 3008ada81f07 -r 06c2484981e6 devel/coccinelle/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/coccinelle/patches/patch-aa Wed Apr 29 11:21:52 2009 +0000
@@ -0,0 +1,17 @@
+$NetBSD: patch-aa,v 1.3 2009/04/29 11:21:52 wiz Exp $
+
+--- Makefile.orig      2009-04-16 14:39:20.000000000 +0000
++++ Makefile
+@@ -59,10 +59,10 @@ LIBS=commons/commons.cma \
+ 
+ #used for clean: and depend: and a little for rec & rec.opt
+ MAKESUBDIRS=commons ocamlsexp \
+- globals menhirlib $(PYDIR) ctl parsing_cocci parsing_c \
++ globals $(PYDIR) ctl parsing_cocci parsing_c \
+  engine extra python
+ INCLUDEDIRS=commons commons/ocamlextra ocamlsexp \
+- globals menhirlib $(PYDIR) ctl \
++ globals $(PYDIR) ctl \
+  parsing_cocci parsing_c engine extra python
+ 
+ ##############################################################################
diff -r 3008ada81f07 -r 06c2484981e6 devel/coccinelle/patches/patch-ab
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/coccinelle/patches/patch-ab Wed Apr 29 11:21:52 2009 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-ab,v 1.3 2009/04/29 11:21:52 wiz Exp $
+
+--- parsing_cocci/Makefile.orig        2009-04-14 20:49:41.000000000 +0000
++++ parsing_cocci/Makefile
+@@ -40,8 +40,8 @@ get_constants.ml get_constants2.ml parse
+ LIBS=../commons/commons.cma ../globals/globals.cma
+ SYSLIBS = str.cma unix.cma
+ 
+-#MENHIR_PATH=$(shell ocamlfind query menhirLib)
+-MENHIR_PATH=../menhirlib
++MENHIR_PATH=$(shell ocamlfind query menhirLib)
++#MENHIR_PATH=../menhirlib
+ 
+ INCLUDES = -I ../commons -I ../commons/ocamlextra -I ../globals \
+ -I $(MENHIR_PATH)



Home | Main Index | Thread Index | Old Index