[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v1 05/13] .gitlab-ci.d/windows.yml: Enable native Windows symlink
From: |
Alex Bennée |
Subject: |
[PATCH v1 05/13] .gitlab-ci.d/windows.yml: Enable native Windows symlink |
Date: |
Mon, 25 Jul 2022 15:05:12 +0100 |
From: Bin Meng <bin.meng@windriver.com>
The following error message was seen during the configure:
"ln: failed to create symbolic link
'x86_64-softmmu/qemu-system-x86_64.exe': No such file or directory"
By default the MSYS environment variable is not defined, so the runtime
behavior of winsymlinks is: if <target> does not exist, 'ln -s' fails.
At the configure phase, the qemu-system-x86_64.exe has not been built
so creation of the symbolic link fails hence the error message.
Set winsymlinks to 'native' whose behavior is most similar to the
behavior of 'ln -s' on *nix, that is:
a) if native symlinks are enabled, and whether <target> exists
or not, creates <destination> as a native Windows symlink;
b) else if native symlinks are not enabled, and whether <target>
exists or not, 'ln -s' creates as a Windows shortcut file.
Signed-off-by: Bin Meng <bin.meng@windriver.com>
Message-Id: <20220725123000.807608-1-bmeng.cn@gmail.com>
---
.gitlab-ci.d/windows.yml | 2 ++
1 file changed, 2 insertions(+)
diff --git a/.gitlab-ci.d/windows.yml b/.gitlab-ci.d/windows.yml
index 1b2ede49e1..0b9572a8a3 100644
--- a/.gitlab-ci.d/windows.yml
+++ b/.gitlab-ci.d/windows.yml
@@ -57,6 +57,7 @@ msys2-64bit:
mingw-w64-x86_64-zstd "
- $env:CHERE_INVOKING = 'yes' # Preserve the current working directory
- $env:MSYSTEM = 'MINGW64' # Start a 64 bit Mingw environment
+ - $env:MSYS = 'winsymlinks:native' # Enable native Windows symlink
- .\msys64\usr\bin\bash -lc './configure --target-list=x86_64-softmmu
--enable-capstone --without-default-devices'
- .\msys64\usr\bin\bash -lc "sed -i '/^ROMS=/d' build/config-host.mak"
@@ -89,6 +90,7 @@ msys2-32bit:
mingw-w64-i686-usbredir "
- $env:CHERE_INVOKING = 'yes' # Preserve the current working directory
- $env:MSYSTEM = 'MINGW32' # Start a 32-bit MinG environment
+ - $env:MSYS = 'winsymlinks:native' # Enable native Windows symlink
- mkdir output
- cd output
- ..\msys64\usr\bin\bash -lc "../configure --target-list=ppc64-softmmu"
--
2.30.2
- [PATCH v1 00/13] fixes for 7.1 (testing, docs, semihosting), Alex Bennée, 2022/07/25
- [PATCH v1 01/13] tests: refresh to latest libvirt-ci module, Alex Bennée, 2022/07/25
- [PATCH v1 02/13] gitlab: show testlog.txt contents when cirrus/custom-runner jobs fail, Alex Bennée, 2022/07/25
- [PATCH v1 04/13] .cirrus.yml: Change winsymlinks to 'native', Alex Bennée, 2022/07/25
- [PATCH v1 05/13] .gitlab-ci.d/windows.yml: Enable native Windows symlink,
Alex Bennée <=
- [PATCH v1 06/13] semihosting: Don't return negative values on qemu_semihosting_console_write() failure, Alex Bennée, 2022/07/25
- [PATCH v1 07/13] semihosting: Don't copy buffer after console_write(), Alex Bennée, 2022/07/25
- [PATCH v1 08/13] semihosting: Check for errors on SET_ARG(), Alex Bennée, 2022/07/25
- [PATCH v1 11/13] tests/tcg/s390x: Test unaligned accesses to lowcore, Alex Bennée, 2022/07/25
- [PATCH v1 10/13] qapi: Add exit-failure PanicAction, Alex Bennée, 2022/07/25
- [PATCH v1 13/13] qemu-options: bring the kernel and image options together, Alex Bennée, 2022/07/25
- [PATCH v1 12/13] docs/devel: fix description of OBJECT_DECLARE_SIMPLE_TYPE, Alex Bennée, 2022/07/25
- [PATCH v1 03/13] gitlab: drop 'containers-layer2' stage, Alex Bennée, 2022/07/25