pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/graphics/jasper Changes 2.0.10:



details:   https://anonhg.NetBSD.org/pkgsrc/rev/6bf3fd8f2647
branches:  trunk
changeset: 358841:6bf3fd8f2647
user:      adam <adam%pkgsrc.org@localhost>
date:      Tue Feb 21 18:24:20 2017 +0000

description:
Changes 2.0.10:
Fixed a problem in the JP2 encoder that caused a null pointer dereference when no ICC profile data is available (e.g., in the case of an unknown color space).

diffstat:

 graphics/jasper/Makefile                     |   25 +-
 graphics/jasper/PLIST                        |   18 +-
 graphics/jasper/distinfo                     |   13 +-
 graphics/jasper/options.mk                   |   18 +
 graphics/jasper/patches/patch-CMakeLists.txt |   18 +
 graphics/jasper/patches/patch-CVE-2016-8654  |  119 ---------
 graphics/jasper/patches/patch-configure      |  341 ---------------------------
 7 files changed, 59 insertions(+), 493 deletions(-)

diffs (truncated from 614 to 300 lines):

diff -r f723e0e70ebc -r 6bf3fd8f2647 graphics/jasper/Makefile
--- a/graphics/jasper/Makefile  Tue Feb 21 17:51:28 2017 +0000
+++ b/graphics/jasper/Makefile  Tue Feb 21 18:24:20 2017 +0000
@@ -1,7 +1,6 @@
-# $NetBSD: Makefile,v 1.45 2016/12/17 23:02:51 dholland Exp $
+# $NetBSD: Makefile,v 1.46 2017/02/21 18:24:20 adam Exp $
 
-DISTNAME=      jasper-1.900.29
-PKGREVISION=   1
+DISTNAME=      jasper-2.0.10
 CATEGORIES=    graphics
 MASTER_SITES=  http://www.ece.uvic.ca/~mdadams/jasper/software/
 
@@ -10,25 +9,13 @@
 COMMENT=       Software-based reference implementation of the JPEG-2000 codec
 LICENSE=       modified-bsd
 
-USE_LANGUAGES=         c99
-USE_LIBTOOL=           yes
-GNU_CONFIGURE=         yes
-CONFIGURE_ARGS+=       --enable-shared --without-x --disable-opengl
-
-USE_TOOLS+=            gmake
-USE_TOOLS+=            pkg-config
+USE_CMAKE=             yes
+USE_LANGUAGES=         c99 c++
+CMAKE_ARGS+=           -DALLOW_IN_SOURCE_BUILD=ON
 
 PKGCONFIG_OVERRIDE=    pkgconfig/jasper.pc
 
-# The solaris stdbool.h requires c99 which is fine for jasper, but
-# not so good for things that depend upon jasper.  See PR#43901
-CONFIGURE_ENV.SunOS+=  ac_cv_header_stdbool_h=no
-
-INSTALLATION_DIRS+=    share/doc/jasper
-
-post-install:
-       ${INSTALL_DATA} ${WRKSRC}/doc/jasper.pdf ${DESTDIR}${PREFIX}/share/doc/jasper
-       ${INSTALL_DATA} ${WRKSRC}/doc/jpeg2000.pdf ${DESTDIR}${PREFIX}/share/doc/jasper
+.include "options.mk"
 
 .include "../../mk/jpeg.buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r f723e0e70ebc -r 6bf3fd8f2647 graphics/jasper/PLIST
--- a/graphics/jasper/PLIST     Tue Feb 21 17:51:28 2017 +0000
+++ b/graphics/jasper/PLIST     Tue Feb 21 18:24:20 2017 +0000
@@ -1,11 +1,12 @@
-@comment $NetBSD: PLIST,v 1.10 2016/12/16 09:44:44 he Exp $
+@comment $NetBSD: PLIST,v 1.11 2017/02/21 18:24:20 adam Exp $
 bin/imgcmp
 bin/imginfo
 bin/jasper
-bin/tmrdemo
+${PLIST.opengl}bin/jiv
 include/jasper/jas_cm.h
 include/jasper/jas_config.h
 include/jasper/jas_debug.h
+include/jasper/jas_dll.h
 include/jasper/jas_fix.h
 include/jasper/jas_getopt.h
 include/jasper/jas_icc.h
@@ -21,11 +22,14 @@
 include/jasper/jas_types.h
 include/jasper/jas_version.h
 include/jasper/jasper.h
