Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 160389 - app-portage/g-cpan-0.15_rc1 creates broken ebuild
Summary: app-portage/g-cpan-0.15_rc1 creates broken ebuild
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: Other Linux
: Highest normal (vote)
Assignee: Gentoo Perl team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-06 09:46 UTC by Martin Mokrejš
Modified: 2008-05-19 07:29 UTC (History)
0 users

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 Martin Mokrejš 2007-01-06 09:46:47 UTC
perl-gcpan creates broken ebuilds.

try this:

# g-cpan --install Email::Reply Email::MIME::Attachment::Stripper Image::Magick Email::Send Email::MIME::Modifier
 * DEFINED OVERLAYS DON'T EXIST!
# emerge -u perl-gcpan/Email-Send perl-gcpan/Email-MIME-Modifier  perl-gcpan/Email-Reply perl-gcpan/Image-Magick perl-gcpan/Email-MIME-Attachment-Stripper
Calculating dependencies |

!!! Invalid or corrupt dependency specification: 

"invalid atom: '>=perl-gcpan/Email-Date-'"

('ebuild', '/', 'perl-gcpan/Email-Simple-Creator-1.41', 'merge')

>=perl-gcpan/Email-Date- >=virtual/perl-Test-Simple-0.47 >=dev-perl/Email-Simple- dev-lang/perl

This package can not be installed. Please notify the
'perl-gcpan/Email-Simple-Creator-1.41' package maintainer about this
problem.

# 

# cat /usr/local/portage/perl-gcpan/Email-Simple-Creator/Email-Simple-Creator-1.41.ebuild

# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# This ebuild generated by g-cpan 0.14.1_rc1

inherit perl-module

S=${WORKDIR}/Email-Simple-Creator-1.41

DESCRIPTION="No description available"
HOMEPAGE="http://search.cpan.org/search?query=${PN}"
SRC_URI="mirror://cpan/authors/id/R/RJ/RJBS/Email-Simple-Creator-1.41.tar.gz"


IUSE=""

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

DEPEND=">=perl-gcpan/Email-Date-
    >=virtual/perl-Test-Simple-0.47
    >=dev-perl/Email-Simple-
    dev-lang/perl"

#
# emerge --info
Portage 2.1.2_rc4-r5 (default-linux/x86/2006.0, gcc-4.1.1, glibc-2.5-r0, 2.6.19.1 i686)
=================================================================
System uname: 2.6.19.1 i686 Mobile Intel(R) Pentium(R) 4 - M CPU 1.80GHz
Gentoo Base System version 1.12.8
Last Sync: Sat, 06 Jan 2007 00:00:01 +0000
dev-java/java-config: 1.3.7, 2.0.31
dev-lang/python:     2.3.6, 2.4.4
dev-python/pycrypto: 2.0.1-r5
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.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.19
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4 -mmmx -msse -msse2 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config /usr/spool/PBS /var/bind /var/qmail/alias /var/qmail/control /var/vpopmail/domai
ns /var/vpopmail/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-O2 -march=pentium4 -mmmx -msse -msse2 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LINGUAS="en cs cz"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --tim
eout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/portage/local/layman/sunrise"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="FFmpeg X Xaw3d a52 aac aalib acpi alsa amr apache2 apm asf ati avi berkdb bitmap-fonts bonobo caca cairo cdparanoia cdr cli cpudetect
ion cracklib crypt cscope ctype cups curl dba dga directfb divx divx5 divx5linux dlloader dri dts dv dvb dvd dvdr dvdread eds emacs emacs-
w3 emboss emf encode ethereal evo f77 faad faad2 fam fame fbcon ffmpeg flac flash foomaticdb fortran fvwm fvwm2 gb gd gdbm ggi gif gphoto2
 gpm gstreamer gtk gtk2 gtkhtml highvolume i8x0 icc iconv ieee1394 ifc imagemagick imlib imlib2 inifile innodb isdnlog ithreads java jpeg 
kerberos lcms leim libcaca libedit libg++ libwww lirc live lzo mad matroska mcal mesa mhash mikmod ming mmx mmx2 mmxext mng modplug motif 
mozilla mp3 mpeg mule musepack mysql ncurses network nls nptl nptlonly ogg oggvorbis opengl oss pam pcre pda pdf pdflib perl plotutils plu
gin png poppler ppds pppd pthread pthreads python qt qt3 qt4 qtx quicktime readline reflection rtc samba scanner scp server session slp sp
ell spl sse sse2 ssl stroke svg tcl tcltk tcpd tetex theora thread threads tiff tk truetype truetype-fonts type1-fonts udev unicode usb us
erlocales v4l v4l2 vcd vorbis win32codecs winvidix wmf x264 x86 xanim xml xml2 xorg xosd xprint xv xvid xvmc zeo zlib" ALSA_CARDS="ali5451
 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 triden
t usb-audio via82xx via82xx-modem ymfpci" 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="keyboard mouse evdev" KERNEL=
"linux" LINGUAS="en cs cz" USERLAND="GNU" VIDEO_CARDS="radeon"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, MAKEOPTS, PORTAGE_RSYNC_EXTRA_OPTS

#

Reproducible: Always
Comment 1 Martin Mokrejš 2007-01-06 10:12:39 UTC
*  app-portage/g-cpan
      Latest version available: 0.15_rc1
      Latest version installed: 0.15_rc1
Comment 2 Michael Cummings (RETIRED) gentoo-dev 2007-01-08 22:11:00 UTC
2 different problems.

In reverse, it looks like the "bad" ebuilds were written by a previous version of g-cpan. You can confirm this by looking at the header information in the ebuild - it prints the version of g-cpan used to create the ebuild there. 

Please take a look at the latest attachment on bug 160137 - I beleive you'll find the attached copy of g-cpan on there fixes your first problem (if my guess is right about how you have your system setup based on what you've said so far).
Comment 3 Michael Cummings (RETIRED) gentoo-dev 2007-01-08 22:11:32 UTC
oh - and don't make an ebuild for perlmagick, just install imagemagick with the perl use flag enabled ;)
Comment 4 Michael Cummings (RETIRED) gentoo-dev 2007-02-11 14:48:19 UTC
no response in over a month, closing
Comment 5 Martin Mokrejš 2007-02-11 21:43:20 UTC
Sorry for the delays ... Is the version from bug 160137 contained in 0.15_rc2? I don't see that bugreport mentioned in /usr/share/doc/g-cpan-0.15_rc2/ChangeLog.bz2.

