File 0003-force_local_job_for_charset.patch of Package icecream
commit 69981a3f4acae1da5342c7402e68a5ce55900008
Author: Stephan Kulow <coolo@suse.de>
Date: Thu Sep 25 12:02:43 2014 +0200
force local compilation for command lines expecting charset conversion
Index: icecc-1.0.1/client/arg.cpp
===================================================================
--- icecc-1.0.1.orig/client/arg.cpp
+++ icecc-1.0.1/client/arg.cpp
@@ -237,6 +237,13 @@ bool analyse_argv( const char * const *a
#endif
always_local = true;
args.append(a, Arg_Local);
+
+ } else if (!strcmp(a, "-fexec-charset") || !strcmp(a, "-fwide-exec-charset") || !strcmp(a, "-finput-charset") ) {
+#if CLIENT_DEBUG
+ log_info() << "-f*-charset assumes charset conversion in the build environment; must be local" << endl;
+#endif
+ always_local = true;
+ args.append(a, Arg_Local);
} else if (!strcmp(a, "-c")) {
seen_c = true;
} else if (str_startswith("-o", a)) {