[arch-commits] Commit in jasper/repos (8 files)
Antonio Rojas
arojas at archlinux.org
Wed Jul 12 16:56:08 UTC 2017
Date: Wednesday, July 12, 2017 @ 16:56:07
Author: arojas
Revision: 300158
archrelease: copy trunk to extra-i686, extra-x86_64
Added:
jasper/repos/extra-i686/PKGBUILD
(from rev 300157, jasper/trunk/PKGBUILD)
jasper/repos/extra-i686/jasper-1.900.1-fix-filename-buffer-overflow.patch
(from rev 300157, jasper/trunk/jasper-1.900.1-fix-filename-buffer-overflow.patch)
jasper/repos/extra-x86_64/PKGBUILD
(from rev 300157, jasper/trunk/PKGBUILD)
jasper/repos/extra-x86_64/jasper-1.900.1-fix-filename-buffer-overflow.patch
(from rev 300157, jasper/trunk/jasper-1.900.1-fix-filename-buffer-overflow.patch)
Deleted:
jasper/repos/extra-i686/PKGBUILD
jasper/repos/extra-i686/jasper-1.900.1-fix-filename-buffer-overflow.patch
jasper/repos/extra-x86_64/PKGBUILD
jasper/repos/extra-x86_64/jasper-1.900.1-fix-filename-buffer-overflow.patch
----------------------------------------------------------------+
/PKGBUILD | 150 ++++++++++
/jasper-1.900.1-fix-filename-buffer-overflow.patch | 74 ++++
extra-i686/PKGBUILD | 75 -----
extra-i686/jasper-1.900.1-fix-filename-buffer-overflow.patch | 37 --
extra-x86_64/PKGBUILD | 75 -----
extra-x86_64/jasper-1.900.1-fix-filename-buffer-overflow.patch | 37 --
6 files changed, 224 insertions(+), 224 deletions(-)
Deleted: extra-i686/PKGBUILD
===================================================================
--- extra-i686/PKGBUILD 2017-07-12 16:55:42 UTC (rev 300157)
+++ extra-i686/PKGBUILD 2017-07-12 16:56:07 UTC (rev 300158)
@@ -1,75 +0,0 @@
-# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
-# Maintainer: Eric Bélanger <eric at archlinux.org>
-
-pkgbase=jasper
-pkgname=('jasper' 'jasper-doc')
-pkgver=2.0.13
-pkgrel=1
-pkgdesc='Software-based implementation of the codec specified in the emerging JPEG-2000 Part-1 standard'
-url='http://www.ece.uvic.ca/~mdadams/jasper/'
-arch=('i686' 'x86_64')
-license=('custom:JasPer2.0')
-makedepends=('libjpeg' 'freeglut' 'libxmu' 'glu' 'cmake' 'doxygen')
-options=('staticlibs')
-source=(${pkgname}-${pkgver}.tar.gz::https://github.com/mdadams/jasper/archive/version-${pkgver}.tar.gz
- jasper-1.900.1-fix-filename-buffer-overflow.patch)
-sha512sums=('8c09a7b773e739a2594cd1002fe66f79ea4336f7de7c97267ab976c06ba075468a7f3c8731dff13a98221cd11d3f2bf8dcddb3fc2c2fc7d7c5ba402bcd3f9fd8'
- 'b8d798bf75523c5db263783e42c653dd0cb03deee90be32eddf878bb6893cca02abadd94de6a8c737a5b7fe76f7fb245979f010765e6a95fc520b215e3a2a7f0')
-
-prepare() {
- cd ${pkgbase}-version-${pkgver}
- patch -p1 < "${srcdir}/jasper-1.900.1-fix-filename-buffer-overflow.patch"
- sed -r 's|(CMAKE_SKIP_BUILD_RPATH) FALSE|\1 TRUE|g' -i CMakeLists.txt
- mkdir -p build-shared build-static
-}
-
-build() {
- cd ${pkgbase}-version-${pkgver}
- local options=(
- -DCMAKE_INSTALL_PREFIX=/usr
- -DCMAKE_INSTALL_LIBDIR=lib
- -DCMAKE_BUILD_TYPE=Release
- -DJAS_ENABLE_OPENGL=ON
- -DJAS_ENABLE_LIBJPEG=ON
- -DJAS_ENABLE_AUTOMATIC_DEPENDENCIES=OFF
- -DCMAKE_SKIP_RPATH=ON
- )
- msg2 "Building static lib..."
- (cd build-static
- cmake ${options[@]} -DJAS_ENABLE_SHARED=OFF ..
- make
- )
- msg2 "Building shared lib..."
- (cd build-shared
- cmake ${options[@]} -DJAS_ENABLE_SHARED=ON ..
- make
- )
-}
-
-check() {
- cd ${pkgbase}-version-${pkgver}/build-static
- make -j1 test
-}
-
-package_jasper() {
- depends=('libjpeg')
- optdepends=('jasper-doc: documentation'
- 'freeglut: jiv support'
- 'glu: jiv support')
- cd ${pkgbase}-version-${pkgver}
- make -C build-static DESTDIR="${pkgdir}" install
- make -C build-shared DESTDIR="${pkgdir}" install
- install -Dm 644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
- rm -r "${pkgdir}/usr/share/doc"
-}
-
-package_jasper-doc() {
- pkgdesc+=' (documentation)'
- optdepends=('jasper')
- cd ${pkgbase}-version-${pkgver}
- make -C build-shared DESTDIR="${pkgdir}" install
- install -Dm 644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
- rm -rf "${pkgdir}/usr/"{bin,include,lib,share/man}
-}
-
-# vim: ts=2 sw=2 et:
Copied: jasper/repos/extra-i686/PKGBUILD (from rev 300157, jasper/trunk/PKGBUILD)
===================================================================
--- extra-i686/PKGBUILD (rev 0)
+++ extra-i686/PKGBUILD 2017-07-12 16:56:07 UTC (rev 300158)
@@ -0,0 +1,75 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Maintainer: Eric Bélanger <eric at archlinux.org>
+
+pkgbase=jasper
+pkgname=('jasper' 'jasper-doc')
+pkgver=2.0.13
+pkgrel=2
+pkgdesc='Software-based implementation of the codec specified in the emerging JPEG-2000 Part-1 standard'
+url='http://www.ece.uvic.ca/~mdadams/jasper/'
+arch=('i686' 'x86_64')
+license=('custom:JasPer2.0')
+makedepends=('libjpeg' 'freeglut' 'libxmu' 'glu' 'cmake' 'doxygen')
+options=('staticlibs')
+source=(${pkgname}-${pkgver}.tar.gz::https://github.com/mdadams/jasper/archive/version-${pkgver}.tar.gz
+ jasper-1.900.1-fix-filename-buffer-overflow.patch)
+sha512sums=('8c09a7b773e739a2594cd1002fe66f79ea4336f7de7c97267ab976c06ba075468a7f3c8731dff13a98221cd11d3f2bf8dcddb3fc2c2fc7d7c5ba402bcd3f9fd8'
+ 'b8d798bf75523c5db263783e42c653dd0cb03deee90be32eddf878bb6893cca02abadd94de6a8c737a5b7fe76f7fb245979f010765e6a95fc520b215e3a2a7f0')
+
+prepare() {
+ cd ${pkgbase}-version-${pkgver}
+ patch -p1 < "${srcdir}/jasper-1.900.1-fix-filename-buffer-overflow.patch"
+ sed -r 's|(CMAKE_SKIP_BUILD_RPATH) FALSE|\1 TRUE|g' -i CMakeLists.txt
+ mkdir -p build-shared build-static
+}
+
+build() {
+ cd ${pkgbase}-version-${pkgver}
+ local options=(
+ -DCMAKE_INSTALL_PREFIX=/usr
+ -DCMAKE_INSTALL_LIBDIR=lib
+ -DCMAKE_BUILD_TYPE=Release
+ -DJAS_ENABLE_OPENGL=ON
+ -DJAS_ENABLE_LIBJPEG=ON
+ -DJAS_ENABLE_AUTOMATIC_DEPENDENCIES=OFF
+ -DCMAKE_SKIP_RPATH=ON
+ )
+ msg2 "Building static lib..."
+ (cd build-static
+ cmake ${options[@]} -DJAS_ENABLE_SHARED=OFF ..
+ make
+ )
+ msg2 "Building shared lib..."
+ (cd build-shared
+ cmake ${options[@]} -DJAS_ENABLE_SHARED=ON ..
+ make
+ )
+}
+
+check() {
+ cd ${pkgbase}-version-${pkgver}/build-static
+ make -j1 test
+}
+
+package_jasper() {
+ depends=('libjpeg')
+ optdepends=('jasper-doc: documentation'
+ 'freeglut: jiv support'
+ 'glu: jiv support')
+ cd ${pkgbase}-version-${pkgver}
+ make -C build-static DESTDIR="${pkgdir}" install
+ make -C build-shared DESTDIR="${pkgdir}" install
+ install -Dm 644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+ rm -r "${pkgdir}/usr/share/doc"
+}
+
+package_jasper-doc() {
+ pkgdesc+=' (documentation)'
+ optdepends=('jasper')
+ cd ${pkgbase}-version-${pkgver}
+ make -C build-shared DESTDIR="${pkgdir}" install
+ install -Dm 644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+ rm -rf "${pkgdir}/usr/"{bin,include,lib,share/man}
+}
+
+# vim: ts=2 sw=2 et:
Deleted: extra-i686/jasper-1.900.1-fix-filename-buffer-overflow.patch
===================================================================
--- extra-i686/jasper-1.900.1-fix-filename-buffer-overflow.patch 2017-07-12 16:55:42 UTC (rev 300157)
+++ extra-i686/jasper-1.900.1-fix-filename-buffer-overflow.patch 2017-07-12 16:56:07 UTC (rev 300158)
@@ -1,37 +0,0 @@
-Description: Filename buffer overflow fix
- This patch fixes a security hole by a bad buffer size handling.
-Author: Roland Stigge <stigge at antcom.de>
-Bug-Debian: http://bugs.debian.org/645118
-
---- a/src/libjasper/include/jasper/jas_stream.h
-+++ b/src/libjasper/include/jasper/jas_stream.h
-@@ -77,6 +77,7 @@
- #include <jasper/jas_config.h>
-
- #include <stdio.h>
-+#include <limits.h>
- #if defined(JAS_HAVE_FCNTL_H)
- #include <fcntl.h>
- #endif
-@@ -99,6 +100,12 @@ extern "C" {
- #define O_BINARY 0
- #endif
-
-+#ifdef PATH_MAX
-+#define JAS_PATH_MAX PATH_MAX
-+#else
-+#define JAS_PATH_MAX 4096
-+#endif
-+
- /*
- * Stream open flags.
- */
-@@ -251,7 +258,7 @@ typedef struct {
- typedef struct {
- int fd;
- int flags;
-- char pathname[L_tmpnam + 1];
-+ char pathname[JAS_PATH_MAX + 1];
- } jas_stream_fileobj_t;
-
- #define JAS_STREAM_FILEOBJ_DELONCLOSE 0x01
Copied: jasper/repos/extra-i686/jasper-1.900.1-fix-filename-buffer-overflow.patch (from rev 300157, jasper/trunk/jasper-1.900.1-fix-filename-buffer-overflow.patch)
===================================================================
--- extra-i686/jasper-1.900.1-fix-filename-buffer-overflow.patch (rev 0)
+++ extra-i686/jasper-1.900.1-fix-filename-buffer-overflow.patch 2017-07-12 16:56:07 UTC (rev 300158)
@@ -0,0 +1,37 @@
+Description: Filename buffer overflow fix
+ This patch fixes a security hole by a bad buffer size handling.
+Author: Roland Stigge <stigge at antcom.de>
+Bug-Debian: http://bugs.debian.org/645118
+
+--- a/src/libjasper/include/jasper/jas_stream.h
++++ b/src/libjasper/include/jasper/jas_stream.h
+@@ -77,6 +77,7 @@
+ #include <jasper/jas_config.h>
+
+ #include <stdio.h>
++#include <limits.h>
+ #if defined(JAS_HAVE_FCNTL_H)
+ #include <fcntl.h>
+ #endif
+@@ -99,6 +100,12 @@ extern "C" {
+ #define O_BINARY 0
+ #endif
+
++#ifdef PATH_MAX
++#define JAS_PATH_MAX PATH_MAX
++#else
++#define JAS_PATH_MAX 4096
++#endif
++
+ /*
+ * Stream open flags.
+ */
+@@ -251,7 +258,7 @@ typedef struct {
+ typedef struct {
+ int fd;
+ int flags;
+- char pathname[L_tmpnam + 1];
++ char pathname[JAS_PATH_MAX + 1];
+ } jas_stream_fileobj_t;
+
+ #define JAS_STREAM_FILEOBJ_DELONCLOSE 0x01
Deleted: extra-x86_64/PKGBUILD
===================================================================
--- extra-x86_64/PKGBUILD 2017-07-12 16:55:42 UTC (rev 300157)
+++ extra-x86_64/PKGBUILD 2017-07-12 16:56:07 UTC (rev 300158)
@@ -1,75 +0,0 @@
-# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
-# Maintainer: Eric Bélanger <eric at archlinux.org>
-
-pkgbase=jasper
-pkgname=('jasper' 'jasper-doc')
-pkgver=2.0.13
-pkgrel=1
-pkgdesc='Software-based implementation of the codec specified in the emerging JPEG-2000 Part-1 standard'
-url='http://www.ece.uvic.ca/~mdadams/jasper/'
-arch=('i686' 'x86_64')
-license=('custom:JasPer2.0')
-makedepends=('libjpeg' 'freeglut' 'libxmu' 'glu' 'cmake' 'doxygen')
-options=('staticlibs')
-source=(${pkgname}-${pkgver}.tar.gz::https://github.com/mdadams/jasper/archive/version-${pkgver}.tar.gz
- jasper-1.900.1-fix-filename-buffer-overflow.patch)
-sha512sums=('8c09a7b773e739a2594cd1002fe66f79ea4336f7de7c97267ab976c06ba075468a7f3c8731dff13a98221cd11d3f2bf8dcddb3fc2c2fc7d7c5ba402bcd3f9fd8'
- 'b8d798bf75523c5db263783e42c653dd0cb03deee90be32eddf878bb6893cca02abadd94de6a8c737a5b7fe76f7fb245979f010765e6a95fc520b215e3a2a7f0')
-
-prepare() {
- cd ${pkgbase}-version-${pkgver}
- patch -p1 < "${srcdir}/jasper-1.900.1-fix-filename-buffer-overflow.patch"
- sed -r 's|(CMAKE_SKIP_BUILD_RPATH) FALSE|\1 TRUE|g' -i CMakeLists.txt
- mkdir -p build-shared build-static
-}
-
-build() {
- cd ${pkgbase}-version-${pkgver}
- local options=(
- -DCMAKE_INSTALL_PREFIX=/usr
- -DCMAKE_INSTALL_LIBDIR=lib
- -DCMAKE_BUILD_TYPE=Release
- -DJAS_ENABLE_OPENGL=ON
- -DJAS_ENABLE_LIBJPEG=ON
- -DJAS_ENABLE_AUTOMATIC_DEPENDENCIES=OFF
- -DCMAKE_SKIP_RPATH=ON
- )
- msg2 "Building static lib..."
- (cd build-static
- cmake ${options[@]} -DJAS_ENABLE_SHARED=OFF ..
- make
- )
- msg2 "Building shared lib..."
- (cd build-shared
- cmake ${options[@]} -DJAS_ENABLE_SHARED=ON ..
- make
- )
-}
-
-check() {
- cd ${pkgbase}-version-${pkgver}/build-static
- make -j1 test
-}
-
-package_jasper() {
- depends=('libjpeg')
- optdepends=('jasper-doc: documentation'
- 'freeglut: jiv support'
- 'glu: jiv support')
- cd ${pkgbase}-version-${pkgver}
- make -C build-static DESTDIR="${pkgdir}" install
- make -C build-shared DESTDIR="${pkgdir}" install
- install -Dm 644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
- rm -r "${pkgdir}/usr/share/doc"
-}
-
-package_jasper-doc() {
- pkgdesc+=' (documentation)'
- optdepends=('jasper')
- cd ${pkgbase}-version-${pkgver}
- make -C build-shared DESTDIR="${pkgdir}" install
- install -Dm 644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
- rm -rf "${pkgdir}/usr/"{bin,include,lib,share/man}
-}
-
-# vim: ts=2 sw=2 et:
Copied: jasper/repos/extra-x86_64/PKGBUILD (from rev 300157, jasper/trunk/PKGBUILD)
===================================================================
--- extra-x86_64/PKGBUILD (rev 0)
+++ extra-x86_64/PKGBUILD 2017-07-12 16:56:07 UTC (rev 300158)
@@ -0,0 +1,75 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Maintainer: Eric Bélanger <eric at archlinux.org>
+
+pkgbase=jasper
+pkgname=('jasper' 'jasper-doc')
+pkgver=2.0.13
+pkgrel=2
+pkgdesc='Software-based implementation of the codec specified in the emerging JPEG-2000 Part-1 standard'
+url='http://www.ece.uvic.ca/~mdadams/jasper/'
+arch=('i686' 'x86_64')
+license=('custom:JasPer2.0')
+makedepends=('libjpeg' 'freeglut' 'libxmu' 'glu' 'cmake' 'doxygen')
+options=('staticlibs')
+source=(${pkgname}-${pkgver}.tar.gz::https://github.com/mdadams/jasper/archive/version-${pkgver}.tar.gz
+ jasper-1.900.1-fix-filename-buffer-overflow.patch)
+sha512sums=('8c09a7b773e739a2594cd1002fe66f79ea4336f7de7c97267ab976c06ba075468a7f3c8731dff13a98221cd11d3f2bf8dcddb3fc2c2fc7d7c5ba402bcd3f9fd8'
+ 'b8d798bf75523c5db263783e42c653dd0cb03deee90be32eddf878bb6893cca02abadd94de6a8c737a5b7fe76f7fb245979f010765e6a95fc520b215e3a2a7f0')
+
+prepare() {
+ cd ${pkgbase}-version-${pkgver}
+ patch -p1 < "${srcdir}/jasper-1.900.1-fix-filename-buffer-overflow.patch"
+ sed -r 's|(CMAKE_SKIP_BUILD_RPATH) FALSE|\1 TRUE|g' -i CMakeLists.txt
+ mkdir -p build-shared build-static
+}
+
+build() {
+ cd ${pkgbase}-version-${pkgver}
+ local options=(
+ -DCMAKE_INSTALL_PREFIX=/usr
+ -DCMAKE_INSTALL_LIBDIR=lib
+ -DCMAKE_BUILD_TYPE=Release
+ -DJAS_ENABLE_OPENGL=ON
+ -DJAS_ENABLE_LIBJPEG=ON
+ -DJAS_ENABLE_AUTOMATIC_DEPENDENCIES=OFF
+ -DCMAKE_SKIP_RPATH=ON
+ )
+ msg2 "Building static lib..."
+ (cd build-static
+ cmake ${options[@]} -DJAS_ENABLE_SHARED=OFF ..
+ make
+ )
+ msg2 "Building shared lib..."
+ (cd build-shared
+ cmake ${options[@]} -DJAS_ENABLE_SHARED=ON ..
+ make
+ )
+}
+
+check() {
+ cd ${pkgbase}-version-${pkgver}/build-static
+ make -j1 test
+}
+
+package_jasper() {
+ depends=('libjpeg')
+ optdepends=('jasper-doc: documentation'
+ 'freeglut: jiv support'
+ 'glu: jiv support')
+ cd ${pkgbase}-version-${pkgver}
+ make -C build-static DESTDIR="${pkgdir}" install
+ make -C build-shared DESTDIR="${pkgdir}" install
+ install -Dm 644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+ rm -r "${pkgdir}/usr/share/doc"
+}
+
+package_jasper-doc() {
+ pkgdesc+=' (documentation)'
+ optdepends=('jasper')
+ cd ${pkgbase}-version-${pkgver}
+ make -C build-shared DESTDIR="${pkgdir}" install
+ install -Dm 644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+ rm -rf "${pkgdir}/usr/"{bin,include,lib,share/man}
+}
+
+# vim: ts=2 sw=2 et:
Deleted: extra-x86_64/jasper-1.900.1-fix-filename-buffer-overflow.patch
===================================================================
--- extra-x86_64/jasper-1.900.1-fix-filename-buffer-overflow.patch 2017-07-12 16:55:42 UTC (rev 300157)
+++ extra-x86_64/jasper-1.900.1-fix-filename-buffer-overflow.patch 2017-07-12 16:56:07 UTC (rev 300158)
@@ -1,37 +0,0 @@
-Description: Filename buffer overflow fix
- This patch fixes a security hole by a bad buffer size handling.
-Author: Roland Stigge <stigge at antcom.de>
-Bug-Debian: http://bugs.debian.org/645118
-
---- a/src/libjasper/include/jasper/jas_stream.h
-+++ b/src/libjasper/include/jasper/jas_stream.h
-@@ -77,6 +77,7 @@
- #include <jasper/jas_config.h>
-
- #include <stdio.h>
-+#include <limits.h>
- #if defined(JAS_HAVE_FCNTL_H)
- #include <fcntl.h>
- #endif
-@@ -99,6 +100,12 @@ extern "C" {
- #define O_BINARY 0
- #endif
-
-+#ifdef PATH_MAX
-+#define JAS_PATH_MAX PATH_MAX
-+#else
-+#define JAS_PATH_MAX 4096
-+#endif
-+
- /*
- * Stream open flags.
- */
-@@ -251,7 +258,7 @@ typedef struct {
- typedef struct {
- int fd;
- int flags;
-- char pathname[L_tmpnam + 1];
-+ char pathname[JAS_PATH_MAX + 1];
- } jas_stream_fileobj_t;
-
- #define JAS_STREAM_FILEOBJ_DELONCLOSE 0x01
Copied: jasper/repos/extra-x86_64/jasper-1.900.1-fix-filename-buffer-overflow.patch (from rev 300157, jasper/trunk/jasper-1.900.1-fix-filename-buffer-overflow.patch)
===================================================================
--- extra-x86_64/jasper-1.900.1-fix-filename-buffer-overflow.patch (rev 0)
+++ extra-x86_64/jasper-1.900.1-fix-filename-buffer-overflow.patch 2017-07-12 16:56:07 UTC (rev 300158)
@@ -0,0 +1,37 @@
+Description: Filename buffer overflow fix
+ This patch fixes a security hole by a bad buffer size handling.
+Author: Roland Stigge <stigge at antcom.de>
+Bug-Debian: http://bugs.debian.org/645118
+
+--- a/src/libjasper/include/jasper/jas_stream.h
++++ b/src/libjasper/include/jasper/jas_stream.h
+@@ -77,6 +77,7 @@
+ #include <jasper/jas_config.h>
+
+ #include <stdio.h>
++#include <limits.h>
+ #if defined(JAS_HAVE_FCNTL_H)
+ #include <fcntl.h>
+ #endif
+@@ -99,6 +100,12 @@ extern "C" {
+ #define O_BINARY 0
+ #endif
+
++#ifdef PATH_MAX
++#define JAS_PATH_MAX PATH_MAX
++#else
++#define JAS_PATH_MAX 4096
++#endif
++
+ /*
+ * Stream open flags.
+ */
+@@ -251,7 +258,7 @@ typedef struct {
+ typedef struct {
+ int fd;
+ int flags;
+- char pathname[L_tmpnam + 1];
++ char pathname[JAS_PATH_MAX + 1];
+ } jas_stream_fileobj_t;
+
+ #define JAS_STREAM_FILEOBJ_DELONCLOSE 0x01
More information about the arch-commits
mailing list