Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 136715 - g-cpan-0.14.0_rc2: generates broken ebuilds: Use of uninitialized value in concatenation (.) or string at /usr/bin/g-cpan line 576.
Summary: g-cpan-0.14.0_rc2: generates broken ebuilds: Use of uninitialized value in co...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Perl team
URL:
Whiteboard:
Keywords:
: 137049 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-06-13 15:33 UTC by Ed Catmur
Modified: 2006-07-08 10:08 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 Ed Catmur 2006-06-13 15:33:20 UTC
# g-cpan -g Tree::Simple::View
...
Removing previously used /root/.cpan/build/Class-Throwable-0.10
 * g-cpan: Ebuild already exists for Test-Simple
 * g-cpan: Ebuild already exists for Scalar-List-Utils
 * g-cpan: Ebuild already exists for Test-Exception
 * g-cpan: Ebuild already exists for Tree-Simple
 * g-cpan: Generating ebuild for Tree::Simple::View
Use of uninitialized value in concatenation (.) or string at /usr/bin/g-cpan line 576.
Use of uninitialized value in concatenation (.) or string at /usr/bin/g-cpan line 576.
 * g-cpan: Ebuild generated for Tree-Simple::View

# emerge -pv Tree-Simple-View
These are the packages that would be merged, in order:

Calculating dependencies    avisible(): invalid cat/pkg-v: /skel

emerge: there are no ebuilds to satisfy "/".
(dependency required by "perl-gcpan/Tree-Simple-View-0.14" [ebuild])

# cat /srv/gentoo/trees/g-cpan/perl-gcpan/Tree-Simple-View/Tree-Simple-View-0.14.ebuild
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# This ebuild generated by g-cpan 0.14.0_rc2

inherit perl-module

S=${WORKDIR}/Tree-Simple-View-0.14

DESCRIPTION="No description available"
HOMEPAGE="http://search.cpan.org/search?query=${PN}"
SRC_URI="mirror://cpan/authors/id/S/ST/STEVAN/Tree-Simple-View-0.14.tar.gz"


IUSE=""

SLOT="0"
LICENSE="|| ( Artistic GPL-2 )"
KEYWORDS="x86 ~x86"

DEPEND="        virtual/perl-Test-Simple
        virtual/perl-Scalar-List-Utils
        /
        dev-perl/Test-Exception
        dev-perl/Tree-Simple
"

# emerge --info
Portage 2.1 (!/portage/make.profile, gcc-4.1.1/vanilla, glibc-2.4-r3, 2.6.16-gentoo-r7 i686)
=================================================================
System uname: 2.6.16-gentoo-r7 i686 AMD Athlon(tm) XP 1700+
Gentoo Base System version 1.12.1
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  0.4.2-r1
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r2
sys-devel/gcc-config: 2.0.0_rc1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r5
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-ggdb -O1 -O2 -O3 -pipe -march=athlon-xp -mmmx -msse -m3dnow"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/NX/etc /usr/NX/home /usr/lib/mozilla/defaults/pref /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-ggdb -O1 -O2 -O3 -pipe -march=athlon-xp -mmmx -msse -m3dnow"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig candy ccache confcache digest distcc distlocks fixpackages installsources metadata-transfer sandbox sfperms splitdebug strict"
GENTOO_MIRRORS=" http://ftp.heanet.ie/pub/gentoo/ http://mirror.ac.uk/mirror/distro.ibiblio.org/pub/linux/distributions/gentoo/ http://ftp.gentoo.skynet.be/pub/gentoo/ http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ http://gentoo.mirror.sdv.fr/ http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo/ "
LANG="en_GB.UTF-8"
LINGUAS="en_GB en en_US ja_JP de_DE es_ES fa_IR fr_FR it_IT ru_RU"
MAKEOPTS="-j2"
PKGDIR="/usr/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'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/srv/gentoo/trees/g-cpan /srv/gentoo/trees/bmg-main /srv/gentoo/trees/dangtopia /srv/gentoo/trees/gnome-experimental /srv/gentoo/trees/lila-artwork /srv/gentoo/trees/gentopia /srv/gentoo/trees/kernel-sources /srv/gentoo/trees/auto-unmask /srv/gentoo/trees/catmur.co.uk"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="x86 3dfx 3dnow 3dnowext 7zip X a52 aac aalib accessibility acl admin alsa apm arj artworkextra asf async attr avahi avi bash-completion beagle berkdb bitmap-fonts blas bluetooth bmg bonobo bookmarks boundschecking breakme browserplugin bzip2 cairo canvas cdda cddb cdio cdparanoia cdr cdrom chm cli communication composite cpp crypt cscope cups curl daap dbus deb design development dga divx4linux djbfft djvu doc docs dpms dri dts dv dvd dvdr dvdread dvi edl eds effects emboss encode epiphany epiphany-extension esd ethereal evo evolution examples exif extras faad fam fat fbcon ffmpeg firefox flac flash font-server foomaticdb fortran fpx freetype gaim galago games gb gcl gd gdbm gif gimp gimpprint ginac gksu glade glep glitz glut glx gnome gnomecanvas gnomedb gnomeoffice gnumeric gnutls gphoto2 gpm grammar graphviz gs gsf gstreamer gstreamer010 gtk gtk2 gtkhtml gtksharp guile gzip hal hddtemp hdf5 hfs howl-compat icu id3 idn imagemagick imap imlib imlib2 info inherit-graph inkjar insecure-savers ipod ipv6 irmc isdnlog iso java javascript jbig jfs jpeg kerberos latex lcms lha libcaca libg++ libgda libnotify libsexy libwww live logrotate lzo mad maildir man math matroska md5sum mdb mikmod mime mmx mmx2 mmxext mng mono mozdevelop mozilla mozsvg mp3 mpeg msoffice muine musicbrainz nautilus ncurses network new-login nfs nls nntp nocd nptl nptlonly nsplugin ntfs nvidia nxclient oav offensive office ogg ole openal opengl openssh opi oss pam pam_console pcre pda pdf pdflib perl plotutils plugin pmount png pop pop3 postscript ppds pppd printer productivity python qhull quicktime rar rdesktop readline real reflection reiser4 reiserfs rhythmbox rpm rtc ruby samba sasl scanner scintilla screen sdl session skippy-xd sms sndfile soap socks5 sourceview sox speex spell spl spreadsheet sse ssl subversion suspend2 svg svga sysfs t1lib tagwriting tar tcpd tetex theora thesaurus threads tiff truetype truetype-fonts type1-fonts udev unicode usb userlocales utf8 valgrind vcd videos vim vim-pager vim-with-x vnc vorbis win32codecs wmf wordperfect wv wxwin xanim xchattext xface xfs xft xing xml xml2 xorg xprint xrandr xscreensaver xv xvid xvmc yv12 zeroconf zip zlib zoo elibc_glibc input_devices_evdev input_devices_keyboard input_devices_mouse kernel_linux linguas_en_GB linguas_en linguas_en_US linguas_ja_JP linguas_de_DE linguas_es_ES linguas_fa_IR linguas_fr_FR linguas_it_IT linguas_ru_RU userland_GNU video_cards_fbdev video_cards_nv video_cards_nvidia video_cards_vesa video_cards_vga"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Michael Cummings (RETIRED) gentoo-dev 2006-06-13 17:54:52 UTC
ouch, thanks. will take a look as soon as i can.
Comment 2 Michael Cummings (RETIRED) gentoo-dev 2006-06-14 14:23:48 UTC
That is so bizarre...

 * g-cpan: Ebuild already exists for Test-Simple
 * g-cpan: Ebuild already exists for Scalar-List-Utils
 * g-cpan: Generating ebuild for Class::Throwable
 * g-cpan: Ebuild generated for Class-Throwable
>>> Creating Manifest for /home/mcumming/projects/overlay/experimental/perl-gcpan/Class-Throwable
 * g-cpan: Ebuild already exists for Test-Exception
 * g-cpan: Ebuild already exists for Tree-Simple
 * g-cpan: Generating ebuild for Tree::Simple::View
 * g-cpan: Ebuild generated for Tree-Simple::View
>>> Creating Manifest for /home/mcumming/projects/overlay/experimental/perl-gcpan/Tree-Simple-View

and the deps look good in what was generated over here....
Comment 3 Ed Catmur 2006-06-14 15:11:03 UTC
OK, found the problem. It shows up if PORTDIR_OVERLAY has multiple overlays, all of which end in a / character.

Line 267:

if ($overlay) {
    if ( $overlay =~ m/\b\s.*/ ) {
        my @overlays = map { split ' ' } $overlay;
        foreach (@overlays) {
            $gcpan_run->{'portage_bases'}{$_} = 1;
        }

    }
    else {
        $gcpan_run->{'portage_bases'}{$overlay} = 1;
    }
}

\b doesn't match a /.
Comment 4 Ed Catmur 2006-06-14 15:13:26 UTC
Fix: use m/\S\s+\S/.
Comment 5 Michael Cummings (RETIRED) gentoo-dev 2006-06-15 06:40:37 UTC
(In reply to comment #4)
> Fix: use m/\S\s+\S/.
> 

m/\S+\s+\S+/

Otherwise we're matching one non space char on either side of the spaces ;)

Fixed in svn for rc3, thanks!
Comment 6 Jakub Moc (RETIRED) gentoo-dev 2006-06-16 23:27:18 UTC
*** Bug 137049 has been marked as a duplicate of this bug. ***
Comment 7 Jakub Moc (RETIRED) gentoo-dev 2006-06-17 00:15:37 UTC
*** Bug 137049 has been marked as a duplicate of this bug. ***
Comment 8 Michael Cummings (RETIRED) gentoo-dev 2006-07-08 10:08:12 UTC
rc3 is out with this fix, thanks for reporting it!