libraries/girara: Fix build with non-English locales.

Signed-off-by: B. Watson <yalhcru@gmail.com>
This commit is contained in:
B. Watson 2018-09-03 15:50:36 -04:00 committed by Willy Sudiarto Raharjo
parent ef1c421252
commit 4305c83693
No known key found for this signature in database
GPG Key ID: 887B8374D7333381
1 changed files with 13 additions and 5 deletions

View File

@ -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.