Skip to content

Commit 419d8dd

Browse files
authoredOct 22, 2019
Revert "pango: 1.43.0 -> 1.44.6, fixes CVE-2019-1010238"
1 parent dd5d488 commit 419d8dd

File tree

1 file changed

+13
-14
lines changed

1 file changed

+13
-14
lines changed
 

‎pkgs/development/libraries/pango/default.nix

+13-14
Original file line numberDiff line numberDiff line change
@@ -9,24 +9,15 @@ with stdenv.lib;
99

1010
let
1111
pname = "pango";
12-
version = "1.44.6";
12+
version = "1.43.0";
1313
in stdenv.mkDerivation rec {
1414
name = "${pname}-${version}";
1515

1616
src = fetchurl {
1717
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${name}.tar.xz";
18-
sha256 = "0v7qq3fv1c0dl80d4qxsvd6cmhh4ngih3w0zc40f4dw7hfx427iy";
18+
sha256 = "1lnxldmv1a12dq5h0dlq5jyzl4w75k76dp8cn360x2ijlm9w5h6j";
1919
};
2020

21-
# 1.44.6-2 is not available from the usual mirrors yet,
22-
# so applying from gitlab
23-
patches = [
24-
(fetchpatch {
25-
url = "https://gitlab.gnome.org/GNOME/pango/commit/8a408d4f25ddb0e3d6020cdde0cd8f8a19ee8db2.patch";
26-
sha256 = "0l0hxwbijqrfvka302ijgih9jafc2ffs3d6d4v7bwynpn54lmza7";
27-
})
28-
];
29-
3021
# FIXME: docs fail on darwin
3122
outputs = [ "bin" "dev" "out" ] ++ optional (!stdenv.isDarwin) "devdoc";
3223

@@ -35,18 +26,26 @@ in stdenv.mkDerivation rec {
3526
pkgconfig gobject-introspection gtk-doc docbook_xsl docbook_xml_dtd_43
3627
];
3728
buildInputs = [
38-
fribidi
29+
harfbuzz fribidi
3930
] ++ optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [
4031
ApplicationServices
4132
Carbon
4233
CoreGraphics
4334
CoreText
4435
]);
45-
propagatedBuildInputs = [ cairo glib libintl harfbuzz ] ++
36+
propagatedBuildInputs = [ cairo glib libintl ] ++
4637
optional x11Support libXft;
4738

39+
patches = [
40+
(fetchpatch {
41+
# Add gobject-2 to .pc file
42+
url = "https://gitlab.gnome.org/GNOME/pango/commit/546f4c242d6f4fe312de3b7c918a848e5172e18d.patch";
43+
sha256 = "1cqhy4xbwx3ad7z5d1ks7smf038b9as8c6qy84rml44h0fgiq4m2";
44+
})
45+
];
46+
4847
mesonFlags = [
49-
"-Dgtk_doc=${if stdenv.isDarwin then "false" else "true"}"
48+
"-Denable_docs=${if stdenv.isDarwin then "false" else "true"}"
5049
];
5150

5251
enableParallelBuilding = true;

0 commit comments

Comments
 (0)
Please sign in to comment.