summaryrefslogtreecommitdiffstats
path: root/package/pango/S25pango
diff options
context:
space:
mode:
authorThomas Petazzoni2010-05-15 16:42:23 +0200
committerThomas Petazzoni2010-05-20 22:34:29 +0200
commit832ce382c6fbd416ac562da10ba3946e3fc7b935 (patch)
tree4205757ac7b9f6108e390f629ec243b09225ce1a /package/pango/S25pango
parentsamba: only require libiconv if !BR2_ENABLE_LOCALE (diff)
downloadbuildroot-832ce382c6fbd416ac562da10ba3946e3fc7b935.tar.gz
buildroot-832ce382c6fbd416ac562da10ba3946e3fc7b935.tar.xz
buildroot-832ce382c6fbd416ac562da10ba3946e3fc7b935.zip
pango: run pango-querymodules on the target instead of on the host
We needed to build pango for the host in order to compile pango-querymodules for the host, which was used to produce /etc/pango/pango.modules. Unfortunately: * This produces an incorrect /etc/pango/pango.modules (no modules detected in my case), probably because the host pango-querymodules was looking at host pango modules * This requires to build pango for the host, which requires to build cairo for the host, which requires to build X11 for the host. To make things work and remove the dependency between pango and host-pango, we introduce a S25pango script that creates /etc/pango/pango.modules on startup if it doesn't exist, just as we do with libgtk2 for /etc/gtk-2.0/gdk-pixbuf.loaders. Since host-pango is no longer needed, we remove all definitions related to it. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/pango/S25pango')
-rw-r--r--package/pango/S25pango20
1 files changed, 20 insertions, 0 deletions
diff --git a/package/pango/S25pango b/package/pango/S25pango
new file mode 100644
index 000000000..9af9307c4
--- /dev/null
+++ b/package/pango/S25pango
@@ -0,0 +1,20 @@
+#!/bin/sh
+#
+# run pango-querymodules if needed
+
+FILE=/etc/pango/pango.modules
+
+case "$1" in
+ start|"")
+ if [ ! -f $FILE ] ; then
+ mkdir -p /etc/pango
+ /usr/bin/pango-querymodules > "$FILE"
+ fi
+ ;;
+ stop)
+ ;;
+ *)
+ echo "Usage: $0 {start|stop}" >&2
+ exit 1
+ ;;
+esac \ No newline at end of file