Source: filament
Version: 1.9.25+dfsg3-1
Tags: patch
User: debian-cr...@lists.debian.org
Usertags: ftcbfs

filament fails to cross build from source. On the surface, CMake
attempts to include a ImportExecutables-None.cmake and fails to find
that. I guess the idea is that one first builds filament natively (thus
generating this file) and then passes it to the cross build. However,
here, we just install libfilament-tools from an earlier native build and
it happens to include the requested file. Hence I suggest simply adding
it to the debian directory. Inside, we simply declare the relevant
executables to improt, which happens to be resgen at the moment. The
file is only used for cross building (all includes are conditionalized
with CMAKE_CROSSCOMPILING), so things should be all well. I'm attaching
a patch for your convenience.

Helmut
diff --minimal -Nru filament-1.9.25+dfsg3/debian/ImportExecutables-None.cmake 
filament-1.9.25+dfsg3/debian/ImportExecutables-None.cmake
--- filament-1.9.25+dfsg3/debian/ImportExecutables-None.cmake   1970-01-01 
01:00:00.000000000 +0100
+++ filament-1.9.25+dfsg3/debian/ImportExecutables-None.cmake   2024-10-27 
19:51:55.000000000 +0100
@@ -0,0 +1,2 @@
+add_executable(resgen IMPORTED)
+set_property(TARGET resgen PROPERTY IMPORTED_LOCATION /usr/bin/filament-resgen)
diff --minimal -Nru filament-1.9.25+dfsg3/debian/changelog 
filament-1.9.25+dfsg3/debian/changelog
--- filament-1.9.25+dfsg3/debian/changelog      2024-05-17 18:12:19.000000000 
+0200
+++ filament-1.9.25+dfsg3/debian/changelog      2024-10-27 19:51:55.000000000 
+0100
@@ -1,3 +1,11 @@
+filament (1.9.25+dfsg3-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Add an ImportExecutables-None.cmake declaring resgen.
+    (Closes: #-1)
+
+ -- Helmut Grohne <hel...@subdivi.de>  Sun, 27 Oct 2024 19:51:55 +0100
+
 filament (1.9.25+dfsg3-1) unstable; urgency=medium
 
   * New upstream version 1.9.25+dfsg3

Reply via email to