pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/graphics/jasper jasper: updated to 2.0.20



details:   https://anonhg.NetBSD.org/pkgsrc/rev/7209a9e02e8c
branches:  trunk
changeset: 439225:7209a9e02e8c
user:      adam <adam%pkgsrc.org@localhost>
date:      Mon Sep 14 17:47:13 2020 +0000

description:
jasper: updated to 2.0.20

2.0.20

* fixed several ISO/IEC 15444-4 conformance bugs

* fixed new variant of CVE-2016-9398

* disabled the MIF codec by default for security reasons (but it is still
  included in the library);
  in a future release, the MIF codec may also be excluded from the
  library by default

* added documentation for the I/O streams library API

diffstat:

 graphics/jasper/Makefile                                          |   5 +-
 graphics/jasper/PLIST                                             |   5 +-
 graphics/jasper/distinfo                                          |  17 ++--
 graphics/jasper/patches/patch-CMakeLists.txt                      |  29 +--------
 graphics/jasper/patches/patch-build_cmake_modules_JasOpenGL.cmake |  18 +++++
 graphics/jasper/patches/patch-src_libjasper_base_jas__stream.c    |  31 ----------
 graphics/jasper/patches/patch-src_libjasper_jp2_jp2__cod.c        |  14 ++--
 graphics/jasper/patches/patch-src_libjasper_jpc_jpc__dec.c        |  17 -----
 8 files changed, 40 insertions(+), 96 deletions(-)

diffs (225 lines):

diff -r 5f4834cd1382 -r 7209a9e02e8c graphics/jasper/Makefile
--- a/graphics/jasper/Makefile  Mon Sep 14 17:46:39 2020 +0000
+++ b/graphics/jasper/Makefile  Mon Sep 14 17:47:13 2020 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.55 2020/07/29 07:03:59 adam Exp $
+# $NetBSD: Makefile,v 1.56 2020/09/14 17:47:13 adam Exp $
 
-DISTNAME=      jasper-2.0.19
+DISTNAME=      jasper-2.0.20
 CATEGORIES=    graphics
 MASTER_SITES=  ${MASTER_SITE_GITHUB:=jasper-software/}
 GITHUB_TAG=    version-${PKGVERSION_NOREV}
@@ -15,6 +15,7 @@
 USE_LANGUAGES=         c99 c++
 USE_TOOLS+=            bash:test
 CMAKE_ARGS+=           -DALLOW_IN_SOURCE_BUILD=ON
