Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 40552 - glib-perl-1.012 has some strange DEPEND section
Summary: glib-perl-1.012 has some strange DEPEND section
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Gentoo Perl team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-05 19:07 UTC by Spider (RETIRED)
Modified: 2004-02-25 02:23 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Spider (RETIRED) gentoo-dev 2004-02-05 19:07:23 UTC
Trying to find RDEPEND issues here and I stumbled on this gem:

DEPEND="${DEPEND}
        >=x11-libs/gtk+-2*
        >=dev-libs/glib-2*
        dev-util/pkgconfig
        dev-perl/extutils-depends
        dev-perl/extutils-pkgconfig
        xml? ( dev-perl/XML-Writer
                dev-perl/XML-Parser )"


pkgconfig should probably be a DEPEND only, whereas gtk+ and glib+ seems to be RDEPEND 
so

RDEPEND="
>=x11-libs/gtk+-2*
>=dev-libs/glib-2
xml? ( dev-perl/XML-Writer
dev-perl/XML-Parser )"

DEPEND="${RDEPEND}
dev-util/pkgconfig
dev-perl/extutils-depends
dev-perl/extutils-pkgconfig"

if I've understood what extutils-depends/pkgconfig does.
Comment 1 Michael Cummings (RETIRED) gentoo-dev 2004-02-21 04:11:22 UTC
I think the confusion, at least on my part, is the use/nature of RDEPEND and DEPEND. (yea, I resorted to man 5 for this answer) DEPEND is what is required for the app to build (and they were all valid), and RDEPEND for it to run, defaulting to DEPEND. I guess it was a misconception on my part as to how they differ in actual use, i.e. would the RDEPENDs get emerged properly before the main ebuild (naivete at its best Spider). Will clean this up and keep an eye out for similar mistakes in our outdated broilerplate schemes =:)
Comment 2 Spider (RETIRED) gentoo-dev 2004-02-21 04:34:28 UTC
Yeah, thats a good rundown of it.  In the Gnome builds we usually do it like this:

RDEPEND="gnome-base/libgnome
  gnome-base/libgnomeui"

DEPEND="${RDEPEND}
   dev-util/pkgconfig
   dev-util/intltool"


To get the representation "right" in between them, but the two may vary widely so it isn't an absolute rule.

As I don't really know what this perl package does, I'm not sure what to require here, how it depends on the different parts (pkgconfig fex) does it wrap it, or need it to build (to find other depends) or ... ?    
Comment 3 Michael Cummings (RETIRED) gentoo-dev 2004-02-25 02:23:18 UTC
Cleaned up in glib-perl and will keep an eye out for this in other ebuilds (too many in dev-perl to do a real housecleaning right now unfortunately). Thanks Spider!

-mike