Gentoo Archives: gentoo-dev

From: "Rémi Cardona" <remi@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Calling unknown commands in an ebuild
Date: Mon, 08 Feb 2010 07:49:08
Message-Id: 4B6FC1C8.70502@gentoo.org
In Reply to: Re: [gentoo-dev] Calling unknown commands in an ebuild by Mike Frysinger
1 Le 08/02/2010 03:24, Mike Frysinger a écrit :
2 > if we wanted to specifically target semi-common errors (and i think 'epatch'
3 > w/out eutils.eclass falls into this category), then a repoman check would be
4 > good.
5 >
6 > it might also be useful to add a default epatch() to the initial env that
7 > would be clobbered when the inherit occurred.
8 > epatch() { die "you need to inherit eutils.eclass to use epatch" ; }
9
10 +1, that's a very good idea! I've stopped counting how many times that's
11 happened to me.
12
13 I'm sure there are other common mistakes we all do, but this particular
14 one is a low-hanging fruit.
15
16 Cheers,
17
18 Rémi