From 70ee8a4a0bf21f0dc64eb6d46734817439ca9b62 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Fri, 5 Jan 2018 23:14:21 +0100 Subject: [PATCH] Fix failure of lang-javascript on Ubuntu 16.04. pkg-config almost never works. It is best to never use it. * gettext-tools/tests/lang-javascript: Don't use pkg-config to test whether the installed gjs is appropriate. --- gettext-tools/tests/lang-javascript | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/gettext-tools/tests/lang-javascript b/gettext-tools/tests/lang-javascript index bbed14077..5ef33bbf3 100755 --- a/gettext-tools/tests/lang-javascript +++ b/gettext-tools/tests/lang-javascript @@ -66,9 +66,10 @@ ${MSGFMT} -o fr/LC_MESSAGES/prog.mo fr.po (gjs -c imports.gettext) >/dev/null 2>/dev/null \ || { echo "Skipping test: gjs gettext module not found"; Exit 77; } (gjs -c imports.format) >/dev/null 2>/dev/null \ - || { echo "Skipping test: gjs format module not found"; Exit 77; } -(pkg-config gjs-1.0 --atleast-version=1.40) >/dev/null 2>/dev/null \ - || { echo "Skipping test: gjs version is older than 1.40"; Exit 77; } + || { echo "Skipping test: gjs format module not found"; Exit 77; } +# Test for presence of gjs version 1.40 or newer. +(gjs -c 'print(imports.format.vprintf("%3$s%2$s%1$s", ["x","y","z"]))') 2>/dev/null | grep zyx >/dev/null \ + || { echo "Skipping test: gjs version is older than 1.40"; Exit 77; } # Test which of the fr_FR locales are installed. : ${LOCALE_FR=fr_FR} -- 2.47.3