devil: patch for jasper 2.0.17

This commit is contained in:
Đoàn Trần Công Danh 2021-04-03 09:42:04 +07:00
parent 80e01c6f67
commit 748aae80c6
2 changed files with 24 additions and 1 deletions

View File

@ -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);
}

View File

@ -5,7 +5,6 @@ revision=3
wrksrc="DevIL" wrksrc="DevIL"
build_wrksrc="DevIL" build_wrksrc="DevIL"
build_style=cmake build_style=cmake
configure_args="--enable-ILU --enable-ILUT --with-examples"
hostmakedepends="pkg-config" hostmakedepends="pkg-config"
makedepends="lcms-devel libpng-devel libmng-devel jasper-devel makedepends="lcms-devel libpng-devel libmng-devel jasper-devel
glew-devel libfreeglut-devel libopenexr-devel SDL_image-devel" glew-devel libfreeglut-devel libopenexr-devel SDL_image-devel"