From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from <gentoo-devhelp+bounces-82-garchives=archives.gentoo.org@lists.gentoo.org>) id 1N4ILU-0000YH-Jt for garchives@archives.gentoo.org; Sat, 31 Oct 2009 18:06:36 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 83CC3E0997; Sat, 31 Oct 2009 18:06:35 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 4B00DE0997 for <gentoo-devhelp@lists.gentoo.org>; Sat, 31 Oct 2009 18:06:35 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id E563267061 for <gentoo-devhelp@lists.gentoo.org>; Sat, 31 Oct 2009 18:06:34 +0000 (UTC) X-Virus-Scanned: amavisd-new at gentoo.org X-Spam-Score: -3.154 X-Spam-Level: X-Spam-Status: No, score=-3.154 required=5.5 tests=[AWL=-0.555, BAYES_00=-2.599] Received: from smtp.gentoo.org ([127.0.0.1]) by localhost (smtp.gentoo.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id nkZWqZESV2FN for <gentoo-devhelp@lists.gentoo.org>; Sat, 31 Oct 2009 18:06:28 +0000 (UTC) Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTP id 2FA4D670E6 for <gentoo-devhelp@gentoo.org>; Sat, 31 Oct 2009 18:06:24 +0000 (UTC) Received: from list by lo.gmane.org with local (Exim 4.50) id 1N4ILG-000857-1Q for gentoo-devhelp@gentoo.org; Sat, 31 Oct 2009 19:06:22 +0100 Received: from athedsl-374302.home.otenet.gr ([79.131.14.28]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for <gentoo-devhelp@gentoo.org>; Sat, 31 Oct 2009 19:06:22 +0100 Received: from realnc by athedsl-374302.home.otenet.gr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for <gentoo-devhelp@gentoo.org>; Sat, 31 Oct 2009 19:06:22 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: gentoo-devhelp@lists.gentoo.org From: Nikos Chantziaras <realnc@arcor.de> Subject: [gentoo-devhelp] Re: Calling the default implementation of a function Date: Sat, 31 Oct 2009 20:06:01 +0200 Organization: Lucas Barks Message-ID: <hchua5$2af$1@ger.gmane.org> References: <hchm76$bpr$1@ger.gmane.org> <4AEC77DC.6070608@gentoo.org> Precedence: bulk List-Post: <mailto:gentoo-devhelp@lists.gentoo.org> List-Help: <mailto:gentoo-devhelp+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-devhelp+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-devhelp+subscribe@lists.gentoo.org> List-Id: Gentoo Development-related help <gentoo-devhelp.gentoo.org> X-BeenThere: gentoo-devhelp@gentoo.org X-BeenThere: gentoo-devhelp@lists.gentoo.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: athedsl-374302.home.otenet.gr User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.4pre) Gecko/20091019 Thunderbird/3.0b4 In-Reply-To: <4AEC77DC.6070608@gentoo.org> Sender: news <news@ger.gmane.org> X-Archives-Salt: 51ade1b5-67ab-48ca-9526-649b6741d9a3 X-Archives-Hash: 976cc97fecb74ab86a8d930b5e4b5ed9 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?