Package: spirv-tools
Version: 2026.3~rc1-1
Tags: patch
User: [email protected]
Usertags: ftcbfs
Control: affects -1 + src:gnome-remote-desktop

gnome-remote-desktop fails to cross build from source, because meson
fails running spirv-opt with an "Exec format error". Usually, this
indicates that the relevant package (spirv-tools) should be marked
Multi-Arch: foreign. It is not always correct to do so however. I looked
at the formats spirv-tools deals with. The shader source is an
architecture-independent file format, but the binary format (often
stored as *.spv) likely also is. As far as I understand it, it is an
intermediate representation and spirv-tools ends up always storing it
little endian. Those files also happen to be installed into /usr/share
rather than below /usr/lib. Please correct me if I'm wrong, but it all
looks as if the tools contained in spirv-tools are
architecture-independent. I'm attaching a patch adding the relevant
annotation. Please consider applying it.

Helmut
diff -Nru spirv-tools-2026.3~rc1/debian/changelog 
spirv-tools-2026.3~rc1/debian/changelog
--- spirv-tools-2026.3~rc1/debian/changelog     2026-08-04 21:22:11.000000000 
+0200
+++ spirv-tools-2026.3~rc1/debian/changelog     2026-09-08 20:11:05.000000000 
+0200
@@ -1,3 +1,10 @@
+spirv-tools (2026.3~rc1-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Mark spirv-tools Multi-Arch: foreign. (Closes: #-1)
+
+ -- Helmut Grohne <[email protected]>  Tue, 08 Sep 2026 20:11:05 +0200
+
 spirv-tools (2026.3~rc1-1) unstable; urgency=medium
 
   * New upstream release.
diff -Nru spirv-tools-2026.3~rc1/debian/control 
spirv-tools-2026.3~rc1/debian/control
--- spirv-tools-2026.3~rc1/debian/control       2026-08-04 21:14:35.000000000 
+0200
+++ spirv-tools-2026.3~rc1/debian/control       2026-09-08 20:11:04.000000000 
+0200
@@ -13,6 +13,7 @@
 
 Package: spirv-tools
 Architecture: any
+Multi-Arch: foreign
 Depends: ${shlibs:Depends}, ${misc:Depends}
 Description: API and commands for processing SPIR-V modules (tools)
  The project includes an assembler, binary module parser, disassembler,

Reply via email to