Skip Menu |

This queue is for tickets about the ExtUtils-MakeMaker CPAN distribution.

Report information
The Basics
Id: 14721
Status: resolved
Priority: 0/
Queue: ExtUtils-MakeMaker

People
Owner: Nobody in particular
Requestors:
Cc:
AdminCc:

Bug Information
Severity: Unimportant
Broken in: 6.30
Fixed in: (no value)



Subject: Permssion problem on t/testdir
Hi, I noticed this when doing an automated build. It would be nice if this could be fixed in an upcoming release: [kane@codebase2 ~...build/ExtUtils-MakeMaker-6.30]$ perl Makefile.PL Checking if your kit is complete... Can't cd to (./t/) testdir: Permission denied at lib/ExtUtils/Manifest.pm line 164 Looks good Writing Makefile for ExtUtils::MakeMaker [kane@codebase2 ~...build/ExtUtils-MakeMaker-6.30]$ find t/testdir t/testdir find: t/testdir: Permission denied [kane@codebase2 ~...build/ExtUtils-MakeMaker-6.30]$ ls -l t total 236 drwxr-xr-x 4 kane kane 4096 Sep 23 12:47 ./ drwxr-xr-x 5 kane kane 4096 Sep 23 13:18 ../ -rw-r--r-- 1 kane kane 931 May 9 22:19 00compile.t -rw-r--r-- 1 kane kane 8087 Feb 26 2005 Command.t -rw-r--r-- 1 kane kane 837 May 20 23:43 FIRST_MAKEFILE.t -rw-r--r-- 1 kane kane 4077 Feb 26 2005 INST.t -rw-r--r-- 1 kane kane 8778 Feb 26 2005 INST_PREFIX.t -rw-r--r-- 1 kane kane 3909 Feb 26 2005 Install.t -rw-r--r-- 1 kane kane 7348 May 5 18:21 Installed.t -rw-r--r-- 1 kane kane 806 Feb 26 2005 Liblist.t -rw-r--r-- 1 kane kane 857 Feb 26 2005 MM_Any.t -rw-r--r-- 1 kane kane 1162 Feb 26 2005 MM_BeOS.t -rw-r--r-- 1 kane kane 2428 Feb 26 2005 MM_Cygwin.t -rw-r--r-- 1 kane kane 8464 Feb 26 2005 MM_NW5.t -rw-r--r-- 1 kane kane 7089 Feb 26 2005 MM_OS2.t -rw-r--r-- 1 kane kane 5946 Feb 26 2005 MM_Unix.t -rw-r--r-- 1 kane kane 1799 Feb 26 2005 MM_VMS.t -rw-r--r-- 1 kane kane 7873 Feb 26 2005 MM_Win32.t -rw-r--r-- 1 kane kane 7706 Feb 26 2005 Manifest.t -rw-r--r-- 1 kane kane 4117 Feb 26 2005 Mkbootstrap.t -rw-r--r-- 1 kane kane 697 May 20 23:41 PL_FILES.t -rw-r--r-- 1 kane kane 4876 Feb 26 2005 Packlist.t -rw-r--r-- 1 kane kane 717 Feb 26 2005 VERSION_FROM.t -rw-r--r-- 1 kane kane 472 Feb 26 2005 backwards.t -rw-r--r-- 1 kane kane 9641 Feb 26 2005 basic.t -rw-r--r-- 1 kane kane 523 Feb 26 2005 bytes.t -rw-r--r-- 1 kane kane 370 Feb 26 2005 config.t -rw-r--r-- 1 kane kane 303 Feb 26 2005 dir_target.t -rw-r--r-- 1 kane kane 1184 Feb 26 2005 hints.t -rw-r--r-- 1 kane kane 2005 Feb 26 2005 installbase.t drwxr-xr-x 4 kane kane 4096 Sep 23 12:46 lib/ -rw-r--r-- 1 kane kane 1209 Feb 26 2005 oneliner.t -rw-r--r-- 1 kane kane 763 Feb 26 2005 parse_version.t -rw-r--r-- 1 kane kane 1683 Feb 26 2005 postamble.t -rw-r--r-- 1 kane kane 1170 Feb 26 2005 prefixify.t -rw-r--r-- 1 kane kane 1994 Feb 26 2005 prereq_print.t -rw-r--r-- 1 kane kane 1091 Feb 26 2005 problems.t -rw-r--r-- 1 kane kane 1384 Feb 26 2005 prompt.t -rw-r--r-- 1 kane kane 2716 Feb 26 2005 recurs.t -rw-r--r-- 1 kane kane 1560 Feb 26 2005 split_command.t d-w------- 2 kane kane 4096 Sep 23 12:47 testdir/ -rw-r--r-- 1 kane kane 898 Feb 26 2005 testlib.t -rw-r--r-- 1 kane kane 256 Feb 26 2005 vmsish.t -rw-r--r-- 1 kane kane 3099 Feb 26 2005 writemakefile_args.t -rw-r--r-- 1 kane kane 414 Apr 5 01:27 xs.t
Date: Fri, 23 Sep 2005 10:12:06 -0700
From: Michael G Schwern <schwern [...] pobox.com>
To: via RT <bug-ExtUtils-MakeMaker [...] rt.cpan.org>
CC: undisclosed-recipients: ;
Subject: Re: [cpan #14721] Permssion problem on t/testdir
RT-Send-Cc:
t/Command.t deliberately creates a directory it set 0200 to test ExtUtils::Command::chmod(). At the end of the test it deletes it, though it doesn't test that its been deleted (an oversight). It uses File::Path::rmtree to do the deletion which should be able to handle odd permissions. What operating system, file system and perl version? -- Michael G Schwern schwern@pobox.com http://www.pobox.com/~schwern Reality is that which, when you stop believing in it, doesn't go away. -- Phillip K. Dick
On Fri Sep 23 13:12:30 2005, schwern@pobox.com wrote: Show quoted text
> t/Command.t deliberately creates a directory it set 0200 to test > ExtUtils::Command::chmod(). At the end of the test it deletes it, though > it doesn't test that its been deleted (an oversight). It uses > File::Path::rmtree to do the deletion which should be able to handle > odd permissions. > > What operating system, file system and perl version?
Hey, I for some reason i didn't get this mail bounced to me from rt. This is a debian unstalbe machine with ext3.. full uname, perl -v etc below. I have File::Path 1.07 btw [kane@codebase2 ~...cpanplus/debian.pkgs.cpan.org]$ cat etc/modules.ignore ^IO$ # provided with core anyway ^Cwd$ # provided with core anyway ^File::Spec # provided with core anyway ^Config$ # perl's own config... just confusing ^ExtUtils::MakeMaker$ # shipped with perl, recent versions # have this bug: #14721 ^ExtUtils::Install$ # part of of EU::MM, same reason [kane@codebase2 ~...cpanplus/debian.pkgs.cpan.org]$ uname -a Linux codebase2.xs4all.nl 2.4.25-1-386 #1 Tue Feb 24 08:11:13 EST 2004 i686 GNU/Linux [kane@codebase2 ~...cpanplus/debian.pkgs.cpan.org]$ perl -V Summary of my perl5 (revision 5 version 8 subversion 7) configuration: Platform: osname=linux, osvers=2.6.14.3, archname=i486-linux-gnu-thread-multi uname='linux ninsei 2.6.14.3 #1 smp preempt mon nov 28 19:51:50 pst 2005 i686 gnulinux ' config_args='-Dusethreads -Duselargefiles -Dccflags=-DDEBIAN -Dcccdlflags=-fPIC - Darchname=i486-linux-gnu -Dprefix=/usr -Dprivlib=/usr/share/perl/5.8 -Darchlib=/usr/ lib/perl/5.8 -Dvendorprefix=/usr -Dvendorlib=/usr/share/perl5 -Dvendorarch=/usr/lib/ perl5 -Dsiteprefix=/usr/local -Dsitelib=/usr/local/share/perl/5.8.7 -Dsitearch=/usr/local/ lib/perl/5.8.7 -Dman1dir=/usr/share/man/man1 -Dman3dir=/usr/share/man/man3 - Dsiteman1dir=/usr/local/man/man1 -Dsiteman3dir=/usr/local/man/man3 -Dman1ext=1 - Dman3ext=3perl -Dpager=/usr/bin/sensible-pager -Uafs -Ud_csh -Uusesfio -Uusenm - Duseshrplib -Dlibperl=libperl.so.5.8.7 -Dd_dosuid -des' hint=recommended, useposix=true, d_sigaction=define usethreads=define use5005threads=undef useithreads=define usemultiplicity=define useperlio=define d_sfio=undef uselargefiles=define usesocks=undef use64bitint=undef use64bitall=undef uselongdouble=undef usemymalloc=n, bincompat5005=undef Compiler: cc='cc', ccflags ='-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBIAN - fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE - D_FILE_OFFSET_BITS=64', optimize='-O2', cppflags='-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBIAN -fno- strict-aliasing -pipe -I/usr/local/include' ccversion='', gccversion='4.0.3 20051201 (prerelease) (Debian 4.0.2-5)', gccosandvers='' intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234 d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12 ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8 alignbytes=4, prototype=define Linker and Libraries: ld='cc', ldflags =' -L/usr/local/lib' libpth=/usr/local/lib /lib /usr/lib libs=-lgdbm -lgdbm_compat -ldb -ldl -lm -lpthread -lc -lcrypt perllibs=-ldl -lm -lpthread -lc -lcrypt libc=/lib/libc-2.3.5.so, so=so, useshrplib=true, libperl=libperl.so.5.8.7 gnulibc_version='2.3.5' Dynamic Linking: dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E' cccdlflags='-fPIC', lddlflags='-shared -L/usr/local/lib' Characteristics of this binary (from libperl): Compile-time options: MULTIPLICITY USE_ITHREADS USE_LARGE_FILES PERL_IMPLICIT_CONTEXT Locally applied patches: SPRINTF0 - fixes for sprintf formatting issues - CVE-2005-3962 Built under linux Compiled at Dec 15 2005 17:19:17 %ENV: PERL5LIB="/home/kane/sources/p4/other/archive-extract/lib:/home/kane/sources/p4/ other/file-fetch/lib:/home/kane/sources/p4/other/archive-tar-new/lib:/home/kane/ sources/p4/other/carp-trace/lib:/home/kane/sources/p4/other/log-message/lib:/home/ kane/sources/p4/other/module-load/lib:/home/kane/sources/p4/other/params-check/ lib:/home/kane/sources/p4/other/qmail-checkpassword/lib:/home/kane/sources/p4/ other/module-load-conditional/lib:/home/kane/sources/p4/other/term-ui/lib:/home/ kane/sources/p4/other/ipc-cmd/lib:/home/kane/sources/p4/other/config-auto/lib:/home/ kane/sources/p4/cpanplus/devel/lib:/home/kane/sources/p4/cpanplus/cpanplus-dist- deb/lib:/home/kane/sources/p4/cpanplus/cpanplus-dist-build/lib:/home/kane/sources/ p4/other/log-message-simple/lib:/home/kane/sources/p4/other/file-alter/lib:/home/ kane/sources/p4/other/dbix-simple-oo/lib:/home/kane/sources/p4/other/debug-subcall/ lib:/home/kane/sources/p4/other/devel-breakpoint/lib:/home/kane/sources/p4/other/ package-constants/lib" @INC: /home/kane/sources/p4/other/archive-extract/lib /home/kane/sources/p4/other/file-fetch/lib /home/kane/sources/p4/other/archive-tar-new/lib /home/kane/sources/p4/other/carp-trace/lib /home/kane/sources/p4/other/log-message/lib /home/kane/sources/p4/other/module-load/lib /home/kane/sources/p4/other/params-check/lib /home/kane/sources/p4/other/qmail-checkpassword/lib /home/kane/sources/p4/other/module-load-conditional/lib /home/kane/sources/p4/other/term-ui/lib /home/kane/sources/p4/other/ipc-cmd/lib /home/kane/sources/p4/other/config-auto/lib /home/kane/sources/p4/cpanplus/devel/lib /home/kane/sources/p4/cpanplus/cpanplus-dist-deb/lib /home/kane/sources/p4/cpanplus/cpanplus-dist-build/lib /home/kane/sources/p4/other/log-message-simple/lib /home/kane/sources/p4/other/file-alter/lib /home/kane/sources/p4/other/dbix-simple-oo/lib /home/kane/sources/p4/other/debug-subcall/lib /home/kane/sources/p4/other/devel-breakpoint/lib /home/kane/sources/p4/other/package-constants/lib /etc/perl /usr/local/lib/perl/5.8.7 /usr/local/share/perl/5.8.7 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl /usr/local/lib/perl/5.8.4 /usr/local/share/perl/5.8.4 . [kane@codebase2 ~...cpanplus/debian.pkgs.cpan.org]$ mount /dev/sda1 on / type ext3 (rw,errors=remount-ro) proc on /proc type proc (rw) devpts on /dev/pts type devpts (rw,gid=5,mode=620) tmpfs on /dev/shm type tmpfs (rw) usbfs on /proc/bus/usb type usbfs (rw) [kane@codebase2 ~...cpanplus/debian.pkgs.cpan.org]$
On Fri Sep 23 13:12:30 2005, schwern@pobox.com wrote: Show quoted text
> t/Command.t deliberately creates a directory it set 0200 to test > ExtUtils::Command::chmod(). At the end of the test it deletes it, though > it doesn't test that its been deleted (an oversight). It uses > File::Path::rmtree to do the deletion which should be able to handle > odd permissions. > > What operating system, file system and perl version?
Just a reminder: EU::MM 6.30 still has this problem, and it prevents automated packaging :(
On Thu Aug 10 09:15:12 2006, KANE wrote: Show quoted text
> Just a reminder: EU::MM 6.30 still has this problem, and it prevents > automated > packaging :(
[kane@codebase2 ~...build/ExtUtils-MakeMaker-6.30]$ perl Makefile.PL Checking if your kit is complete... Can't cd to (./t/) testdir: Permission denied at lib/ExtUtils/Manifest.pm line 164 Looks good Writing Makefile for ExtUtils::MakeMaker t/testdir should not exist when Makefile.PL is run which suggests to me that you simply have a dirty build directory. Possibly t/Command.t (which creates and cleans up t/testdir) was aborted. I cannot recreate your error with a clean source tree. I can simulate your problem by starting with a clean source tree and then: mkdir t/testdir chmod 0200 t/testdir perl Makefile.PL While this causes the warning above, building proceeds normally and running the test suite cleans out the file. I don't see how its preventing automated packaging. If you start from a clean source tree does this problem occur every time?
No response in 7 years. Closing the ticket.