Bug#752928: libencode-arabic-perl: FTBFS with newer Encode: Can't locate object method "export_to_level" via package "Encode"

Niko Tyni ntyni at debian.org
Wed Jul 30 11:38:24 UTC 2014


tag 752928 patch
thanks

On Fri, Jun 27, 2014 at 11:14:11PM +0300, Niko Tyni wrote:
> Package: libencode-arabic-perl
> Version: 1.9-1
> Severity: important
> User: debian-perl at lists.debian.org
> Usertags: perl-5.20-transition
> 
> This package fails to build with a newer Encode version, either on current
> sid with the separate libencode-perl package, or with Perl 5.20.0 from
> experimental. On current sid:
> 
>   #   Failed test 'use Encode::Arabic;'
>   #   at t/00-load.t line 7.
>   #     Tried to use 'Encode::Arabic'.
>   #     Error:  Can't locate object method "export_to_level" via package "Encode" at /tmp/buildd/libencode-arabic-perl-1.9/blib/lib/Encode/Arabic/ArabTeX.pm line 110.

As noted in the upstream ticket, newer versions of Encode don't inherit
from Exporter anymore.

I don't claim to understand all the subtleties here, but I got the test
suite working by using Import::Into. There may well be simpler ways to
fix this, suggestions welcome :)

Note that this also needs a dependency information update, either
Build.PL/META.yml for upstream or debian/control for the packaging Debian.

I couldn't really work out how to use the only reverse dependency,
libelixirfm-perl, so I wasn't able to do any further testing.
-- 
Niko Tyni   ntyni at debian.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Fix-compatibility-with-newer-Encode-versions.patch
Type: text/x-diff
Size: 6083 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-perl-maintainers/attachments/20140730/3978837a/attachment.patch>


More information about the pkg-perl-maintainers mailing list