Fix find -name flag when combining --c++ and --include-headers
PATCH 1/1 Fix find -name flag when combining --c++ and --include-headers
From: Tommi Rantala <[email protected]>
Should be "-name" not "name".
--- parsing_c/test_parsing_c.ml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
parsing_c/test_parsing_c.ml +1 -1
@@ -35,7 +35,7 @@ let get_files path = (if !Flag.include_headers then "find "^ path ^" -name \"*.cpp\" -o -name \"*.cxx\" -o -name \"*.cc\"" - ^"-o name \"*.h\" -o -name \"*.hpp\" -o -name \"*.hxx\"" + ^"-o -name \"*.h\" -o -name \"*.hpp\" -o -name \"*.hxx\"" else "find "^ path ^" -name \"*.cpp\" -o -name \"*.cxx\" -o -name \"*.cc\"") else
Signature · 1 line
2.39.2
Quoted 3 lines · Tommi Rantala
From: Tommi Rantala <[email protected]>
Should be "-name" not "name".
Thanks very much!
julia
Quoted 23 lines
Signed-off-by Tommi Rantala <[email protected]>--- parsing_c/test_parsing_c.ml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)parsing_c/test_parsing_c.ml +1
-2@@ -35,7 +35,7 @@ let get_files path = (if !Flag.include_headers then "find "^ path ^" -name \"*.cpp\" -o -name \"*.cxx\" -o -name \"*.cc\"" - ^"-o name \"*.h\" -o -name \"*.hpp\" -o -name \"*.hxx\"" + ^"-o -name \"*.h\" -o -name \"*.hpp\" -o -name \"*.hxx\"" else "find "^ path ^" -name \"*.cpp\" -o -name \"*.cxx\" -o -name \"*.cc\"") else --2.39.2
Quoted 5 lines · Tommi Rantala
From: Tommi Rantala <[email protected]>
Should be "-name" not "name".
Signed-off-by Tommi Rantala <[email protected]>
The change is available on github.
julia
Quoted 21 lines
--- parsing_c/test_parsing_c.ml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)parsing_c/test_parsing_c.ml +1
-2@@ -35,7 +35,7 @@ let get_files path = (if !Flag.include_headers then "find "^ path ^" -name \"*.cpp\" -o -name \"*.cxx\" -o -name \"*.cc\"" - ^"-o name \"*.h\" -o -name \"*.hpp\" -o -name \"*.hxx\"" + ^"-o -name \"*.h\" -o -name \"*.hpp\" -o -name \"*.hxx\"" else "find "^ path ^" -name \"*.cpp\" -o -name \"*.cxx\" -o -name \"*.cc\"") else --2.39.2
Re: [cocci] Checking the software build dependency “bundles/pcre/pcre-ocaml/src/pcre.ml.in”
Quoted 1 line
The change is available on github.
I performed commands like the following accordingly.
Markus_Elfring@Sonne:…/Projekte/Coccinelle/20160205> git pull && make distclean &&./autogen && ./configure …
configure: creating ./config.status
config.status: error: cannot find input file: `bundles/pcre/pcre-ocaml/src/pcre.ml.in'
How should this software surprise be fixed?
Regards,
Markus
Re: [cocci] Checking the software build dependency “bundles/pcre/pcre-ocaml/src/pcre.ml.in”
Quoted 6 lines
Markus_Elfring@Sonne:…/Projekte/Coccinelle/20160205> git pull && make distclean &&./autogen && ./configure
…
configure: creating ./config.status
config.status: error: cannot find input file: `bundles/pcre/pcre-ocaml/src/pcre.ml.in'
I got the impression that the following part of the build specification needs to be reconsidered somehow.
https://gitlab.inria.fr/coccinelle/coccinelle/-/blob/8e007c83bbf35ace2f879b790e24057e39053c01/configure.ac#L570
…
AC_CONFIG_FILES([
bundles/pcre/pcre-ocaml/src/pcre.ml
bundles/pcre/pcre-ocaml/src/pcre_stubs.c
])])
…
We are also waiting on further information for the topic “Support for PCRE2”.
https://lore.kernel.org/cocci/alpine.DEB.2.22.394.2207222129160.2321@hadrien/
https://sympa.inria.fr/sympa/arc/cocci/2022-07/msg00027.html
Regards,
Markus