summaryrefslogtreecommitdiff
path: root/libraries
diff options
context:
space:
mode:
Diffstat (limited to 'libraries')
-rw-r--r--libraries/girara/girara.SlackBuild18
1 files changed, 13 insertions, 5 deletions
diff --git a/libraries/girara/girara.SlackBuild b/libraries/girara/girara.SlackBuild
index acee9756e9..bf5ad679c2 100644
--- a/libraries/girara/girara.SlackBuild
+++ b/libraries/girara/girara.SlackBuild
@@ -6,6 +6,8 @@
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
+# 20180903 bkw: Fix build with Russian (and possibly other non-English) locale.
+
# 20180619 bkw: Update for v0.3.0. Upstream switched from make to meson,
# so this script's no longer compatible with older versions of girara.
@@ -50,11 +52,17 @@ rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
-find -L . \
- \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \
- -exec chmod 755 {} \; -o \
- \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
- -exec chmod 644 {} \;
+find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \
+ \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+
+
+# Something in the ninja/meson build stuff is grepping the output of
+# some command, looking for a specific string in English. Building with
+# e.g. ru_RU.UTF-8 locale breaks it. Meson and ninja are totally new to
+# me, so I haven't got a 'proper' fix yet. For now, forcing the locale
+# to C allows the build to finish:
+LANG=C
+LC_ALL=C
+export LANG LC_ALL
# upstream claims we need newer glib and gtk+3 libs than Slack 14.2 has,
# but diddling the requirements allows it to build and run OK.