-lib/libjasper.la
+lib/libjasper.so
+lib/libjasper.so.4
+lib/libjasper.so.4.0.0
+lib/pkgconfig/jasper.pc
 man/man1/imgcmp.1
 man/man1/imginfo.1
 man/man1/jasper.1
-man/man1/jiv.1
-share/doc/jasper/jasper.pdf
-share/doc/jasper/jpeg2000.pdf
-lib/pkgconfig/jasper.pc
+${PLIST.opengl}man/man1/jiv.1
+share/doc/JasPer/README
+share/doc/JasPer/jasper.pdf
+share/doc/JasPer/jpeg2000.pdf
diff -r f723e0e70ebc -r 6bf3fd8f2647 graphics/jasper/distinfo
--- a/graphics/jasper/distinfo  Tue Feb 21 17:51:28 2017 +0000
+++ b/graphics/jasper/distinfo  Tue Feb 21 18:24:20 2017 +0000
@@ -1,11 +1,10 @@
-$NetBSD: distinfo,v 1.24 2016/12/17 23:10:25 dholland Exp $
+$NetBSD: distinfo,v 1.25 2017/02/21 18:24:20 adam Exp $
 
-SHA1 (jasper-1.900.29.tar.gz) = 6d50e5ea9e822ad5f88f4451819acab2e3b47f8e
-RMD160 (jasper-1.900.29.tar.gz) = 4ae47353f3dc086b3a11eff86ec7fb57d598c6fb
-SHA512 (jasper-1.900.29.tar.gz) = fdf557889660b9068e3712ff809fe7d4ab0855e1afff9a39eb19763599b4e747472743e4c49a42f7d38beadc6a0aa7a7b402422422853e8bb6d683def81b1544
-Size (jasper-1.900.29.tar.gz) = 1746319 bytes
-SHA1 (patch-CVE-2016-8654) = 99eaf8432aa681b8a5f4116928b7537f3de05213
-SHA1 (patch-configure) = 14039911be04b88559e40f20a01bb46fd0db4488
+SHA1 (jasper-2.0.10.tar.gz) = 42518b05fd73242f8ee8047d2e35e0275a697a5f
+RMD160 (jasper-2.0.10.tar.gz) = 5c13f11b2f5f7eb2ef161e2e691398c3d65bfeba
+SHA512 (jasper-2.0.10.tar.gz) = 3cc08c9bc1f9ad1e4bac78a3246d6ee1a35a75d5b89b3b0f27cb5980420101256a2e05eeb7bf8a0c73d1a73c044b83b4cbca441c1418dced53d7a142e69129ed
+Size (jasper-2.0.10.tar.gz) = 1672392 bytes
+SHA1 (patch-CMakeLists.txt) = 6e8705e6231bd9e2b31bc2f91aa495af32dd9d3a
 SHA1 (patch-src_libjasper_base_jas__seq.c) = a0208cd0271388ae0fdc2e359da3223a35a7ae14
 SHA1 (patch-src_libjasper_base_jas__stream.c) = 2e9ad538ab2c0191063fef06202949b435b0085e
 SHA1 (patch-src_libjasper_jp2_jp2__cod.c) = bfbe752e105d75fbad71a01080013c7a5a8645d8
