Bug 37291 - gimp-perl should depend on perl-Gtk-Perl
Summary: gimp-perl should depend on perl-Gtk-Perl
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: gimp
Version: 7.1
Hardware: i386
OS: Linux
medium
low
Target Milestone: ---
Assignee: Matt Wilson
QA Contact: David Lawrence
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2001-04-24 03:54 UTC by Need Real Name
Modified: 2007-04-18 16:32 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2003-10-16 16:36:20 UTC
Embargoed:


Attachments (Terms of Use)

Description Need Real Name 2001-04-24 03:54:38 UTC
From Bugzilla Helper:
User-Agent: Mozilla/4.77 [en] (X11; U; Linux 2.4.2-3 i686)


Most (all?) gimp-perl scripts open dialogs which requires the CPAN module
Gtk-Perl to be installed.  Since Gtk-Perl is now shipped on the DMA cd,
perhaps gimp-perl can depend on the perl-Gtk-Perl rpm.

Reproducible: Always
Steps to Reproduce:
1.rpm -i gimp.rpm
2.rpm -i gimp-perl.rpm
3.run gimp
4. Add the following script to ~/gimp-1.2/plug-ins

--- begin perl-test.pl ---
#!/usr/bin/perl

use Gimp qw(:auto __ N_);
use Gimp::Fu;
use Gimp::Util;
use strict;

Gimp::set_trace(TRACE_ALL);

register "foo_bar",
  "Foo Bar",
  "Does nothing",
  "Me",
  "Copyright 2001 Mr Foo",
  "Apr 24 2001",
  __"<Toolbox>/Xtns/FooBar...",
  "RGB*",
  [
   [ PF_TEXT, "text", "Text:", "Home" ],
   [ PF_FONT, "font", "Font:", "-*-Eras-*-r-*-*-24-*-*-*-p-*-*-*"
],               
   [ PF_INT, "fontsize", "Font size:", "25"],
   [ PF_COLOR, "bgcolor", "Background Colour:", [222, 234, 234]]
                                                ],
                                                
  sub {
    
    # Code goes here.
    
    
    return();
  };

exit main();
--- end perl-test.pl ---

5. Restart gimp and notice that "FooBar..." is not in the Xtns menu.
6. rpm -i perl-Gtk-Perl
7. Restart gimp and notice that "FooBar..." _is_ in the Xtns menu.

Comment 1 Itai Nahshon 2001-06-06 17:05:54 UTC
I did my little investigation and here's the code responsible
for not installing menu entries for perl plug-ins.

gimp-1.2.1/plug-ins/perl/Gimp/Fu.pm lines 358-362:
      # Gtk not installed -> do not install menu entry
      if (@$params > $defargs) {
         require Gimp::Feature;
         undef $menupath unless Gimp::Feature::present('gtk');
      }


Comment 2 Matt Wilson 2003-10-16 16:36:20 UTC
gimp-perl requires:
perl(Gtk)
perl(Gtk::Atoms)
perl(Gtk::Gdk)

which is provided by Gtk-Perl



Note You need to log in before you can comment on or make changes to this bug.