Skip to contentSkip to conversation

build-sys: fix undefined ARCH error

PATCH Applied [email protected] 3 participants 5 messages Jan 14, 2022 – Jan 15, 2022 Arm/Amlogic Meson SoC support

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 build-sys: fix undefined ARCH error

From: Marc-André Lureau <[email protected]>

../qga/meson.build:76:4: ERROR: Key ARCH is not in the dictionary.

Fixes commit 823eb013 ("configure, meson: move ARCH to meson.build")

---
 qga/meson.build | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
qga/meson.build +1 -1
index cfb1fbc0853c..613ecb980286 100644
@@ -75,7 +75,7 @@ if targetos == 'windows'
     endif
     qga_msi = custom_target('QGA MSI',
                             input: files('installer/qemu-ga.wxs'),
-                            output: 'qemu-ga-@[email protected]'.format(config_host['ARCH']),
+                            output: 'qemu-ga-@[email protected]'.format(host_arch),
                             depends: deps,
                             command: [
                               find_program('env'),
Signature · 1 line
2.34.1.428.gdcc0cd074f0c
#1 lore raw

PATCH 2/2 docker: add msitools to Fedora/mingw cross

From: Marc-André Lureau <[email protected]>

That should help catch build issues/regressions with wixl.

---
 tests/docker/dockerfiles/fedora-win32-cross.docker | 1 +
 tests/docker/dockerfiles/fedora-win64-cross.docker | 1 +
 2 files changed, 2 insertions(+)
tests/docker/dockerfiles/fedora-win32-cross.docker +1 -0
index aad39dd97ff4..d80e66c6517d 100644
@@ -29,6 +29,7 @@ ENV PACKAGES \
     mingw32-pixman \
     mingw32-pkg-config \
     mingw32-SDL2 \
+    msitools \
     perl \
     perl-Test-Harness \
     python3 \
tests/docker/dockerfiles/fedora-win64-cross.docker +1 -0
index 9a224a619bd4..2b12b94ccfb4 100644
@@ -26,6 +26,7 @@ ENV PACKAGES \
     mingw64-libusbx \
     mingw64-pixman \
     mingw64-pkg-config \
+    msitools \
     perl \
     perl-Test-Harness \
     python3 \
Signature · 1 line
2.34.1.428.gdcc0cd074f0c
#2 lore raw

Re: [PATCH 2/2] docker: add msitools to Fedora/mingw cross

Quoted 27 lines · On 14/1/22 09:43, [email protected] wrote:

From: Marc-André Lureau <[email protected]>

That should help catch build issues/regressions with wixl.

---
  tests/docker/dockerfiles/fedora-win32-cross.docker | 1 +
  tests/docker/dockerfiles/fedora-win64-cross.docker | 1 +
  2 files changed, 2 insertions(+)
tests/docker/dockerfiles/fedora-win32-cross.docker +1 -0
index aad39dd97ff4..d80e66c6517d 100644
@@ -29,6 +29,7 @@ ENV PACKAGES \
      mingw32-pixman \
      mingw32-pkg-config \
      mingw32-SDL2 \
+    msitools \
      perl \
      perl-Test-Harness \
      python3 \
tests/docker/dockerfiles/fedora-win64-cross.docker +0 -0
index 9a224a619bd4..2b12b94ccfb4 100644

tests/docker/dockerfiles/fedora-win64-cross.docker ENV PACKAGES \ · line 32

Quoted 7 lines
tests/docker/dockerfiles/fedora-win64-cross.docker +1 -0
@@ -26,6 +26,7 @@ ENV PACKAGES \
      mingw64-libusbx \
      mingw64-pixman \
      mingw64-pkg-config \
+    msitools \
      perl \
      perl-Test-Harness \
      python3 \

This clashes with testing/next pull request:
https://lore.kernel.org/qemu-devel/[email protected]/

Reviewed-by Philippe Mathieu-Daudé on v1 1/2
#3 lore raw
In reply to [email protected]
Quoted 10 lines · On 14/1/22 09:43, [email protected] wrote:

From: Marc-André Lureau <[email protected]>

../qga/meson.build:76:4: ERROR: Key ARCH is not in the dictionary.

Fixes commit 823eb013 ("configure, meson: move ARCH to meson.build")

---
  qga/meson.build | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
#4 lore raw
In reply to [email protected]
Quoted 16 lines · On 1/14/22 09:43, [email protected] wrote:

From: Marc-André Lureau <[email protected]>

../qga/meson.build:76:4: ERROR: Key ARCH is not in the dictionary.

Fixes commit 823eb013 ("configure, meson: move ARCH to meson.build")

---
  qga/meson.build | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
qga/meson.build +0 -0
index cfb1fbc0853c..613ecb980286 100644

qga/meson.build if targetos == 'windows' · line 81

Quoted 8 lines
qga/meson.build +1 -1
@@ -75,7 +75,7 @@ if targetos == 'windows'
      endif
      qga_msi = custom_target('QGA MSI',
                              input: files('installer/qemu-ga.wxs'),
-                            output: 'qemu-ga-@[email protected]'.format(config_host['ARCH']),
+                            output: 'qemu-ga-@[email protected]'.format(host_arch),
                              depends: deps,
                              command: [
                                find_program('env'),

Queued both, thanks.

Paolo