summaryrefslogtreecommitdiff
path: root/odk
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-03-07 15:22:25 +0100
committerJan-Marek Glogowski <glogow@fbihome.de>2017-03-07 15:15:42 +0000
commit761f7b584ee4ba4d34e983733d49357a4b8c15be (patch)
tree90a98db9c621ef890c37f4cbc94e50a87cce3da6 /odk
parent0cbc0181d52433790bb607176ff01dcffc89ce99 (diff)
Force CustomTarget_build-examples into en-US locale
odk/examples/DevelopersGuide/Components/SimpleLicense/ builds an example extension with a license that needs to be accepted when the extension is installed. That's why odk/CustomTarget_build-examples.mk writes "yes" into stdin. Unfortunately, the expected acceptance string is localized, so running this in e.g. a Linux de_DE.UTF-8 locale fails. For Linux and macOS at least (which are the only platforms on which this test is currently enabled), it suffices to to set LC_ALL=C to force LO into its en-US locale. Change-Id: I1df0ea89400913ac3f1c90507721040119354727 Reviewed-on: https://gerrit.libreoffice.org/34951 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Jan-Marek Glogowski <glogow@fbihome.de> Tested-by: Jan-Marek Glogowski <glogow@fbihome.de>
Diffstat (limited to 'odk')
-rw-r--r--odk/CustomTarget_build-examples.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/odk/CustomTarget_build-examples.mk b/odk/CustomTarget_build-examples.mk
index 68587c0efb14..89e427348087 100644
--- a/odk/CustomTarget_build-examples.mk
+++ b/odk/CustomTarget_build-examples.mk
@@ -97,7 +97,7 @@ $(call gb_CustomTarget_get_target,odk/build-examples): \
UserInstallation=$(call gb_Helper_make_url,$(call gb_CustomTarget_get_workdir,odk/build-examples)/user) \
$(foreach my_dir,$(my_example_dirs), \
&& (cd $(INSTDIR)/$(SDKDIRNAME)/examples/$(my_dir) \
- && printf 'yes\n' | make))) \
+ && printf 'yes\n' | LC_ALL=C make))) \
>$(call gb_CustomTarget_get_workdir,odk/build-examples)/log 2>&1 \
|| (RET=$$? \
&& cat $(call gb_CustomTarget_get_workdir,odk/build-examples)/log \