Control: tag -1 patch
On Mon, Jul 03, 2023 at 06:00:44PM +0200, gregor herrmann wrote:
> Source: libimage-imlib2-perl
> Version: 2.03-1.1
> Severity: grave
> Tags: bookworm trixie sid
> Justification: renders package unusable
> While looking at Niko's and Dom's first rebuilds for perl 5.38, I
> noticed that libimage-imlib2-perl "successfully" builds but creates
> a basically empty package:
>
>
http://perl.debian.net/rebuild-logs/perl-5.38/libimage-imlib2-perl_2.03-1.1/libimage-imlib2-perl_2.03-1.1.buildlog
>
> dh_auto_configure -a
> dh_auto_configure: warning: Compatibility levels before 10 are deprecated (level 8 in use)
> /usr/bin/perl -I. Build.PL --installdirs vendor
> You must install the imlib2 library before you can install
> Image::Imlib2. You can obtain imlib2 from
>
http://sourceforge.net/projects/enlightenment/
[...]
> I've started to work on patch which uses pkg-config instead of
> imlib2-config; good news: The package builds (as in: actually builds
> code :)) in oldstable+stable+testing+sid and the
> perl-5.38-rebuild-repo; but the tests only pass in oldstable,
> starting with stable/bookworm (aka libimlib2-dev >= 1.10) they fail
> with:
> # Failed test at t/simple.t line 68.
> # got: '0'
> # expected: '1'
Hi, thanks for looking at this.
FWIW I found some prior art in NetBSD for the pkg-config part:
https://github.com/NetBSD/pkgsrc/blob/trunk/graphics/p5-Image-Imlib2/patches/patch-Build.PL
but yours looks good to me as well :)
I think the failing test is a bug in imlib2 1.10.0 and I've just filed #1041406 about it.
I'm attaching a workaround that might be appropriate at least until imlib2 is fixed.
--
Niko Tyni
nt...@debian.org