How to specify dependencies in package with perl module

Asked by Ivan Bessarabov

I'm trying to add perl module SQL::Easy http://search.cpan.org/perldoc?SQL::Easy to my ppa https://launchpad.net/~bessarabov/+archive/star

In debian/control file I have the line "Depends: ${misc:Depends}, ${perl:Depends}, libdbi-perl", but the bulidlog (https://launchpadlibrarian.net/71434528/buildlog_ubuntu-lucid-i386.libsql-easy-perl_0.02-2_FAILEDTOBUILD.txt.gz) shows that it can't locate DBI.pm

So, what is the right way of solving this problem? I can remove that test and then the build will be successful, but I don't think this is the good solution.

Question information

Language:
English Edit question
Status:
Solved
For:
Launchpad itself Edit question
Assignee:
No assignee Edit question
Solved by:
Ivan Bessarabov
Solved:
Last query:
Last reply:
Revision history for this message
William Grant (wgrant) said :
#1

The packages in Build-Depends are installed when building the package; Depends is only used when installing the package once it has been built.

You might want to look at dh-make-perl, and have a read of http://www.debian-administration.org/articles/78.

Revision history for this message
Ivan Bessarabov (bessarabov) said :
#2

Thank you, William. As you said adding the line "Build-Depends: debhelper (>= 7.2.13), libdbi-perl" to the debian/control files solves my problem.