jasper: contrib -> opt

This commit is contained in:
Danny Rawlins 2021-05-08 15:06:21 +10:00
parent 7ea6e8e4af
commit 3012bcff42
4 changed files with 0 additions and 131 deletions

View File

@ -1,42 +0,0 @@
drwxr-xr-x root/root usr/
drwxr-xr-x root/root usr/bin/
-rwxr-xr-x root/root usr/bin/imgcmp
-rwxr-xr-x root/root usr/bin/imginfo
-rwxr-xr-x root/root usr/bin/jasper
-rwxr-xr-x root/root usr/bin/jiv
drwxr-xr-x root/root usr/include/
drwxr-xr-x root/root usr/include/jasper/
-rw-r--r-- root/root usr/include/jasper/jas_cm.h
-rw-r--r-- root/root usr/include/jasper/jas_compiler.h
-rw-r--r-- root/root usr/include/jasper/jas_config.h
-rw-r--r-- root/root usr/include/jasper/jas_debug.h
-rw-r--r-- root/root usr/include/jasper/jas_dll.h
-rw-r--r-- root/root usr/include/jasper/jas_fix.h
-rw-r--r-- root/root usr/include/jasper/jas_getopt.h
-rw-r--r-- root/root usr/include/jasper/jas_icc.h
-rw-r--r-- root/root usr/include/jasper/jas_image.h
-rw-r--r-- root/root usr/include/jasper/jas_init.h
-rw-r--r-- root/root usr/include/jasper/jas_malloc.h
-rw-r--r-- root/root usr/include/jasper/jas_math.h
-rw-r--r-- root/root usr/include/jasper/jas_seq.h
-rw-r--r-- root/root usr/include/jasper/jas_stream.h
-rw-r--r-- root/root usr/include/jasper/jas_string.h
-rw-r--r-- root/root usr/include/jasper/jas_tmr.h
-rw-r--r-- root/root usr/include/jasper/jas_tvp.h
-rw-r--r-- root/root usr/include/jasper/jas_types.h
-rw-r--r-- root/root usr/include/jasper/jas_version.h
-rw-r--r-- root/root usr/include/jasper/jasper.h
drwxr-xr-x root/root usr/lib/
-rw-r--r-- root/root usr/lib/libjasper.a
lrwxrwxrwx root/root usr/lib/libjasper.so -> libjasper.so.4
lrwxrwxrwx root/root usr/lib/libjasper.so.4 -> libjasper.so.4.0.0
-rwxr-xr-x root/root usr/lib/libjasper.so.4.0.0
drwxr-xr-x root/root usr/lib/pkgconfig/
-rw-r--r-- root/root usr/lib/pkgconfig/jasper.pc
drwxr-xr-x root/root usr/share/
drwxr-xr-x root/root usr/share/man/
drwxr-xr-x root/root usr/share/man/man1/
-rw-r--r-- root/root usr/share/man/man1/imgcmp.1.gz
-rw-r--r-- root/root usr/share/man/man1/imginfo.1.gz
-rw-r--r-- root/root usr/share/man/man1/jasper.1.gz
-rw-r--r-- root/root usr/share/man/man1/jiv.1.gz

View File

@ -1,6 +0,0 @@
untrusted comment: verify with /etc/ports/contrib.pub
RWSagIOpLGJF3zR6G9VJYfC2hCQfUgCYXsgEARRFMVzxjTNn9sKnz+R/gUiOBep9KDR9quo8YM6vKUc8uvDsnLYOWljnlgu/Igs=
SHA256 (Pkgfile) = 46c3cae4f80b1e6630411ecacc99955c16b9a96c0911b1f2fe242b247d92f5ec
SHA256 (.footprint) = 2663af88aeb3fd06c40efc05558af405f50dbda6d410a36f3b02f005e0f0abf0
SHA256 (jasper-2.0.28.tar.gz) = 6b4e5f682be0ab1a5acb0eeb6bf41d6ce17a658bb8e2dbda95de40100939cc88
SHA256 (jasper-1.900.1-fix-filename-buffer-overflow.patch) = f51377e9b3e4faaa6b17b2d5fcf6f6d94fe2916a65dc9c78b5a99b891f5726dc

View File

@ -1,46 +0,0 @@
# Description: Codec JPEG-2000 Part-1 standard.
# URL: https://www.ece.uvic.ca/~frodo/jasper/
# Maintainer: Danny Rawlins, crux at romster dot me
# Depends on: freeglut libjpeg-turbo xorg-libxmu
name=jasper
version=2.0.28
release=1
source=(https://github.com/jasper-software/jasper/archive/version-$version/$name-$version.tar.gz
jasper-1.900.1-fix-filename-buffer-overflow.patch)
build() {
cd $name-version-$version
patch -p1 -i $SRC/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,static}
local config="
-D CMAKE_INSTALL_PREFIX=/usr
-D CMAKE_INSTALL_LIBDIR=lib
-D CMAKE_BUILD_TYPE=Release
-D JAS_ENABLE_OPENGL=ON
-D JAS_ENABLE_LIBJPEG=ON
-D JAS_ENABLE_AUTOMATIC_DEPENDENCIES=OFF
-D CMAKE_SKIP_RPATH=ON
-D OpenGL_GL_PREFERENCE=GLVND"
#build static lib
( cd build-static
cmake .. $config -D JAS_ENABLE_SHARED=OFF
make
)
#build shared lib
( cd build-shared
cmake .. $config -D JAS_ENABLE_SHARED=ON
make
)
make -C build-static DESTDIR=$PKG install
make -C build-shared DESTDIR=$PKG install
rm -r $PKG/usr/share/doc
}

View File

@ -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@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