| Summary: | app-text/gnopaster-0.0.6 or dev-perl/Config-Simple-4.58: Cannot run gnopaster -> "Can't locate ConfigReader/Simple.pm" | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Alexander Skwar <askwar> |
| Component: | Current packages | Assignee: | Gentoo Linux bug wranglers <bug-wranglers> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | jurek, m.berger, mosez, perl |
| Priority: | High | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
| Attachments: | gnopaster after s/ConfigReader::/Config::/ | ||
|
Description
Alexander Skwar
2007-04-25 09:09:43 UTC
That's because of naming mismatch of perl module between gentoo and gnopaster. Try replacing line 71 of /usr/bin/gnopaster: use ConfigReader::Simple; with: use Config::Simple; and tell me if it works for you. Created attachment 117207 [details]
gnopaster after s/ConfigReader::/Config::/
I can now start gnopaster, but cannot paste:
askwar@winnb000488 ~ $ gnopaster
Copy data you want to paste
^d paste - ^c cancels
Testing
Can't locate object method "new" via package "ConfigReader::Simple" (perhaps you forgot to load "ConfigRea
der::Simple"?) at /usr/bin/gnopaster line 180, <STDIN> line 1.
Doing a simple s/ConfigReader::/Config::/ in /usr/bin/gnopaster did not help - maybe I replaced too much...
askwar@winnb000488 ~ $ gnopaster
Copy data you want to paste
^d paste - ^c cancels
Testing
1
2
3
Can't locate auto/Config/Simple/exists.al in @INC (@INC contains: /etc/perl /usr/lib/perl5/vendor_perl/5.8
.8/i686-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl /usr/lib/perl5/site
_perl/5.8.8/i686-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl /usr/lib/perl5
/5.8.8/i686-linux-thread-multi /usr/lib/perl5/5.8.8 /usr/local/lib/site_perl .) at /usr/bin/gnopaster line
183
Attached is the broken perl script /usr/bin/gnopaster, after I did this replacement.
# equery f Config-Simple
[ Searching for packages matching Config-Simple... ]
* Contents of dev-perl/Config-Simple-4.58:
/usr
/usr/lib
/usr/lib/perl5
/usr/lib/perl5/5.8.8
/usr/lib/perl5/5.8.8/i686-linux
/usr/lib/perl5/vendor_perl
/usr/lib/perl5/vendor_perl/5.8.8
/usr/lib/perl5/vendor_perl/5.8.8/Config
/usr/lib/perl5/vendor_perl/5.8.8/Config/Simple.pm
/usr/lib/perl5/vendor_perl/5.8.8/auto
/usr/lib/perl5/vendor_perl/5.8.8/auto/Config
/usr/lib/perl5/vendor_perl/5.8.8/auto/Config/Simple
/usr/lib/perl5/vendor_perl/5.8.8/auto/Config/Simple/CLEAR.al
/usr/lib/perl5/vendor_perl/5.8.8/auto/Config/Simple/DELETE.al
/usr/lib/perl5/vendor_perl/5.8.8/auto/Config/Simple/EXISTS.al
/usr/lib/perl5/vendor_perl/5.8.8/auto/Config/Simple/FETCH.al
/usr/lib/perl5/vendor_perl/5.8.8/auto/Config/Simple/FIRSTKEY.al
/usr/lib/perl5/vendor_perl/5.8.8/auto/Config/Simple/NEXTKEY.al
/usr/lib/perl5/vendor_perl/5.8.8/auto/Config/Simple/STORE.al
/usr/lib/perl5/vendor_perl/5.8.8/auto/Config/Simple/TIEHASH.al
/usr/lib/perl5/vendor_perl/5.8.8/auto/Config/Simple/autosplit.ix
/usr/lib/perl5/vendor_perl/5.8.8/auto/Config/Simple/block.al
/usr/lib/perl5/vendor_perl/5.8.8/auto/Config/Simple/dump.al
/usr/lib/perl5/vendor_perl/5.8.8/auto/Config/Simple/error.al
/usr/lib/perl5/vendor_perl/5.8.8/auto/Config/Simple/errstr.al
/usr/lib/perl5/vendor_perl/5.8.8/auto/Config/Simple/hashref.al
/usr/lib/perl5/vendor_perl/5.8.8/auto/Config/Simple/import_from.al
/usr/lib/perl5/vendor_perl/5.8.8/auto/Config/Simple/import_names.al
/usr/lib/perl5/vendor_perl/5.8.8/auto/Config/Simple/param_hash.al
/usr/lib/perl5/vendor_perl/5.8.8/auto/Config/Simple/vars.al
/usr/lib/perl5/vendor_perl/5.8.8/auto/Config/Simple/verbose.al
/usr/lib/perl5/vendor_perl/5.8.8/auto/Config/Simple/write_string.al
/usr/lib/perl5/vendor_perl/5.8.8/i686-linux
/usr/lib/perl5/vendor_perl/5.8.8/i686-linux/auto
/usr/lib/perl5/vendor_perl/5.8.8/i686-linux/auto/Config
/usr/lib/perl5/vendor_perl/5.8.8/i686-linux/auto/Config/Simple
/usr/lib/perl5/vendor_perl/5.8.8/i686-linux/auto/Config/Simple/.packlist
/usr/share
/usr/share/doc
/usr/share/doc/Config-Simple-4.58
/usr/share/doc/Config-Simple-4.58/Changes.bz2
/usr/share/doc/Config-Simple-4.58/MANIFEST.SKIP.bz2
/usr/share/doc/Config-Simple-4.58/MANIFEST.bz2
/usr/share/doc/Config-Simple-4.58/README.bz2
it shows that there is no exists.al, instead we have EXISTS.al, I tried to replace:
if(!$config->exists("Url") || !$config->exists("ModRewrite")) {
with
if(!$config->EXISTS("Url") || !$config->EXISTS("ModRewrite")) {
in line 183 but that drives us to another problem:
# gnopaster
Copy data you want to paste
^d paste - ^c cancels
Testing
'_SYNTAX' is not defined at blib/lib/Config/Simple.pm (autosplit into blib/lib/auto/Config/Simple/vars.al) line 1324, <STDIN> line 1.
I think we need a perl guy in here. Anyone?
There is a error in the mirrored gnopaster.pl.gz the mirrored one is one that never should been released as far as I know I see. After downloading the correct version it works fine. However, it lacks config file checking. If there is no $HOME/.gnopasterrc I get: $ perl gnopaster-0.0.6.pl Copy data you want to paste ^d paste - ^c cancels Testing Can't call method "param" on an undefined value at gnopaster-0.0.6.pl line 180, <STDIN> line 1. but that's upstream's job :) Fixed in CVS. I also added ~ppc and ~sparc keywords. Thanks! The problem with the .gnopasterrc file is fixed on new version 0.0.7 ;) In CVS, thanks! Jurek's jobs a perfect! Thank you! |