diff -r f723e0e70ebc -r 6bf3fd8f2647 graphics/jasper/options.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/jasper/options.mk        Tue Feb 21 18:24:20 2017 +0000
@@ -0,0 +1,18 @@
+# $NetBSD: options.mk,v 1.1 2017/02/21 18:24:20 adam Exp $
+
+PKG_OPTIONS_VAR=       PKG_OPTIONS.jasper
+PKG_SUPPORTED_OPTIONS= opengl
+
+.include "../../mk/bsd.options.mk"
+
+PLIST_VARS+=           opengl
+
+.if empty(PKG_OPTIONS:Mopengl)
+CMAKE_ARGS+=           -DJAS_ENABLE_OPENGL=OFF
+.else
+CMAKE_ARGS+=           -DJAS_ENABLE_OPENGL=ON
+PLIST.opengl=          yes
+.  if ${OPSYS} != "Darwin"
+.    include "../../graphics/glut/buildlink3.mk"
+.  endif
+.endif
diff -r f723e0e70ebc -r 6bf3fd8f2647 graphics/jasper/patches/patch-CMakeLists.txt
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/jasper/patches/patch-CMakeLists.txt      Tue Feb 21 18:24:20 2017 +0000
@@ -0,0 +1,18 @@
+$NetBSD: patch-CMakeLists.txt,v 1.1 2017/02/21 18:24:20 adam Exp $
+
+Remove the weird hack.
+
+--- CMakeLists.txt.orig        2017-02-21 17:54:13.000000000 +0000
++++ CMakeLists.txt
+@@ -55,11 +55,7 @@ set(JAS_SO_MINOR 0)
+ set(JAS_SO_RELEASE 0)
+ # This is a temporary hack for OSX that should be removed when JAS_SO_VERSION
+ # is next incremented.
+-if (MACOSX)
+-set(JAS_SO_NAME "5.${JAS_SO_MINOR}.${JAS_SO_RELEASE}")
+-else()
+ set(JAS_SO_NAME "${JAS_SO_VERSION}.${JAS_SO_MINOR}.${JAS_SO_RELEASE}")
+-endif()
+ 
+ message("Shared library ABI version: ${JAS_SO_VERSION}")
+ message("Shared library build version: ${JAS_SO_NAME}")
diff -r f723e0e70ebc -r 6bf3fd8f2647 graphics/jasper/patches/patch-CVE-2016-8654
--- a/graphics/jasper/patches/patch-CVE-2016-8654       Tue Feb 21 17:51:28 2017 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,119 +0,0 @@
-$NetBSD: patch-CVE-2016-8654,v 1.2 2016/12/17 23:10:25 dholland Exp $
-
-From 4a59cfaf9ab3d48fca4a15c0d2674bf7138e3d1a Mon Sep 17 00:00:00 2001
-From: Michael Adams <mdadams%ece.uvic.ca@localhost>
-Date: Sat, 26 Nov 2016 20:23:23 -0800
-Subject: [PATCH] Fixed a buffer overrun problem in the QMFB code in the JPC
- codec that was caused by a buffer being allocated with a size that was too
- small in some cases. Added a new regression test case.
-
----
- data/test/bad/PoC1.jpc       | Bin 0 -> 233 bytes
- src/libjasper/jpc/jpc_qmfb.c |  28 +++++++++++++++-------------
- 2 files changed, 15 insertions(+), 13 deletions(-)
- create mode 100644 data/test/bad/PoC1.jpc
-
-# diff --git a/data/test/bad/PoC1.jpc b/data/test/bad/PoC1.jpc
-# new file mode 100644
-# index 0000000000000000000000000000000000000000..95239547c40ebd947169f8d87ec399759d1acd3f
-# GIT binary patch
-# literal 233
-# zcmezG|38pHlYx<efuVtcK><X=Km(8g!Vtj7&dB&bh=G@t0i>9PMS)TLe+&alg2Vq5
-# z23-b5=c3falKdho1;;R5FC%XSjbu#)BLf2i9Ux(-;Fy!1uMn15oSC2Ze*yy+*u*jh
-# z#{ZKa{p#MIIpO~#?i1JcuDH+a{XxR{o@qS)=2<S+_kGs5vcd1wR*^ZWYAZ`pBG>(V
-# z>o4CL(REnycXM0m>2?DJ+q$m14-a1!FY%njRQ9-BmDw#gXoZ8CkKEbRXJ=<JubTMl
-# Q@K-MmpN6@L&;H*808TDYDF6Tf
-#
-# literal 0
-# HcmV?d00001
-
-diff --git src/libjasper/jpc/jpc_qmfb.c src/libjasper/jpc/jpc_qmfb.c
-index 45be24e..f26070f 100644
---- src/libjasper/jpc/jpc_qmfb.c
-+++ src/libjasper/jpc/jpc_qmfb.c
-@@ -374,7 +374,7 @@ void jpc_qmfb_split_col(jpc_fix_t *a, int numrows, int stride,
-       register jpc_fix_t *dstptr;
-       register int n;
-       register int m;
--      int hstartcol;
-+      int hstartrow;
- 
-       /* Get a buffer. */
-       if (bufsize > QMFB_SPLITBUFSIZE) {
-@@ -385,9 +385,9 @@ void jpc_qmfb_split_col(jpc_fix_t *a, int numrows, int stride,
-       }
- 
-       if (numrows >= 2) {
--              hstartcol = (numrows + 1 - parity) >> 1;
--              // ORIGINAL (WRONG): m = (parity) ? hstartcol : (numrows - hstartcol);
--              m = numrows - hstartcol;
-+              hstartrow = (numrows + 1 - parity) >> 1;
-+              // ORIGINAL (WRONG): m = (parity) ? hstartrow : (numrows - hstartrow);
-+              m = numrows - hstartrow;
- 
-               /* Save the samples destined for the highpass channel. */
-               n = m;
-@@ -408,7 +408,7 @@ void jpc_qmfb_split_col(jpc_fix_t *a, int numrows, int stride,
-                       srcptr += stride << 1;
-               }
-               /* Copy the saved samples into the highpass channel. */
--              dstptr = &a[hstartcol * stride];
-+              dstptr = &a[hstartrow * stride];
-               srcptr = buf;
-               n = m;
-               while (n-- > 0) {
-@@ -439,20 +439,21 @@ void jpc_qmfb_split_colgrp(jpc_fix_t *a, int numrows, int stride,
-       register int n;
-       register int i;
-       int m;
--      int hstartcol;
-+      int hstartrow;
- 
-       /* Get a buffer. */
-       if (bufsize > QMFB_SPLITBUFSIZE) {
--              if (!(buf = jas_alloc2(bufsize, sizeof(jpc_fix_t)))) {
-+              if (!(buf = jas_alloc3(bufsize, JPC_QMFB_COLGRPSIZE,
-+                sizeof(jpc_fix_t)))) {
-                       /* We have no choice but to commit suicide in this case. */
-                       abort();
-               }
-       }
- 
-       if (numrows >= 2) {
--              hstartcol = (numrows + 1 - parity) >> 1;
--              // ORIGINAL (WRONG): m = (parity) ? hstartcol : (numrows - hstartcol);
--              m = numrows - hstartcol;
-+              hstartrow = (numrows + 1 - parity) >> 1;
-+              // ORIGINAL (WRONG): m = (parity) ? hstartrow : (numrows - hstartrow);
-+              m = numrows - hstartrow;
- 
-               /* Save the samples destined for the highpass channel. */
-               n = m;
-@@ -485,7 +486,7 @@ void jpc_qmfb_split_colgrp(jpc_fix_t *a, int numrows, int stride,
-                       srcptr += stride << 1;
-               }
-               /* Copy the saved samples into the highpass channel. */
--              dstptr = &a[hstartcol * stride];
-+              dstptr = &a[hstartrow * stride];
-               srcptr = buf;
-               n = m;
-               while (n-- > 0) {
-@@ -526,7 +527,7 @@ void jpc_qmfb_split_colres(jpc_fix_t *a, int numrows, int numcols,
- 
-       /* Get a buffer. */
-       if (bufsize > QMFB_SPLITBUFSIZE) {
--              if (!(buf = jas_alloc2(bufsize, sizeof(jpc_fix_t)))) {
-+              if (!(buf = jas_alloc3(bufsize, numcols, sizeof(jpc_fix_t)))) {
-                       /* We have no choice but to commit suicide in this case. */
-                       abort();
-               }
-@@ -721,7 +722,8 @@ void jpc_qmfb_join_colgrp(jpc_fix_t *a, int numrows, int stride,
- 
-       /* Allocate memory for the join buffer from the heap. */
-       if (bufsize > QMFB_JOINBUFSIZE) {
--              if (!(buf = jas_alloc3(bufsize, JPC_QMFB_COLGRPSIZE, sizeof(jpc_fix_t)))) {
-+              if (!(buf = jas_alloc3(bufsize, JPC_QMFB_COLGRPSIZE,
-+                sizeof(jpc_fix_t)))) {
-                       /* We have no choice but to commit suicide. */
-                       abort();
-               }
diff -r f723e0e70ebc -r 6bf3fd8f2647 graphics/jasper/patches/patch-configure
--- a/graphics/jasper/patches/patch-configure   Tue Feb 21 17:51:28 2017 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,341 +0,0 @@
-$NetBSD: patch-configure,v 1.2 2016/12/16 09:44:44 he Exp $
-
-Check for C99 conformance for stdbool.h, don't just test its presence.
-
---- configure.orig     2007-01-19 21:54:48.000000000 +0000
-+++ configure  2007-08-12 20:56:30.000000000 +0000
-@@ -8286,6 +8286,163 @@ fi
- 
- fi
- 
-+echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
-+echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
-+if test "${ac_cv_header_stdbool_h+set}" = set; then
-+  echo $ECHO_N "(cached) $ECHO_C" >&6
-+else
-+  cat >conftest.$ac_ext <<_ACEOF
-+/* confdefs.h.  */
-+_ACEOF
-+cat confdefs.h >>conftest.$ac_ext
-+cat >>conftest.$ac_ext <<_ACEOF
-+/* end confdefs.h.  */
-+
-+#include <stdbool.h>
-+#ifndef bool
-+# error bool is not defined
-+#endif
-+#ifndef false



Home | Main Index | Thread Index | Old Index