Skip to contentSkip to conversation

meson: Fix argument for makensis (build regression)

PATCH Applied Stefan Weil 3 participants 3 messages Nov 17, 2020 – Nov 18, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 meson: Fix argument for makensis (build regression)

make installer with a DLL directory was broken.

---
 scripts/nsis.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/nsis.py +1 -1
index e1c409344e..5135a05831 100644
@@ -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)
Signature · 1 line
2.29.2
Reviewed-by on v1 1/1
#1 lore raw
Quoted 4 lines · Stefan Weil

make installer with a DLL directory was broken.

Quoted 20 lines
---
 scripts/nsis.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/nsis.py +1 -2
index e1c409344e..5135a05831 100644
@@ -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

#2 lore raw
In reply to Stefan Weil
Quoted 13 lines · Stefan Weil

make installer with a DLL directory was broken.

---
  scripts/nsis.py | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
scripts/nsis.py +0 -0
index e1c409344e..5135a05831 100644

scripts/nsis.py def main(): · line 71

Quoted 8 lines
scripts/nsis.py +1 -1
@@ -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