Gentoo Archives: gentoo-dev

From: Dan Armak <danarmak@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Re: RFC: qt.eclass
Date: Fri, 01 Jul 2005 07:45:09
Message-Id: 200507011042.29926.danarmak@gentoo.org
In Reply to: Re: [gentoo-dev] Re: RFC: qt.eclass by Aron Griffis
1 On Friday 01 July 2005 00:38, Aron Griffis wrote:
2 > Dan Armak wrote: [Thu Jun 30 2005, 05:11:10PM EDT]
3 >
4 > > Instead of 'exit 1', qt_min_version should use die. I use that in
5 > > deprange and it does work inside $DEPEND.
6 >
7 > Well, it's more visible, but it doesn't stop the emerge. I just put
8 > DEPEND="$(die)" into an ebuild to test. Here is what happens. It
9 > also gives you an idea of why putting functions into DEPEND is bad:
10 > they get evaluated A LOT. (jump down for more message content)
11 I see now that in my case, emerge aborted on die() due to a side effect:
12 beta kchmviewer # emerge konqueror -pv
13
14 These are the packages that I would merge, in order:
15
16 Calculating dependencies waiting for lock
17 on /dev/shm/aux_db_key_temp.portage_lockfile
18
19 !!! ERROR: kde-base/konqueror-3.4.1 failed.
20 !!! Function deprange-list, Line 426, Exitcode 0
21 !!! deprange(): unsupported parameters 1 2 - BASEVER must be identical
22 !!! If you need support, post the topmost build error, NOT this status
23 message.
24
25 -
26
27 !!! Problem in kde-base/konqueror dependencies.
28 !!! too many values to unpack exceptions
29
30 ...OK, so deprange() needs to signal errors out-of-band. Like setting a
31 KM_ERROR variable which causes the eclass to abort later on.
32
33 --
34 Dan Armak
35 Gentoo Linux developer (KDE)
36 Public GPG key: http://dev.gentoo.org/~danarmak/danarmak-gpg-public.key
37 Fingerprint: DD70 DBF9 E3D4 6CB9 2FDD 0069 508D 9143 8D5F 8951

Replies

Subject Author
Re: [gentoo-dev] Re: RFC: qt.eclass Aron Griffis <agriffis@g.o>