From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-14) on finch.gentoo.org X-Spam-Level: X-Spam-Status: No, score=-0.1 required=5.0 tests=DMARC_NONE,FAKE_REPLY_C, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI autolearn=unavailable autolearn_force=no version=4.0.0 Received: from zmamail04.zma.compaq.com (zmamail04.zma.compaq.com [161.114.64.104]) by chiba.3jane.net (Postfix) with ESMTP id 32D9BEF46 for ; Mon, 19 Nov 2001 09:07:35 -0600 (CST) Received: by zmamail04.zma.compaq.com (Postfix, from userid 12345) id 90BFF5524; Mon, 19 Nov 2001 10:05:51 -0500 (EST) Received: from taynzmail03.nz-tay.cpqcorp.net (taynzmail03.nz-tay.cpqcorp.net [16.47.4.103]) by zmamail04.zma.compaq.com (Postfix) with ESMTP id 8D2B85564 for ; Mon, 19 Nov 2001 10:05:51 -0500 (EST) Received: by taynzmail03.nz-tay.cpqcorp.net (Postfix, from userid 12345) id 4C793E4A; Mon, 19 Nov 2001 10:05:51 -0500 (EST) Received: from yquarry.zk3.dec.com (rock.zk3.dec.com [16.141.0.34]) by taynzmail03.nz-tay.cpqcorp.net (Postfix) with ESMTP id 4016AC02 for ; Mon, 19 Nov 2001 10:05:51 -0500 (EST) Received: from plato.zk3.dec.com by yquarry.zk3.dec.com (8.8.8/1.1.22.3/11Mar00-0650AM) id KAA0000015634; Mon, 19 Nov 2001 10:05:51 -0500 (EST) Received: by plato.zk3.dec.com (8.9.3/1.1.29.3/09Apr01-0437PM) id KAA0000147367; Mon, 19 Nov 2001 10:05:50 -0500 (EST) Date: Mon, 19 Nov 2001 10:05:50 -0500 From: Chris Houser To: gentoo-dev@gentoo.org Subject: Re: [gentoo-dev] Package configuration Message-ID: <20011119100550.C147024@plato.zk3.dec.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1006166554.23698.2.camel@willow> User-Agent: Mutt/1.3.18i Sender: gentoo-dev-admin@gentoo.org Errors-To: gentoo-dev-admin@gentoo.org X-BeenThere: gentoo-dev@gentoo.org X-Mailman-Version: 2.0.6 Precedence: bulk Reply-To: gentoo-dev@gentoo.org List-Help: List-Post: List-Subscribe: , List-Id: Developer discussion list List-Unsubscribe: , List-Archive: X-Archives-Salt: 9c8bc17b-7844-40db-86ae-587ee9778b23 X-Archives-Hash: 1d7b583f295f3b1d7c7e5ebf55c4f5a4 Geert Bevin wrote: [Mon Nov 19 2001, 5:42:34AM EST] > Typically a package has a configuration phase which occurs after merging > it into the system. This configuration is optional, but could be done > both for binary as source packages. Usually, portage addresses this by providing good defaults and then documentation for less standard configuration. If you need something to be executed (non-optionally) after merge, you can define a pkg_postinst() function in your ebuild. I think this addresses a large percentage of the cases without adding a more complex mechanism. Some sort of post-install user interaction has been discussed, with everything from an interactive config GUI to listing recommended documentation. This may be written eventually, but the set of possible solutions is large, diverse, and heavily dependant on personal taste, all of which tend to slow down the actual writing of code. --Chouser