openjpeg: 2.3.1 -> 2.4.0
https://github.com/uclouvain/openjpeg/blob/v2.4.0/CHANGELOG.md Fixes CVE-2020-15389, CVE-2020-27841, CVE-2020-27842, CVE-2020-27843, CVE-2020-27844, and CVE-2020-27845.
This commit is contained in:
parent
8ec9d0c1b6
commit
6769eca5aa
3 changed files with 6 additions and 33 deletions
|
@ -1,10 +1,10 @@
|
||||||
{ callPackage, fetchpatch, ... } @ args:
|
{ callPackage, fetchpatch, ... } @ args:
|
||||||
|
|
||||||
callPackage ./generic.nix (args // rec {
|
callPackage ./generic.nix (args // rec {
|
||||||
version = "2.3.1";
|
version = "2.4.0";
|
||||||
branch = "2.3";
|
branch = "2.4";
|
||||||
revision = "v${version}";
|
revision = "v${version}";
|
||||||
sha256 = "1dn98d2dfa1lqyxxmab6rrcv52dyhjr4g7i4xf2w54fqsx14ynrb";
|
sha256 = "143dvy5g6v6129lzvl0r8mrgva2fppkn0zl099qmi9yi9l9h7yyf";
|
||||||
|
|
||||||
extraFlags = [
|
extraFlags = [
|
||||||
"-DOPENJPEG_INSTALL_INCLUDE_DIR=${placeholder "dev"}/include/openjpeg-${branch}"
|
"-DOPENJPEG_INSTALL_INCLUDE_DIR=${placeholder "dev"}/include/openjpeg-${branch}"
|
||||||
|
@ -14,24 +14,8 @@ callPackage ./generic.nix (args // rec {
|
||||||
patches = [
|
patches = [
|
||||||
./fix-cmake-config-includedir.patch
|
./fix-cmake-config-includedir.patch
|
||||||
(fetchpatch {
|
(fetchpatch {
|
||||||
url = "https://github.com/uclouvain/openjpeg/commit/21399f6b7d318fcdf4406d5e88723c4922202aa3.patch";
|
url = "https://patch-diff.githubusercontent.com/raw/uclouvain/openjpeg/pull/1321.patch";
|
||||||
name = "CVE-2019-12973-1.patch";
|
sha256 = "1cjpr76nf9g65nqkfnxnjzi3bv7ifbxpc74kxxibh58pzjlp6al8";
|
||||||
sha256 = "161yvnfbzy2016qqapm0ywfgglgs1v8ljnk6fj8d2bwdh1cxxz8f";
|
|
||||||
})
|
|
||||||
(fetchpatch {
|
|
||||||
url = "https://github.com/uclouvain/openjpeg/commit/3aef207f90e937d4931daf6d411e092f76d82e66.patch";
|
|
||||||
name = "CVE-2019-12973-2.patch";
|
|
||||||
sha256 = "1jkkfw13l7nx4hxdhc7z17f4vfgqcaf09zpl235kypbxx1ygc7vq";
|
|
||||||
})
|
|
||||||
(fetchpatch {
|
|
||||||
url = "https://github.com/uclouvain/openjpeg/commit/024b8407392cb0b82b04b58ed256094ed5799e04.patch";
|
|
||||||
name = "CVE-2020-6851.patch";
|
|
||||||
sha256 = "1lfwlzqxb69cwzjp8v9lijz4c2qhf3b8m6sq1khipqlgrb3l58xw";
|
|
||||||
})
|
|
||||||
(fetchpatch {
|
|
||||||
url = "https://github.com/uclouvain/openjpeg/commit/05f9b91e60debda0e83977e5e63b2e66486f7074.patch";
|
|
||||||
name = "CVE-2020-8112.patch";
|
|
||||||
sha256 = "16kykc8wbq9kx9w9kkf3i7snak82m184qrl9bpxvkjl7h0n9aw49";
|
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
})
|
})
|
||||||
|
|
|
@ -1,14 +1,3 @@
|
||||||
--- a/cmake/OpenJPEGConfig.cmake.in
|
|
||||||
+++ b/cmake/OpenJPEGConfig.cmake.in
|
|
||||||
@@ -32,7 +32,7 @@
|
|
||||||
set(INC_DIR "@CMAKE_INSTALL_PREFIX@/@OPENJPEG_INSTALL_INCLUDE_DIR@")
|
|
||||||
file(RELATIVE_PATH PKG_TO_INC_RPATH "${PKG_DIR}" "${INC_DIR}")
|
|
||||||
|
|
||||||
- get_filename_component(OPENJPEG_INCLUDE_DIRS "${SELF_DIR}/${PKG_TO_INC_RPATH}" ABSOLUTE)
|
|
||||||
+ get_filename_component(OPENJPEG_INCLUDE_DIRS "@OPENJPEG_INSTALL_INCLUDE_DIR@" ABSOLUTE)
|
|
||||||
|
|
||||||
else()
|
|
||||||
if(EXISTS ${SELF_DIR}/OpenJPEGExports.cmake)
|
|
||||||
--- a/src/lib/openjp2/libopenjp2.pc.cmake.in
|
--- a/src/lib/openjp2/libopenjp2.pc.cmake.in
|
||||||
+++ b/src/lib/openjp2/libopenjp2.pc.cmake.in
|
+++ b/src/lib/openjp2/libopenjp2.pc.cmake.in
|
||||||
@@ -3,7 +3,7 @@
|
@@ -3,7 +3,7 @@
|
||||||
|
|
|
@ -76,7 +76,7 @@ stdenv.mkDerivation {
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "Open-source JPEG 2000 codec written in C language";
|
description = "Open-source JPEG 2000 codec written in C language";
|
||||||
homepage = "http://www.openjpeg.org/";
|
homepage = "https://www.openjpeg.org/";
|
||||||
license = licenses.bsd2;
|
license = licenses.bsd2;
|
||||||
maintainers = with maintainers; [ codyopel ];
|
maintainers = with maintainers; [ codyopel ];
|
||||||
platforms = platforms.all;
|
platforms = platforms.all;
|
||||||
|
|
Loading…
Reference in a new issue