Skip to content

Commit

Permalink
Merge pull request #284 from simsong/slg-dev
Browse files Browse the repository at this point in the history
updated installation scripts. removed bison, we were not using it.
  • Loading branch information
simsong authored Oct 27, 2021
2 parents 9bec267 + 7790aff commit 571fc25
Show file tree
Hide file tree
Showing 8 changed files with 40 additions and 66 deletions.
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
# and http://www.bioinf.uni-freiburg.de/~mmann/HowTo/automake.html

AC_PREREQ([2.69])
AC_INIT([BULK_EXTRACTOR],[2.0.0-dev],[[email protected]])
AC_INIT([BULK_EXTRACTOR],[2.0.0-beta2],[[email protected]])
AC_CONFIG_MACRO_DIR(m4)
AC_CONFIG_AUX_DIR([build-aux])
################################################################
Expand Down
2 changes: 1 addition & 1 deletion etc/CONFIGURE_AMAZON_LINUX.bash
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ fi
cd $DIR

MPKGS="autoconf automake flex gcc gcc-c++ git libtool "
MPKGS+="md5deep wget bison zlib-devel "
MPKGS+="md5deep wget zlib-devel "
MPKGS+="libewf libewf-devel java-1.8.0-openjdk-devel "
MPKGS+="libxml2-devel libxml2-static openssl-devel "
MPKGS+="sqlite-devel expat-devel "
Expand Down
2 changes: 1 addition & 1 deletion etc/CONFIGURE_CENTOS7.bash
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ fi
cd $DIR

MPKGS="autoconf automake flex gcc gcc-c++ git libtool "
MPKGS+="md5deep wget bison zlib-devel "
MPKGS+="md5deep wget zlib-devel "
MPKGS+="libewf libewf-devel java-1.8.0-openjdk-devel "
MPKGS+="libxml2-devel libxml2-static openssl-devel "
MPKGS+="sqlite-devel expat-devel "
Expand Down
2 changes: 1 addition & 1 deletion etc/CONFIGURE_DEBIAN9.bash
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ fi
cd $DIR

MPKGS="autoconf automake flex gcc git libtool "
MPKGS+="md5deep openssl patch wget bison g[+][+] libssl-dev zlib1g-dev libxml2-dev libjson-c-dev"
MPKGS+="md5deep openssl patch wget g[+][+] libssl-dev zlib1g-dev libxml2-dev libjson-c-dev"

if [ ! -r /etc/os-release ]; then
echo This requires Debian Linux.
Expand Down
2 changes: 1 addition & 1 deletion etc/CONFIGURE_FEDORA34.bash
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ fi
# cd to the directory where the script is
cd "$( dirname "${BASH_SOURCE[0]}" )"

MPKGS="autoconf automake make flex gcc gcc-c++ git libtool wget bison zlib-devel "
MPKGS="autoconf automake make flex gcc gcc-c++ git libtool wget zlib-devel "
MPKGS+="java-1.8.0-openjdk-devel libxml2-devel libxml2-static openssl-devel "
MPKGS+="sqlite-devel expat-devel "

Expand Down
25 changes: 25 additions & 0 deletions etc/CONFIGURE_MACOS.bash
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#!/bin/bash
if [ -r /usr/local/bin/brew ]; then
WHICH=/usr/local/bin/brew
elif [ -r /opt/local/bin/port ]; then
WHICH="sudo /opt/local/bin/port -Nc"
else
echo Cannot find brew or macports executable.
exit 1
fi

cat <<EOF
*******************************************************************
Configuring MacOS with $WHICH
*******************************************************************
press any key to continue...
EOF
read

# Note: openssl no longer required
# Apple's provided flex is 2.6.4, which is the same that is provided by brew
PKGS+="wget libtool autoconf automake"

$WHICH install $PKGS || (echo installation install failed; exit 1)
exit 0
51 changes: 0 additions & 51 deletions etc/CONFIGURE_MACOS_BSDPORTS.bash

