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 1JnMw5-0006Vo-N9 for garchives@archives.gentoo.org; Sat, 19 Apr 2008 23:57:37 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 31317E06C3; Sat, 19 Apr 2008 23:57:36 +0000 (UTC) Received: from hu-out-0506.google.com (hu-out-0506.google.com [72.14.214.232]) by pigeon.gentoo.org (Postfix) with ESMTP id D74A1E06C3 for ; Sat, 19 Apr 2008 23:57:35 +0000 (UTC) Received: by hu-out-0506.google.com with SMTP id 23so422445huc.1 for ; Sat, 19 Apr 2008 16:57:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:subject:message-id:in-reply-to:references:x-mailer:mime-version:content-type; bh=OYfoW+SeQQPXGHfmOoGFnuK1M7ZHn8AVSG22BdsaLj4=; b=xBD0iEsQY/zchhFkVmWhdEF3zYddtxMIdGCmjI9H4r5n7rKwAprwAnIW81EmXtMuhX3acwP03Rex8TbekWR7R07dqYyNzfdT/LT9wV1mBjIhbNvvDPZHmLjU8DgI0gORc7ghXcoAia2GY/vhTICoTPPQ9DEcBF5iNOYbFm3GD5c= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=date:from:to:subject:message-id:in-reply-to:references:x-mailer:mime-version:content-type; b=rVT8vODJUbF1gL4zySKBVZHadtcQ5YxNKE7J6NENvr/pmirKZF+euoN37HN+3PoLwOWXv9+Bd0AT5dyAQR2/Qe81aFxHV+3dzkQ8UdDOCYTlAN6mvFs/sRzaaH8AdRn5b/XIQXSHHhBHRC/0sGmK0WdpcAVMW+RturdUnM89OT4= Received: by 10.66.255.7 with SMTP id c7mr2970236ugi.43.1208649454449; Sat, 19 Apr 2008 16:57:34 -0700 (PDT) Received: from snowcone ( [213.121.151.206]) by mx.google.com with ESMTPS id p39sm1016461ugd.85.2008.04.19.16.57.33 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 19 Apr 2008 16:57:33 -0700 (PDT) Date: Sun, 20 Apr 2008 00:57:28 +0100 From: Ciaran McCreesh To: gentoo-dev@lists.gentoo.org Subject: Re: [gentoo-dev] Dependencies that're available at pkg_*inst Message-ID: <20080420005728.2d4d2c70@snowcone> In-Reply-To: <480A1FEE.4020604@gentoo.org> References: <20080419053116.50e0ffe6@snowcone> <480A1FEE.4020604@gentoo.org> X-Mailer: Claws Mail 3.3.1 (GTK+ 2.12.9; x86_64-pc-linux-gnu) 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: multipart/signed; boundary="Sig_/aeyzqfkrAFew.b/dNtz2CHz"; protocol="application/pgp-signature"; micalg=PGP-SHA1 X-Archives-Salt: 3d39395d-9dc6-4633-87db-d52f68e6a5c0 X-Archives-Hash: 8031bfdf197cb4348fb6b1402a178382 --Sig_/aeyzqfkrAFew.b/dNtz2CHz Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Sat, 19 Apr 2008 18:38:06 +0200 "Marijn Schouten (hkBst)" wrote: > Every package dependency in DEPEND is installed and usable before > src_unpack starts, right? So is the question here whether or not they > can be uninstalled right before pkg_{pre,post}inst starts? If we're using binaries, DEPEND is usually ignored. > I don't know what the general use of pkg_preinst is, but in > pkg_postinst the package itself should be runnable, so its RDEPENDS > should be installed and usable at this point. So perhaps we should > define that "usable" means "each of its RDEPENDs is installed and has > had its pkg_postinst function run". The recursion of that definition > then comes from the requirement that RDEPENDs should be usable before > pkg_postinst starts running. No good. That prevents RDEPEND <-> RDEPEND cycles from being solved, and the package manager has to be able to solve that. > If only one of those packages has a pkg_postinst then it is still > solvable. If they both have a pkg_postinst then one of those is > probably not essential for the actual usability of the package and > should be removed. A final possibility is that the pkg_postinsts are > both necessary for a fully functional package but not for the > functionality used in the other pkg_postinst. If this is the case, > then perhaps we should specify deps according to which ebuild phase > they are necessary for? Not with current EAPIs we can't. > SRC_UNPACK_DEP=3D"app-arch/unzip" > SRC_COMPILE_DEP=3D"dev-scheme/bigloo" > SRC_INSTALL_DEP=3D"" Labels are a cleaner solution to this. But again, we're discussing current EAPIs here. --=20 Ciaran McCreesh --Sig_/aeyzqfkrAFew.b/dNtz2CHz Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.7 (GNU/Linux) iD8DBQFICobq96zL6DUtXhERAmQcAKDFNMjlbhiAmznM/6IVNxnuV2HnywCePt5W +Rg/DWezOtKpCDZ2kfrArGE= =5zcd -----END PGP SIGNATURE----- --Sig_/aeyzqfkrAFew.b/dNtz2CHz-- -- gentoo-dev@lists.gentoo.org mailing list