* [gentoo-user] Portage hooks: Allow verbose output
@ 2018-08-21 20:04 Ben Mezger
2018-08-21 20:34 ` Corentin “Nado” Pazdera
0 siblings, 1 reply; 4+ messages in thread
From: Ben Mezger @ 2018-08-21 20:04 UTC (permalink / raw
To: gentoo-user@lists.gentoo.org
[-- Attachment #1: Type: text/plain, Size: 552 bytes --]
Greetings,
My current portage configuration is configure to not output any compilation
output, as so:
--- /etc/portage/make.conf ----
PORTAGE_ELOG_CLASSES="info warn error log qa"
PORTAGE_ELOG_SYSTEM="echo save"
FEATURES="split-elog buildpkg webrsync-gpg"
EMERGE_DEFAULT_OPTS="--jobs=5 --load-average=4"
However, I have set a post_pkg_postinst hook to run "genkernel all" when
installing gentoo-sources. Is there anyway I can open an exception and
allow any output from a hook to be completely verbose when emerging?
Regards
- Ben
--
Ben Mezger
[-- Attachment #2: Type: text/html, Size: 885 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-user] Portage hooks: Allow verbose output
2018-08-21 20:04 [gentoo-user] Portage hooks: Allow verbose output Ben Mezger
@ 2018-08-21 20:34 ` Corentin “Nado” Pazdera
2018-08-21 21:53 ` Ben Mezger
2018-08-22 5:59 ` Corentin “Nado” Pazdera
0 siblings, 2 replies; 4+ messages in thread
From: Corentin “Nado” Pazdera @ 2018-08-21 20:34 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 965 bytes --]
August 21, 2018 10:03 PM, "Ben Mezger" <su@seds.nl (mailto:su@seds.nl?to=%22Ben%20Mezger%22%20<su@seds.nl>)> wrote:
Greetings,
My current portage configuration is configure to not output any compilation output, as so:
--- /etc/portage/make.conf ----
PORTAGE_ELOG_CLASSES="info warn error log qa"
PORTAGE_ELOG_SYSTEM="echo save"
FEATURES="split-elog buildpkg webrsync-gpg"
EMERGE_DEFAULT_OPTS="--jobs=5 --load-average=4"
However, I have set a post_pkg_postinst hook to run "genkernel all" when installing gentoo-sources. Is there anyway I can open an exception and allow any output from a hook to be completely verbose when emerging?
You can use ebegin/eend in your hook, if there’s an error, it should be sent to output. Any elog will also be printed after emerge is done.
Do you really need to see the kernel compilation happening? Or do you only want to know whether it built successfully or not?
Regards,
--
Corentin “Nado” Pazdera
[-- Attachment #2: Type: text/html, Size: 1453 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-user] Portage hooks: Allow verbose output
2018-08-21 20:34 ` Corentin “Nado” Pazdera
@ 2018-08-21 21:53 ` Ben Mezger
2018-08-22 5:59 ` Corentin “Nado” Pazdera
1 sibling, 0 replies; 4+ messages in thread
From: Ben Mezger @ 2018-08-21 21:53 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 1381 bytes --]
Corentin,
Since I am running genkenel to do the compilation, I would like to see all
the output coming from genkernel (and not the compilation itself).
Using ebegin/eend would require me to write the error/success messages
myself, or not?
Regards,
On Tue, 21 Aug 2018 at 17:35 Corentin “Nado” Pazdera <nado@troglodyte.be>
wrote:
> August 21, 2018 10:03 PM, "Ben Mezger" <su@seds.nl
> <su@seds.nl?to=%22Ben%20Mezger%22%20%3Csu@seds.nl%3E>> wrote:
>
> Greetings,
> My current portage configuration is configure to not output any
> compilation output, as so:
> --- /etc/portage/make.conf ----
> PORTAGE_ELOG_CLASSES="info warn error log qa"
> PORTAGE_ELOG_SYSTEM="echo save"
> FEATURES="split-elog buildpkg webrsync-gpg"
> EMERGE_DEFAULT_OPTS="--jobs=5 --load-average=4"
> However, I have set a post_pkg_postinst hook to run "genkernel all" when
> installing gentoo-sources. Is there anyway I can open an exception and
> allow any output from a hook to be completely verbose when emerging?
>
>
> You can use ebegin/eend in your hook, if there’s an error, it should be
> sent to output. Any elog will also be printed after emerge is done.
> Do you really need to see the kernel compilation happening? Or do you only
> want to know whether it built successfully or not?
>
> Regards,
> --
> Corentin “Nado” Pazdera
>
--
Ben Mezger
[-- Attachment #2: Type: text/html, Size: 2157 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-user] Portage hooks: Allow verbose output
2018-08-21 20:34 ` Corentin “Nado” Pazdera
2018-08-21 21:53 ` Ben Mezger
@ 2018-08-22 5:59 ` Corentin “Nado” Pazdera
1 sibling, 0 replies; 4+ messages in thread
From: Corentin “Nado” Pazdera @ 2018-08-22 5:59 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 624 bytes --]
August 21, 2018 11:52 PM, "Ben Mezger" <su@seds.nl (mailto:su@seds.nl?to=%22Ben%20Mezger%22%20<su@seds.nl>)> wrote:
Corentin,
Since I am running genkenel to do the compilation, I would like to see all the output coming from genkernel (and not the compilation itself).
Using ebegin/eend would require me to write the error/success messages myself, or not?
I see, ebegin/eend let you write a line of message at the ebegin, and will output any error.
So you won't be able to see normal output with it. You could redirect the output to a file also, otherwise I don't know.
Good luck
Corentin “Nado” Pazdera
[-- Attachment #2: Type: text/html, Size: 1048 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2018-08-22 5:59 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-08-21 20:04 [gentoo-user] Portage hooks: Allow verbose output Ben Mezger
2018-08-21 20:34 ` Corentin “Nado” Pazdera
2018-08-21 21:53 ` Ben Mezger
2018-08-22 5:59 ` Corentin “Nado” Pazdera
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox