Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 136223 - new modules Curses.pm, perlmenu.pm needed for gimp-print-5.0.0_rc3 (cups-genppdconfig.5.0)
Summary: new modules Curses.pm, perlmenu.pm needed for gimp-print-5.0.0_rc3 (cups-genp...
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Printing (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Printing Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-06-09 13:36 UTC by Wiktor Wandachowicz
Modified: 2006-08-18 16:05 UTC (History)
1 user (show)

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 Wiktor Wandachowicz 2006-06-09 13:36:17 UTC
After installing gimp-print-5.0.0_rc3 I've found that there are no .PPD to be used with CUPS. In order to generate such files users are given the following programs:

  cups-genppd
  cups-genppdconfig.5.0
  cups-genppdupdate.5.0

However, trying to run user-friendly cups-genppdconfig.5.0 results in an error:

# cups-genppdconfig.5.0
Can't locate Curses.pm in @INC (@INC contains: /etc/perl /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi /usr/lib64/perl5/vendor_perl/5.8.8 /usr/lib64/perl5/vendor_perl /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi /usr/lib64/perl5/site_perl/5.8.8 /usr/lib64/perl5/site_perl /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi /usr/lib64/perl5/5.8.8 /usr/local/lib/site_perl .) at /usr/sbin/cups-genppdconfig.5.0 line 82.
BEGIN failed--compilation aborted at /usr/sbin/cups-genppdconfig.5.0 line 82.

It's easy to see that it looks for 'Curses.pm' Perl module which is not installed by default. Luckily, there is dev-perl/Curses package in Portage, so after manual:
# emerge -av Curses
this problem is solved. I suppose that something could be added to the DEPEND/RDEPEND atoms in the ebuild.

Anyway, after that program looks for another module, 'perlmenu.pm'. But this time I was unable to locate this package in Portage. However, it's available in the CPAN archive. Maybe these (and possibly other) missing modules should be added to fully utilize new gimp-print?

I've tried "g-cpan --install perlmenu" but this poses another problem, since the CPAN archive for this is named "perlmenu.v4.0" (no dashes) so this method failed also.

I'd really appreciate some assistance here.
Comment 1 Stefan Schweizer (RETIRED) gentoo-dev 2006-06-09 13:40:53 UTC
perl team: would it be possible to add the missing perlmenu.pm to portage so that we can add it to DEPEND?

I am thinking of installing the cups-genppdconfig.5.0 only on USE=perl, what do you think about that?
Comment 2 Wiktor Wandachowicz 2006-06-09 16:15:53 UTC
I was able to install the 'perlmenu.pm' manually, by unpacking the downloaded 'perlmenu.v4.0.tar.gz' file, adding Makefile.PL and issuing:

# cat Makefile.PL
# This Makefile.PL has been autogenerated by the module CPAN.pm
# because there was no Makefile.PL supplied.
# Autogenerated on: Fri Jun  9 22:07:00 2006

use ExtUtils::MakeMaker;
WriteMakefile(NAME => q[perlmenu]);

# perl Makefile.PL
Writing Makefile for perlmenu

# make
cp perlmenu.pm blib/lib/perlmenu.pm
cp create_menu.pl blib/lib/create_menu.pl
cp install_hints.pl blib/lib/install_hints.pl
cp menuutil.pl blib/lib/menuutil.pl

# make install
Installing /usr/lib64/perl5/site_perl/5.8.8/perlmenu.pm
Installing /usr/lib64/perl5/site_perl/5.8.8/create_menu.pl
Installing /usr/lib64/perl5/site_perl/5.8.8/install_hints.pl
Installing /usr/lib64/perl5/site_perl/5.8.8/menuutil.pl
Writing /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi/auto/perlmenu/.packlist
Appending installation info to /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/perllocal.pod


This helped a bit, but cups-genppdconfig.5.0 still doesn't work :-(

# cups-genppdconfig.5.0
Subroutine wprintw redefined at (eval 105) line 1.
Subroutine mvprintw redefined at (eval 105) line 2.
Subroutine nl redefined at /usr/lib64/perl5/site_perl/5.8.8/perlmenu.pm line 1857.

 at /usr/sbin/cups-genppdconfig.5.0 line 101.


However, I was still able to generate a .PPD file for my printer, but without (supposedly) nice GUI:

# cups-genppd.5.0 -M | less
# cups-genppd.5.0 -v bjc-iP4000
Writing /usr/share/cups/model/gutenprint/5.0//stp-bjc-iP4000.5.0.ppd.gz...

Then CUPS just picked up this configuration and my printer (finally) works.
:-D


This gave me an idea that instructions on generating .PPD file(s) using command-line tools could be displayed at the end of emerging gimp-print-5.0.0.

How about it?
Comment 3 Stefan Schweizer (RETIRED) gentoo-dev 2006-06-22 11:05:06 UTC
perl: any news on this?
Comment 4 Michael Cummings (RETIRED) gentoo-dev 2006-06-24 13:17:23 UTC
dev-perl/perlmenu added to the tree

Printing folks: you'll still need to add the appropriate deps (perl? (dev-perl/Curses dev-perl/perlmenu)) but they're there for use. Not sure that that will solve this bug, though - sounds like there are large problems.
Comment 5 Stefan Schweizer (RETIRED) gentoo-dev 2006-08-18 16:05:13 UTC
as I cannot get this working either I will close it as upstream. Feel free to report there if you want it :)