On Friday 01 July 2005 00:38, Aron Griffis wrote:
> Dan Armak wrote:      [Thu Jun 30 2005, 05:11:10PM EDT]
>
> > Instead of 'exit 1', qt_min_version should use die. I use that in
> > deprange and it does work inside $DEPEND.
>
> Well, it's more visible, but it doesn't stop the emerge.  I just put
> DEPEND="$(die)" into an ebuild to test.  Here is what happens.  It
> also gives you an idea of why putting functions into DEPEND is bad:
> they get evaluated A LOT.  (jump down for more message content)
I see now that in my case, emerge aborted on die() due to a side effect:
beta kchmviewer # emerge konqueror -pv

These are the packages that I would merge, in order:

Calculating dependencies   waiting for lock 
on /dev/shm/aux_db_key_temp.portage_lockfile

!!! ERROR: kde-base/konqueror-3.4.1 failed.
!!! Function deprange-list, Line 426, Exitcode 0
!!! deprange(): unsupported parameters 1 2 - BASEVER must be identical
!!! If you need support, post the topmost build error, NOT this status 
message.

 -

!!! Problem in kde-base/konqueror dependencies.
!!! too many values to unpack exceptions

...OK, so deprange() needs to signal errors out-of-band. Like setting a 
KM_ERROR variable which causes the eclass to abort later on.

-- 
Dan Armak
Gentoo Linux developer (KDE)
Public GPG key: http://dev.gentoo.org/~danarmak/danarmak-gpg-public.key
Fingerprint: DD70 DBF9 E3D4 6CB9 2FDD  0069 508D 9143 8D5F 8951

Attachment: pgpTRjWP1GFKs.pgp
Description: PGP signature

Reply via email to