[PATCH for-5.2] meson: Fix argument for makensis (build regression)

Stefan Weil posted 1 patch 3 years, 5 months ago
Test checkpatch passed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20201117190640.390359-1-sw@weilnetz.de
Maintainers: Cleber Rosa <crosa@redhat.com>, Eduardo Habkost <ehabkost@redhat.com>
scripts/nsis.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[PATCH for-5.2] meson: Fix argument for makensis (build regression)
Posted by Stefan Weil 3 years, 5 months ago
`make installer` with a DLL directory was broken.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
---
 scripts/nsis.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/nsis.py b/scripts/nsis.py
index e1c409344e..5135a05831 100644
--- a/scripts/nsis.py
+++ b/scripts/nsis.py
@@ -65,7 +65,7 @@ def main():
             dlldir = "w64"
             makensis += ["-DW64"]
         if os.path.exists(os.path.join(args.srcdir, "dll")):
-            makensis += "-DDLLDIR={0}/dll/{1}".format(args.srcdir, dlldir)
+            makensis += ["-DDLLDIR={0}/dll/{1}".format(args.srcdir, dlldir)]
 
         makensis += ["-DOUTFILE=" + args.outfile] + args.nsisargs
         subprocess.run(makensis)
-- 
2.29.2


Re: [PATCH for-5.2] meson: Fix argument for makensis (build regression)
Posted by Marc-André Lureau 3 years, 5 months ago
On Tue, Nov 17, 2020 at 11:15 PM Stefan Weil <sw@weilnetz.de> wrote:
>
> `make installer` with a DLL directory was broken.
>
> Signed-off-by: Stefan Weil <sw@weilnetz.de>

Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>

> ---
>  scripts/nsis.py | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/scripts/nsis.py b/scripts/nsis.py
> index e1c409344e..5135a05831 100644
> --- a/scripts/nsis.py
> +++ b/scripts/nsis.py
> @@ -65,7 +65,7 @@ def main():
>              dlldir = "w64"
>              makensis += ["-DW64"]
>          if os.path.exists(os.path.join(args.srcdir, "dll")):
> -            makensis += "-DDLLDIR={0}/dll/{1}".format(args.srcdir, dlldir)
> +            makensis += ["-DDLLDIR={0}/dll/{1}".format(args.srcdir, dlldir)]
>
>          makensis += ["-DOUTFILE=" + args.outfile] + args.nsisargs
>          subprocess.run(makensis)
> --
> 2.29.2
>


Re: [PATCH for-5.2] meson: Fix argument for makensis (build regression)
Posted by Paolo Bonzini 3 years, 5 months ago
On 17/11/20 20:06, Stefan Weil wrote:
> `make installer` with a DLL directory was broken.
> 
> Signed-off-by: Stefan Weil <sw@weilnetz.de>
> ---
>   scripts/nsis.py | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/scripts/nsis.py b/scripts/nsis.py
> index e1c409344e..5135a05831 100644
> --- a/scripts/nsis.py
> +++ b/scripts/nsis.py
> @@ -65,7 +65,7 @@ def main():
>               dlldir = "w64"
>               makensis += ["-DW64"]
>           if os.path.exists(os.path.join(args.srcdir, "dll")):
> -            makensis += "-DDLLDIR={0}/dll/{1}".format(args.srcdir, dlldir)
> +            makensis += ["-DDLLDIR={0}/dll/{1}".format(args.srcdir, dlldir)]
>   
>           makensis += ["-DOUTFILE=" + args.outfile] + args.nsisargs
>           subprocess.run(makensis)
> 

Queued, thanks.

Paolo