Gentoo Archives: gentoo-perl

From: perl <perl@×××××××.com>
To: gentoo-perl@l.g.o
Subject: [gentoo-perl] modules availability
Date: Sat, 20 Dec 2008 01:26:04
Message-Id: 20081219172634.7f34508a@lappy.evolone.org
1 List --
2
3 I got some skeptical inquiries about the state of gentoo support for perl, in the chat space... I don't know, myself, what it looks like, really. What is 'virtual' for? What is "Dual Lifed"? Where to find out if not on this mailing list's archives?
4
5 Anyway... AFAICT, everything "CPANTS" has as is_core, well, is in perl-core/.
6
7 [I know crap about bash, but here's what I did:]
8
9 notfound="No matches found."; for atom in `perl checker.pl`; do iscore=` eix -Ace perl-core/$atom `;if [ "$iscore" != "$notfound" ] ; then echo $iscore; else isavail=` eix -Ace dev-perl/$atom `;if [ "$isavail" != "$notfound" ] ; then echo $isavail; else echo $atom $notfound; fi ; fi ;done
10
11 "perl checker.pl" just calls this SQL:
12
13 select package from modules left join dist on (modules.dist=dist.id) where modules.is_core=1 group by package
14
15 ... hopefully getting the complete list of core packages. It loops when the module is installed and prints after
16
17 my $atom = $row->[0]) =~ s/(?:-[-.0-9a-z]+)*(?:\.tar\.gz|\.zip)$//;
18 my $t = [ split /\//,$atom ]->[1] ;
19 $atom = ($t // $atom);
20 say $atom;
21
22 ... to get the ebuild name from the tarball name.
23
24 [ Some of which makes me happy, just to use some new perl features. ;-) ]
25
26 So, I have to guess these results are errors from the CPANTS database, or just aren't core (or buildable) on my linux system. So that's pretty good coverage for perl-core.
27
28 CPAN-DistnameInfo No matches found.
29 Class-Config No matches found.
30 IPC_SysV No matches found.
31 Mac-iPhoto-Shell No matches found.
32 Net-FileShare No matches found.
33 Net No matches found.
34 PathTools No matches found.
35 Time-Object No matches found.
36 Win32 No matches found.
37 Win32-File-Summary No matches found.
38 Win32API-File No matches found.
39
40 As for the rest, I'm gathering them now.
41
42 grep "No match" results_notcore |wc -l && \
43 grep -v "No match" results_notcore |wc -l
44 14584
45 671
46
47 eix -c --in-overlay perl-experimental |wc -l
48 288
49
50 . . .
51
52 What would be cool is if we could move perl-"experimental" to be an *experimental overlay* of automatically created ebuilds that corresponds to CPAN.
53
54 Then it'd be nice to fix up a *maintained* perl overlay (gentoo-perl?) to be like a ppm repository (without the binary parts), maintained and advertised as such, for any perl modules that aren't part of the official gentoo tree.
55
56 So if anyone wants, they have a place to grab something probably ready to go from overlays. If it needs fixing and gets fixed, it has a place to live that distinguishes it from the automatic ebuilds.
57
58 CPANTS data has a binary flag for in (or not in) a couple of other distros. Maybe meeting that degree of support, or that of the activestate ppm repository would be a good starting benchmark..??
59
60 Cheers,
61
62 -- Michael Higgins

Replies

Subject Author
Re: [gentoo-perl] modules availability Michele Beltrame <admin@×××××××××.info>