gnu: abseil-cpp: Patch sterror_test.
[jackhill/guix/guix.git] / gnu / packages / patches / libgnomeui-utf8.patch
CommitLineData
8fa1872a
LF
1Fixes build with Python >= 3.6:
2
3------
4Making all in libgnomeui
5make[2]: Entering directory '/tmp/guix-build-libgnomeui-2.24.5.drv-0/libgnomeui-2.24.5/libgnomeui'
6 GEN stamp-gnome-marshal.h
7 GEN stamp-gnometypebuiltins.h
8INFO: Reading ./gnome-marshal.list...
9 GEN gnome-marshal.h
10Traceback (most recent call last):
9c575023 11 File "/gnu/store/...-glib-2.54.2-bin/bin/glib-mkenums", line 688, in <module>
8fa1872a 12 process_file(fname)
9c575023 13 File "/gnu/store/...-glib-2.54.2-bin/bin/glib-mkenums", line 420, in process_file
8fa1872a 14 line = curfile.readline()
9c575023 15 File "/gnu/store/...-python-3.6.3/lib/python3.6/codecs.py", line 321, in decode
8fa1872a
LF
16 (result, consumed) = self._buffer_decode(data, self.errors, final)
17UnicodeDecodeError: 'utf-8' codec can't decode byte 0xf1 in position 1009: invalid continuation byte
18make[2]: *** [Makefile:1109: stamp-gnometypebuiltins.h] Error 1
19make[2]: Leaving directory '/tmp/guix-build-libgnomeui-2.24.5.drv-0/libgnomeui-2.24.5/libgnomeui'
20make[1]: *** [Makefile:369: all-recursive] Error 1
21make[1]: Leaving directory '/tmp/guix-build-libgnomeui-2.24.5.drv-0/libgnomeui-2.24.5'
22make: *** [Makefile:296: all] Error 2
23------
24
25Patch copied from upstream source repository:
26
27https://git.gnome.org/browse/libgnomeui/commit/?id=30334c28794ef85d8973f4ed0779b5ceed6594f2
28
29From 30334c28794ef85d8973f4ed0779b5ceed6594f2 Mon Sep 17 00:00:00 2001
30From: Colin Walters <walters@verbum.org>
31Date: Mon, 7 Aug 2017 13:15:26 -0400
32Subject: [PATCH] gnome-scores.h: Convert to UTF-8
33
34The new Python `glib-mkenums` barfs on ISO-8859-1 input.
35---
36 libgnomeui/gnome-scores.h | 2 +-
37 1 file changed, 1 insertion(+), 1 deletion(-)
38
39diff --git a/libgnomeui/gnome-scores.h b/libgnomeui/gnome-scores.h
40index 911b12d1..4e641d22 100644
41--- a/libgnomeui/gnome-scores.h
42+++ b/libgnomeui/gnome-scores.h
43@@ -27,7 +27,7 @@
44 * "High Scores" Widget
45 *
46 * AUTHOR:
47