View previous topic :: View next topic |
Author |
Message |
honeymak Guru
Joined: 30 Dec 2002 Posts: 574
|
Posted: Tue Apr 09, 2024 1:51 am Post subject: curious build.log question |
|
|
is there a way to retain build.log no matter the pkg is emerged success or failure?
_________________ hackers - make sth real
academics - read sth said to be real |
|
Back to top |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 22634
|
Posted: Tue Apr 09, 2024 2:04 am Post subject: |
|
|
man make.conf suggests that PORTAGE_LOGDIR always saves build logs. Is this what you want? |
|
Back to top |
|
|
honeymak Guru
Joined: 30 Dec 2002 Posts: 574
|
Posted: Tue Apr 09, 2024 2:34 am Post subject: |
|
|
will this affect normal /var/tmp/portage operations?
btw, i just want the build.log file, rather than the whole dir and every bits/binaries/etc of content in that.
_________________ hackers - make sth real
academics - read sth said to be real |
|
Back to top |
|
|
honeymak Guru
Joined: 30 Dec 2002 Posts: 574
|
Posted: Tue Apr 09, 2024 3:07 am Post subject: |
|
|
Hu wrote: | man make.conf suggests that PORTAGE_LOGDIR always saves build logs. Is this what you want? |
how about FEATURES="split-log" ??
_________________ hackers - make sth real
academics - read sth said to be real |
|
Back to top |
|
|
freke Veteran
Joined: 23 Jan 2003 Posts: 1029 Location: Somewhere in Denmark
|
Posted: Tue Apr 09, 2024 6:54 am Post subject: |
|
|
honeymak wrote: | Hu wrote: | man make.conf suggests that PORTAGE_LOGDIR always saves build logs. Is this what you want? |
how about FEATURES="split-log" ??
|
https://wiki.gentoo.org/wiki/Portage_log
PORTAGE_LOGDIR="<path>" is required to save the logs - FEATURES="split-log" is optional to additionally sort the logs in category based dirs in logdir as I understand it? (haven't used split-log - only using PORTAGE_LOGDIR) |
|
Back to top |
|
|
honeymak Guru
Joined: 30 Dec 2002 Posts: 574
|
Posted: Tue Apr 09, 2024 10:57 am Post subject: |
|
|
freke wrote: | honeymak wrote: | Hu wrote: | man make.conf suggests that PORTAGE_LOGDIR always saves build logs. Is this what you want? |
how about FEATURES="split-log" ??
|
https://wiki.gentoo.org/wiki/Portage_log
PORTAGE_LOGDIR="<path>" is required to save the logs - FEATURES="split-log" is optional to additionally sort the logs in category based dirs in logdir as I understand it? (haven't used split-log - only using PORTAGE_LOGDIR) |
cool...i will give it a try
btw....i saw some log eclass called 'qa'....does that mean QA Notice stuff?....i guess it would be beneficial if i can get those notice as well....but wondering if QA Notice appears in build.log?
_________________ hackers - make sth real
academics - read sth said to be real |
|
Back to top |
|
|
honeymak Guru
Joined: 30 Dec 2002 Posts: 574
|
Posted: Tue Apr 09, 2024 12:52 pm Post subject: |
|
|
i found that log what i wanted...but not color-ed...
is it possible to retain the build time syntax color in build.log?? <= i mean the one from PORTAGE_LOGDIR=/var/log/portage
_________________ hackers - make sth real
academics - read sth said to be real |
|
Back to top |
|
|
freke Veteran
Joined: 23 Jan 2003 Posts: 1029 Location: Somewhere in Denmark
|
Posted: Tue Apr 09, 2024 4:45 pm Post subject: |
|
|
You can use ie. Code: | PORTAGE_ELOG_SYSTEM="save mail"
PORTAGE_ELOG_CLASSES="warn error log qa" | To set what categories of emerge/ebuild (dunno what the e for here is) logs you want to save, in addition to the full build.log if you set a PORTAGE_LOGDIR.
Here I chose to both save them to disk for ie. viewing with app-portage/elogv - and have a mail sent with warnings, errors, qa notices and general ebuild-log (could be ie.) Code: | LOG: postinst
Install additional packages for optional runtime features:
dev-util/tree-sitter-cli for building and testing grammars | When viewing those with elogv there's some colouring.
I haven't really checked the actual buildlogs saved for colorcoding during actual compiling-process - I filter them for ansicodes anyway when using wgetpaste or similar.
[EDIT]and thanks for pointing out the split-log feature, which prompted me to check the wiki-page, so much cleaner with split-log split-elog and clean-logs
And in the actual buildlog now saved under /var/log/portage/build/xxx-xxxx I do have colouring ie. here Code: | gconv_conf.c: In function ‘__gconv_get_path’:
gconv_conf.c:356:1: warning: stack protector not protecting local variables: variable length buffer [-Wstack-protector] | the 'warning' is in purple just like '-Wstack-protector' |
|
Back to top |
|
|
|