Although there's been no new upstream release since the last Cygwin release,
there have been some bug fixes (including one that I just found to fix a crash
on 32-bit Cygwin), which warrant a new release.
I'm attaching my cygport file and the one patch that can't be gotten by
"cygport
fetch". I'm also attaching, for comparison, the cygport file from the current
Cygwin release.
There are two test failures on 32-bit Cygwin. (There were four before I fixed
the crash I mentioned above.) I've reported them upstream and hope to get them
fixed eventually.
Ken
NAME="gd"
VERSION=2.2.5
RELEASE=2
DEPEND="libwebp-devel libimagequant-devel"
CATEGORY="Libs"
SUMMARY="A library for the dynamic creation of images by programmers"
DESCRIPTION="GD is an open source code library for the dynamic creation of
images by programmers.
GD creates PNG, JPEG and GIF images, among other formats. GD is commonly used to
generate charts, graphics, thumbnails, and most anything else, on the fly.
While not
restricted to use on the web, the most common applications of GD involve web
site development."
HOMEPAGE="https://libgd.github.io/"
SRC_URI="https://github.com/libgd/libgd/releases/download/gd-${VERSION}/libgd-${VERSION}.tar.xz"
SRC_DIR="libgd-${VERSION}"
PATCH_URI+="
https://src.fedoraproject.org/cgit/rpms/gd.git/plain/gd-2.2.5-gdImageBmpPtr-double-free.patch"
PATCH_URI+="
https://src.fedoraproject.org/cgit/rpms/gd.git/plain/gd-2.2.5-upstream.patch"
PATCH_URI+=" fix_gdmalloc_alignment.patch"
PKG_NAMES="gd libgd3 libgd-devel"
gd_CATEGORY="Graphics"
gd_SUMMARY="${SUMMARY} (utilities)"
gd_CONTENTS="
usr/bin/*.exe
usr/bin/bdftogd
usr/share/doc/
"
libgd3_SUMMARY="${SUMMARY} (runtime)"
libgd3_CONTENTS="
usr/bin/cyggd-3.dll
"
libgd_devel_SUMMARY="${SUMMARY} (development)"
libgd_devel_CONTENTS="
usr/bin/*-config
usr/include/
usr/lib/
"
--- origsrc/libgd/src/gdhelpers.c 2018-11-10 15:34:10.000000000 -0500
+++ src/libgd/src/gdhelpers.c 2018-11-11 14:27:52.396640200 -0500
@@ -72,7 +72,10 @@ void * gdCalloc (size_t nmemb, size_t si
void *
gdMalloc (size_t size)
{
- return malloc (size);
+ void *ptr = NULL;
+ if (posix_memalign (&ptr, 16, size))
+ return NULL;
+ return ptr;
}
void *
NAME="gd"
VERSION=2.2.5
RELEASE=1
CATEGORY="Libs"
SUMMARY="A library for the dynamic creation of images by programmers"
DESCRIPTION="GD is an open source code library for the dynamic creation of
images by programmers.
GD creates PNG, JPEG and GIF images, among other formats. GD is commonly used to
generate charts, graphics, thumbnails, and most anything else, on the fly.
While not
restricted to use on the web, the most common applications of GD involve web
site development."
HOMEPAGE="https://libgd.github.io/"
SRC_URI="https://github.com/libgd/libgd/releases/download/gd-${VERSION}/libgd-${VERSION}.tar.xz"
SRC_DIR="libgd-${VERSION}"
PKG_NAMES="gd libgd3 libgd-devel"
gd_CATEGORY="Graphics"
gd_SUMMARY="${SUMMARY} (utilities)"
gd_CONTENTS="
usr/bin/*.exe
usr/bin/bdftogd
usr/share/doc/
"
libgd3_SUMMARY="${SUMMARY} (runtime)"
libgd3_CONTENTS="
usr/bin/cyggd-3.dll
"
libgd_devel_SUMMARY="${SUMMARY} (development)"
libgd_devel_CONTENTS="
usr/bin/*-config
usr/include/
usr/lib/
"
DIFF_EXCLUDES="Makefile.in"
src_compile() {
cd ${S}
# cygautoreconf
lndirs
cd ${B}
cygconf
cygmake
}