bcd7ce8c8a85b54071da6418efe9a312a2f4fa25
[feed/packages.git] / utils / fontconfig / patches / 001-revert-upstream-meson-commit.patch
1 Revert partially the upstream commit ae9ac2a1
2
3 Subject: [PATCH] meson: fix cross-compilation issues with gperf header file preprocessing
4
5 Pass c_args to the compiler when preprocessing the gperf header file,
6 they might contain important bits without which compilation/preprocessing
7 might fail (e.g. with clang on Android). cc.cmd_array() does not include
8 the c_args and we can't easily look them up from the meson.build file, so
9 we have to retrieve from the introspection info.
10
11 This is basically the Meson equivalent to commit 57103773.
12
13 Revert the host_cargs related part of the patch
14
15
16 --- a/src/cutout.py
17 +++ b/src/cutout.py
18 @@ -24,7 +24,7 @@ if __name__== '__main__':
19 break
20
21 cpp = args[1]
22 - ret = subprocess.run(cpp + host_cargs + [args[0].input], stdout=subprocess.PIPE, check=True)
23 + ret = subprocess.run(cpp + [args[0].input], stdout=subprocess.PIPE, check=True)
24
25 stdout = ret.stdout.decode('utf8')
26