Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 305165 - eutils.eclass:make_desktop_entry needs || die
Summary: eutils.eclass:make_desktop_entry needs || die
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-02-14 22:07 UTC by Nathan Phillip Brink (binki) (RETIRED)
Modified: 2010-03-07 04:16 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nathan Phillip Brink (binki) (RETIRED) gentoo-dev 2010-02-14 22:07:21 UTC
Most ebuilds that call make_desktop_entry() assume that make_desktop_entry is like any other ebuild-callable function in ebuild.sh or eutils.eclass. This assumption is that make_desktop_entry will, like econf or epatch, call die() if their actions fail.

make_session_desktop() is in a similar situation.

I'm not sure if it's better to have this be a tracker for all bugs against ebuilds which misuse make_desktop_entry() or if I should suggest an alternative. For most uses, I think that make_desktop_entry() should be given an `e' so that it's called emake_desktop_entry(). The existing function should be deprecated and the new function should, for now, look like: ``make_desktop_entry $@ || die''
Comment 1 SpanKY gentoo-dev 2010-03-07 02:59:26 UTC
what exactly is the problem ?  i dont see where the function can fail
Comment 2 Nathan Phillip Brink (binki) (RETIRED) gentoo-dev 2010-03-07 03:37:36 UTC
(In reply to comment #1)
> what exactly is the problem ?  i dont see where the function can fail
The function calls doins to which ebuilds are required to append ``|| die''.

I can't think of anything more concrete, but it'd be nice to have a bit more consistency among ebuilds and eclasses. Some ebuilds have taken it upon themselves to do ``make_desktop_entry blah || die'', showing (I think) some confusion about make_desktop_entry().
Comment 3 SpanKY gentoo-dev 2010-03-07 04:16:19 UTC
and again, that doesnt fail.  ive added the `die` to the eclass for sanity sake, but i see no example of it ever actually failing.