[Mageia-sysadm] perl modules shipped by mageia - db hosted on mageia servers?
Michael Scherer
misc at zarb.org
Tue Jul 19 12:54:55 CEST 2011
Le mardi 19 juillet 2011 à 11:26 +0200, Jerome Quelin a écrit :
> hi,
>
> On 11/07/08 15:37 +0200, Michael Scherer wrote:
> > Le vendredi 08 juillet 2011 à 14:50 +0200, Jerome Quelin a écrit :
> > > i've updated module::packaged::generator to support mageia (among a lot
> > > of other improvements). it creates a sqlite database with all perl
> > > modules available in mageia, with their version and the rpm package
> > > holding the module. the package to install is (only available on
> > > cauldron) perl-Module-Packaged-Generator-1.111.890-1.mga2
> >
> > Then we need a backport to 2010.2, or wait until we upgrade to mageia
> > 2 :)
>
> it should be available in contrib/backports
With missing requires :
# urpmi perl-Module-Packaged-Generator
# pkgcpan -q -f ./cpan.db -d Mageia
Can't locate Devel/Platform/Info/Linux.pm in @INC (@INC
contains: /usr/bin/../lib /usr/lib/perl5/site_perl/5.10.1/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.10.1 /usr/lib/perl5/vendor_perl/5.10.1/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl/5.10.1 /usr/lib/perl5/5.10.1/x86_64-linux-thread-multi /usr/lib/perl5/5.10.1 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.10.0 /usr/lib/perl5/vendor_perl/5.10.0/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl .) at /usr/lib/perl5/vendor_perl/5.10.1/Module/Packaged/Generator.pm line 20.
BEGIN failed--compilation aborted
at /usr/lib/perl5/vendor_perl/5.10.1/Module/Packaged/Generator.pm line
20.
and also MooseX/Has/Sugar.pm
and Parse/CPAN/Packages/Fast.pm
and Log/Dispatchouli.pm
and MooseX/Singleton.pm
and Term/ProgressBar/Quiet.pm
and Exporter/Lite.pm
and File/HomeDir/PathClass.pm
an finally, it fails :
[root at alamut tmp]# pkgcpan -q -f ./cpan.db -d Mageia
Couldn't load class (Module::Packaged::Generator::Role::UrlFetching)
because: Can't locate object method "my_dist_data" via package
"File::HomeDir::PathClass"
at /usr/lib/perl5/vendor_perl/5.10.1/Module/Packaged/Generator/Utils.pm
line 27.
Compilation failed in require
at /usr/lib/perl5/vendor_perl/5.10.1/Module/Packaged/Generator/Role/UrlFetching.pm line 22.
BEGIN failed--compilation aborted
at /usr/lib/perl5/vendor_perl/5.10.1/Module/Packaged/Generator/Role/UrlFetching.pm line 22.
Compilation failed in require
at /usr/lib/perl5/vendor_perl/5.10.1/x86_64-linux-thread-multi/Class/MOP.pm line 101.
at /usr/lib/perl5/vendor_perl/5.10.1/x86_64-linux-thread-multi/Class/MOP.pm line 105
Class::MOP::__ANON__('Can\'t locate object method "my_dist_data" via
package "File:...') called
at /usr/lib/perl5/vendor_perl/5.10.1/Try/Tiny.pm line 98
Try::Tiny::try('CODE(0x31a05e8)', 'Try::Tiny::Catch=REF(0x31afda8)')
called
at /usr/lib/perl5/vendor_perl/5.10.1/x86_64-linux-thread-multi/Class/MOP.pm line 110
Class::MOP::load_first_existing_class('Module::Packaged::Generator::Role::UrlFetching') called at /usr/lib/perl5/vendor_perl/5.10.1/x86_64-linux-thread-multi/Class/MOP.pm line 121
Class::MOP::load_class('Module::Packaged::Generator::Role::UrlFetching')
called
at /usr/lib/perl5/vendor_perl/5.10.1/x86_64-linux-thread-multi/Moose/Util.pm line 108
Moose::Util::_apply_all_roles('Class::MOP::Class::__ANON__::SERIAL::1=HASH(0x3169560)', undef, 'Module::Packaged::Generator::Role::UrlFetching') called at /usr/lib/perl5/vendor_perl/5.10.1/x86_64-linux-thread-multi/Moose/Util.pm line 86
Moose::Util::apply_all_roles('Class::MOP::Class::__ANON__::SERIAL::1=HASH(0x3169560)', 'Module::Packaged::Generator::Role::UrlFetching') called at /usr/lib/perl5/vendor_perl/5.10.1/x86_64-linux-thread-multi/Moose.pm line 57
Moose::with('Class::MOP::Class::__ANON__::SERIAL::1=HASH(0x3169560)',
'Module::Packaged::Generator::Role::UrlFetching') called
at /usr/lib/perl5/vendor_perl/5.10.1/x86_64-linux-thread-multi/Moose/Exporter.pm line 293
Moose::with('Module::Packaged::Generator::Role::UrlFetching') called
at /usr/lib/perl5/vendor_perl/5.10.1/Module/Packaged/Generator/CPAN.pm
line 25
require Module/Packaged/Generator/CPAN.pm called
at /usr/lib/perl5/vendor_perl/5.10.1/Module/Packaged/Generator.pm line
24
Module::Packaged::Generator::BEGIN() called
at /usr/lib/perl5/vendor_perl/5.10.1/Module/Packaged/Generator/CPAN.pm
line 0
eval {...} called
at /usr/lib/perl5/vendor_perl/5.10.1/Module/Packaged/Generator/CPAN.pm
line 0
require Module/Packaged/Generator.pm called at /usr/bin/pkgcpan line 35
pkgcpan::BEGIN() called
at /usr/lib/perl5/vendor_perl/5.10.1/Module/Packaged/Generator/CPAN.pm
line 0
eval {...} called
at /usr/lib/perl5/vendor_perl/5.10.1/Module/Packaged/Generator/CPAN.pm
line 0
Compilation failed in require
at /usr/lib/perl5/vendor_perl/5.10.1/Module/Packaged/Generator.pm line
24.
BEGIN failed--compilation aborted
at /usr/lib/perl5/vendor_perl/5.10.1/Module/Packaged/Generator.pm line
24.
Compilation failed in require at /usr/bin/pkgcpan line 35.
BEGIN failed--compilation aborted at /usr/bin/pkgcpan line 35.
>
> > The rest should be quite easy once the package is backported ( and
> > tested ).
>
> can you (or someone else) please have a look to previous msg to get the
> correct invocation and report if it works?
>
>
> > > once this is scheduled, please let me know the refresh rate and the url
> > > where resulting file can be downloaded. the url doesn't need to be sexy
> > > or short or whatever - it will be hidden in a perl module responsible
> > > for automatic mirroring.
> >
> > I guess once per day, on pkgcpan.mageia ?
> > ( I prefer to have descriptive domain name for the sack of self
> > documentation, so do not hesitate if you have a better one, ie something
> > that clearly tell what purpose it serve ).
>
> you mean pkgcpan.mageia.org?
yes,
> maybe that's a bit too restrictive to use a subdomain per need. i
> propose sthg such as:
>
> perl.mageia.org/files/
> perl.mageia.org/pkgcpan/
> www.mageia.org/perl/
>
> having a perl.mageia.org might be a good idea. this might even motivate
> me to work on some perl on mageia advertisement... but later on! :-)
In fact, that's easier for us, since we do have a streamlined system for
1 domain == 1 web application.
But we can also change later, if you have something else to place there.
--
Michael Scherer
More information about the Mageia-sysadm
mailing list