On Wednesday 19 January 2005 10:39, Xavier Neys wrote:
> Alexander Mieland wrote:
> > See, basc, the client of gentoo-stats.org, needs read-access
> > on /var/log/emerge.log to get the average mergetime of gcc.
> > But unfortunately, the /var/log/emerge.log only has read-access for
> > root and group portage. Others don't have any rights on it.
> >
> > Okay, so how to do this then?
>
> Regardless of security issues, IMvHO, it is not very clean to copy a
> bunch of log files into /etc.
> Couldn't the basc ebuild grep /var/log/emerge and dump its result into
> ${D}/etc/basc/whatever ?
> Just a sample grep that displays the timestamps of the latest gcc
> ebuild: # grep -aE '^[0-9]+:  >>> emerge.*sys-devel/gcc-[0-9]|^[0-9]+:
>  ::: completed emerge.*sys-devel/gcc-[0-9].*' /var/log/emerge.log|tail
> -n 2|cut -d':' -f1 1094033069
> 1094033997

This doesn't work for me.
But even if it works, I can't do something like this in the ebuild, 
because someone can have logrotate activated. The code to compensate 
this would be much bigger and does really not fit with the ebuild 
policy.

But well, nobody could give me this one important reason why the access 
to the emerge.log must be restricted in this way.

Finally I'm so frustrated about these to hard restrictions, that I'm 
thinking I must let the client work in the portage group.
I'll ask pvdabeel, the maintainer of our project/ebuild, what he is 
thinking about this.

> Besides, relying on /var/emerge/log is not a good idea anyway.
> You can't be sure any gcc ebuild stats will still be in it.
>
> Moreover, it is quite annoying to install your client on boxes that do
> not have any /var/log/emerge.log because they have never run emerge
> even though they have never run anything else but Gentoo in their
> whole life.

I think nobody who has never emerged anything would install basc.
And, btw. if the gcc stats are not in the emerge.log, basc warns about it 
and gives a huge description what to do or not to do then.

-- 
http://de.gentoo-wiki.com              Alexander Mieland (aka dma147)
http://www.gentoo-stats.org             Registered Linux-User #249600
http://www.php-programs.de                        GnuGPG-ID: 209D65B5
http://www.affen-in-not.de             www.php-programs.de/dma147.asc

Attachment: pgpyJ5VCrunDv.pgp
Description: PGP signature

Reply via email to