# ENVvars and set them to true and see if anything explodes
if [[ "$POISON_ENV" = "true" ]] ; then
for var in $(grep -P '\$ENV\{' -r lib/ | grep -oP 'DBIC_\w+' | sort -u | grep -v DBIC_TRACE) ; do
- export $var=1
+ if [[ -z "${!var}" ]] ; then
+ export $var=1
+ fi
done
export DBI_DSN="dbi:ODBC:server=NonexistentServerAddress"
export DBI_DRIVER="ADO"
export DBICTEST_SQLITE_REVERSE_DEFAULT_ORDER=1
-elif [[ "$CLEANTEST" != "true" ]] && ( [[ -z "$BREWVER" ]] || [[ "$BREWVER" = "blead" ]] ) ; then
- # try CPAN's latest offering on a stock perl and a threaded blead
- # can't do this with CLEANTEST=true yet because a lot of our deps fail
- # tests left and right under T::B 1.5
- PERL_CPANM_OPT="$PERL_CPANM_OPT --dev"
fi
-
if [[ "$CLEANTEST" = "true" ]]; then
# get the last inc/ off cpan - we will get rid of MI
# soon enough, but till then this will do
# So instead we still use our stock (possibly old) CPAN, and add some
# handholding
if ! CPAN_is_sane ; then
- for m in ExtUtils::MakeMaker ExtUtils::CBuilder Module::Build ; do
+ for m in \
+ExtUtils::MakeMaker \
+ExtUtils::CBuilder \
+R/RS/RSAVAGE/Tree-DAG_Node-1.13.tgz \
+Module::Build \
+E/ET/ETHER/Class-Method-Modifiers-2.04.tar.gz \
+; do
run_or_err "Pre-installing $m" "cpan $m"
+ if ! perl -e '
+
+eval ( q{require } . (
+ $ARGV[0] =~ m{ \/ .*? ([^\/]+) $ }x
+ ? do { my @p = split (/\-/, $1); pop @p; join "::", @p }
+ : $ARGV[0]
+) ) or ( print $@ and exit 1)' "$m" 2> /dev/null ; then
+
+ echo_err -e "$m installation failed\n$LASTOUT"
+ exit 1
+ fi
done
fi
- if ! perl -MModule::Build -e 1 &> /dev/null ; then
- echo_err -e "Module::Build installation failed\n$LASTOUT"
- exit 1
- fi
# DBI has by far the longest test runtime - run less tests
# FIXME horrible horrible hack, need to implement in DBI itself
parallel_installdeps_notest ExtUtils::MakeMaker
parallel_installdeps_notest File::Path
parallel_installdeps_notest Carp
- parallel_installdeps_notest Module::Build ExtUtils::Depends
- parallel_installdeps_notest Module::Runtime File::Spec Data::Dumper
- parallel_installdeps_notest Test::Exception Encode::Locale Test::Fatal
- parallel_installdeps_notest Test::Warn bareword::filehandles B::Hooks::EndOfScope Test::Differences HTTP::Status
+ parallel_installdeps_notest Module::Build Module::Runtime
+ parallel_installdeps_notest File::Spec Data::Dumper
+ parallel_installdeps_notest Test::Exception Encode::Locale Test::Fatal R/RS/RSAVAGE/Tree-DAG_Node-1.13.tgz
+ parallel_installdeps_notest Test::Warn B::Hooks::EndOfScope Test::Differences HTTP::Status
parallel_installdeps_notest Test::Pod::Coverage Test::EOL Devel::GlobalDestruction Sub::Name MRO::Compat Class::XSAccessor URI::Escape HTML::Entities
parallel_installdeps_notest YAML LWP Class::Trigger JSON::XS DBI DateTime::Format::Builder Class::Accessor::Grouped Package::Variant
parallel_installdeps_notest Moose Module::Install JSON SQL::Translator
# we may need to prepend some stuff to that list
HARD_DEPS="$(echo $(make listdeps))"
-
##### TEMPORARY WORKAROUNDS
- # this is a fucked CPAN - won't understand configure_requires of
- # various pieces we may run into
- # FIXME - need to get these off metacpan or something instead
- CPAN_is_sane || HARD_DEPS="ExtUtils::Depends B::Hooks::OP::Check $HARD_DEPS"
-
- # The unicode-in-yaml bug on older cpan clients
- # FIXME there got to be a saner way to fix this...
- perl -M5.008008 -e 1 &> /dev/null || \
- run_or_err "Installing multidimensional and bareword::filehandles via cpanm" \
- "cpanm multidimensional bareword::filehandles"
-
# work around Params::Validate not having a Makefile.PL so really old
# toolchains can not figure out what the prereqs are ;(
# Need to do more research before filing a bug requesting Makefile inclusion