FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Gentoo > Gentoo Alt

 
 
LinkBack Thread Tools
 
Old 03-10-2010, 10:55 AM
Alan Hourihane
 
Default portage bug with summary.log

Hi Fabian,

Since we changed my EPREFIX to "" I've been getting summary.log
droppings in odd locations.

It turns out that the code in mod_save_summary.py has this...

if mysettings["PORT_LOGDIR"] != "":
elogdir = os.path.join(mysettings["PORT_LOGDIR"],
"elog")
else:
elogdir = os.path.join(EPREFIX, "var", "log", "portage",
"elog")

And because my EPREFIX is "" then we never get a "/" in front of var so
it creates var/log/portage/elog/summary.log in the place you emerge the
package.

We need a leading "/" here.

Can you fix ?

Alan.
 
Old 03-10-2010, 11:01 AM
Fabian Groffen
 
Default portage bug with summary.log

On 10-03-2010 11:55:28 +0000, Alan Hourihane wrote:
> Hi Fabian,
>
> Since we changed my EPREFIX to "" I've been getting summary.log
> droppings in odd locations.
>
> It turns out that the code in mod_save_summary.py has this...
>
> if mysettings["PORT_LOGDIR"] != "":
> elogdir = os.path.join(mysettings["PORT_LOGDIR"],
> "elog")
> else:
> elogdir = os.path.join(EPREFIX, "var", "log", "portage",
> "elog")
>
> And because my EPREFIX is "" then we never get a "/" in front of var so
> it creates var/log/portage/elog/summary.log in the place you emerge the
> package.
>
> We need a leading "/" here.
>
> Can you fix ?

does this work for you?

elogdir = os.path.join("/", EPREFIX_LSTRIP, "var", "log", "portage", "elog");


--
Fabian Groffen
Gentoo on a different level
 
Old 03-10-2010, 11:27 AM
Alan Hourihane
 
Default portage bug with summary.log

On Wed, 2010-03-10 at 13:01 +0100, Fabian Groffen wrote:
> On 10-03-2010 11:55:28 +0000, Alan Hourihane wrote:
> > Hi Fabian,
> >
> > Since we changed my EPREFIX to "" I've been getting summary.log
> > droppings in odd locations.
> >
> > It turns out that the code in mod_save_summary.py has this...
> >
> > if mysettings["PORT_LOGDIR"] != "":
> > elogdir = os.path.join(mysettings["PORT_LOGDIR"],
> > "elog")
> > else:
> > elogdir = os.path.join(EPREFIX, "var", "log", "portage",
> > "elog")
> >
> > And because my EPREFIX is "" then we never get a "/" in front of var so
> > it creates var/log/portage/elog/summary.log in the place you emerge the
> > package.
> >
> > We need a leading "/" here.
> >
> > Can you fix ?
>
> does this work for you?
>
> elogdir = os.path.join("/", EPREFIX_LSTRIP, "var", "log", "portage", "elog");

Yes.

Thanks!

Alan.
 

Thread Tools




All times are GMT. The time now is 03:53 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org