Skip to content

Commit 8e75b4d

Browse files
committedJul 15, 2017
evince: patch CVE-2017-1000083 + minor changes
This removes help for now but fixes #27388. The minor update might be related to the patch so it's included. (cherry picked from commit efe66e2)
1 parent c82b517 commit 8e75b4d

File tree

2 files changed

+17
-4
lines changed

2 files changed

+17
-4
lines changed
 

‎pkgs/desktops/gnome-3/3.22/core/evince/default.nix

+14-1
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,23 @@
44
, librsvg, gobjectIntrospection
55
, recentListSize ? null # 5 is not enough, allow passing a different number
66
, supportXPS ? false # Open XML Paper Specification via libgxps
7+
, fetchpatch, autoreconfHook
78
}:
89

910
stdenv.mkDerivation rec {
1011
inherit (import ./src.nix fetchurl) name src;
1112

12-
nativeBuildInputs = [ pkgconfig wrapGAppsHook ];
13+
patches = [
14+
(fetchpatch {
15+
name = "CVE-2017-1000083"; # https://bugzilla.gnome.org/show_bug.cgi?id=784630
16+
url = "https://git.gnome.org/browse/evince/patch/?id=fa072dbbfd96";
17+
sha256 = "12xg00jvbsh54dr2dyq2ha5a05x2bpzd1lh2k3sppq3h7a02lsjy";
18+
})
19+
];
20+
# missing help for now; fixing the autogen phase seemed too difficult
21+
postPatch = "sed '/@YELP_HELP_RULES@/d' -i help/Makefile.am";
22+
23+
nativeBuildInputs = [ pkgconfig wrapGAppsHook autoreconfHook/*for patches*/ ];
1324

1425
buildInputs = [
1526
intltool perl perlXMLParser libxml2
@@ -43,6 +54,8 @@ stdenv.mkDerivation rec {
4354
gappsWrapperArgs+=(--prefix XDG_DATA_DIRS : "${shared_mime_info}/share")
4455
'';
4556

57+
enableParallelBuilding = true;
58+
4659
doCheck = false; # would need pythonPackages.dogTail, which is missing
4760

4861
meta = with stdenv.lib; {
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# Autogenerated by maintainers/scripts/gnome.sh update
22

33
fetchurl: {
4-
name = "evince-3.22.0";
4+
name = "evince-3.22.1";
55

66
src = fetchurl {
7-
url = mirror://gnome/sources/evince/3.22/evince-3.22.0.tar.xz;
8-
sha256 = "22ebabf890057e8b43020ffdebdbb57d6a586beba031838f0f0c8a596c479d46";
7+
url = mirror://gnome/sources/evince/3.22/evince-3.22.1.tar.xz;
8+
sha256 = "f3d439db3b5a5745d26175d615a71dffa1535235b1e3aa0b85d397ea33ab231c";
99
};
1010
}

0 commit comments

Comments
 (0)