From: Thomas Sachau <tommy@gentoo.org>
To: gentoo-devhelp@lists.gentoo.org
Subject: Re: [gentoo-devhelp] Re: Calling the default implementation of a function
Date: Sat, 31 Oct 2009 19:22:51 +0100 [thread overview]
Message-ID: <4AEC807B.3080008@gentoo.org> (raw)
In-Reply-To: <hchua5$2af$1@ger.gmane.org>
[-- Attachment #1.1: Type: text/plain, Size: 1250 bytes --]
Nikos Chantziaras schrieb:
> On 10/31/2009 07:46 PM, Thomas Sachau wrote:
>> Nikos Chantziaras schrieb:
>>> Is there a way to call the default implementation of a function inside
>>> the ebuild-specified one?
>>>
>>> What I mean is:
>>>
>>> src_prepare() {
>>> if [ "$PV" == "9999" ]; then
>>> ./autogen.sh
>>> else
>>> src_prepare() # Default from eclass.
>>> fi
>>> }
>>>
>>> Possible?
>>>
>>>
>>>
>>
>> 1. i suggest to use eautoreconf instead of those homegrown scripts.
>
> I know, but it doesn't work in this case. In short: doesn't work :P In
> long: This is a dual ebuild (can be used as live as well as regular) for
> app-misc/mc, and mc really needs its own autogen.sh; it does weird stuff
> in there, much more than what eautoreconf does.
>
>
>> 2.<eclass>_src_prepare will call the src_prepare phase from<eclass>
>
> Thanks. What's the default eclass of ebuilds that don't have any
> "inherit" line in them?
No inherit => no eclass, simple as that ;-)
In that case, you can call the default function with just "default". But there is no need for that
for the default src_prepare since its empty by default.
--
Thomas Sachau
Gentoo Linux Developer
[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 317 bytes --]
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 316 bytes --]
next prev parent reply other threads:[~2009-10-31 18:22 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-31 15:47 [gentoo-devhelp] Calling the default implementation of a function Nikos Chantziaras
2009-10-31 17:46 ` Thomas Sachau
2009-10-31 18:06 ` [gentoo-devhelp] " Nikos Chantziaras
2009-10-31 18:22 ` Thomas Sachau [this message]
2009-10-31 21:37 ` [gentoo-devhelp] " Mike Frysinger
2009-11-01 19:34 ` [gentoo-devhelp] " Nikos Chantziaras
2009-11-01 20:03 ` Mike Frysinger
2009-11-01 20:17 ` Nikos Chantziaras
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4AEC807B.3080008@gentoo.org \
--to=tommy@gentoo.org \
--cc=gentoo-devhelp@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox