Bug#752989: libio-callback-perl: FTBFS with Perl 5.20: alternative dependencies
    Jonas Smedegaard 
    dr at jones.dk
       
    Sat Jun 28 07:41:46 UTC 2014
    
    
  
Quoting Niko Tyni (2014-06-28 09:03:08)
> This package fails to build from source with Perl 5.20 (currently in
> experimental) and sbuild:
> 
>   The following packages have unmet dependencies:
>    sbuild-build-depends-libio-callback-perl-dummy : Depends: perl (< 5.19) but 5.20.0-1 is to be installed
>   E: Unable to correct problems, you have held broken packages.
> 
> The problem is this dependency:
> 
>   Build-Depends: perl (<< 5.19) | libmodule-build-perl (>= 0.40),
> 
> Perhaps something like this (untested) could work?
> 
>   Build-Depends: perl (>= 5.17.1~) | libmodule-build-perl (>= 0.40), libmodule-build-perl
> 
> (The unversioned dependency would guarantee either a perl version with
>  the bundled M::B, or a separate package. The versioned alternative
>  would guarantee that the M::B version is new enough.)
> 
> I suppose we'll have to teach lintian new tricks too at some point...
Relying on a (build-)dependency being resolved by a virtual package is 
not allowed by Policy, with the reasoning that it causes 
non-deterministic behaviour.
libmodule-build-perl exists as a package, so simply favoring that over 
the perl-provided version should work _and_ be deterministic _and_ work 
on more relaxed environments permitting undetermnistic fallbacks (read: 
backporting with pbuilder or variants like cowbuilder):
  Build-Depends: libmodule-build-perl (>= 0.40) | perl (<< 5.19)
 - Jonas
-- 
 * Jonas Smedegaard - idealist & Internet-arkitekt
 * Tlf.: +45 40843136  Website: http://dr.jones.dk/
 [x] quote me freely  [ ] ask before reusing  [ ] keep private
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 949 bytes
Desc: signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-perl-maintainers/attachments/20140628/f4fd2ce9/attachment.sig>
    
    
More information about the pkg-perl-maintainers
mailing list