From 748aae80c6ec43b797da29f7337787c6b607b981 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Sat, 3 Apr 2021 09:42:04 +0700 Subject: [PATCH] devil: patch for jasper 2.0.17 --- srcpkgs/devil/patches/jasper-2.0.17.patch | 24 +++++++++++++++++++++++ srcpkgs/devil/template | 1 - 2 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/devil/patches/jasper-2.0.17.patch diff --git a/srcpkgs/devil/patches/jasper-2.0.17.patch b/srcpkgs/devil/patches/jasper-2.0.17.patch new file mode 100644 index 00000000000..c19ebb465b1 --- /dev/null +++ b/srcpkgs/devil/patches/jasper-2.0.17.patch @@ -0,0 +1,24 @@ + jasper 2.0.17 fixes some signed compare without breaking ABI + but it breaks API +Index: DevIL/src-IL/src/il_jp2.cpp +=================================================================== +--- DevIL/src-IL/src/il_jp2.cpp.orig ++++ DevIL/src-IL/src/il_jp2.cpp +@@ -314,15 +314,15 @@ ILboolean iLoadJp2Internal(jas_stream_t + + + +-static int iJp2_file_read(jas_stream_obj_t *obj, char *buf, int cnt) ++static int iJp2_file_read(jas_stream_obj_t *obj, char *buf, unsigned cnt) + { + obj; + return iread(buf, 1, cnt); + } + +-static int iJp2_file_write(jas_stream_obj_t *obj, char *buf, int cnt) ++static int iJp2_file_write(jas_stream_obj_t *obj, const char *buf, unsigned cnt) + { + obj; + return iwrite(buf, 1, cnt); + } + diff --git a/srcpkgs/devil/template b/srcpkgs/devil/template index e15ca174966..95bc542c6d6 100644 --- a/srcpkgs/devil/template +++ b/srcpkgs/devil/template @@ -5,7 +5,6 @@ revision=3 wrksrc="DevIL" build_wrksrc="DevIL" build_style=cmake -configure_args="--enable-ILU --enable-ILUT --with-examples" hostmakedepends="pkg-config" makedepends="lcms-devel libpng-devel libmng-devel jasper-devel glew-devel libfreeglut-devel libopenexr-devel SDL_image-devel"