summaryrefslogtreecommitdiffstats
path: root/patches/cairo-1.16.0
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2020-06-30 08:53:29 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2020-07-04 09:43:37 +0200
commit6cc661c3e3df13a92e3e269039af7c7f858036df (patch)
tree6d69d1d28ff0c9c159de8d48b03c4b82c0cd4bf3 /patches/cairo-1.16.0
parent5147265b72e40bec01fecb553abe2874ca5d09ae (diff)
downloadptxdist-6cc661c3e3df13a92e3e269039af7c7f858036df.tar.gz
ptxdist-6cc661c3e3df13a92e3e269039af7c7f858036df.tar.xz
cairo: version bump 1.14.12 -> 1.16.0
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'patches/cairo-1.16.0')
-rw-r--r--patches/cairo-1.16.0/0001-only-build-GL-surface-tests-if-GLX-is-enabled.patch35
l---------patches/cairo-1.16.0/autogen.sh1
-rw-r--r--patches/cairo-1.16.0/series4
3 files changed, 40 insertions, 0 deletions
diff --git a/patches/cairo-1.16.0/0001-only-build-GL-surface-tests-if-GLX-is-enabled.patch b/patches/cairo-1.16.0/0001-only-build-GL-surface-tests-if-GLX-is-enabled.patch
new file mode 100644
index 000000000..32fa1f64b
--- /dev/null
+++ b/patches/cairo-1.16.0/0001-only-build-GL-surface-tests-if-GLX-is-enabled.patch
@@ -0,0 +1,35 @@
+From: Michael Olbrich <m.olbrich@pengutronix.de>
+Date: Sun, 15 Apr 2018 13:08:23 +0200
+Subject: [PATCH] only build GL surface tests if GLX is enabled
+
+All GL surface tests use GLX. So with --enable-png (to enable tests in
+general) and --enable-gl (for CAIRO_HAS_GL_SURFACE) building fails with:
+[...]
+gl-surface-source.c:33:5: error: unknown type name 'Display'
+gl-surface-source.c:34:5: error: unknown type name 'GLXContext'
+[...]
+And similar errors for the other tests.
+
+Fix this by making sure the GL surface tests are only built is GLX is
+enabled.
+
+Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
+---
+ test/Makefile.am | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/test/Makefile.am b/test/Makefile.am
+index e3c42ea88032..a50ba376e904 100644
+--- a/test/Makefile.am
++++ b/test/Makefile.am
+@@ -17,8 +17,10 @@ endif
+ endif
+
+ if CAIRO_HAS_GL_SURFACE
++if CAIRO_HAS_GLX_FUNCTIONS
+ test_sources += $(gl_surface_test_sources)
+ endif
++endif
+
+ if CAIRO_HAS_EGL_FUNCTIONS
+ test_sources += $(egl_surface_test_sources)
diff --git a/patches/cairo-1.16.0/autogen.sh b/patches/cairo-1.16.0/autogen.sh
new file mode 120000
index 000000000..9f8a4cb7d
--- /dev/null
+++ b/patches/cairo-1.16.0/autogen.sh
@@ -0,0 +1 @@
+../autogen.sh \ No newline at end of file
diff --git a/patches/cairo-1.16.0/series b/patches/cairo-1.16.0/series
new file mode 100644
index 000000000..f9a05beb6
--- /dev/null
+++ b/patches/cairo-1.16.0/series
@@ -0,0 +1,4 @@
+# generated by git-ptx-patches
+#tag:base --start-number 1
+0001-only-build-GL-surface-tests-if-GLX-is-enabled.patch
+# 1e0e02547c4554f11314de6f8d2d431f - git-ptx-patches magic