CC: | BINGOS [...] cpan.org |
Subject: | mkdir $CONFDIR, 0644 probably wrong |
My smokers started to report the following failure:
Output from '/usr/bin/make test':
"/usr/perl5.22.2p/bin/perl5.22.2" "-Iblib/arch" "-Iblib/lib" Config.PL Config
/home/cpansand/conf/ does not exist. Creating directory ....
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
ERROR: Cannot copy 'conf/buhlmann.cnf' to '/home/cpansand/conf/buhlmann.cnf': Permission denied
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
at Config.PL line 18.
Installing /home/cpansand/conf/buhlmann.cnf
*** Error code 13
In Config.PL there's this line:
mkdir $CONFDIR, 0644;
This won't work on most (all?) Unix systems; directories need to have the x bit set to be usable, so it should probably be 0755 instead of 0644.
Another strange thing is why this error did not happen earlier. On CPAN Testers everything was green until today. I suspect there's a change in recent versions of ExtUtils::MakeMaker (here 7.28 or 7.30 is installed) which does something different, maybe calling Config.PL more often than before.