public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] How to handle dependencies on protocol headers?
@ 2011-09-16  4:32 Matt Turner
  2011-09-16  4:36 ` Alec Warner
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Matt Turner @ 2011-09-16  4:32 UTC (permalink / raw
  To: gentoo-dev

Often packages depending on X11 libraries will also have to specify
the X11 libraries' proto packages in DEPEND. This is because the X11
library itself #includes files provided by the proto package. It's not
really that the X11 library depends on this at run-time, so the
protocol packages aren't specified in the RDEPEND of the libraries.

This is documented in a number of bug reports (see 379545), and it
seems that the decision is between
 - add proto package to dependency list of packages using X11 libs
 - add proto package to rdepend list of the relevant library itself

The first is more correct, I think, but it's also much more annoying.
Mesa winds up having x11-proto/inputproto in DEPEND for some long
forgotten reason, for instance.

The second option is much simpler and less error prone, but removes
the ability to depclean the proto packages.

It seems that some sort of DEPEND variable that means "I only need
this when other packages are building against me" would be useful.
Thoughts?

Matt



^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2011-09-16  9:16 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-16  4:32 [gentoo-dev] How to handle dependencies on protocol headers? Matt Turner
2011-09-16  4:36 ` Alec Warner
2011-09-16  4:47   ` Matt Turner
2011-09-16  4:42 ` [gentoo-dev] " Matt Turner
2011-09-16  4:49   ` Zac Medico
2011-09-16  5:00     ` Alexander Bersenev
2011-09-16  5:24     ` Matt Turner
2011-09-16  6:25 ` [gentoo-dev] " Ciaran McCreesh
2011-09-16  7:54   ` Michał Górny
2011-09-16  8:08     ` Ciaran McCreesh
2011-09-16  9:15       ` Brian Harring

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox