[med-svn] [Git][med-team/gbrowse][master] fix gd2 deprecation

Olivier Sallou (@osallou) gitlab at salsa.debian.org
Fri Sep 30 10:28:45 BST 2022



Olivier Sallou pushed to branch master at Debian Med / gbrowse


Commits:
76d8c724 by Olivier Sallou at 2022-09-30T09:28:29+00:00
fix gd2 deprecation

- - - - -


3 changed files:

- debian/changelog
- + debian/patches/fix_gd2_deprecation
- debian/patches/series


Changes:

=====================================
debian/changelog
=====================================
@@ -1,3 +1,11 @@
+gbrowse (2.56+dfsg-11) unstable; urgency=medium
+
+  * Remove gd2 deprecated calls and use png for images
+    (tests and build are fine but could not test rendering)
+    Closes: #1014797. 
+
+ -- Olivier Sallou <osallou at debian.org>  Fri, 30 Sep 2022 09:26:00 +0000
+
 gbrowse (2.56+dfsg-10) unstable; urgency=medium
 
   * Really fix watch file


=====================================
debian/patches/fix_gd2_deprecation
=====================================
@@ -0,0 +1,31 @@
+--- 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;


=====================================
debian/patches/series
=====================================
@@ -9,3 +9,4 @@ fix_runlevel.patch
 spelling.patch
 fix_whatis_entry.patch
 remove_copy_of_LoadHelper.pm.patch
+fix_gd2_deprecation



View it on GitLab: https://salsa.debian.org/med-team/gbrowse/-/commit/76d8c7247056658e9133bcc8f298ec4f1ca6e9ce

-- 
View it on GitLab: https://salsa.debian.org/med-team/gbrowse/-/commit/76d8c7247056658e9133bcc8f298ec4f1ca6e9ce
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20220930/4559975a/attachment-0001.htm>


More information about the debian-med-commit mailing list