Gentoo Archives: gentoo-dev

From: Marius Mauch <genone@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] add built_with_use_die() to eutils.eclass ?
Date: Tue, 24 Apr 2007 08:53:05
Message-Id: 20070424104933.bc8f70f0.genone@gentoo.org
In Reply to: [gentoo-dev] add built_with_use_die() to eutils.eclass ? by dju`
1 On Mon, 23 Apr 2007 23:45:48 +0200
2 dju` <dju@g.o> wrote:
3
4 > eerror "Your ${package} package has been built without"
5 > eerror "${func} support, please enable the '${use_flag}' USE flag and"
6 > eerror "re-emerge ${package}."
7 > elog "You can enable this USE flag either globally in /etc/make.conf,"
8 > elog "or just for specific packages in /etc/portage/package.use."
9 > die "${package} missing ${func} support"
10
11 A little detail about elog: You should not use different elog functions
12 (eerror, elog, ewarn, ...) within the same message as they may appear
13 out of order in the final log (e.g. the elog lines might appear before
14 the eerror lines). This is because messages of the same loglevel and in
15 the same phase are grouped together. It's an implementation detail that
16 might be changed in future versions, but for now you'll have to live
17 with it.
18
19 Also I don't see much use in explaining how to enable a use flag inside
20 ebuilds, at most there should be a pointer to the real documentation
21 IMO.
22
23 Marius
24 --
25 gentoo-dev@g.o mailing list

Replies

Subject Author
Re: [gentoo-dev] add built_with_use_die() to eutils.eclass ? "Petteri Räty" <betelgeuse@g.o>