diff options
author | Alyssa Ross <hi@alyssa.is> | 2020-07-03 03:10:03 +0000 |
---|---|---|
committer | Alyssa Ross <hi@alyssa.is> | 2020-07-15 17:44:04 +0000 |
commit | 3363122c90e65b4d3030d488252484220d18667b (patch) | |
tree | 0300e0a7ea662c1799ea2867e96785ee89b9a6a2 | |
parent | e3c59295ee9da374fdb1c792376ebcc76037babd (diff) | |
download | nixlib-3363122c90e65b4d3030d488252484220d18667b.tar nixlib-3363122c90e65b4d3030d488252484220d18667b.tar.gz nixlib-3363122c90e65b4d3030d488252484220d18667b.tar.bz2 nixlib-3363122c90e65b4d3030d488252484220d18667b.tar.lz nixlib-3363122c90e65b4d3030d488252484220d18667b.tar.xz nixlib-3363122c90e65b4d3030d488252484220d18667b.tar.zst nixlib-3363122c90e65b4d3030d488252484220d18667b.zip |
gd: fix "Error: Problem doing text layout"
This backport allows the Wayland documentation to be successfully built.
-rw-r--r-- | nixpkgs/pkgs/development/libraries/gd/default.nix | 21 | ||||
-rw-r--r-- | nixpkgs/pkgs/top-level/all-packages.nix | 1 |
2 files changed, 19 insertions, 3 deletions
diff --git a/nixpkgs/pkgs/development/libraries/gd/default.nix b/nixpkgs/pkgs/development/libraries/gd/default.nix index 4a0d918cabea..3b4533890a76 100644 --- a/nixpkgs/pkgs/development/libraries/gd/default.nix +++ b/nixpkgs/pkgs/development/libraries/gd/default.nix @@ -1,5 +1,7 @@ -{ stdenv, fetchurl -, pkgconfig +{ stdenv, fetchurl, fetchpatch +, autoconf +, automake +, pkg-config , zlib , libpng , libjpeg ? null @@ -20,11 +22,24 @@ stdenv.mkDerivation rec { }; hardeningDisable = [ "format" ]; + patches = [ + # Fixes an issue where some other packages would fail to build + # their documentation with an error like: + # "Error: Problem doing text layout" + # + # Can be removed if Wayland can still be built successfully with + # documentation. + (fetchpatch { + url = "https://github.com/libgd/libgd/commit/3dd0e308cbd2c24fde2fc9e9b707181252a2de95.patch"; + excludes = [ "tests/gdimagestringft/.gitignore" ]; + sha256 = "12iqlanl9czig9d7c3rvizrigw2iacimnmimfcny392dv9iazhl1"; + }) + ]; # -pthread gets passed to clang, causing warnings configureFlags = stdenv.lib.optional stdenv.isDarwin "--enable-werror=no"; - nativeBuildInputs = [ pkgconfig ]; + nativeBuildInputs = [ autoconf automake pkg-config ]; buildInputs = [ zlib fontconfig freetype ]; propagatedBuildInputs = [ libpng libjpeg libwebp libtiff libXpm ]; diff --git a/nixpkgs/pkgs/top-level/all-packages.nix b/nixpkgs/pkgs/top-level/all-packages.nix index 24312abd9539..480c1ca10d7c 100644 --- a/nixpkgs/pkgs/top-level/all-packages.nix +++ b/nixpkgs/pkgs/top-level/all-packages.nix @@ -11914,6 +11914,7 @@ in gf2x = callPackage ../development/libraries/gf2x {}; gd = callPackage ../development/libraries/gd { + automake = automake115x; libtiff = null; libXpm = null; }; |