Comment: Re:Thanks (Score 1) on 2010.07.20 7:25
<p>I have just given up handling dependencies with one debian package per cpan distribution. For some time I have thought about how to build a bundle in the most maintainable way.
<p>My current solution is to build a quite clean chroot of Debian Lenny and then use cpanm to install some modules in /usr/local and as the last step I'm making a package with everything in /usr/local. The chroot is build with:
# debootstrap --arch amd64 --variant=buildd --include=cdbs,libwww-perl lenny /mnt http://ftp.se.debian.org/debian/
And then I have a simple Makefile installing everything needed:
#!/usr/bin/make
build:
PERL_MM_USE_DEFAULT=1 perl -MCPAN -e 'CPAN::Shell->install("App::cpanminus")'
cpanm Moose AnyEvent JSON:XS Yadda:Yadda:Yadda
install:
install -d $(DESTDIR)/usr/local
cp -a /usr/local/* $(DESTDIR)/usr/local
For the cpan-to-deb buildfarm, have you looked at Jos Boumans' work with http://debian.pkgs.cpan.org/ (No, I don't considder CPANPLUS::Dist::Deb as good as the packages generated by dh_make-perl and the Debian Perl Group - but it might be a good place to start)
Read More
4 comments
<p>My current solution is to build a quite clean chroot of Debian Lenny and then use cpanm to install some modules in
# debootstrap --arch amd64 --variant=buildd --include=cdbs,libwww-perl lenny
And then I have a simple Makefile installing everything needed:
#!/usr/bin/make
build:
PERL_MM_USE_DEFAULT=1 perl -MCPAN -e 'CPAN::Shell->install("App::cpanminus")'
cpanm Moose AnyEvent JSON:XS Yadda:Yadda:Yadda
install:
install -d $(DESTDIR)/usr/local
cp -a
For the cpan-to-deb buildfarm, have you looked at Jos Boumans' work with http://debian.pkgs.cpan.org/ (No, I don't considder CPANPLUS::Dist::Deb as good as the packages generated by dh_make-perl and the Debian Perl Group - but it might be a good place to start)
