edo.eclass

Name

edo.eclass — Convenience function to run commands verbosely and die on failure

Description

This eclass provides the 'edo' command, and an 'edob' variant for ebegin/eend, which logs the command used verbosely and dies (exits) on failure.

The 'edo' command should be used only where needed to give a more verbose log, e.g. for invoking non-standard ./configure scripts, or building objects/binaries directly within ebuilds via compiler invocations. It is NOT to be used in place of generic 'command || die' where verbosity is unnecessary.

The 'edob' command can be used for long running commands, even if those commands produce output. The 'edob' command will suppress the command's output and only present it if the command returned with a non-zero exit status.

Note that starting with EAPI 9, the edo command is provided by the package manager. If you need the edob command in EAPI 9 ebuilds or eclasses, then inherit edob.eclass directly.

Supported EAPIs

7 8

Transitively Provided Eclasses

  • edob

Functions

edo <command> [<args>...]

Executes a short 'command' with any given arguments and exits on failure unless called under 'nonfatal'.

Authors

Sam James <sam@gentoo.org>

Maintainers

QA Team <qa@gentoo.org>

Reporting Bugs

Please report bugs via https://bugs.gentoo.org/