[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#579112: Bug#562214: libdevel-cover-perl: Warnings about having been built against different Perl version



gregor herrmann wrote:
> I'd still like to see this feature in debhelper, preferrably in <= 9,
> so I've looked at the code a bit:

> In patch 0001-dh_perl-add-S-_s_ameperl-switch-in-v9.patch I've added
> a -S switch, that adds exactly these values to ${perl:Depends}, and
> can be used with d/compat=9 and
> 
> override_dh_perl:
>     dh_perl -S

There's no reason to make this contingent on a compat level, it cannot
possibly break anything sane to add a switch.

The patch would be better if it included documentation. Concisely 
documenting how -S is different than -V and when -S should be used seems
difficult.

What packages currently have such a tight dependency on perl?

> > > How about providing a new substvar? Something like ${perl:Same}  or 
> > > ${perl:Built} that would expand to a proper >=, << dependency like the 
> > > one above.
> > > A new substvar would avoid adding command-line switches to dh_perl, 
> > > which may be hidden in a 'dh' call.
> 
> I've implemented this in
> 0002-dh_perl-add-perl-Current-and-perl-Next-substvars-in-.patch,
> again only in compat mode 9, to be used by adding
> 
>     ${perl:Current} and/or ${perl:Next}

This doesn't seem to have a strong reason to need v9 either.

But I don't see a reason to support both these methods, and the -S 
method seems simpler.

-- 
see shy jo

Attachment: signature.asc
Description: Digital signature


Reply to: