force the lang to be english and the system. Can cause issue with parsing french for example

This commit is contained in:
Sylvestre Ledru 2016-11-11 17:52:51 +00:00
parent 849a2e688f
commit 7a170d08f2
2 changed files with 14 additions and 1 deletions

13
debian/patches/lit-force-lang.diff vendored Normal file
View File

@ -0,0 +1,13 @@
Index: llvm-toolchain-3.8-3.8.1/projects/compiler-rt/test/lit.common.cfg
===================================================================
--- llvm-toolchain-3.8-3.8.1.orig/projects/compiler-rt/test/lit.common.cfg
+++ llvm-toolchain-3.8-3.8.1/projects/compiler-rt/test/lit.common.cfg
@@ -120,7 +120,7 @@ def is_linux_lto_supported():
if not os.path.exists(os.path.join(config.llvm_shlib_dir, 'LLVMgold.so')):
return False
- ld_cmd = subprocess.Popen([config.gold_executable, '--help'], stdout = subprocess.PIPE)
+ ld_cmd = subprocess.Popen([config.gold_executable, '--help'], stdout = subprocess.PIPE, env={'LANG': 'C'})
ld_out = ld_cmd.stdout.read().decode()
ld_cmd.wait()

View File

@ -52,4 +52,4 @@ clang-tidy-run-bin.diff
silent-llvm-symbolizer.diff
upstream-msan-prevent-initialization-failure.diff
upstream-asan-msan-fix-reallocation-logic.diff
lit-force-lang.diff