Am 08.09.22 um 15:28 schrieb Bin Meng:
From: Bin Meng <bin.m...@windriver.com>

"make installer" on Windows fails with the following message:

   Traceback (most recent call last):
     File "G:\msys64\home\foo\git\qemu\scripts\nsis.py", line 89, in <module>
       main()
     File "G:\msys64\home\foo\git\qemu\scripts\nsis.py", line 34, in main
       with open(
   OSError: [Errno 22] Invalid argument:
   'R:/Temp/tmpw83xhjquG:/msys64/qemu/system-emulations.nsh'
   ninja: build stopped: subcommand failed.

Use os.path.splitdrive() to form a canonical path without the drive
letter on Windows. This works with cross-build on Linux too.

Fixes: 8adfeba953e0 ("meson: add NSIS building")
Signed-off-by: Bin Meng <bin.m...@windriver.com>
---

  scripts/nsis.py | 12 +++++++-----
  1 file changed, 7 insertions(+), 5 deletions(-)


Tested-by: Stefan Weil <s...@weilnetz.de>

Attachment: OpenPGP_0xE08C21D5677450AD.asc
Description: OpenPGP public key

Attachment: OpenPGP_signature
Description: OpenPGP digital signature

Reply via email to