From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.43) id 1E7aUd-0003Cu-Jr for garchives@archives.gentoo.org; Tue, 23 Aug 2005 15:15:16 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.4/8.13.4) with SMTP id j7NFDEZx004516; Tue, 23 Aug 2005 15:13:14 GMT Received: from smtp.gentoo.org (smtp.gentoo.org [134.68.220.30]) by robin.gentoo.org (8.13.4/8.13.4) with ESMTP id j7NFBBUI017614 for ; Tue, 23 Aug 2005 15:11:11 GMT Received: from zg040066.ppp.dion.ne.jp ([222.2.40.66] helo=opteron246.suzuki-stubbs.home) by smtp.gentoo.org with esmtpa (Exim 4.43) id 1E7aRX-0000Pb-CK for gentoo-dev@lists.gentoo.org; Tue, 23 Aug 2005 15:12:03 +0000 Received: by opteron246.suzuki-stubbs.home (Postfix, from userid 1000) id D453C102DE9; Wed, 24 Aug 2005 00:12:36 +0900 (JST) From: Jason Stubbs To: gentoo-dev@lists.gentoo.org Subject: Re: [gentoo-dev] Re: [gentoo-embedded] Interactive command Date: Wed, 24 Aug 2005 00:12:34 +0900 User-Agent: KMail/1.8.90 References: <1121294641.16275.40.camel@localhost> <200507142137.31455.jstubbs@gentoo.org> <200508231541.45008.pauldv@gentoo.org> In-Reply-To: <200508231541.45008.pauldv@gentoo.org> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@gentoo.org Reply-to: gentoo-dev@lists.gentoo.org MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart2104511.MF71PsSEpI"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200508240012.36636.jstubbs@gentoo.org> X-Archives-Salt: 1c1fd346-2639-4807-95e7-b77a09a11f93 X-Archives-Hash: eab563078c956e410febd03687de0b46 --nextPart2104511.MF71PsSEpI Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Tuesday 23 August 2005 22:41, Paul de Vrieze wrote: > On Thursday 14 July 2005 14:37, Jason Stubbs wrote: > > On Thursday 14 July 2005 20:58, Ned Ludd wrote: > > > echo "being that no portage dev in his/her right mind would > > > ever" echo "allow interactive code in an ebuild we use bashrc tricks" > > > > Actually, I promote interactive code in pkg_config(). There's no > > standard as to what it will do, so there's no real solution other than > > telling the user and then waiting for confirmation. > > > > As for the other phases, they should of course be 100% non-interactive. > > However, a pkg_presetup() or some such couldn't go astray - as long as > > it was purely optional. It would be much better to wait until portage > > supports arbitrary per-package env for it to be of any real use though. > > Wouldn't it better suit our needs to write a configuration program that > packages can feed some custom configuration questions, and that then > spits out something that can be used by the ebuilds. This would allow > offline configuration of ebuilds etc. And something that was saved. This limits the possibilities of what can be done, no? For example, answers= =20 determining the following questions or the selection of questions based on= =20 how the package was installed. Indeed there could be different questions=20 based on whether it appears to be an upgrade or fresh install. If the only benefits are being able to provide a consistent interface and=20 "offline" configuration, I don't really see the effort being worth it. A=20 usable interface abstraction can't really be created until the requirements= =20 are known (which they're not due to pkg_config being severely underused)=20 and batched configuration can be done by creating a text file with answers= =20 and piping. =2D-=20 Jason Stubbs --nextPart2104511.MF71PsSEpI Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) iD8DBQBDCzzkxvWNPsk/ZP4RAigTAKCWhL1aoXton7w1urqf0IqO/LMucwCfbIxG OpCo7l3YtX8Eq9eMxH8cVWk= =QFF+ -----END PGP SIGNATURE----- --nextPart2104511.MF71PsSEpI-- -- gentoo-dev@gentoo.org mailing list