g-cpan 0.16.2 cant find a repository even though one is configured. Steps to reproduce: Install a system with: perl-core/Module-Build Available versions: 0.34.0201 (~)0.35 (~)0.36.01 (~)0.36.03 0.36.07 Installed versions: 0.36.07(11:36:49 09/09/10) Homepage: http://search.cpan.org/dist/Module-Build/ Description: Build and install Perl modules [I] virtual/perl-Module-Build Available versions: 0.34.0201 (~)0.35 (~)0.36.01 (~)0.36.03 0.36.07 Installed versions: 0.36.07(11:37:49 09/09/10) Description: Build and install Perl modules dev-lang/perl 5.12.1-r2 emerge --info Portage 2.1.8.3 (default/linux/amd64/10.0/desktop/kde, gcc-4.4.3, glibc-2.11.2-r0, 2.6.34-gentoo-r6 x86_64) ================================================================= System uname: Linux-2.6.34-gentoo-r6-x86_64-Intel-R-_Core-TM-2_CPU_T5200_@_1.60GHz-with-gentoo-1.12.13 Timestamp of tree: Thu, 09 Sep 2010 07:00:01 +0000 app-shells/bash: 4.0_p37 dev-java/java-config: 2.1.11 dev-lang/python: 2.6.5-r3, 3.1.2-r4 dev-util/cmake: 2.8.1-r2 sys-apps/baselayout: 1.12.13 sys-apps/sandbox: 1.6-r2 sys-devel/autoconf: 2.13, 2.65 sys-devel/automake: 1.9.6-r3, 1.10.3, 1.11.1 sys-devel/binutils: 2.20.1-r1 sys-devel/gcc: 4.4.3-r2 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.6b sys-devel/make: 3.81-r2 virtual/os-headers: 2.6.30-r1 ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="*" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=core2 -O2 -pipe -fomit-frame-pointer" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config /var/lib/hsqldb" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-march=core2 -O2 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="assume-digests ccache collision-protect distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans" GENTOO_MIRRORS="http://gentoo.osuosl.org/ " LDFLAGS="-Wl,-O1 -Wl,--as-needed" LINGUAS="en" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X a52 aac acl acpi akode alsa amd64 amr apache2 apm berkdb bluetooth branding bzip2 cairo cardbus cdr cli consolekit cracklib creditcard crypt cups cxx dbus divx dri dts dv dvb dvd dvdnav dvdr emboss encode exif extras fam firefox flac fortran gcj gd gdbm gif gimp gmedia gpm gtk hal iconv imagemagick ipv6 java jpeg jpeg2k kde latex lcms ldap libnotify mad madwifi mikmod mmx mng modules mozilla mp3 mp3rtp mp4 mp4live mpeg mpeg2 mudflap multilib mysql ncurses nls nptl nptlonly nsplugin nvidia ogg opengl openmp pam pango pcmcia pcntl pcre pdf perl php pmu png postgres postgresql ppds pppd python qt3 qt3support qt4 readline realmedia reflection sasl scanner screen scripting sdl session sound spell sql sqlite sse sse2 ssl startup-notification svg sysfs tcpd tetex tiff truetype unicode usb vorbis webkit wifi wma wmp x264 xcb xemacs xinerama xml xorg xulrunner xv xvid zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_A and try to use g-cpan to install Rose-DB-Object
After updating the system and downgrading to the old version of perl 5.8 I still cant get g-cpan to work. Looks like reinstalling g-cpan does not resolve the problem. See the output here http://www.think-electric.com/paste/g-cpanproblem.txt
After days of trying different versions of perl, g-cpan, emerge -e g-cpan etc. etc. I looked at the file 02packages.details.txt.gz and discovered it was a 404 not found error. I think I worked around the issue by: rm -rf .cpan/ rm -rf /var/tmp/g-cpan/ A more probable cause of this bug is that g-cpan does not remove stale old 02packages.details.txt.gz or give a hint for the user to do so or automaticly update them when they contain a 404 not found error. It is not clean how to get g-cpan to update these files as g-cpan -u does not do this. G-cpan did know what to do when I removed the file and was able to finish. So I propose a patch be made or some additional documentation for users to work around this error in the future.
That's certainly not a g-cpan bug. The problem that you're reporting is that CPAN doesn't automatically retry fetching file which it reports as 'probably invalid'.
(In reply to comment #3) > That's certainly not a g-cpan bug. The problem that you're reporting is that > CPAN doesn't automatically retry fetching file which it reports as 'probably > invalid'. > I am not so sure. I would expect that g-cpan is the Gentoo interface to CPAN. And g-cpan --cpan_reload I would think should correct the problem by reloading the index files needed to find uptodate perl modules. If there is end user configuration needed to CPAN then this bug report could be a documentation bug for; http://www.gentoo.org/proj/en/perl/g-cpan.xml Since the above documentation does not mention additional configuration of CPAN to update these essential files and have a working g-cpan.
Not a g-cpan bug. Probably should go to the upstream CPAN maintainers. "g-cpan --cpan_reload" would not help in this case because the mirrors had the broken 02packages.details.txt.gz file on all mirrors (it was corrupted during the generation IIRC). perl team: RESO UPSTREAM I think, but I'm deferring to you.
(In reply to Robin Johnson from comment #5) > perl team: RESO UPSTREAM I think, but I'm deferring to you. yes, RESO UPSTREAM
g-cpan could still be more gracious about how it responds here, ie: broken files are going to happen from time to time, if its not much effort to detect/report when that happens, you may as well. - if 02packagedetails.gz is not gzip encoded, the file can be deemed corrupt. - if 02packagedetails fails to decompress completely, the file is corrupt - if the file decompresses fine, but the text content in it is not in the right format, then the file is corrupt. ^ You could probably warn at least in all these cases.