diff --git a/media-libs/gd/gd-2.3.2.recipe b/media-libs/gd/gd-2.3.3.recipe similarity index 95% rename from media-libs/gd/gd-2.3.2.recipe rename to media-libs/gd/gd-2.3.3.recipe index 82fddf860..2b55677ab 100644 --- a/media-libs/gd/gd-2.3.2.recipe +++ b/media-libs/gd/gd-2.3.3.recipe @@ -6,8 +6,9 @@ COPYRIGHT="1999-2020 Pierre-Alain Joye" LICENSE="Libgd" REVISION="1" SOURCE_URI="https://github.com/libgd/libgd/archive/gd-$portVersion.tar.gz" -CHECKSUM_SHA256="dcc22244d775f469bee21dce1ea42552adbb72ba0cc423f9fa6a64601b3a1893" +CHECKSUM_SHA256="24429f9d0dbe0f865aaa4b1a63558242396ba9134e6cfd32ca5e486a84483350" SOURCE_DIR="libgd-gd-$portVersion" +PATCHES="gd-$portVersion.patchset" ARCHITECTURES="all !x86_gcc2" SECONDARY_ARCHITECTURES="x86" diff --git a/media-libs/gd/patches/gd-2.3.3.patchset b/media-libs/gd/patches/gd-2.3.3.patchset new file mode 100644 index 000000000..f72ab0266 --- /dev/null +++ b/media-libs/gd/patches/gd-2.3.3.patchset @@ -0,0 +1,28 @@ +From 4cb177664a888a11039057f8122b934fe7af062c Mon Sep 17 00:00:00 2001 +From: Jerome Duval +Date: Mon, 8 Nov 2021 12:43:34 +0100 +Subject: use actuall tiff types in createFromTiffRgba + + +diff --git a/src/gd_tiff.c b/src/gd_tiff.c +index 7f72b61..3d826b1 100644 +--- a/src/gd_tiff.c ++++ b/src/gd_tiff.c +@@ -761,11 +761,11 @@ static int createFromTiffRgba(TIFF * tif, gdImagePtr im) + int color; + int width = im->sx; + int height = im->sy; +- uint32_t *buffer; +- uint32_t rgba; ++ uint32 *buffer; ++ uint32 rgba; + int success; + +- buffer = (uint32_t *) gdCalloc(sizeof(uint32_t), width * height); ++ buffer = (uint32 *) gdCalloc(sizeof(uint32), width * height); + if (!buffer) { + return GD_FAILURE; + } +-- +2.30.2 +