[arch-commits] Commit in devil/trunk (FS70085.patch PKGBUILD jasper.patch)

Laurent Carlier lcarlier at gemini.archlinux.org
Fri May 13 07:37:00 UTC 2022


    Date: Friday, May 13, 2022 @ 07:37:00
  Author: lcarlier
Revision: 1200699

upgpkg: devil 1.8.0-6: jasper 3.0.3 rebuild

Added:
  devil/trunk/jasper.patch
Modified:
  devil/trunk/PKGBUILD
Deleted:
  devil/trunk/FS70085.patch

---------------+
 FS70085.patch |   19 -------------------
 PKGBUILD      |   12 ++++++------
 jasper.patch  |   37 +++++++++++++++++++++++++++++++++++++
 3 files changed, 43 insertions(+), 25 deletions(-)

Deleted: FS70085.patch
===================================================================
--- FS70085.patch	2022-05-13 07:36:51 UTC (rev 1200698)
+++ FS70085.patch	2022-05-13 07:37:00 UTC (rev 1200699)
@@ -1,19 +0,0 @@
-diff -ru DevIL/DevIL/src-IL/src/il_jp2.cpp DevILb/DevIL/src-IL/src/il_jp2.cpp
---- DevIL/DevIL/src-IL/src/il_jp2.cpp	2017-01-02 01:03:56.000000000 +0100
-+++ DevILb/DevIL/src-IL/src/il_jp2.cpp	2021-03-20 09:25:11.500686387 +0100
-@@ -314,13 +314,13 @@
- 
- 
- 
--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 int 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 int cnt)
- {
- 	obj;
- 	return iwrite(buf, 1, cnt);

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2022-05-13 07:36:51 UTC (rev 1200698)
+++ PKGBUILD	2022-05-13 07:37:00 UTC (rev 1200699)
@@ -1,10 +1,10 @@
-# Maintainer: Laurent Carlier <lordheavym at gmail.org>
+# Maintainer: Laurent Carlier <lordheavym at archlinux.org>
 # Contributor: damir <damir at archlinux.org>
 # Contributor: TheHoff <forums>
 
 pkgname=devil
 pkgver=1.8.0
-pkgrel=5
+pkgrel=6
 pkgdesc="Library for reading several different image formats"
 arch=('x86_64')
 url="https://sourceforge.net/projects/openil/"
@@ -14,10 +14,10 @@
 license=('GPL')
 source=(https://downloads.sourceforge.net/openil/DevIL-$pkgver.tar.gz
         soversion.patch
-        FS70085.patch)
+        jasper.patch)
 sha256sums=('0075973ee7dd89f0507873e2580ac78336452d29d34a07134b208f44e2feb709'
             'f6ef4b428fd68f0fb837af548d20ffa5ca96f3e8e4f57faca8f5a90dc48b0377'
-            '8cc6dedc65d46b2afd6364c55bdb29e259ad6df32529f2cb515998051fd8f35a')
+            'a3e1009e70be5a159250e3ea30d39f5aef1fa23eacece79e72deda51d7200159')
 
 prepare() {
   cd "${srcdir}/DevIL"
@@ -25,8 +25,8 @@
   # Add solib version number to CMakeLists.txt
   # https://github.com/DentonW/DevIL/pull/50
   patch -Np1 -i "${srcdir}/soversion.patch"
-  
-  patch -Np1 -i "${srcdir}/FS70085.patch"
+  # https://github.com/DentonW/DevIL/commit/42a62648e727e9a0217280474546de3ac69cbff1
+  patch -Np1 -i "${srcdir}/jasper.patch"
 }
 
 build() {

Added: jasper.patch
===================================================================
--- jasper.patch	                        (rev 0)
+++ jasper.patch	2022-05-13 07:37:00 UTC (rev 1200699)
@@ -0,0 +1,37 @@
+diff -Nru DevIL/DevIL/src-IL/src/il_jp2.cpp DevILb/DevIL/src-IL/src/il_jp2.cpp
+--- DevIL/DevIL/src-IL/src/il_jp2.cpp	2017-01-02 01:03:56.000000000 +0100
++++ DevILb/DevIL/src-IL/src/il_jp2.cpp	2022-05-13 09:10:05.934188618 +0200
+@@ -313,14 +313,32 @@
+ }
+ 
+ 
+-
++// Hack to compile against different versions of Jasper which expect
++// slightly different function types for their callbacks.  The defined()
++// checks are just looking for sybols that happen to have arrived around
++// the same time as the API change, so no reason they won't break in the
++// future :-(  Hopefully by the time it does nobody will care about pre-2.0.20
++// versions of jasper
++//
++// see: https://github.com/OSGeo/gdal/commit/9ef8e16e27c5fc4c491debe50bf2b7f3e94ed334
++//      https://github.com/DentonW/DevIL/issues/90
++#if defined(PRIjas_seqent)
++static ssize_t iJp2_file_read(jas_stream_obj_t *obj, char *buf, size_t cnt)
++#else
+ static int iJp2_file_read(jas_stream_obj_t *obj, char *buf, int cnt)
++#endif
+ {
+ 	obj;
+ 	return iread(buf, 1, cnt);
+ }
+ 
++#if defined(JAS_INCLUDE_JP2_CODEC)
++static ssize_t iJp2_file_write(jas_stream_obj_t *obj, const char *buf, size_t cnt)
++#elif defined(PRIjas_seqent)
++static int iJp2_file_write(jas_stream_obj_t *obj, char *buf, unsigned cnt)
++#else
+ static int iJp2_file_write(jas_stream_obj_t *obj, char *buf, int cnt)
++#endif
+ {
+ 	obj;
+ 	return iwrite(buf, 1, cnt);



More information about the arch-commits mailing list