I just installed app-text/gnopaster-0.0.6 on my ~x86 system. When I now try to run /usr/bin/gnopaster, I get the following error message: askwar@winnb000488 /Gentoo/Portage/tree $ gnopaster Can't locate ConfigReader/Simple.pm 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 71. BEGIN failed--compilation aborted at /usr/bin/gnopaster line 71. dev-perl/Config-Simple-4.58 got installed as a dependency of gnopaster in the same emerge run. And I also just re-installed Config-Simple, which gives me the same error message. Either there's something wrong with gnopaster, or Config-Simple doesn't install correctly, or there's something peculiar about my system. askwar@winnb000488 ~ $ emerge --info Portage 2.1.2.4 (default-linux/x86/2006.1/desktop, gcc-4.1.2, glibc-2.5-r1, 2.6.19-suspend2-r3.rtr.02b-suspend i686) ================================================================= System uname: 2.6.19-suspend2-r3.rtr.02b-suspend i686 Genuine Intel(R) CPU T2400 @ 1.83GHz Gentoo Base System release 1.12.10 Timestamp of tree: Wed, 25 Apr 2007 05:50:01 +0000 distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled] ccache version 2.4 [enabled] dev-java/java-config: 1.3.7, 2.0.31-r7 dev-lang/python: 2.4.4 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: 2.4-r7 sys-apps/sandbox: 1.2.18.1 sys-devel/autoconf: 2.13, 2.61 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10 sys-devel/binutils: 2.17 sys-devel/gcc-config: 1.3.16 sys-devel/libtool: 1.5.23b virtual/os-headers: 2.6.20-r2 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=pentium-m -O2 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/php/apache1-php5/ext-active/ /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo" CXXFLAGS="-march=pentium-m -O2 -pipe -fomit-frame-pointer" DISTDIR="/Windows/Documents and Settings/askwar/My Documents/Downloads/Unix/Gentoo/Distfiles" EMERGE_DEFAULT_OPTS="--alphabetical" FEATURES="ccache collision-protect distcc distlocks metadata-transfer sandbox sfperms strict" GENTOO_MIRRORS=" http://ftp.heanet.ie/pub/gentoo/ http://gentoo.supp.name/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://ftp.gentoo.or.kr/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo/ http://distfiles.gentoo.org/ " LANG="de_CH.UTF-8" LDFLAGS="-Wl,-O1" LINGUAS="de" MAKEOPTS="-j4" PKGDIR="/Gentoo/Portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*" PORTAGE_TMPDIR="/Gentoo/Portage/build" PORTDIR="/Gentoo/Portage/tree" PORTDIR_OVERLAY="/Gentoo/Portage/local-tree/misc" SYNC="rsync://winds03:10873/gentoo-portage" USE="X acpi alsa berkdb bitmap-fonts cairo cdr cli cracklib crypt cups dbus dmi dri dvd dvdr eds emboss encode fam firefox fortran gdbm gif gnome gpm gstreamer gtk hal iconv isdnlog jpeg kde kdeenablefinal kdehiddenvisibility ldap libg++ libnotify mad midi mikmod mmx mp3 mpeg ncurses nls nptl nptlonly ogg opengl pam pcmcia pcre perl png ppds pppd python qt3 qt4 quicktime readline reflection samba sdl session spell spl ssl tcpd truetype truetype-fonts type1-fonts unicode vorbis wifi win32codecs x86 xine xinerama xml xorg xv zlib" ALSA_CARDS="dummy hda-intel intel8x0 intel8x0m usb-audio usb-usx3y" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse synaptics vmmouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" USERLAND="GNU" VIDEO_CARDS="dummy none nv nvidia vga vmware" Unset: CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
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!