Commit 39404056 authored by 6t8k's avatar 6t8k Committed by Weijia Wang
Browse files

exiv2: 0.28.0 -> 0.28.1

https://github.com/Exiv2/exiv2/blob/v0.28.1/doc/ChangeLog

Fixes CVE-2023-44398 (High).

https://github.com/Exiv2/exiv2/issues/2762 is now fixed upstream, so
make `checkPhase` run unconditionally again.
parent 7aaa664c
Loading
Loading
Loading
Loading
+11 −4
Original line number Diff line number Diff line
{ lib
, stdenv
, fetchFromGitHub
, fetchpatch
, cmake
, doxygen
, gettext
@@ -19,7 +20,7 @@

stdenv.mkDerivation rec {
  pname = "exiv2";
  version = "0.28.0";
  version = "0.28.1";

  outputs = [ "out" "lib" "dev" "doc" "man" ];

@@ -27,9 +28,16 @@ stdenv.mkDerivation rec {
    owner = "exiv2";
    repo = "exiv2";
    rev = "v${version}";
    hash = "sha256-nEoLJWxSJmAonCbW/iZKjLrKMj09mwEaSUXUcUu8GxU=";
    hash = "sha256-Jim8vYWyCa16LAJ1GuP8cCzhXIc2ouo6hVsHg3UQbdg=";
  };

  patches = [
    (fetchpatch {
      url = "https://github.com/Exiv2/exiv2/commit/c351c7cce317571934abf693055779a59df30d6e.patch";
      hash = "sha256-fWJT4IUBrAELl6ku0M1iTzGFX74le8Z0UzTJLU/gYls=";
    })
  ];

  nativeBuildInputs = [
    cmake
    doxygen
@@ -67,8 +75,7 @@ stdenv.mkDerivation rec {
    "doc"
  ];

  # https://github.com/Exiv2/exiv2/issues/2762
  doCheck = lib.versionOlder brotli.version "1.1.0";
  doCheck = true;

  preCheck = ''
    patchShebangs ../test/