This file was deleted.

20 changes: 10 additions & 10 deletions src/test_be.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ bool requireFeature(const std::vector<std::string> &lines, const std::string fea
}
std::cerr << "feature not found: " << feature << "\nfeatures found (perhaps one of these is the feature you are looking for?):\n";
for (const auto &it : lines) {
std::cerr << " " << it << "\n";
std::cerr << " " << it << std::endl;
}
return false;
}
Expand Down Expand Up @@ -142,9 +142,9 @@ std::filesystem::path test_scanners(const std::vector<scanner_t *> & scanners, s

REQUIRE (ss.get_enabled_scanners().size() == scanners.size()); // the one scanner
if (ss.get_enabled_scanners().size()>0){
std::cerr << "\n## output in " << sc.outdir << " for " << ss.get_enabled_scanners()[0] << std::endl;
std::cerr << "## output in " << sc.outdir << " for " << ss.get_enabled_scanners()[0] << std::endl;
} else {
std::cerr << "\n## output in " << sc.outdir << " but no enabled scanner! " << std::endl;
std::cerr << "## output in " << sc.outdir << " but no enabled scanner! " << std::endl;
}
REQUIRE(sbuf->children == 0);
ss.phase_scan();
Expand Down Expand Up @@ -510,7 +510,7 @@ bool feature_match(const Check &exp, const std::string &line)
auto words = split(line, '\t');
if (words.size() <2 || words.size() > 3) return false;

if (debug) std::cerr << "check line=" << line << "\n";
if (debug) std::cerr << "check line=" << line << std::endl;

std::string pos = exp.feature.pos.str();
if ( pos.size() > 2 ){
Expand Down Expand Up @@ -567,7 +567,7 @@ std::filesystem::path validate(std::string image_fname, std::vector<Check> &expe
sc.scanner_commands = enable_all_scanners;
sc.allow_recurse = recurse;

std::cerr << "================ validate " << image_fname << " (outdir: " << sc.outdir << ") ================\n";
std::cerr << "## image_fname: " << image_fname << " outdir: " << sc.outdir << std::endl;

if (offset==0) {
sc.input_fname = test_dir() / image_fname;
Expand Down Expand Up @@ -607,7 +607,7 @@ std::filesystem::path validate(std::string image_fname, std::vector<Check> &expe
phase1.phase1_run();
delete p;
} catch (image_process::NoSuchFile &e) {
std::cerr << "sc.input_fname=" << sc.input_fname << " no such file: " << e.what() << "\n";
std::cerr << "sc.input_fname=" << sc.input_fname << " no such file: " << e.what() << std::endl;
bool file_found=false;
REQUIRE(file_found);
}
Expand Down Expand Up @@ -637,7 +637,7 @@ std::filesystem::path validate(std::string image_fname, std::vector<Check> &expe
}
break;
case 1:
std::cerr << fname << ":" << line << "\n"; // print the file the second time through
std::cerr << fname << ":" << line << std::endl; // print the file the second time through
break;
}

Expand Down Expand Up @@ -669,10 +669,10 @@ bool validate_files(const std::filesystem::path &fn0, const std::filesystem::pat
in1 >> ch1;
if (ch0 != ch1 ){
if (errors==0) {
std::cerr << "file 0 " << fn0 << "\n";
std::cerr << "file 1 " << fn1 << "\n";
std::cerr << "file 0 " << fn0 << std::endl;
std::cerr << "file 1 " << fn1 << std::endl;
}
std::cerr << "i=" << i << " ch0=" << static_cast<u_int>(ch0) << " ch1=" << static_cast<u_int>(ch1) << "\n";
std::cerr << "i=" << i << " ch0=" << static_cast<u_int>(ch0) << " ch1=" << static_cast<u_int>(ch1) << std::endl;
errors += 1;
}
if (in0.eof() || in1.eof()) break;
Expand Down

0 comments on commit 571fc25

Please sign in to comment.