summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/glib-2.0/glib-2.0/0001-Fix-DATADIRNAME-on-uclibc-Linux.patch
blob: d8cf269bb8e49c640daaf872d02296d354fc7ac3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
From 15f807481de53942525b48952c5b6bbb9fb66542 Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Sat, 15 Mar 2014 22:42:29 -0700
Subject: [PATCH] Fix DATADIRNAME on uclibc/Linux

translation files are always installed under PREFIX/share/locale in uclibc
based systems therefore lets set DATADIRNAME to "share".

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Upstream-Status: Pending

%% original patch: uclibc_musl_translation.patch
---
 m4macros/glib-gettext.m4 | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/m4macros/glib-gettext.m4 b/m4macros/glib-gettext.m4
index df6fbf0..47db864 100644
--- a/m4macros/glib-gettext.m4
+++ b/m4macros/glib-gettext.m4
@@ -293,6 +293,10 @@ msgstr ""
 	    CATOBJEXT=.mo
             DATADIRNAME=share
 	    ;;
+	    *-*-musl* | *-*-linux-uclibc*)
+	    CATOBJEXT=.gmo
+            DATADIRNAME=share
+	    ;;
 	    *)
 	    CATOBJEXT=.mo
             DATADIRNAME=lib
-- 
2.17.1