public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
From: Marius Mauch <genone@gentoo.org>
To: gentoo-dev@lists.gentoo.org
Subject: Re: [gentoo-dev] add built_with_use_die() to eutils.eclass ?
Date: Tue, 24 Apr 2007 10:49:33 +0200	[thread overview]
Message-ID: <20070424104933.bc8f70f0.genone@gentoo.org> (raw)
In-Reply-To: <200704232346.00075.dju@gentoo.org>

On Mon, 23 Apr 2007 23:45:48 +0200
dju` <dju@gentoo.org> wrote:

>         eerror "Your ${package} package has been built without"
>         eerror "${func} support, please enable the '${use_flag}' USE flag and"
>         eerror "re-emerge ${package}."
>         elog "You can enable this USE flag either globally in /etc/make.conf,"
>         elog "or just for specific packages in /etc/portage/package.use."
>         die "${package} missing ${func} support"

A little detail about elog: You should not use different elog functions
(eerror, elog, ewarn, ...) within the same message as they may appear
out of order in the final log (e.g. the elog lines might appear before
the eerror lines). This is because messages of the same loglevel and in
the same phase are grouped together. It's an implementation detail that
might be changed in future versions, but for now you'll have to live
with it.

Also I don't see much use in explaining how to enable a use flag inside
ebuilds, at most there should be a pointer to the real documentation
IMO.

Marius
-- 
gentoo-dev@gentoo.org mailing list



  parent reply	other threads:[~2007-04-24  8:53 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-23 21:45 [gentoo-dev] add built_with_use_die() to eutils.eclass ? dju`
2007-04-23 21:55 ` Petteri Räty
2007-04-23 22:01 ` Doug Goldstein
2007-04-23 23:09 ` Lars Weiler
2007-04-23 18:27   ` Zac Medico
2007-04-24  8:09   ` Julien Allanos (dju`)
2007-04-24  8:49 ` Marius Mauch [this message]
2007-05-17 21:02   ` Petteri Räty
2007-05-18 14:06     ` Doug Goldstein

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070424104933.bc8f70f0.genone@gentoo.org \
    --to=genone@gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox