Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 50115 - g-cpan.pl doesn't build Apache::SessionX properly
Summary: g-cpan.pl doesn't build Apache::SessionX properly
Status: RESOLVED DUPLICATE of bug 79914
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Perl team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-05-05 11:21 UTC by Alan
Modified: 2005-07-17 13:06 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Adds support for alpha, beta, rc & pre module versions (g-cpan.pl.patch,681 bytes, patch)
2004-05-09 17:57 UTC, Jason Rhinelander
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alan 2004-05-05 11:21:04 UTC
I'm trying to get Apache::Embperl running via the ebuild available in bugzilla and it requires Apache::SessionX.   Trying to install this via g-cpan.pl Apache::SessionX but get the following:

root@master:/etc/apache/conf# g-cpan.pl Apache::SessionX
mkdir /tmp/perl-modules_25887
mkdir /tmp/perl-modules_25887/dev-perl
CPAN: Storable loaded ok
Going to read /root/.cpan/Metadata
  Database was generated on Tue, 04 May 2004 19:32:39 GMT
************************************************************************
*
*
*  Need to create ebuild for 'Apache::SessionX': Apache-SessionX
*
*
************************************************************************
Running make for G/GR/GRICHTER/Apache-SessionX-2.00b5.tar.gz
CPAN: LWP::UserAgent loaded ok
Fetching with LWP:
  ftp://ftp.perl.org/pub/CPAN/authors/id/G/GR/GRICHTER/Apache-SessionX-2.00b5.tar.gz
CPAN: Compress::Zlib loaded ok
Checksum for /root/.cpan/sources/authors/id/G/GR/GRICHTER/Apache-SessionX-2.00b5.tar.gz ok
Scanning cache /root/.cpan/build for sizes
Apache-SessionX-2.00b5/
Apache-SessionX-2.00b5/README
Apache-SessionX-2.00b5/testcount.pl
Apache-SessionX-2.00b5/test.pl
Apache-SessionX-2.00b5/SessionX.pm
Apache-SessionX-2.00b5/SessionX/
Apache-SessionX-2.00b5/SessionX/Manager.pm
Apache-SessionX-2.00b5/SessionX/Generate/
Apache-SessionX-2.00b5/SessionX/Generate/MD5.pm
Apache-SessionX-2.00b5/SessionX/Store/
Apache-SessionX-2.00b5/SessionX/Store/File.pm
Apache-SessionX-2.00b5/Makefile.PL
Apache-SessionX-2.00b5/MANIFEST
Removing previously used /root/.cpan/build/Apache-SessionX-2.00b5

  CPAN.pm: Going to build G/GR/GRICHTER/Apache-SessionX-2.00b5.tar.gz


Checking configuration...
Storage 'Oracle' is unavailable because DBD::Oracle is not installed on your system
Storage 'Sybase' is unavailable because DBD::Sybase is not installed on your system

The following ways to store session are available on your system:
 - DB_File             : DB_File
 - File                : File, use semaphore for locking
 - FileFile            : File, use lockfiles
 - Mysql               : MySQL, use semaphore for locking
 - MysqlMysql          : MySQL, use MySQL for locking
 - Postgres            : Postgres

You can now specify the configuration parameters for every storage.
Apache::SessionX uses this for testing your system and stores it for later
use in your application. You can override these default parameters anytime
at runtime. You can change them by rerunning Makefile.PL.

If you don't plan to use different storages for session, 
only say Yes to the one storage you want to use.

Would you like to configure DB_File (DB_File)(y/n) [y]n

Would you like to configure File, use semaphore for locking (File)(y/n) [y]y
Directory []/tmp

Would you like to configure File, use lockfiles (FileFile)(y/n) [y]n

Would you like to configure MySQL, use semaphore for locking (Mysql)(y/n) [y]n

Would you like to configure MySQL, use MySQL for locking (MysqlMysql)(y/n) [y]n

Would you like to configure Postgres (Postgres)(y/n) [y]n

 1: File, use semaphore for locking (File)
Using File as default
Checking if your kit is complete...
Looks good
Writing Makefile for Apache::SessionX
cp SessionX/Manager.pm blib/lib/Apache/SessionX/Manager.pm
cp testcount.pl blib/lib/Apache/testcount.pl
cp SessionX/Store/File.pm blib/lib/Apache/SessionX/Store/File.pm
cp SessionX.pm blib/lib/Apache/SessionX.pm
cp SessionX/Config.pm blib/lib/Apache/SessionX/Config.pm
cp SessionX/Generate/MD5.pm blib/lib/Apache/SessionX/Generate/MD5.pm
Manifying blib/man3/Apache::SessionX.3pm
Manifying blib/man3/Apache::SessionX::Generate::MD5.3pm
  /usr/bin/make  -- OK
************************************************************************
*
*
*  Ebuild already exists for 'Apache::Session': Apache-Session
*
*
************************************************************************
emerging Apache-SessionX
Calculating dependencies   visible(): invalid cat/pkg-v: dev-perl/Apache-SessionX-2.00b5

emerge: there are no masked or unmasked ebuilds to satisfy "Apache-SessionX".

!!! Error calculating dependencies. Please correct.
root@master:/etc/apache/conf# emerge Apache-Session -vp

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild   R   ] dev-perl/Apache-Session-1.54   26 kB 

Reproducible: Always
Steps to Reproduce:
1. run g-cpan.pl Apache::SessionX
2.
3.
Actual Results:  
See above errors

Expected Results:  
Shouldn't have had errors, should have installed properly

root@master:/etc/apache/conf# emerge info
Portage 2.0.50-r6 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.6.4-gentoo-r1)
===============================================================
==
System uname: 2.6.4-gentoo-r1 i686 Intel(R) Pentium(R) III CPU family      1133MHz
Gentoo Base System version 1.4.10
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.58-r1
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=pentium3 -fprefetch-loop-arrays -funroll-loops -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/
bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=pentium3 -fprefetch-loop-arrays -funroll-loops -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache fixpackages sandbox"
GENTOO_MIRRORS="http://gentoo.ccccom.com http://open-systems.ufl.edu/mirrors/gentoo http://
gentoo.mirrors.pair.com/ ftp://gentoo.mirrors.pair.com/"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="apm avi berkdb crypt encode foomaticdb gd gdbm gdcscope gif gpm imap imlib innodb jpeg 
libg++ libwww mad maildir mbox mikmod mmx mpeg mysql ncurses offensive oggvorbis oss pam 
pdflib perl png postgres python quicktime readline sasl sdl snmp spell ssl tcpd tiff truetype virus-scan 
x86 xml xml2 xmms xv zlib"
Comment 1 Jason Rhinelander 2004-05-09 17:57:24 UTC
Created attachment 31077 [details, diff]
Adds support for alpha, beta, rc & pre module versions

The attached g-cpan.pl patch fixes this up by turning it into a
portage-compatible Apache-SessionX-2.00_beta5.ebuild format instead of
Apache-SessionX-2.00b5.ebuild.	It also adds support for 'a' suffixes (alpha),
rc suffixes, and pre suffixes.	I should point out, however, that it's quite
rare to encounter module versions with these suffixes.
Comment 2 Michael Cummings (RETIRED) gentoo-dev 2005-03-14 09:08:09 UTC
Patches from 79914 fix this. Will be in next release.

*** This bug has been marked as a duplicate of 79914 ***