gnome-base/libgnome: remove utf-8 character from header
authorGilles Dartiguelongue <eva@gentoo.org>
Thu, 18 Jan 2018 08:06:56 +0000 (09:06 +0100)
committerGilles Dartiguelongue <eva@gentoo.org>
Thu, 18 Jan 2018 08:06:56 +0000 (09:06 +0100)
Closes: https://bugs.gentoo.org/639336
Package-Manager: Portage-2.3.19, Repoman-2.3.6

gnome-base/libgnome/files/libgnome-2.32.1-utf8-header.patch [new file with mode: 0644]
gnome-base/libgnome/libgnome-2.32.1-r1.ebuild

diff --git a/gnome-base/libgnome/files/libgnome-2.32.1-utf8-header.patch b/gnome-base/libgnome/files/libgnome-2.32.1-utf8-header.patch
new file mode 100644 (file)
index 0000000..a70dccc
--- /dev/null
@@ -0,0 +1,26 @@
+From 33313713c4f5c1de500859ff128d6fd7e3af5722 Mon Sep 17 00:00:00 2001
+From: Colin Walters <walters@verbum.org>
+Date: Mon, 7 Aug 2017 12:57:43 -0400
+Subject: gnome-config.h: Fix invalid UTF-8 in header
+
+This breaks the new Python `glib-mkenums`.
+---
+ libgnome/gnome-config.h | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/libgnome/gnome-config.h b/libgnome/gnome-config.h
+index 0c3dfe6..b9d659d 100644
+--- a/libgnome/gnome-config.h
++++ b/libgnome/gnome-config.h
+@@ -270,7 +270,7 @@ void gnome_config_clean_key_ (const char *path, gboolean priv);
+ #define gnome_config_private_clean_key(path) \
+       (gnome_config_clean_key_((path),TRUE))
+ 
+-/* returns the true filename of the config fileĀ */
++/* returns the true filename of the config file */
+ #define gnome_config_get_real_path(path) \
+       (g_build_filename (gnome_user_dir_get(),(path),NULL))
+ #define gnome_config_private_get_real_path(path) \
+-- 
+cgit v0.12
+
index d26add359071b8624a234b2290a1c4a8c457671d..7134bf05adb72bb7778e99cc440d6426109db7f3 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI="5"
@@ -40,6 +40,10 @@ src_prepare() {
        # Make sure menus have icons. People don't like change
        epatch "${FILESDIR}/${PN}-2.28.0-menus-have-icons.patch"
 
+       # Remove UTF-8 character from headers
+       # https://bugs.gentoo.org/639336
+       epatch "${FILESDIR}"/${PN}-2.32.1-utf8-header.patch
+
        use branding && epatch "${FILESDIR}"/${PN}-2.26.0-branding.patch
 
        # Default to Adwaita theme over Clearlooks to proper gtk3 support