diff options
Diffstat (limited to 'meta/recipes-support/libproxy/libproxy/determinism.patch')
-rw-r--r-- | meta/recipes-support/libproxy/libproxy/determinism.patch | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/meta/recipes-support/libproxy/libproxy/determinism.patch b/meta/recipes-support/libproxy/libproxy/determinism.patch new file mode 100644 index 0000000000..09770f68f0 --- /dev/null +++ b/meta/recipes-support/libproxy/libproxy/determinism.patch | |||
@@ -0,0 +1,26 @@ | |||
1 | [PATCH] cmake/modules/config_sysconfig: Allow configuration of sysconfig module | ||
2 | |||
3 | Checking whether the host system has /etc/sysconfig is not deterministic | ||
4 | when cross compiling. Allow this to be disabled by adding a configure | ||
5 | option for it. OpenEmbedded can set this and have deterministic build | ||
6 | output independent of the host OS. | ||
7 | |||
8 | Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> | ||
9 | Upstream-Status: Submitted [https://github.com/libproxy/libproxy/pull/160] | ||
10 | |||
11 | Index: libproxy-0.4.17/libproxy/cmake/modules/config_sysconfig.cmk | ||
12 | =================================================================== | ||
13 | --- libproxy-0.4.17.orig/libproxy/cmake/modules/config_sysconfig.cmk | ||
14 | +++ libproxy-0.4.17/libproxy/cmake/modules/config_sysconfig.cmk | ||
15 | @@ -1,5 +1,8 @@ | ||
16 | if (NOT WIN32 AND NOT APPLE) | ||
17 | - if (EXISTS "/etc/sysconfig" AND IS_DIRECTORY "/etc/sysconfig") | ||
18 | - set(SYSCONFIG_FOUND 1) | ||
19 | + option(WITH_SYSCONFIG "Build sysconfig module for /etc/sysconfig" ON) | ||
20 | + if(WITH_SYSCONFIG) | ||
21 | + if (EXISTS "/etc/sysconfig" AND IS_DIRECTORY "/etc/sysconfig") | ||
22 | + set(SYSCONFIG_FOUND 1) | ||
23 | + endif() | ||
24 | endif() | ||
25 | endif() | ||
26 | \ No newline at end of file | ||