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