1 |
On 12/14/2016 12:59 PM, Doug Freed wrote: |
2 |
> On Wed, Dec 14, 2016 at 10:45 AM, Rich Freeman <rich0@g.o> wrote: |
3 |
>> On Wed, Dec 14, 2016 at 10:27 AM, M. J. Everitt <m.j.everitt@×××.org> wrote: |
4 |
>>> |
5 |
>>> I do, but only usually if its the last package of an emerge because |
6 |
>>> otherwise its lost many many thousands of lines upwards. Thank goodness |
7 |
>>> for portage's savelog feature. - Actually that reminds me .. someone |
8 |
>>> mentioned a useful tweak to that, with an appropriate FEATURES switch, |
9 |
>>> it would categorise the output of the logging system .. must look that |
10 |
>>> one up again, or poke the wiki team ....... |
11 |
|
12 |
|
13 |
|
14 |
|
15 |
Well pardon me, if I'm miss interpreting here, as there is only this |
16 |
fragmented thread in my inbox:: no prior postings. But perhaps folks |
17 |
should look at "app-portage/elogv" |
18 |
|
19 |
Already in place, easy to use, and should be updated with EAPI (5/6) |
20 |
based parsing features? |
21 |
|
22 |
hth, |
23 |
James |
24 |
|
25 |
|
26 |
>>> |
27 |
>> |
28 |
>> IMO, emailing elogs to root should probably be the default. By all |
29 |
>> means let people turn it off, but I bet a lot of people don't realize |
30 |
>> it is an option. |
31 |
> |
32 |
> Having just looked at portage's mail code, you can't use the mail |
33 |
> subsystem if you have no mailserver or sendmail binary. Instead, |
34 |
> it'll just throw an error, so you couldn't have any default Portage |
35 |
> configuration to mail them somewhere. The current default |
36 |
> configuration appends to ${PORT_LOGDIR}/elog/summary.log with qa, log, |
37 |
> warn, and error levels for every package that outputs any of these |
38 |
> classes. If PORT_LOGDIR is unset, the target is |
39 |
> /var/log/portage/elog/summary.log. |
40 |
> |
41 |
>> |
42 |
>> This goes in all my make.conf files: |
43 |
>> PORTAGE_ELOG_CLASSES="warn error log" |
44 |
>> PORTAGE_ELOG_SYSTEM="save mail" |
45 |
>> PORTAGE_ELOG_MAILURI="a@×.com smtp.server.address" |
46 |
>> PORTAGE_ELOG_MAILSUBJECT="package \${PACKAGE} merged on \${HOST} with notice" |
47 |
>> |
48 |
>> Yes, some packages are a bit spammy and this should be fixed, but in |
49 |
>> general it has prevented more headaches than it has caused. |
50 |
> |
51 |
> This can't really be fixed in a good way, and I'd really rather it |
52 |
> wasn't anyway. A [ -z "$REPLACING_VERSIONS" ] test is only valid in |
53 |
> pkg_* phases (and by PMS, REPLACING_VERSIONS doesn't have to be |
54 |
> defined in pkg_pretend or pkg_setup), and in many cases, using |
55 |
> REPLACING_VERSIONS in any way can be difficult to do correctly. Using |
56 |
> the readme.gentoo eclass wouldn't be an awful way to go if it really |
57 |
> bothers you, but you could also use mail_summary instead of mail to |
58 |
> reduce the mail spam to 1 email per emerge run. |
59 |
> |
60 |
> -Doug |
61 |
> |
62 |
> |