summaryrefslogtreecommitdiff
path: root/libraries/girara
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2018-09-03 15:50:36 -0400
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2018-09-08 08:37:47 +0700
commit4305c836939f8eb0b7f83489c04e98849a73b834 (patch)
tree6fdf955cdba137b6bbd082b983e31bec9ac6c079 /libraries/girara
parentef1c421252fb07c03b7d92b26c0f01567137e4bd (diff)
downloadslackbuilds-4305c836939f8eb0b7f83489c04e98849a73b834.tar.gz
libraries/girara: Fix build with non-English locales.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Diffstat (limited to 'libraries/girara')
-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.