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 1EUNQg-0004aN-PB for garchives@archives.gentoo.org; Tue, 25 Oct 2005 11:57:23 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.5/8.13.5) with SMTP id j9PBu2Hw028292; Tue, 25 Oct 2005 11:56:02 GMT Received: from skinny.southernlinux.net (ns2.rednecks.net [64.192.52.5]) by robin.gentoo.org (8.13.5/8.13.5) with ESMTP id j9PBrINO025875 for ; Tue, 25 Oct 2005 11:53:19 GMT Received: (qmail 22072 invoked by uid 210); 25 Oct 2005 07:47:40 -0400 Received: from 64.192.53.35 by skinny (envelope-from , uid 201) with qmail-scanner-1.25st (clamdscan: 0.82/1146. f-prot: 4.4.2/3.14.11. spamassassin: 3.0.2. perlscan: 1.25st. Clear:RC:1(64.192.53.35):. Processed in 0.0620579999999999 secs); 25 Oct 2005 11:47:40 -0000 Received: from unknown (HELO montgomery-35.epproach.net) (64.192.53.35) by 0 with SMTP; 25 Oct 2005 07:47:39 -0400 Subject: Re: [gentoo-dev] Reminder on dependencies. From: Ned Ludd To: gentoo-dev@lists.gentoo.org In-Reply-To: <435DB66F.9060807@gentoo.org> References: <1130199485.1413.3.camel@Darkmere.darkmere> <435DB66F.9060807@gentoo.org> Content-Type: text/plain Date: Tue, 25 Oct 2005 01:18:32 -0400 Message-Id: <1130217512.19065.27.camel@localhost> 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 X-Mailer: Evolution 2.2.1.1 Content-Transfer-Encoding: 7bit X-Archives-Salt: 60ad6f93-5a20-4aaa-8544-ad1c82dd93d2 X-Archives-Hash: 9efb1cee46576132cc0e1a7522f283d4 On Mon, 2005-10-24 at 21:37 -0700, Donnie Berkholz wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Spider (D.m.D. Lj.) wrote: > | If your package, libFoo, installs .h files that directly require header > | files from libBar, then you have a Runtime dependency on libBar, not > | only a compile time dependency > | > | > | Why? Because libFoo should be usable at runtime, even for compiling > | things not managed by our tree. And if BazPack has a configure check, > | requires explicitly libFoo, tests for the presence of said header, and > | all checks out.. Then BazPack should be able to work, and libFoo's > | header certainly shouldn't be broken for use in compile. > > 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. exactly. > The consequences of the two sides are like this, from what I can see: > > 1) Headers are run-time and build-time deps > > - - Headers have to be installed even when you're using purely binary > packages, because they are supposedly needed at "runtime" for your > packages to work. > > - - Also, header packages can't be uninstalled after the build via > depclean because they're specified as run-time dependencies. > > 2) Headers are build-time deps only > > - - Binary packages don't require the header packages. > > - - Header packages can be unmerged after builds. > > - - Packages requiring the headers have to DEPEND on them directly, > because DEPENDs don't cascade. (Although this brings to mind the concept > of some sort of cascadable DEPEND.) > > > I'd like to hear what some other people think about this. Well put Donnie. -- emerge -B virtual/libc busybox ROOT=/mnt/foo emerge -K virtual/libc busybox # if this were to pull in linux-headers on the second step into the $ROOT then all embedded support would be shot. +1 vote to ignore Spiders mail and revert such changes that put headers in rdeps as it has undesirable side effects to existing supported projects. -- Ned Ludd -- gentoo-dev@gentoo.org mailing list