:(

Anyway, I tried to test current g-cpan. It seems it finally does regenerate the ebuild files ...

# g-cpan --install Email::Reply Email::MIME::Attachment::Stripper  Email::Send Email::MIME::Modifier
 * Ebuild already exists for Email-MIME-Modifier
 * Ebuild already exists for Email-MIME-Attachment-Stripper
 * Ebuild already exists for Email-Reply
 * Ebuild already exists for Email-Send
Calculating dependencies /

!!! The short ebuild name "Email-Reply" is ambiguous.  Please specify
!!! one of the following fully-qualified ebuild names instead:

    perl-gcpan/Email-Reply
    dev-perl/Email-Reply

# less /usr/local/portage/
app-emulation/ dev-python/    media-gfx/     perl-gcpan/    sys-cluster/   
# find /usr/local/portage/perl-gcpan/ -type f | xargs grep 'ebuild generated'
/usr/local/portage/perl-gcpan/Email-MIME-Encodings/Email-MIME-Encodings-1.310.ebuild:# This ebuild generated by g-cpan 0.15_rc2
/usr/local/portage/perl-gcpan/Email-MIME-ContentType/Email-MIME-ContentType-1.012.ebuild:# This ebuild generated by g-cpan 0.15_rc2
/usr/local/portage/perl-gcpan/Encode/Encode-2.18.ebuild:# This ebuild generated by g-cpan 0.15_rc2
/usr/local/portage/perl-gcpan/Email-MIME/Email-MIME-1.857.ebuild:# This ebuild generated by g-cpan 0.15_rc2
/usr/local/portage/perl-gcpan/Email-MessageID/Email-MessageID-1.35.ebuild:# This ebuild generated by g-cpan 0.15_rc2
/usr/local/portage/perl-gcpan/Email-MIME-Modifier/Email-MIME-Modifier-1.441.ebuild:# This ebuild generated by g-cpan 0.15_rc2
/usr/local/portage/perl-gcpan/Email-MIME-Attachment-Stripper/Email-MIME-Attachment-Stripper-1.313.ebuild:# This ebuild generated by g-cpan 0.15_rc2
/usr/local/portage/perl-gcpan/Email-Date/Email-Date-1.101.ebuild:# This ebuild generated by g-cpan 0.15_rc2
/usr/local/portage/perl-gcpan/Email-Simple-Creator/Email-Simple-Creator-1.41.ebuild:# This ebuild generated by g-cpan 0.15_rc2
/usr/local/portage/perl-gcpan/Email-MIME-Creator/Email-MIME-Creator-1.451.ebuild:# This ebuild generated by g-cpan 0.15_rc2
/usr/local/portage/perl-gcpan/Email-Reply/Email-Reply-1.200.ebuild:# This ebuild generated by g-cpan 0.15_rc2
/usr/local/portage/perl-gcpan/Return-Value/Return-Value-1.302.ebuild:# This ebuild generated by g-cpan 0.15_rc2
/usr/local/portage/perl-gcpan/Email-Send/Email-Send-2.183.ebuild:# This ebuild generated by g-cpan 0.15_rc2
# 


But, I am puzzled with the following output:

# g-cpan --install  Email::MIME::Attachment::Stripper  Email::Send Email::MIME::Modifier
 * Ebuild already exists for Email-MIME-Modifier
 * Ebuild already exists for Email-MIME-Attachment-Stripper
 * Ebuild already exists for Email-Send
Calculating dependencies -

!!! The short ebuild name "Email-Send" is ambiguous.  Please specify
!!! one of the following fully-qualified ebuild names instead:

    perl-gcpan/Email-Send
    dev-perl/Email-Send

# g-cpan --install  Email::MIME::Modifier
 * Ebuild already exists for Email-MIME-Modifier
Calculating dependencies -

!!! The short ebuild name "Email-MIME-Modifier" is ambiguous.  Please specify
!!! one of the following fully-qualified ebuild names instead:

    perl-gcpan/Email-MIME-Modifier
    dev-perl/Email-MIME-Modifier

# emerge -s dev-perl/Email-MIME-Modifier
Searching...   
[ Results for search key : dev-perl/Email-MIME-Modifier ]
[ Applications found : 0 ]
 

# g-cpan --install perl-gcpan/Email-Send perl-gcpan/Email-MIME-Attachment-Stripper perl-gcpan/Email-MIME-Modifier 
 * Nothing to install!!
# 
Comment 6 Michael Cummings (RETIRED) gentoo-dev 2007-02-12 22:40:37 UTC
at this point, it looks like there's a conflict between the generated ebuilds and what's in the tree. would you mind removing the generated ebuilds in perl-gcpan and rebuilding them? (want to alleviate criss crossed references to perl-gcpan/Email-* where we've recently put them in portage proper).

and in fact...all of these are in portage now for the bugzilla upgrade...
Comment 7 Martin Mokrejš 2007-02-12 22:56:22 UTC
Well, I did yesterday remove the perl-gcpan directory, but anyway, I retried now:

# ls -la /usr/local/portage/perl-gcpan/
total 60
drwxr-xr-x 15 root root 4096 Jan  9 15:44 .
drwxr-xr-x  7 root root 4096 Jan  9 15:44 ..
drwxr-xr-x  3 root root 4096 Jan  9 15:44 Email-Date
drwxr-xr-x  3 root root 4096 Jan  9 15:44 Email-MIME
drwxr-xr-x  3 root root 4096 Jan  9 15:44 Email-MIME-Attachment-Stripper
drwxr-xr-x  3 root root 4096 Jan  9 15:44 Email-MIME-ContentType
drwxr-xr-x  3 root root 4096 Jan  9 15:44 Email-MIME-Creator
drwxr-xr-x  3 root root 4096 Jan  9 15:44 Email-MIME-Encodings
drwxr-xr-x  3 root root 4096 Jan  9 15:44 Email-MIME-Modifier
drwxr-xr-x  3 root root 4096 Jan  9 15:44 Email-MessageID
drwxr-xr-x  3 root root 4096 Jan  9 15:44 Email-Reply
drwxr-xr-x  3 root root 4096 Jan  9 15:44 Email-Send
drwxr-xr-x  3 root root 4096 Jan  9 15:44 Email-Simple-Creator
drwxr-xr-x  3 root root 4096 Jan  9 15:44 Encode
drwxr-xr-x  3 root root 4096 Jan  9 15:44 Return-Value
# rm -rf /usr/local/portage/perl-gcpan
# g-cpan --install  Email::MIME::Attachment::Stripper  Email::Send
 * Ebuild already exists for Email-MIME-Attachment-Stripper
 * Ebuild already exists for Email-Send
Calculating dependencies... done!

>>> Emerging (1 of 13) dev-perl/Email-Address-1.88.4 to /
>>> Downloading '''\''http://distfiles.gentoo.org/distfiles/Email-Address-1.884.tar.gz'
wget: '/usr/bin/wget -t 5 -T 60 --passive-ftp -P /usr/portage/distfiles \http://distfiles.gentoo.org/distfiles/Email-Address-1.884.tar.gz': No such file or directory
>>> Downloading 'http://distro.ibiblio.org/pub/linux/distributions/gentoo'\'''/distfiles/Email-Address-1.884.tar.gz'
wget: '/usr/bin/wget -t 5 -T 60 --passive-ftp -P /usr/portage/distfiles http://distro.ibiblio.org/pub/linux/distributions/gentoo'/distfiles/Email-Address-1.884.tar.gz\: No such file or directory
>>> Downloading 'http://www.cpan.org/authors/id/R/RJ/RJBS/Email-Address-1.884.tar.gz'
wget: '/usr/bin/wget -t 5 -T 60 --passive-ftp -P /usr/portage/distfiles http://www.cpan.org/authors/id/R/RJ/RJBS/Email-Address-1.884.tar.gz': No such file or directory
>>> Downloading 'http://search.cpan.org/CPAN/authors/id/R/RJ/RJBS/Email-Address-1.884.tar.gz'
wget: '/usr/bin/wget -t 5 -T 60 --passive-ftp -P /usr/portage/distfiles http://search.cpan.org/CPAN/authors/id/R/RJ/RJBS/Email-Address-1.884.tar.gz': No such file or directory
!!! Couldn't download 'Email-Address-1.884.tar.gz'. Aborting.
#  g-cpan -u
 * OVERLAY: /usr/local/portage/perl-gcpan
 * Couldn't open folder /usr/local/portage/perl-gcpan: No such file or directory
 * OVERLAY: /usr/portage/local/layman/sunrise/perl-gcpan
 * Couldn't open folder /usr/portage/local/layman/sunrise/perl-gcpan: No such file or directory
 * Everything was up to date, nothing to do!
# ls -la /usr/local/portage/perl-gcpan/
ls: cannot access /usr/local/portage/perl-gcpan/: No such file or directory
# emerge -s g-cpan
Searching...   
[ Results for search key : g-cpan ]
[ Applications found : 1 ]
 
*  app-portage/g-cpan
      Latest version available: 0.15_rc2
      Latest version installed: 0.15_rc2
...
Comment 8 Yuval Yaari (RETIRED) gentoo-dev 2008-05-19 07:29:59 UTC
All these packages are in portage for quite a while now (I just tested and they install fine).
Also there's a newer g-cpan version, of course.

Closing -- please reopen or file a new bug if you're still having g-cpan related problems (or problems regarding the packages you mentioned).