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.50) id 1EURIY-00074O-5o for garchives@archives.gentoo.org; Tue, 25 Oct 2005 16:05:14 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.5/8.13.5) with SMTP id j9PG3x2n022152; Tue, 25 Oct 2005 16:03:59 GMT Received: from smtpauth06.mail.atl.earthlink.net (smtpauth06.mail.atl.earthlink.net [209.86.89.66]) by robin.gentoo.org (8.13.5/8.13.5) with ESMTP id j9PFxUhc030825 for ; Tue, 25 Oct 2005 15:59:30 GMT Received: from [66.122.67.251] (helo=sarge.electronerdia.net) by smtpauth06.mail.atl.earthlink.net with asmtp (Exim 4.34) id 1EURCz-0006e9-Lu for gentoo-dev@lists.gentoo.org; Tue, 25 Oct 2005 11:59:29 -0400 Received: from sheila.electronerdia.net (sheila.electronerdia.net [192.168.1.32]) by sarge.electronerdia.net (Postfix) with ESMTP id 7F217FF2E6 for ; Tue, 25 Oct 2005 09:02:23 -0700 (PDT) From: John Myers To: gentoo-dev@lists.gentoo.org Subject: Re: [gentoo-dev] Reminder on dependencies. Date: Tue, 25 Oct 2005 09:03:23 -0700 User-Agent: KMail/1.8.3 References: <1130199485.1413.3.camel@Darkmere.darkmere> <20051025131519.29788e3d@snowdrop.home> <435E3C7F.6060308@gentoo.org> In-Reply-To: <435E3C7F.6060308@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="nextPart1703873.NtgiWR6goV"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200510250903.28250.electronerd@monolith3d.com> X-ELNK-Trace: 8839a2c17b2169aa1aa676d7e74259b7b3291a7d08dfec79475a68857eee4dc9e1bd19c12428e84d350badd9bab72f9c350badd9bab72f9c350badd9bab72f9c X-Originating-IP: 66.122.67.251 X-Archives-Salt: c1090d8a-80bb-4a24-b0de-b1064d631dc6 X-Archives-Hash: db4986470a316a3653bfecd593d5007b --nextPart1703873.NtgiWR6goV Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Tuesday 25 October 2005 07:09, Donnie Berkholz wrote: > Ciaran McCreesh wrote: > | On Mon, 24 Oct 2005 21:37:03 -0700 Donnie Berkholz > | > | wrote: > | | Now, the other side of the story. It's not true runtime dependence > | | because it's not required for programs to run, only to compile. And > | | the way I see it, things required for programs to compile are by > | | definition DEPEND rather than RDEPEND. > | > | Not at all. If you've installed libfoo, one of the things you must be > | able to do is compile things that use libfoo. This sometimes means that > | libfoo would need a non-build-time dependency upon any libraries used > | by libfoo's header files. > > I disagree. You shouldn't expect to be able to compile things against it > unless all DEPENDs are installed. The whole point of DEPEND is to be > able to do things like this; remove all things not necessary for your > programs to run, not to compile. Perhaps, then, an additional dependency type would be useful? One that says= "I=20 may or may not need this for me to compile, Other programs definately need= =20 this to compile against me, and I don't necessarily need this to run" Let's call this CDEPEND, for the sake of example: package foo DEPENDs on bar, but does not CDEPEND or RDEPEND on it. bar=20 CDEPENDs on baz, but does not DEPEND or RDEPEND on it. Scenario 1: 1) emerge bar =2D bar installed 2) emerge foo =2D baz installed =2D foo installed Scenario 2: 1) emerge foo =2D baz installed =2D bar installed =2D foo installed 2) "remove all compilation-only packages" =2D bar uninstalled =2D baz uninstalled 3) emerge bar =2D bar installed 4) emerge -u foo =2D baz installed =2D foo installed The pattern is that CDEPENDs of package fooquux are optional unless another= =20 package in the current dep list DEPENDs on fooquux. Only DEPEND would=20 activate them, not RDEPEND or CDEPEND, so if fooquux needs a package in=20 CDEPEND to compile, it must also specify it in DEPEND, and if it needs it a= t=20 runtime, it must also specify it in RDEPEND. --nextPart1703873.NtgiWR6goV Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2-ecc0.1.6 (GNU/Linux) iD8DBQBDXldQvqDgVb4O7CURAgAhAJ0T0C9YFxDbiNOyiNOmG/FtFEejnQCghVSS OqP4YB2OTRh8kADEL9UImps= =biZX -----END PGP SIGNATURE----- --nextPart1703873.NtgiWR6goV-- -- gentoo-dev@gentoo.org mailing list