Subject: | Problematic directory permissions in tarball |
The directories in the 1.10 tarball are missing the x bit:
$ tar tfvz Apache2-AuthCookieLDAP-1.10.tar.gz
drw-r--r-- 0 ksolomko sipwise 0 21 Jun 17:21 Apache2-AuthCookieLDAP-1.10/
-rw-r--r-- 0 root root 763 21 Jun 17:16 Apache2-AuthCookieLDAP-1.10/META.yml
-rw-r--r-- 0 root root 724 21 Jun 17:16 Apache2-AuthCookieLDAP-1.10/Makefile.PL
-rw-r--r-- 0 ksolomko sipwise 78 21 Jun 16:37 Apache2-AuthCookieLDAP-1.10/Changes
-rw-r--r-- 0 ksolomko sipwise 18353 21 Jun 16:36 Apache2-AuthCookieLDAP-1.10/LICENSE
-rw-r--r-- 0 root root 123 21 Jun 17:13 Apache2-AuthCookieLDAP-1.10/MANIFEST
drw-r--r-- 0 ksolomko sipwise 0 21 Jun 16:07 Apache2-AuthCookieLDAP-1.10/t/
drw-r--r-- 0 ksolomko sipwise 0 21 Jun 16:07 Apache2-AuthCookieLDAP-1.10/eg/
-rw-r--r-- 0 ksolomko sipwise 400 21 Jun 16:19 Apache2-AuthCookieLDAP-1.10/README
-rw-r--r-- 0 ksolomko sipwise 596 21 Jun 17:15 Apache2-AuthCookieLDAP-1.10/Build.PL
drw-r--r-- 0 ksolomko sipwise 0 21 Jun 16:42 Apache2-AuthCookieLDAP-1.10/lib/
drw-r--r-- 0 ksolomko sipwise 0 21 Jun 17:21 Apache2-AuthCookieLDAP-1.10/lib/Apache2/
-rw-r--r-- 0 root root 20123 21 Jun 17:13 Apache2-AuthCookieLDAP-1.10/lib/Apache2/AuthCookieLDAP.pm
-rw-r--r-- 0 root root 1243 21 Jun 17:16 Apache2-AuthCookieLDAP-1.10/META.json
This means on some systems the distribution cannot be installed using with CPAN.pm:
...
x Apache2-AuthCookieLDAP-1.10/
x Apache2-AuthCookieLDAP-1.10/META.yml
x Apache2-AuthCookieLDAP-1.10/Makefile.PL
x Apache2-AuthCookieLDAP-1.10/Changes
x Apache2-AuthCookieLDAP-1.10/LICENSE
x Apache2-AuthCookieLDAP-1.10/MANIFEST
x Apache2-AuthCookieLDAP-1.10/t/
x Apache2-AuthCookieLDAP-1.10/eg/
x Apache2-AuthCookieLDAP-1.10/README
x Apache2-AuthCookieLDAP-1.10/Build.PL
x Apache2-AuthCookieLDAP-1.10/lib/
x Apache2-AuthCookieLDAP-1.10/lib/Apache2/
x Apache2-AuthCookieLDAP-1.10/lib/Apache2/AuthCookieLDAP.pm
x Apache2-AuthCookieLDAP-1.10/META.json
Couldn't move /var/tmp/CPAN-build/tmp-21228/Apache2-AuthCookieLDAP-1.10/META.yml to /usr/local/src/CPAN/build/Apache2-AuthCookieLDAP-1.10-ia5jEc/META.yml: Permission denied at /usr/perl5.8.9/lib/5.8.9/CPAN/Distribution.pm line 528.
CPAN::Distribution::run_preps_on_packagedir('CPAN::Distribution=HASH(0x2e27a5b8)') called at /usr/perl5.8.9/lib/5.8.9/CPAN/Distribution.pm line 355
CPAN::Distribution::get('CPAN::Distribution=HASH(0x2e27a5b8)') called at /usr/perl5.8.9/lib/5.8.9/CPAN/Distribution.pm line 1760
CPAN::Distribution::make('CPAN::Distribution=HASH(0x2e27a5b8)') called at /usr/perl5.8.9/lib/5.8.9/CPAN/Distribution.pm line 3088
CPAN::Distribution::test('CPAN::Distribution=HASH(0x2e27a5b8)') called at /usr/perl5.8.9/lib/5.8.9/CPAN/Distribution.pm line 3480
CPAN::Distribution::install('CPAN::Distribution=HASH(0x2e27a5b8)') called at /usr/perl5.8.9/lib/5.8.9/CPAN/Shell.pm line 1797
CPAN::Shell::rematein('CPAN::Shell', 'install', 'K/KS/KSOLOMKO/Apache2-AuthCookieLDAP-1.10.tar.gz') called at /usr/perl5.8.9/lib/5.8.9/CPAN/Shell.pm line 1977
CPAN::Shell::__ANON__('CPAN::Shell', 'K/KS/KSOLOMKO/Apache2-AuthCookieLDAP-1.10.tar.gz') called at /usr/perl5.8.9/lib/5.8.9/CPAN.pm line 199
CPAN::AUTOLOAD('K/KS/KSOLOMKO/Apache2-AuthCookieLDAP-1.10.tar.gz') called at -e line 1
I think if you create the tarball using "make dist", then such errors cannot happen.
Regards,
Slaven