From 79876b718582ed6f923ebe968e06d9dc5ae9eaca Mon Sep 17 00:00:00 2001 From: Igor Pashev Date: Tue, 31 Mar 2015 19:45:27 +0300 Subject: Added debian/patches/dyson-LC_IDENTIFICATION.patch --- debian/changelog | 1 + debian/patches/dyson-LC_IDENTIFICATION.patch | 36 ++++++++++++++++++++++++++++ debian/patches/series | 1 + 3 files changed, 38 insertions(+) create mode 100644 debian/patches/dyson-LC_IDENTIFICATION.patch diff --git a/debian/changelog b/debian/changelog index 8ac8610..252a3ef 100644 --- a/debian/changelog +++ b/debian/changelog @@ -6,6 +6,7 @@ lightdm (1.10.3-3+dyson1) UNRELEASED; urgency=medium * debian/rules: disable compiling of tests: FTBFS on Dyson and are not used anyway * Added SMF service for Dyson + * Added debian/patches/dyson-LC_IDENTIFICATION.patch -- Igor Pashev Tue, 31 Mar 2015 19:05:08 +0300 diff --git a/debian/patches/dyson-LC_IDENTIFICATION.patch b/debian/patches/dyson-LC_IDENTIFICATION.patch new file mode 100644 index 0000000..979c5b3 --- /dev/null +++ b/debian/patches/dyson-LC_IDENTIFICATION.patch @@ -0,0 +1,36 @@ +Index: lightdm-1.10.3/liblightdm-gobject/language.c +=================================================================== +--- lightdm-1.10.3.orig/liblightdm-gobject/language.c ++++ lightdm-1.10.3/liblightdm-gobject/language.c +@@ -224,6 +224,7 @@ lightdm_language_get_name (LightDMLangua + + if (!priv->name) + { ++#ifdef LC_IDENTIFICATION + gchar *locale = get_locale_name (priv->code); + if (locale) + { +@@ -237,6 +238,7 @@ lightdm_language_get_name (LightDMLangua + + setlocale (LC_ALL, current); + } ++#endif + if (!priv->name) + { + gchar **tokens = g_strsplit_set (priv->code, "_.@", 2); +@@ -267,6 +269,7 @@ lightdm_language_get_territory (LightDML + + if (!priv->territory && strchr (priv->code, '_')) + { ++#ifdef LC_IDENTIFICATION + gchar *locale = get_locale_name (priv->code); + if (locale) + { +@@ -280,6 +283,7 @@ lightdm_language_get_territory (LightDML + + setlocale (LC_ALL, current); + } ++#endif + if (!priv->territory) + { + gchar **tokens = g_strsplit_set (priv->code, "_.@", 3); diff --git a/debian/patches/series b/debian/patches/series index 4d88677..385ac82 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -3,3 +3,4 @@ 03_use-desktopnames-properties.patch 05_debianize-pam-files.patch 06_change-user-dirs.patch +dyson-LC_IDENTIFICATION.patch -- cgit v1.2.3