[Edinburgh-pm] making .debs with dh-make-perl
Nick Woolley
nickwoolley at yahoo.co.uk
Wed Jul 8 02:36:07 PDT 2009
I want to package some CPAN modules as debs for Ubuntu. Got as far as building
them with dh-make-perl, adapted a script from here [1] to build dependencies
automatically, but trying to install the resulting .deb(s) fails:
$ sudo dpkg -i .dh-make-perl-deps/build/libset-infinite-perl_0.63-0.0_all.deb
(Reading database ... 306263 files and directories currently installed.)
Unpacking libset-infinite-perl (from .../libset-infinite-perl_0.63-0.0_all.deb) ...
dpkg: error processing
.dh-make-perl-deps/build/libset-infinite-perl_0.63-0.0_all.deb (--install):
trying to overwrite `/usr/lib/perl/5.8/perllocal.pod', which is also in
package libdatetime-event-recurrence-perl
Errors were encountered while processing:
.dh-make-perl-deps/build/libset-infinite-perl_0.63-0.0_all.deb
It looks like the dh-make-perl default is trying to install its own
perllocal.pod instead of modifying to it using a post-install script as is
probably should. (This point also noted by someone else in a comment in [2]).
So far, googling hasn't come up with a solution, and I'd rather not reinvent one.
Murray/Aaron: I gather you use dh-make-perl? Any pointers?
Cheers
N
ps http://debian.pkgs.cpan.org/ doesn't have the modules I need.
pps I've also tried CPANPLUS::Dist::Deb/cpanp - it works and is what I'm using
for now, but [3] suggests it doesn't always get everything right. Plus it won't
build dependencies for me, and the process of manually discovering and building
dependencies is a bit painful.
1. http://www.perlmonks.org/?node_id=753543
2. http://www.debian-administration.org/articles/78
3.
http://www.opensourcery.com/blog/hans-dieter-pearcey/packaging-cpan-modules-debian
More information about the Edinburgh-pm
mailing list