Skip Menu |

This queue is for tickets about the Inline-Files CPAN distribution.

Report information
The Basics
Id: 99
Status: resolved
Priority: 0/
Queue: Inline-Files

People
Owner: Nobody in particular
Requestors: mark [...] twoshortplanks.com
Cc:
AdminCc:

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



Subject: make install fails on no write
Hmm, was trying to install this for the advent calendar and I got a problem with make install. I'm not sure what's up here, so here's a list of the output of the CPAN shell during a install... Show quoted text
cpan> install Inline::Files
CPAN: Storable loaded ok Going to read /home/acme/.cpan/Metadata Running install for module Inline::Files Running make for D/DC/DCONWAY/Inline-Files-0.60.tar.gz <skip large chunk of stuff> Running make test PERL_DL_NONLAZY=1 /usr/bin/perl -Iblib/arch -Iblib/lib -I/usr/lib/perl5/5.6.0/i3 86-linux -I/usr/lib/perl5/5.6.0 -e 'use Test::Harness qw(&runtests $verbose); $v erbose=0; runtests @ARGV;' t/*.t t/00init.......ok t/01basics.....ok t/02write......ok t/03nowrite....FAILED test 2 Failed 1/2 tests, 50.00% okay t/04create.....ok t/05seek.......ok t/06backup.....ok t/07hash.......ok Failed Test Stat Wstat Total Fail Failed List of Failed ------------------------------------------------------------------------------- t/03nowrite.t 2 1 50.00% 2 Failed 1/8 test scripts, 87.50% okay. 1/67 subtests failed, 98.51% okay. make: *** [test_dynamic] Error 29 /usr/bin/make test -- NOT OK Running the test by hand gives: [root@ns0 Inline-Files-0.60]# perl t/03nowrite.t 1..2 not ok 1 # Failed test 1 in t/03nowrite.t at line 20 not ok 2 # Failed test 2 in t/03nowrite.t at line 35 This is the perl that ships with Redhat 7.2 as in [root@ns0 Inline-Files-0.60]# uname -a Linux ns0 2.4.7-10 #1 Thu Sep 6 17:21:28 EDT 2001 i586 unknown It says: [root@ns0 Inline-Files-0.60]# perl -v This is perl, v5.6.0 built for i386-linux (blah blah copyright blah) Hope this is enough...if not, email me back or get acme or muttley to try other things on the shared box.... Thanks for your help. Mark.
Date: Sun, 16 Dec 2001 15:14:59 +1100 (EST)
From: Damian Conway <damian [...] mail.csse.monash.edu.au>
To: bug-Inline-Files [...] rt.cpan.org
Subject: Re: [cpan #99] make install fails on no write
Thanks for the bug report, Mark. Damian
From: jgedeon [...] sbcglobal.net
[damian@conway.org - Sat Dec 15 23:13:49 2001]: Show quoted text
> Thanks for the bug report, Mark. > > Damian >
I had this issue too, the problem is that you are running the test as root. For some reason the root user can still write to the file even though it is set to read-only for everyone. Run the test as a normal user and it works fine. John Gedeon
From: jgsack [...] san.rr.com
[guest - Wed Dec 12 19:45:30 2001]: Show quoted text
> Hmm, was trying to install this for the advent calendar and I > got a problem with make install. I'm not sure what's up here, so > here's a list of the output of the CPAN shell during a install... >
> cpan> install Inline::Files
> CPAN: Storable loaded ok > Going to read /home/acme/.cpan/Metadata > Running install for module Inline::Files > Running make for D/DC/DCONWAY/Inline-Files-0.60.tar.gz > > <skip large chunk of stuff> > > Running make test > PERL_DL_NONLAZY=1 /usr/bin/perl -Iblib/arch -Iblib/lib > -I/usr/lib/perl5/5.6.0/i3 > 86-linux -I/usr/lib/perl5/5.6.0 -e 'use Test::Harness qw(&runtests > $verbose); $v > erbose=0; runtests @ARGV;' t/*.t > t/00init.......ok > t/01basics.....ok > t/02write......ok > t/03nowrite....FAILED test 2 > Failed 1/2 tests, 50.00% okay > t/04create.....ok > t/05seek.......ok > t/06backup.....ok > t/07hash.......ok > Failed Test Stat Wstat Total Fail Failed List of Failed > ----------------------------------------------------------------------
--------- Show quoted text
> t/03nowrite.t 2 1 50.00% 2 > Failed 1/8 test scripts, 87.50% okay. 1/67 subtests failed, 98.51% > okay. > make: *** [test_dynamic] Error 29 > /usr/bin/make test -- NOT OK > > Running the test by hand gives: > > [root@ns0 Inline-Files-0.60]# perl t/03nowrite.t > 1..2 > not ok 1 > # Failed test 1 in t/03nowrite.t at line 20 > not ok 2 > # Failed test 2 in t/03nowrite.t at line 35 > This is the perl that ships with Redhat 7.2 as in > > [root@ns0 Inline-Files-0.60]# uname -a > Linux ns0 2.4.7-10 #1 Thu Sep 6 17:21:28 EDT 2001 i586 unknown > > It says: > > [root@ns0 Inline-Files-0.60]# perl -v > > This is perl, v5.6.0 built for i386-linux > (blah blah copyright blah) > > Hope this is enough...if not, email me back or get acme or muttley to > try other things on the shared box.... > > Thanks for your help. > > Mark.
DC et al- The test 03nowrite.t itself seems to be the problem (when run by root). I get something like: test 1/2 passes test 2/2 fails Now it looks to me like test 2 doesn't work because it seems to check that a file with perms 444 (no write) cannot be written to, and (of course) when running as root, the perms don't matter. I couldn't figure out how to get the test suite to run as non-root -- got a bunch of errors including "Uncaught exception..Could not vf_load..BEGIN failed". I simply disabled the 2nd test of 03nowrite.t to verify that all the other tests for make test pass, and then did a make install. After install, I copied test 03nowrite and as non-root, it passes 2/2 tests. Regards ..jim
Subject: Re: [cpan #99] make install fails on no write
Date: Mon, 21 Aug 2006 14:30:23 -0500
To: bug-Inline-Files [...] rt.cpan.org
From: "Scott Edwards" <cpan [...] foss.daxal.com>
The included patch skips the failing test if you're root. I suppose it could use skip(-w foo,...) but it doesn't... Damian can send me a perl6 book if he feels so inclined :) It carries the same license and warranty as perl. Enjoy, Scott Edwards -- PAUSE: SUPAPLEX

Message body is not shown because sender requested not to inline it.

This was fixed some time ago, when Damian gave me co-maintainership. Forgot to look into tickets and close them. Cheers Alberto