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 1JoP9F-0005Z4-2W for garchives@archives.gentoo.org; Tue, 22 Apr 2008 20:31:29 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7D4FEE0454; Tue, 22 Apr 2008 20:31:27 +0000 (UTC) Received: from nameserver1.mcve.com (nameserver1.mcve.com [216.155.111.1]) by pigeon.gentoo.org (Postfix) with ESMTP id 64A34E0454 for ; Tue, 22 Apr 2008 20:31:27 +0000 (UTC) Received: from [192.168.1.55] (shop.monetra.com [216.155.111.10]) by nameserver1.mcve.com (Postfix) with ESMTP id DC33E1110134 for ; Tue, 22 Apr 2008 16:31:26 -0400 (EDT) Message-ID: <480E4B1E.50303@gentoo.org> Date: Tue, 22 Apr 2008 16:31:26 -0400 From: Doug Goldstein User-Agent: Thunderbird 2.0.0.12 (X11/20080227) 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 To: gentoo-dev@lists.gentoo.org Subject: Re: [gentoo-dev] Dependencies that're available at pkg_*inst References: <20080419053116.50e0ffe6@snowcone> <480A1FEE.4020604@gentoo.org> <20080420005728.2d4d2c70@snowcone> In-Reply-To: <20080420005728.2d4d2c70@snowcone> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Archives-Salt: 37a66698-754f-4857-9a85-44799c4efe79 X-Archives-Hash: b8e520738454dad1046735535ba4d2f0 Ciaran McCreesh wrote: > 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. > But if we're using binaries then src_unpack isn't called so this is a moot statement and the O.P.'s statement is correct. > >> 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. > Can you give a concrete example? Not a foo and bar or a and b example. But a real package example. Because there are a few packages in the tree which call themselves in pkg_postinst -- gentoo-dev@lists.gentoo.org mailing list