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 1JnxqM-00040q-Ft for garchives@archives.gentoo.org; Mon, 21 Apr 2008 15:22:10 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id BC010E04E5; Mon, 21 Apr 2008 15:22:08 +0000 (UTC) Received: from [12.146.151.254] (unknown [12.146.151.254]) by pigeon.gentoo.org (Postfix) with SMTP id 6EE29E04E5 for ; Mon, 21 Apr 2008 15:22:08 +0000 (UTC) Received: from no.name.available by [12.146.151.254] via smtpd (for pigeon.gentoo.org [69.77.167.62]) with SMTP; Mon, 21 Apr 2008 08:18:20 -0700 Received: by inertia.localdomain (Postfix, from userid 1000) id C822F89026C; Sat, 19 Apr 2008 00:43:08 -0700 (PDT) Subject: Re: [gentoo-dev] Dependencies that're available at pkg_*inst From: Chris Gianelloni To: gentoo-dev@lists.gentoo.org In-Reply-To: <20080419063300.6d2a2525@snowcone> References: <20080419053116.50e0ffe6@snowcone> <20080419044512.GD29470@supernova> <20080419055420.29ab56e1@snowcone> <20080419052720.GE29470@supernova> <20080419063300.6d2a2525@snowcone> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-ohdbPytByBwdeMnzkaMB" Date: Sat, 19 Apr 2008 00:43:08 -0700 Message-Id: <1208590988.25933.35.camel@inertia.twi-31o2.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 X-Mailer: Evolution 2.22.0 X-Archives-Salt: ddc92533-91d9-4dd2-b99f-40d8ed79cdf5 X-Archives-Hash: 0cc0c3a4f59c756ceab78c9bf7d950e4 --=-ohdbPytByBwdeMnzkaMB Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Sat, 2008-04-19 at 06:33 +0100, Ciaran McCreesh wrote: > On Fri, 18 Apr 2008 22:27:21 -0700 > Donnie Berkholz wrote: > > My interpretation is pkg_* counts as runtime (I can imagine a package=20 > > wanting to run itself at this point), so packages in RDEPEND should > > be usable at that point. >=20 > Which would be fine, except it makes the tree unusable. >=20 > > Really, it seems to be an additional type of dependency that neither > > DEPEND or RDEPEND fully describe, and this DEPEND+RDEPEND idea isn't > > quite capturing it either. >=20 > Yup, and for future EAPIs labels can fix this. But we have to have a > sound solution for current EAPIs. I would agree that RDEPEND should likely be installed prior to pkg_preinst to satisfy the dependency. After all, PDEPEND is "good enough" for doing packages that aren't required at pkg_preinst/pkg_postinst. We definitely don't want to install DEPEND at the pkg_* stages, so I'd say the requirement there, if you're asking, is prior to src_*, if that matters. I'd love to have some kind of functionality to allow some kind of "optional" dependencies. The only real way that I could see this working is if we tracked what was installed as an optional dependency, and not reinstall it if it has been removed the next time the depending package is merged. Simple example: ODEPEND=3D"video_cards_nvidia? ( x11-drivers/nvidia-drivers)" would install x11-drivers/nvidia-drivers the first time it's ran with VIDEO_CARDS=3D"nvidia", but if I removed x11-drivers/nvidia-drivers, it wouldn't get reinstalled. This would probably need some kind of "--newuse" like capability to allow for installing only *new* optional dependencies, but I think that the tracking would already allow that. The idea here would be to allow for installing "recommended" software along with others. We could even have --ask ask for the dependencies, since they are optional, after all. This way, we could "ship" a more robust configuration/setup for many popular applications without forcing software on people. It's an idea, anyway, and I hope that I didn't hijack the thread. --=20 Chris Gianelloni Release Engineering Strategic Lead Games Developer --=-ohdbPytByBwdeMnzkaMB Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) iEYEABECAAYFAkgJoowACgkQkT4lNIS36YFczgCfYzX74crtrxxDF52G/6/iXchQ trMAniJd7KtAxZOK9pyld7IwKwfTb2eK =W7/M -----END PGP SIGNATURE----- --=-ohdbPytByBwdeMnzkaMB-- -- gentoo-dev@lists.gentoo.org mailing list