public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
From: Ned Ludd <solar@gentoo.org>
To: gentoo-dev@lists.gentoo.org
Subject: Re: [gentoo-dev] Reminder on dependencies.
Date: Tue, 25 Oct 2005 01:18:32 -0400	[thread overview]
Message-ID: <1130217512.19065.27.camel@localhost> (raw)
In-Reply-To: <435DB66F.9060807@gentoo.org>

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 <solar@gentoo.org>

-- 
gentoo-dev@gentoo.org mailing list



  parent reply	other threads:[~2005-10-25 11:57 UTC|newest]

Thread overview: 36+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-10-25  0:18 [gentoo-dev] Reminder on dependencies Spider (D.m.D. Lj.)
2005-10-25  4:37 ` Donnie Berkholz
2005-10-25  5:12   ` Joshua Baergen
2005-10-25  5:18   ` Ned Ludd [this message]
2005-10-26  8:46     ` Paul de Vrieze
2005-10-25  5:29   ` Spider (D.m.D. Lj.)
2005-10-25  5:51     ` Donnie Berkholz
2005-10-25  6:01       ` Spider (D.m.D. Lj.)
2005-10-26  8:45         ` Paul de Vrieze
2005-10-25  7:49   ` Thomas de Grenier de Latour
2005-10-25 12:15   ` Ciaran McCreesh
2005-10-25 14:09     ` Donnie Berkholz
2005-10-25 16:03       ` John Myers
2005-10-25 16:39       ` Ciaran McCreesh
2005-10-25 10:48         ` Donnie Berkholz
2005-10-25 17:55         ` solar
2005-10-25 19:16           ` Ciaran McCreesh
2005-10-25 19:28             ` Olivier Crete
2005-10-25 20:05             ` solar
2005-10-25 20:38               ` Ciaran McCreesh
2005-10-26  8:58                 ` Paul de Vrieze
2005-10-27  0:15                   ` Luca Barbato
2005-10-27  7:36                     ` Paul de Vrieze
2005-10-27 13:40                       ` Olivier Crête
2005-10-27 14:14                         ` Ned Ludd
2005-10-25 16:19   ` Grant Goodyear
2005-10-25  9:28     ` Donnie Berkholz
2005-10-25 16:41       ` Ciaran McCreesh
2005-10-25 17:16         ` Joshua Baergen
2005-10-25 17:25           ` Ciaran McCreesh
2005-10-25 17:37             ` Joshua Baergen
2005-10-25 17:41               ` Joshua Baergen
2005-10-25 17:44             ` Alec Joseph Warner
2005-10-25 17:55               ` Ciaran McCreesh
2005-10-25 16:55       ` Grant Goodyear
2005-10-26  9:04         ` Paul de Vrieze

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1130217512.19065.27.camel@localhost \
    --to=solar@gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox