opl-perl

jozef on 2009-06-06T22:15:05

opl-perl => wtf? well, it should stand for opt perl perl :-)

  • Perl 5.10.0-22 for Lenny
  • can be found in /opt/perl/bin/perl
  • /usr/share/t/* experiment

The goal is to have Perl+modules from Squeeze (Debian/testing) available in Lenny (Debian/stable) whithout touching the system /usr/bin/perl.

Ingredients:

  • 1 Debian Lenny
  • working internet connection
  • piece of curiosity
  • ~5 minutes

Procedure:

gpg --recv-key F80BD927
gpg --fingerprint --list-key F80BD927
# check
# pub 1024D/F80BD927 2008-09-02 [expires: 2018-08-31]
# Key fingerprint = 9F84 0B8D 193E 2052 9343 A470 0B43 A050 F80B D927
gpg --armor --export F80BD927 | sudo apt-key add -

cat >> /etc/apt/sources.list <<__END__
deb http://bratislava.pm.org/debrepo/opl-perl/ unstable/
deb-src http://bratislava.pm.org/debrepo/opl-perl/ unstable/
# needed only when packaging
#deb http://bratislava.pm.org/debrepo/opl-pkg/ unstable/
#deb-src http://bratislava.pm.org/debrepo/opl-pkg/ unstable/
__END__

sudo apt-get update
apt-cache search opl- | perl -lane 'print $F[0]' | xargs sudo apt-get install -f
/opt/perl/bin/perl -V

Comments:

Did I say it's experiment? Or a proof that it's possible and a playground. :-) For example checkout the /usr/share/t/ folder after instalation. I've setup debhelper to copy the whole content of t/ folder of each package there. It seems that it's not a good idea as many tests are depending on having files outside the t/ folder, looking for t/some.pm or are looking for .pm files as for example everywhere used pod.t test. Besides there is a Module::Build with dependecies so it's a solid base to install all the rest of the CPAN via CPAN shell ;-)


I was considering a mass backport

oliver on 2009-06-09T18:31:42

Recently being pissed off with the out of date Moose in Lenny, I was considering getting a Mini-CPAN and just seeing how many packages I could blindly build with dh-make-perl. Insane?

Re:I was considering a mass backport

jozef on 2009-06-09T20:21:25

If you want to go CPAN-insane ;-) then try to install CPANPLUS::Dist::Deb and run `cpan2dist --verbose --format CPANPLUS::Dist::Deb Moose`. That should work pretty good. It will build packages for Moose and all it's recent dependencies. If you promise to try and test, I can prepare the opl-libmoose-perl :-) with the version 0.74 from Squeeze. Hmm there is 0.80 in Sid already. Another option is to do mix Debian stable/testing/unstable. This is good for a development machine.

Re:I was considering a mass backport

oliver on 2009-06-10T04:42:29

great stuff, I'll take a look, thanks!

Re:I was considering a mass backport

jozef on 2009-06-10T09:30:34

check out the http://use.perl.org/user/jozef/journal/39109, I've tried to sum-up the possibilities there are with Debian.