What do we require Perl for?
Robin
What do we require Perl for?
Robin
As a test, after doing "./configure" I removed /usr/bin/perl,
and here's how the build failed:
[ 66%] [BISON][Parser] Building parser with bison 2.5
[ 66%] [BISON][RuleParser] Building parser with bison 2.5
[ 66%] [sed] replacing stuff in /home/repo/bro/build/src/rup.cc
[ 66%] [sed] replacing stuff in /home/repo/bro/build/src/rup.h
[ 66%] [BISON][REParser] Building parser with bison 2.5
[ 66%] [sed] replacing stuff in /home/repo/bro/build/src/rep.cc
[ 66%] [sed] replacing stuff in /home/repo/bro/build/src/p.cc
[ 66%] [FLEX][RuleScanner] Building scanner with flex 2.5.35
[ 66%] [FLEX][REScanner] Building scanner with flex 2.5.35
[ 67%] [FLEX][Scanner] Building scanner with flex 2.5.35
[ 67%] [Perl] Processing debug commands
/bin/sh: 1: /usr/bin/perl: not found
make[3]: *** [src/DebugCmdConstants.h] Error 127
make[3]: Leaving directory `/home/repo/bro/build'
make[2]: *** [src/CMakeFiles/bro.dir/all] Error 2
make[2]: Leaving directory `/home/repo/bro/build'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/repo/bro/build'
make: *** [all] Error 2
Looks like the culprit is bro/src/make_dbg_constants.pl
Doh! That's unfortunate that a little script like that makes us depend
on Perl. Todo item for 2.3: replace with a Python or awk script.
Robin
Doh! That's unfortunate that a little script like that makes us depend
on Perl. Todo item for 2.3: replace with a Python or awk script.
MIght be a way to do it in pure CMake scripting, but haven't looked closely.
- Jon