Alexander Mieland wrote:
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.

What do you mean? Don't your log files look like mines?

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

Not at all.

> and does really not fit with the ebuild
policy.

Neither does the copying of log files into /etc/basc

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.

Whatever but I will not add basc to my portage group.

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.

That was not a theoretical comment.

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.

Seen it, ignored it. I will not emerge gcc on boxes that do not need to emerge it just to let basc compute a time difference. I simply set GU=0

--
/  Xavier Neys
\_ Gentoo Documentation Project
/  French & Internationalisation Lead
\  http://www.gentoo.org/doc/en
/\

Attachment: signature.asc
Description: OpenPGP digital signature



Reply via email to