1 |
commit: b8ff8146edd5e182d61756c7fd1d99239d6100d4 |
2 |
Author: Marty E. Plummer <hanetzer <AT> startmail <DOT> com> |
3 |
AuthorDate: Thu Jul 26 08:07:37 2018 +0000 |
4 |
Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jul 31 06:44:15 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/crossdev.git/commit/?id=b8ff8146 |
7 |
|
8 |
wrappers: prevent use of wine to convert between path types |
9 |
|
10 |
libtool.m4 uses lt_cv_to_host_file_cmd to store the name of a function |
11 |
used to convert between unix and win32 path styles; when doing a linux to |
12 |
mingw cross-compilation it ends up with func_convert_file_nix_to_w32 |
13 |
which uses the winepath utility to do the job. However, using that tool |
14 |
will create a wineprefix in ${CATEGORY}/${P}/homedir and potentially |
15 |
cause access violations in sandbox. |
16 |
|
17 |
Bug: https://bugs.gentoo.org/631492 |
18 |
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org> |
19 |
|
20 |
wrappers/site/config.site | 1 + |
21 |
wrappers/site/mingw | 2 ++ |
22 |
2 files changed, 3 insertions(+) |
23 |
|
24 |
diff --git a/wrappers/site/config.site b/wrappers/site/config.site |
25 |
index 39cadf8..05c7823 100755 |
26 |
--- a/wrappers/site/config.site |
27 |
+++ b/wrappers/site/config.site |
28 |
@@ -25,6 +25,7 @@ config_site_names() { |
29 |
case ${CHOST} in |
30 |
*-linux-*) sites="${sites} linux ${site_arch}-linux" ;; |
31 |
*-darwin*) sites="${sites} darwin ${site_arch}-darwin" ;; |
32 |
+ mingw*|*-mingw*) sites="${sites} mingw ${site_arch}-mingw" ;; |
33 |
esac |
34 |
|
35 |
case ${CHOST} in |
36 |
|
37 |
diff --git a/wrappers/site/mingw b/wrappers/site/mingw |
38 |
new file mode 100644 |
39 |
index 0000000..f67229a |
40 |
--- /dev/null |
41 |
+++ b/wrappers/site/mingw |
42 |
@@ -0,0 +1,2 @@ |
43 |
+# prevent use of wine to convert windows/unix pathnames |
44 |
+lt_cv_to_host_file_cmd=func_convert_file_noop |