[Debian-med-packaging] Bug#1014797: FTBFS: test failures with new libgd3

olivier sallou osallou at debian.org
Fri Sep 30 09:49:38 BST 2022


Le ven. 30 sept. 2022 à 07:20, Andreas Tille <tille at debian.org> a écrit :

> Am Fri, Sep 30, 2022 at 02:20:26AM +0200 schrieb olivier sallou:
> > Will try to have a look, but i have no perl knowledge and software is
> quite
> > old now...
>

I have a patch. With this patch, tests are ok, but I have no way to know if
it works as expected (don't know how to test it on real case)
Basically it removes gd2 format usage to use png, see patch below. But it
could have impacts on real display.

Patch:

--- a/lib/Bio/Graphics/Browser2/CachedTrack.pm
+++ b/lib/Bio/Graphics/Browser2/CachedTrack.pm
@@ -151,7 +151,7 @@
 sub put_data {
     my $self              = shift;
     my ($gd,$map,$titles) = @_;
-    $self->{data}{gd}     = $gd->can('gd2') ? $gd->gd2 : $gd;
+    $self->{data}{gd}     = $gd->png;
     $self->{data}{map}    = $map;
     $self->{data}{titles} = $titles;
     my $datafile          = $self->datafile;
@@ -191,7 +191,7 @@
     my $gd = (ref($data->{gd})
     && ref($data->{gd})=~/^GD/)
  ? $data->{gd}
-        : GD::Image->newFromGd2Data($data->{gd});
+        : GD::Image->newFromPngData($data->{gd});
     return $gd;
 }

--- a/lib/Bio/Graphics/Browser2/Render/Slave.pm
+++ b/lib/Bio/Graphics/Browser2/Render/Slave.pm
@@ -488,7 +488,7 @@
     titles    => $titles,
     width     => $width,
     height    => $height,
-    imagedata => eval{$imagedata->gd2}};
+    imagedata => eval{$imagedata->png}};
     }
     my $content = nfreeze \%results;
     return $content;


 Olivier

>
> Alternatively we might consider removal.
>
> Kind regards
>
>     Andreas.
>
> --
> http://fam-tille.de
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-packaging/attachments/20220930/18fcd75b/attachment-0001.htm>


More information about the Debian-med-packaging mailing list