On Fri, Nov 11, 2016 at 06:32:28PM +0000, Jose M Calhariz wrote:
> On 08/11/16 20:56, Niko Tyni wrote:

> > override_dh_perl:
> >     dh_perl /usr/lib/*/amanda/perl
> 
> I think the flag -V is needed, but the generated depends still lack
> perlapi-*

It's not -V (you shouldn't use that), it's because dh_perl doesn't
expand the wildcard and therefore never looks in the private plugin
directory. Sorry about the wrong tip.

You'll need to grab the host arch triplet (like x86_64-linux-gnu) to do
this properly.  This:

------------------------------------------------------------
triplet := $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)

override_dh_perl:
        dh_perl usr/lib/$(triplet)/amanda/perl/
------------------------------------------------------------

seems to work for me.

BTW, it looks like amanda-client should also depend on ${perl:Depends},
because of usr/sbin/amrestore and usr/sbin/amfetchdump.

Hope this helps,
-- 
Niko

Reply via email to