Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
curious build.log question
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
honeymak
Guru
Guru


Joined: 30 Dec 2002
Posts: 574

PostPosted: Tue Apr 09, 2024 1:51 am    Post subject: curious build.log question Reply with quote

is there a way to retain build.log no matter the pkg is emerged success or failure?
8)
_________________
hackers - make sth real
academics - read sth said to be real
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 22634

PostPosted: Tue Apr 09, 2024 2:04 am    Post subject: Reply with quote

man make.conf suggests that PORTAGE_LOGDIR always saves build logs. Is this what you want?
Back to top
View user's profile Send private message
honeymak
Guru
Guru


Joined: 30 Dec 2002
Posts: 574

PostPosted: Tue Apr 09, 2024 2:34 am    Post subject: Reply with quote

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.

:oops:
_________________
hackers - make sth real
academics - read sth said to be real
Back to top
View user's profile Send private message
honeymak
Guru
Guru


Joined: 30 Dec 2002
Posts: 574

PostPosted: Tue Apr 09, 2024 3:07 am    Post subject: Reply with quote

Hu wrote:
man make.conf suggests that PORTAGE_LOGDIR always saves build logs. Is this what you want?


how about FEATURES="split-log" ??

:oops:
_________________
hackers - make sth real
academics - read sth said to be real
Back to top
View user's profile Send private message
freke
Veteran
Veteran


Joined: 23 Jan 2003
Posts: 1029
Location: Somewhere in Denmark

PostPosted: Tue Apr 09, 2024 6:54 am    Post subject: Reply with quote

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" ??

:oops:


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
View user's profile Send private message
honeymak
Guru
Guru


Joined: 30 Dec 2002
Posts: 574

PostPosted: Tue Apr 09, 2024 10:57 am    Post subject: Reply with quote

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" ??

:oops:


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?

:oops:
_________________
hackers - make sth real
academics - read sth said to be real
Back to top
View user's profile Send private message
honeymak
Guru
Guru


Joined: 30 Dec 2002
Posts: 574

PostPosted: Tue Apr 09, 2024 12:52 pm    Post subject: Reply with quote

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

:oops:
_________________
hackers - make sth real
academics - read sth said to be real
Back to top
View user's profile Send private message
freke
Veteran
Veteran


Joined: 23 Jan 2003
Posts: 1029
Location: Somewhere in Denmark

PostPosted: Tue Apr 09, 2024 4:45 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum