From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([69.77.167.62] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1KiJPY-0007Ye-5C for garchives@archives.gentoo.org; Wed, 24 Sep 2008 01:43:24 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E4F0DE069B; Wed, 24 Sep 2008 01:43:22 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id BE764E069B for ; Wed, 24 Sep 2008 01:43:22 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id 9F2D6B4B18 for ; Wed, 24 Sep 2008 01:43:21 +0000 (UTC) X-Virus-Scanned: amavisd-new at gentoo.org X-Spam-Score: -0.8 X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.5 tests=[AWL=0.732, BAYES_00=-2.599, RCVD_IN_DNSWL_LOW=-1, RCVD_NUMERIC_HELO=2.067] 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 Z7q1O9X9x+MK for ; Wed, 24 Sep 2008 01:43:15 +0000 (UTC) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTP id E810AB4ADE for ; Wed, 24 Sep 2008 01:43:12 +0000 (UTC) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1KiJPF-0003RY-NJ for gentoo-dev@gentoo.org; Wed, 24 Sep 2008 01:43:05 +0000 Received: from 82.152.208.249 ([82.152.208.249]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 24 Sep 2008 01:43:05 +0000 Received: from slong by 82.152.208.249 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 24 Sep 2008 01:43:05 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: gentoo-dev@lists.gentoo.org From: Steve Long Subject: [gentoo-dev] Re: Re: Default src_install for EAPI-2 or following EAPI Date: Wed, 24 Sep 2008 02:34:33 +0100 Message-ID: References: <18646.17986.821510.192980@a1ihome1.kph.uni-mainz.de> <8cd1ed20809211030w74725bb1qd60482d5fa7bfce2@mail.gmail.com> <18646.38777.205043.568794@a1ihome1.kph.uni-mainz.de> <18646.45711.173931.589892@a1ihome1.kph.uni-mainz.de> <48D94608.7060805@gentoo.org> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 82.152.208.249 User-Agent: KNode/0.10.9 Sender: news X-Archives-Salt: 1e02c497-32f5-4db0-8437-db1bef8b85df X-Archives-Hash: 08ccfb25e36552a0698c79445d4ab0c0 Thomas Sachau wrote: > Ulrich Mueller schrieb: >> And I still don't see why we would need the most general solution for >> a *default* function. There's always the possibility to write your own >> src_install() for the few ebuilds that need it. >> > I aggree with Ulrich in this case. As I said; generality in lib functions seems like a useful thing. There's a quote I read from what is imo a classic computing text[1] (from the 70s, never seen it referenced in any papers or anything): "Why do we never have time to do it right, but always plenty of time to do it over." > if emake DESTDIR="${D} install || einstall ; then missing " Don't those braces make it tricky.. ;p > Any more comments? Good? Bad? Interested? Given that we're okay relying on BASH, I don't think we should be scared to use BASH effectively. Gentoo ebuild.sh should be a shining example of how BASH is done, after eight years, not something that makes #bash folk laugh. (I know this to be true, as when I started learning BASH, I tried dropping a few of the lines in the channel to find out what was going on. It amazes me that #bash is not mentioned in any of the Gentoo developer documentation, afaict.) In this case, you're saying "oh anyone who wants something that copes with all filenames can do their own." IOW to do it right, we'll have to do it over, further down the line. BASH includes the facilities to do it right, as part of its design. [1] "Program Style, Design, Efficiency, Debugging and Testing" van Tessel (Prentice-Hall, 1974)