On Wed, 7 May 2008 21:31:59 +0200 (CEST)
Viktor Griph <[EMAIL PROTECTED]> wrote:
> On Wed, 7 May 2008, Jesús Guerrero wrote:
>
> > They are the following:
> > # XXX: gtk2 perl bindings require dev-perl/gtk2-perl, worth a dependency?
> > # XXX: gtk perl bindings require dev-perl/gtk-perl, worth a dependency?
> > # XXX: netpbm is used by FvwmScript-ScreenDump, worth a dependency?
> >
> > I can clearly see the netpbm dependency. So, that's not a problem.
> >
> > However, I am not sure about the gtk{,2}-perl stuff.
> >
> > [...]
> >
> > If you enable gtk, then fvwm looks for gtk+-1.x. If I am not mistaking, to
> > make these bindings of any use, you would still need to push as dependencies
> > gtk-perl and gtk2-perl respectively (whatever they are called on your distro
> > of choice). Am I right?
>
> If I recall correctly the configure option about gtk only controls wether
> FvwmGtk will be built or not. The perl bindings are only runtime
> dependencies, when specific modules or parts of the perllib are used.
Yep, I think that's correct. However, in the Gentoo ebuilds there are the
DEPENDS and the RDEPENDS. Even if they are only runtime dependencies, it
might still be correct to put them in the ebuild on the RDEPEND clause.
But that's to be discussed with the Gentoo people, so I will not bother
you with that.
> > I also want to know if these perl/gtk bindings are used on any official
> > script or module shipped on with fvwm. My guess it that they are not, and
> > with grep, I can't find any reference to Gtk.pm or Gtk2.pm on any file
> > shipped with fvwm.
>
> perl-gtk is used by the module FvwmGtkDebug. I don't think that perl-gtk2
> is used by anything but the perllib.
Well, then gtk-perl MUST be included as a dependency if the gtk and perl flags
are enabled, even if the these features are not going to be used on 99.99% of
the cases.
> > [...]
> > Another doubt, do you need gtk+-2.x for Gtk2.pm to be functional? I guess
> > yes, but in that case, that dependency has been overlooked on the ebuild
> > forever. If this is true, that means that if I enable perl and gtk, then
> > the ebuild should have all of these as dependencies, which, in my humble
> > opinion is something insane for fvwm:
>
> The ebuld should not depend directly on gtk+-2.x. That is a dependency of
> gtk2-perl, and would thus be pulled when installing that. gtk+-1.x is
> needed for FvwmGtk, which links against gtk, and dus depend directly on
> gtk, and not via gtk-perl.
Yes, that's what I meant though I didn't express it correctly. True.
There are some Gentoo specific problems here. We would need two USE flags
to control if you are installing Gtk.pm and/or Gtk2.pm. The problem is that
there were the use flags gtk and gtk2 in the past, but now their usage is
discouraged (maybe forbidden, I am not sure), because gtk1 is being
phased out in portage, and the gtk flag should refer only to gtk2 unless
a given program doesn't support gtk2, but only gtk1. So, now there's only
one gtk use flag, which means that, if we want to abide the Gentoo policies,
that flag will push all that four deps that I listed, directly or indirectly.
There might be a number of possible solutions for this, but that's also
Gentoo stuff to be discussed with the Gentoo people.
Thanks so much for the input, it was quite helpful.
Cheers.
--
Jesús Guerrero <[EMAIL PROTECTED]>