I've just tried out ExtUtils::MakeMaker 6.21 with perl 5.8.2 and DBI.
My DBI Makefile.PL has
dist => {
DIST_DEFAULT=> 'clean distcheck disttest ci tardist',
PREOP => '$(MAKE) -f Makefile.old distdir',
COMPRESS => 'gzip -v9', SUFFIX => 'gz',
},
and when I do a make dist it now ends with:
tar cvf DBI-1.39.tar DBI-1.39
DBI-1.39/
DBI-1.39/t/
...
rm -rf DBI-1.39
gzip -v9 DBI-1.39.tar
DBI-1.39.tar: 71.0% -- replaced with DBI-1.39.tar.gz
Makefile out-of-date with respect to Makefile.PL
/usr/local/perl582/lib/5.8.2/i386-freebsd/Config.pm
/usr/local/perl582/lib/5.8.2/i386-freebsd/CORE/config.h
Cleaning current config before rebuilding Makefile...
mv: rename Makefile to Makefile.old: No such file or directory
*** Error code 1
(Worked okay with the ExtUtils::MakeMaker supplied with perl 5.8.2)
Tim.