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

List:       kde-commits
Subject:    Re: KDE/kdesdk/scripts
From:       David Faure <faure () kde ! org>
Date:       2008-01-21 19:27:55
Message-ID: 200801212027.56283.faure () kde ! org
[Download RAW message or body]

On Monday 21 January 2008, Michael Pyne wrote:
> On Sunday 20 January 2008, David Faure wrote:
> > On Thursday 17 January 2008, Michael Pyne wrote:
> > > SVN commit 762442 by mpyne:
> > >
> > > Attempt to fix a bug reported by dfaure where a race condition develops
> > > creating the kdesvn-build log directory in parallel build mode.
> >
> > Still breaks.
> > I don't think the bug is in the code that handles the "latest" symlink,
> > since the error message comes from the code -above- that. The error is
> > Unable to create log directory /d/kde/src/4/log/2008-01-21-04/qt-copy
> 
> True.  It is coming from the super_mkdir() in this code:
> 
>     if (not -e $logpath and not super_mkdir($logpath))
>     {
>         error "Unable to create log directory r[$logpath]";
>         return undef;
>     }
> 
> where $logpath is "/d/kde/src/4/log/2008-01-21-04/qt-copy" at this point.  If 
> you add a 'error "Error was: $!";' or something similar right before undef is 
> returned it should tell you what happened, but I suspect it was 
> the "Permission Denied" error, which I'm not sure why.

Since I added the error line I can't reproduce it, but here's what I got right before:


-obelix- dfaure 20:22 /d/kde/src/trunk-kde>./kdesvn-build kdebase
Script started processing at Mon Jan 21 20:22:31 2008
<<<  Build Process  >>>
Log directory for global is /d/kde/src/trunk-kde/log/2008-01-21-07
mkdir /d/kde/src/trunk-kde/log/2008-01-21-07/
Log directory for kdebase is /d/kde/src/trunk-kde/log/2008-01-21-07/kdebase
mkdir /d/kde/src/trunk-kde/log/2008-01-21-07/
Unable to create log directory /d/kde/src/trunk-kde/log/2008-01-21-07/kdebase
Building kdebase (1/1)
        Waiting for source code update.
        Logging to std out due to failure creating log dir.

The above is when it fails. When it succeeds, it looks like this:

<<<  Build Process  >>>
Log directory for global is /d/kde/src/trunk-kde/log/2008-01-21-16
mkdir /d/kde/src/trunk-kde/log/2008-01-21-16/
Success
Building kdebase (1/1)
        Waiting for source code update.
Log directory for kdebase is /d/kde/src/trunk-kde/log/2008-01-21-16/kdebase
mkdir /d/kde/src/trunk-kde/log/2008-01-21-16/kdebase/
Success


> Has the log dir become owned by root anywhere?  
No. root is not involved anywhere on my kde4 system, I build, install, and run as "dfaure".

> or does your system  
> automatically lower Perl scripts in the background to being run by nobody or 
> something? (i.e. getuid, geteuid, which is $< and $> respectively in Perl).

I don't think the error is "permission denied", I think it's "directory already exists".

-- 
David Faure, faure@kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).
[prev in list] [next in list] [prev in thread] [next in thread] 

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