Subject: | new CPAN or Archive::Tar breaks many modules |
I just installed Bundle::CPAN and suddenly many moduels fail to install.
The reaoson *seems* to be Archive::Tar (uninstalling Archive::Tar makes
them work again). The problem is that CPAN + Archive::Tar break
permissions of the files inside the traball by removing executable
permission. This breaks all modules requiring scripts to
configure/compile. An example is IO::AIO, which cnanot execute its
configure script because it is no longer executable.
This can be cleary seen on cpan-testers, where such modules started to
get all N/A almost everywhere, indicating that it is a recent change.
The Archive::Tar 1.5 CHANGES file contains an entry that might be related:
- Apply patch in #46450: Support for --no-same-permissions style behavior
This facilitates leaving the +x bit, while still applying your umask on
the extracted file.
But CPAN even fails with that version (-x bits are removed). The only
way to fix CPAN that I found to work was to dleete Archive::Tar.