Subject: | Permission problems in tarball |
The latest tarball has problematic permissions, which in most cases (¹) prevents installation of the module. With CPAN.pm:
...
CPAN: Compress::Zlib loaded ok (v2.068)
Checksum for /home/cpansand/.cpan/sources/authors/id/I/IL/ILYAZ/modules/UI-KeyboardLayout-0.72b.tar.gz ok
CPAN: Archive::Tar loaded ok (v2.04)
UI-KeyboardLayout-0.72/
UI-KeyboardLayout-0.72/Changes
UI-KeyboardLayout-0.72/diff-trade-combining-for-math
...
UI-KeyboardLayout-0.72/TODO-apple
UI-KeyboardLayout-0.72/TODO-X11
CPAN: File::Temp loaded ok (v0.2304)
Couldn't move /home/cpansand/.cpan/build/2017080215/tmp-22261/UI-KeyboardLayout-0.72/Makefile.PL to /home/cpansand/.cpan/build/2017080215/UI-KeyboardLayout-0.72-M_7uKM/Makefile.PL: Permission denied at /opt/perl-5.22.2/lib/5.22.2/CPAN/Distribution.pm line 571.
CPAN::Distribution::run_preps_on_packagedir(CPAN::Distribution=HASH(0xb51dc28)) called at /opt/perl-5.22.2/lib/5.22.2/CPAN/Distribution.pm line 388
CPAN::Distribution::get(CPAN::Distribution=HASH(0xb51dc28)) called at /opt/perl-5.22.2/lib/5.22.2/CPAN/Distribution.pm line 1847
CPAN::Distribution::prepare(CPAN::Distribution=HASH(0xb51dc28)) called at /opt/perl-5.22.2/lib/5.22.2/CPAN/Distribution.pm line 2127
CPAN::Distribution::make(CPAN::Distribution=HASH(0xb51dc28)) called at /opt/perl-5.22.2/lib/5.22.2/CPAN/Distribution.pm line 3485
CPAN::Distribution::test(CPAN::Distribution=HASH(0xb51dc28)) called at /opt/perl-5.22.2/lib/5.22.2/CPAN/Distribution.pm line 3891
CPAN::Distribution::install(CPAN::Distribution=HASH(0xb51dc28)) called at /opt/perl-5.22.2/lib/5.22.2/CPAN/Shell.pm line 1896
CPAN::Shell::rematein("CPAN::Shell", "install", "I/IL/ILYAZ/modules/UI-KeyboardLayout-0.72b.tar.gz") called at /opt/perl-5.22.2/lib/5.22.2/CPAN/Shell.pm line 2063
CPAN::Shell::__ANON__("CPAN::Shell", "I/IL/ILYAZ/modules/UI-KeyboardLayout-0.72b.tar.gz") called at /opt/perl-5.22.2/lib/5.22.2/CPAN.pm line 199
CPAN::AUTOLOAD("I/IL/ILYAZ/modules/UI-KeyboardLayout-0.72b.tar.gz") called at -e line 1
...
Looking at the tarball it seems that the directories should have the w bit, at least for the user.
(¹) Maybe it could work if Archive::Tar or so is used for extraction --- at least that could be the explanation why there are a few reports at CPAN Testers: http://fast-matrix.cpantesters.org/?dist=UI-KeyboardLayout%200.72b