+CMAKE_ARGS+=           -DJAS_ENABLE_DOC=OFF
 
 PKGCONFIG_OVERRIDE=    build/jasper.pc.in
 REPLACE_BASH=          test/bin/*
diff -r 5f4834cd1382 -r 7209a9e02e8c graphics/jasper/PLIST
--- a/graphics/jasper/PLIST     Mon Sep 14 17:46:39 2020 +0000
+++ b/graphics/jasper/PLIST     Mon Sep 14 17:47:13 2020 +0000
@@ -1,9 +1,10 @@
-@comment $NetBSD: PLIST,v 1.13 2017/02/22 11:53:49 ryoon Exp $
+@comment $NetBSD: PLIST,v 1.14 2020/09/14 17:47:13 adam Exp $
 bin/imgcmp
 bin/imginfo
 bin/jasper
 ${PLIST.opengl}bin/jiv
 include/jasper/jas_cm.h
+include/jasper/jas_compiler.h
 include/jasper/jas_config.h
 include/jasper/jas_debug.h
 include/jasper/jas_dll.h
@@ -31,5 +32,3 @@
 man/man1/jasper.1
 ${PLIST.opengl}man/man1/jiv.1
 share/doc/JasPer/README
-share/doc/JasPer/jasper.pdf
-share/doc/JasPer/jpeg2000.pdf
diff -r 5f4834cd1382 -r 7209a9e02e8c graphics/jasper/distinfo
--- a/graphics/jasper/distinfo  Mon Sep 14 17:46:39 2020 +0000
+++ b/graphics/jasper/distinfo  Mon Sep 14 17:47:13 2020 +0000
@@ -1,16 +1,15 @@
-$NetBSD: distinfo,v 1.33 2020/07/29 07:03:59 adam Exp $
+$NetBSD: distinfo,v 1.34 2020/09/14 17:47:13 adam Exp $
 
-SHA1 (jasper-2.0.19.tar.gz) = 32522a49abf12b2c0138d3cd705a8d9e0a0be839
-RMD160 (jasper-2.0.19.tar.gz) = 5c6377651ecbeed7f196be2586ce8b9401fcf2e0
-SHA512 (jasper-2.0.19.tar.gz) = b4e1930057587d3417678fc19c661bef21d87a7d6f79fc9486282531097792c4dc074845405c66dc036620344a900349f985a248009934333c5858242ffec655
-Size (jasper-2.0.19.tar.gz) = 1314817 bytes
-SHA1 (patch-CMakeLists.txt) = 7629fcab6bc854c51a0895449b2cdd214409fa3c
+SHA1 (jasper-2.0.20.tar.gz) = 8e525c7a5fbeaaf07d52fac609546573a1bac477
+RMD160 (jasper-2.0.20.tar.gz) = c11fff401be5a8a93f139fe8f531449493205736
+SHA512 (jasper-2.0.20.tar.gz) = d936cd1b447dc9e78472f5e8a92a7b23da90f5ae7d8487836966b6b32ec328e895a2eea5e2c9a958ec91d39f1cefe8636ddf1a6292dc116bace9d38c89a3f31f
+Size (jasper-2.0.20.tar.gz) = 1318727 bytes
+SHA1 (patch-CMakeLists.txt) = a848a73c9e717e5d6b0a98f3c27d0dcfc1dda8a5
+SHA1 (patch-build_cmake_modules_JasOpenGL.cmake) = 832cf84b0840fe1159d81c8ce92f24971da16838
 SHA1 (patch-src_appl_jiv.c) = 123f1db81a95b4ddd679ccea6f1b2c4887bf574d
-SHA1 (patch-src_libjasper_base_jas__stream.c) = 2e9ad538ab2c0191063fef06202949b435b0085e
 SHA1 (patch-src_libjasper_include_jasper_jas__config.h.in) = a512b563fb34587dab80bdea7f99ea1f1b338d1c
-SHA1 (patch-src_libjasper_jp2_jp2__cod.c) = bfbe752e105d75fbad71a01080013c7a5a8645d8
+SHA1 (patch-src_libjasper_jp2_jp2__cod.c) = d27de060384eaa80f5807bbec9be9daab839418e
 SHA1 (patch-src_libjasper_jp2_jp2__dec.c) = 2f340a0b25933873127c321b09600146cf3f765c
 SHA1 (patch-src_libjasper_jp2_jp2__enc.c) = 9a78860496f1d0ce35f94843f6a7d754a5565716
-SHA1 (patch-src_libjasper_jpc_jpc__dec.c) = f76765ff7656af6b44cd4035b26656909abe45f9
 SHA1 (patch-src_libjasper_jpc_jpc__enc.c) = 83068e4f4ec96b7f9816f3dac1f68ef6efde986f
 SHA1 (patch-src_libjasper_pnm_pnm__enc.c) = a2d5d53cd28f653f9e6e302f76c187fba50b1ce2
diff -r 5f4834cd1382 -r 7209a9e02e8c graphics/jasper/patches/patch-CMakeLists.txt
--- a/graphics/jasper/patches/patch-CMakeLists.txt      Mon Sep 14 17:46:39 2020 +0000
+++ b/graphics/jasper/patches/patch-CMakeLists.txt      Mon Sep 14 17:47:13 2020 +0000
@@ -1,10 +1,8 @@
-$NetBSD: patch-CMakeLists.txt,v 1.4 2020/07/21 07:31:28 adam Exp $
+$NetBSD: patch-CMakeLists.txt,v 1.5 2020/09/14 17:47:14 adam Exp $
 
 Remove the weird hack.
-Do not look for Doxygen.
-Support GLUT/glut.h.
 
---- CMakeLists.txt.orig        2020-07-20 13:56:40.000000000 +0000
+--- CMakeLists.txt.orig        2020-09-05 14:52:22.000000000 +0000
 +++ CMakeLists.txt
 @@ -57,11 +57,7 @@ set(JAS_SO_MINOR 0)
  set(JAS_SO_RELEASE 0)
@@ -18,26 +16,3 @@
  
  message("Shared library ABI version: ${JAS_SO_VERSION}")
  message("Shared library build version: ${JAS_SO_NAME}")
-@@ -221,7 +217,6 @@ endif()
- # Perform plaform checks.
- ################################################################################
- 
--find_package(Doxygen)
- find_package(LATEX COMPONENTS PDFLATEX)
- find_program(BASH_PROGRAM bash)
- 
-@@ -310,11 +305,13 @@ if (JAS_ENABLE_OPENGL AND OPENGL_FOUND)
-               message("GLUT include directory: ${GLUT_INCLUDE_DIR}")
-               message("GLUT libraries: ${GLUT_LIBRARIES}")
-               set(CMAKE_REQUIRED_INCLUDES ${GLUT_INCLUDE_DIR})
-+              check_include_files(GLUT/glut.h JAS_HAVE_GLUT_GLUT_H)
-               check_include_files(GL/glut.h JAS_HAVE_GL_GLUT_H)
-               check_include_files(glut.h JAS_HAVE_GLUT_H)
-               message("JAS_HAVE_GLUT_H: ${JAS_HAVE_GLUT_H}")
-               message("JAS_HAVE_GL_GLUT_H: ${JAS_HAVE_GL_GLUT_H}")
--              if (JAS_HAVE_GL_GLUT_H OR JAS_HAVE_GLUT_H)
-+              message("JAS_HAVE_GLUT_GLUT_H: ${JAS_HAVE_GL_GLUT_H}")
-+              if (JAS_HAVE_GLUT_GLUT_H OR JAS_HAVE_GL_GLUT_H OR JAS_HAVE_GLUT_H)
-                       set(JAS_HAVE_OPENGL 1)
-                       include_directories(${GLUT_INCLUDE_DIR} ${OPENGL_INCLUDE_DIR})
-               else()
diff -r 5f4834cd1382 -r 7209a9e02e8c graphics/jasper/patches/patch-build_cmake_modules_JasOpenGL.cmake
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/jasper/patches/patch-build_cmake_modules_JasOpenGL.cmake Mon Sep 14 17:47:13 2020 +0000
@@ -0,0 +1,18 @@
+$NetBSD: patch-build_cmake_modules_JasOpenGL.cmake,v 1.1 2020/09/14 17:47:14 adam Exp $
+
+Support GLUT/glut.h.
+
+--- build/cmake/modules/JasOpenGL.cmake.orig   2020-09-14 17:26:49.000000000 +0000
++++ build/cmake/modules/JasOpenGL.cmake
+@@ -19,9 +19,10 @@ if (JAS_ENABLE_OPENGL AND OPENGL_FOUND)
+               message("GLUT include directory: ${GLUT_INCLUDE_DIR}")
+               message("GLUT libraries: ${GLUT_LIBRARIES}")
+               set(CMAKE_REQUIRED_INCLUDES ${GLUT_INCLUDE_DIR})
++              check_include_files(GLUT/glut.h JAS_HAVE_GLUT_GLUT_H)
+               check_include_files(GL/glut.h JAS_HAVE_GL_GLUT_H)
+               check_include_files(glut.h JAS_HAVE_GLUT_H)
+-              if (JAS_HAVE_GL_GLUT_H OR JAS_HAVE_GLUT_H)
++              if (JAS_HAVE_GLUT_GLUT_H OR JAS_HAVE_GL_GLUT_H OR JAS_HAVE_GLUT_H)
+                       set(JAS_HAVE_OPENGL 1)
+                       include_directories(${GLUT_INCLUDE_DIR} ${OPENGL_INCLUDE_DIR})
+               else()
diff -r 5f4834cd1382 -r 7209a9e02e8c graphics/jasper/patches/patch-src_libjasper_base_jas__stream.c
--- a/graphics/jasper/patches/patch-src_libjasper_base_jas__stream.c    Mon Sep 14 17:46:39 2020 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,31 +0,0 @@
-$NetBSD: patch-src_libjasper_base_jas__stream.c,v 1.2 2016/12/16 09:44:44 he Exp $
-
-Use mkstemp instead of tmpnam-based temp file creation.
-
---- src/libjasper/base/jas_stream.c.orig       2007-01-19 21:43:05.000000000 +0000
-+++ src/libjasper/base/jas_stream.c
-@@ -517,11 +517,10 @@ jas_stream_t *jas_stream_tmpfile()
-       stream->obj_ = obj;
- 
-       /* Choose a file name. */
--      tmpnam(obj->pathname);
-+      snprintf(obj->pathname, L_tmpnam, "%stmp.XXXXXXXXXX", P_tmpdir);
- 
-       /* Open the underlying file. */
--      if ((obj->fd = open(obj->pathname, O_CREAT | O_EXCL | O_RDWR | O_TRUNC | O_BINARY,
--        JAS_STREAM_PERMS)) < 0) {
-+      if ((obj->fd = mkstemp(obj->pathname)) < 0) {
-               jas_stream_destroy(stream);
-               return 0;
-       }
-@@ -533,8 +532,8 @@ jas_stream_t *jas_stream_tmpfile()
-       For example, under Microsoft Windows the unlink operation will fail,
-       since the file is open. */
-       if (unlink(obj->pathname)) {
--              /* We will try unlinking the file again after it is closed. */
--              obj->flags |= JAS_STREAM_FILEOBJ_DELONCLOSE;
-+              jas_stream_destroy(stream);
-+              return 0;
-       }
- 
-       /* Use full buffering. */
diff -r 5f4834cd1382 -r 7209a9e02e8c graphics/jasper/patches/patch-src_libjasper_jp2_jp2__cod.c
--- a/graphics/jasper/patches/patch-src_libjasper_jp2_jp2__cod.c        Mon Sep 14 17:46:39 2020 +0000
+++ b/graphics/jasper/patches/patch-src_libjasper_jp2_jp2__cod.c        Mon Sep 14 17:47:13 2020 +0000
@@ -1,24 +1,24 @@
-$NetBSD: patch-src_libjasper_jp2_jp2__cod.c,v 1.3 2016/12/16 09:44:44 he Exp $
+$NetBSD: patch-src_libjasper_jp2_jp2__cod.c,v 1.4 2020/09/14 17:47:14 adam Exp $
 
 Only output debug info if debuglevel >= 1.
 
---- src/libjasper/jp2/jp2_cod.c.orig   2016-11-16 15:03:41.000000000 +0000
+--- src/libjasper/jp2/jp2_cod.c.orig   2020-09-05 14:52:22.000000000 +0000
 +++ src/libjasper/jp2/jp2_cod.c
-@@ -808,11 +808,15 @@ static void jp2_cmap_dumpdata(jp2_box_t 
-       jp2_cmap_t *cmap = &box->data.cmap;
+@@ -828,11 +828,15 @@ static void jp2_cmap_dumpdata(const jp2_
+ {
+       const jp2_cmap_t *cmap = &box->data.cmap;
        unsigned int i;
-       jp2_cmapent_t *ent;
 -      fprintf(out, "numchans = %d\n", (int) cmap->numchans);
 +      if (jas_getdbglevel() >= 1) {
 +              fprintf(out, "numchans = %d\n", (int) cmap->numchans);
 +      }
        for (i = 0; i < cmap->numchans; ++i) {
-               ent = &cmap->ents[i];
+               const jp2_cmapent_t *ent = &cmap->ents[i];
 -              fprintf(out, "cmptno=%d; map=%d; pcol=%d\n",
 -                (int) ent->cmptno, (int) ent->map, (int) ent->pcol);
 +              if (jas_getdbglevel() >= 1) {
 +                      fprintf(out, "cmptno=%d; map=%d; pcol=%d\n",
-+                              (int) ent->cmptno, (int) ent->map, (int) ent->pcol);
++                        (int) ent->cmptno, (int) ent->map, (int) ent->pcol);
 +              }
        }
  }
diff -r 5f4834cd1382 -r 7209a9e02e8c graphics/jasper/patches/patch-src_libjasper_jpc_jpc__dec.c
--- a/graphics/jasper/patches/patch-src_libjasper_jpc_jpc__dec.c        Mon Sep 14 17:46:39 2020 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,17 +0,0 @@
-$NetBSD$
-
-Only print on debug >= 1.
-
---- src/libjasper/jpc/jpc_dec.c.old    2016-03-31 14:47:00.000000000 +0200
-+++ src/libjasper/jpc/jpc_dec.c        2016-03-31 14:48:20.000000000 +0200
-@@ -1565,7 +1565,9 @@ static int jpc_dec_process_unk(jpc_dec_t
- 
-       jas_eprintf("warning: ignoring unknown marker segment (0x%x)\n",
-         ms->id);
--      jpc_ms_dump(ms, stderr);
-+      if (jas_getdbglevel() >= 1) {
-+              jpc_ms_dump(ms, stderr);
-+      }
-       return 0;
- }
- 



Home | Main Index | Thread Index | Old Index