aboutsummaryrefslogtreecommitdiff
path: root/pkgs/development/libraries/cairo
diff options
context:
space:
mode:
authorRyan Burns <rtburns@protonmail.com>2020-10-17 14:22:46 -0700
committerRyan Burns <rtburns@protonmail.com>2020-10-17 14:32:44 -0700
commit6529627e13b391e3d8bf1ee22f17380be091ccf9 (patch)
treee529b1dfa1f5a8bf7a37c8347038895ba0f6a623 /pkgs/development/libraries/cairo
parent1bae8e2b28d1aa9409dcc299ae9a88474d98ce13 (diff)
cairo: fix build on darwin
Diffstat (limited to 'pkgs/development/libraries/cairo')
-rw-r--r--pkgs/development/libraries/cairo/default.nix3
-rw-r--r--pkgs/development/libraries/cairo/skip-configure-stderr-check.patch89
2 files changed, 92 insertions, 0 deletions
diff --git a/pkgs/development/libraries/cairo/default.nix b/pkgs/development/libraries/cairo/default.nix
index a414191ac0df..3a7c63165b7f 100644
--- a/pkgs/development/libraries/cairo/default.nix
+++ b/pkgs/development/libraries/cairo/default.nix
@@ -35,6 +35,9 @@ in stdenv.mkDerivation rec {
url = "https://gitlab.freedesktop.org/cairo/cairo/commit/6edf572ebb27b00d3c371ba5ae267e39d27d5b6d.patch";
sha256 = "112hgrrsmcwxh1r52brhi5lksq4pvrz4xhkzcf2iqp55jl2pb7n1";
})
+ ] ++ optionals stdenv.hostPlatform.isDarwin [
+ # Workaround https://gitlab.freedesktop.org/cairo/cairo/-/issues/121
+ ./skip-configure-stderr-check.patch
];
outputs = [ "out" "dev" "devdoc" ];
diff --git a/pkgs/development/libraries/cairo/skip-configure-stderr-check.patch b/pkgs/development/libraries/cairo/skip-configure-stderr-check.patch
new file mode 100644
index 000000000000..6deecf2a9717
--- /dev/null
+++ b/pkgs/development/libraries/cairo/skip-configure-stderr-check.patch
@@ -0,0 +1,89 @@
+https://bugs.freedesktop.org/show_bug.cgi?id=30910#c6
+
+Comment 6 Jeremy Huddleston Sequoia 2014-07-15 04:12:40 UTC
+
+Yes, it is still an issue. We just disable the buggy '"x$cairo_cc_stderr" != "x"' logic, but that's not really a portable solution for you:
+
+diff -Naurp cairo-1.12.2.orig/configure cairo-1.12.2/configure
+--- cairo-1.12.2.orig/configure 2012-04-29 11:49:59.000000000 -0700
++++ cairo-1.12.2/configure 2012-05-03 11:23:49.000000000 -0700
+@@ -18044,7 +18044,7 @@ fi
+ rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+
+- if test "x$cairo_cc_stderr" != "x"; then
++ if false; then
+ cairo_cc_flag=no
+ fi
+
+@@ -18091,7 +18091,7 @@ fi
+ rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+
+- if test "x$cairo_cc_stderr" != "x"; then
++ if false; then
+ cairo_cc_flag=no
+ fi
+
+@@ -18161,7 +18161,7 @@ fi
+ rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+
+- if test "x$cairo_cc_stderr" != "x"; then
++ if false; then
+ cairo_cc_flag=no
+ fi
+
+@@ -18217,7 +18217,7 @@ fi
+ rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+
+- if test "x$cairo_cc_stderr" != "x"; then
++ if false; then
+ cairo_cc_flag=no
+ fi
+
+@@ -19663,7 +19663,7 @@ fi
+ rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+
+- if test "x$cairo_cc_stderr" != "x"; then
++ if false; then
+ cairo_cc_flag=no
+ fi
+
+@@ -19710,7 +19710,7 @@ fi
+ rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+
+- if test "x$cairo_cc_stderr" != "x"; then
++ if false; then
+ cairo_cc_flag=no
+ fi
+
+@@ -32692,7 +32692,7 @@ fi
+ rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+
+- if test "x$cairo_cc_stderr" != "x"; then
++ if false; then
+ cairo_cc_flag=no
+ fi
+
+@@ -32811,7 +32811,7 @@ fi
+ rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+
+- if test "x$cairo_cc_stderr" != "x"; then
++ if false ; then
+ cairo_cc_flag=no
+ fi
+
+@@ -32892,7 +32892,7 @@ fi
+ rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+
+- if test "x$cairo_cc_stderr" != "x"; then
++ if false; then
+ cairo_cc_flag=no
+ fi