From 4305c836939f8eb0b7f83489c04e98849a73b834 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Mon, 3 Sep 2018 15:50:36 -0400 Subject: libraries/girara: Fix build with non-English locales. Signed-off-by: B. Watson --- libraries/girara/girara.SlackBuild | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) (limited to 'libraries') 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. -- cgit v1.2.3