[prev in list] [next in list] [prev in thread] [next in thread] 

List:       perl-module-build
Subject:    RE: [rt.cpan.org #25627] Bogus failure "Do not have write permissions on '/etc'"
From:       <j.g.karssenberg () student ! utwente ! nl>
Date:       2007-03-23 13:57:05
Message-ID: C4D5378857FCE445BE002CA8BA2E6126278F63 () EX03 ! service ! utwente ! nl
[Download RAW message or body]

Hi,
 
Be aware that Zoidberg contains some subclassing of M:B to get install in /etc, /usr/share, etc.
My development on this code has been on non-active for about 1.5 year now, so I do not know
of the way I subclassed M:B is still valid for new versions of M:B. Please double check this
before you decide if it is an installer bug or a packaging bug.
 
Regards,
 
-- Jaap <pardus@cpan.org>

________________________________

From: demerphq [mailto:demerphq@gmail.com]
Sent: Fri 3/23/2007 12:06 PM
To: bug-ExtUtils-Install@rt.cpan.org
Cc: List - Module-Build
Subject: Re: [rt.cpan.org #25627] Bogus failure "Do not have write permissions on '/etc'"



On 3/22/07, Andreas Koenig via RT <bug-ExtUtils-Install@rt.cpan.org> wrote:
>
> Thu Mar 22 00:20:27 2007: Request 25627 was acted upon.
> Transaction: Ticket created by ANDK
>        Queue: ExtUtils-Install
>      Subject: Bogus failure "Do not have write permissions on '/etc'"
>    Broken in: 1.39_01, 1.40, 1.41, 1.41_01, 1.41_02, 1.41_03
>     Severity: (no value)
>        Owner: Nobody
>   Requestors: ANDK@cpan.org
>       Status: new
>  Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=25627 >
>
>
> PARDUS/Zoidberg-0.96.tar.gz uncovers the following bug in
> ExtUtils::Install introduced in 1.39_01:
>
> % ./Build install
> [...]
> !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
> ERROR: Can't create '/etc'
> Do not have write permissions on '/etc'
> !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
>
> ExtUtils::Install should not try to create existing directories and
> should not examine if I would be able to create it.

Well, it only does that if it is told to install a directory.  But it
does have to do this type of logic for a fake install.

> It's there and this is what counts.

I agree in principle. I /think/ that this is actually a problem with
Zoidberg and or Module::Build, (not sure which).

> Zoidberg would only install an /etc/zoidrc which I would
> be allowed to overwrite because the file belongs to me. So it does not
> count that I can neither write to / nor to /etc/ in general. All that
> should count is that I can overwrite /etc/zoidrc.
>
> I have verified this bug exists up to 1.41_03

I cant say absolutely for sure, but im not sure if this really is an EU:I bug.

Specifically, it would appear that Module::Build is including the
directory /etc in its install list, and not just the file /etc/zoidrc.

Its hard to say really what should be done about this. /etc/ is a
special case that the install code hasnt been desgined to deal with.
In short it assumes that if its installing a directory that the
directory must be writable. Changing this would not be straightforward
and im reluctant to do it because of this package alone. Im inlinced
to think that MB / zoidberg should be passing in the exact file from
the /etc/ directory and not trying to use the directory copy process.

Anyway, further thoughts appreciated, and ive cc'ed the Module::Build
folks to see what they think.

Cheers,
Yves


--
perl -Mre=debug -e "/just|another|perl|hacker/"



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic