Source: amd-aie-rt
Version: 2026.1.1+dfsg-2
Tags: patch
User: [email protected]
Usertags: ftcbfs

amd-aie-rt fails to cross build from source for two distinct reasons.

The first reason is rooted in its cpputest dependency. That package
depends on a library development package but is itself marked
Multi-Arch: foreign. This is an RC bug and I'm filing it separately. As
a result, the development package is installed for the build
architecture when it is actually needed for the host architecture. As it
happens, amd-aie-rt does not actually need any of the scripts and
examples contained in cpputest. What is contained in libcpputest-dev is
sufficient for building amd-aie-rt, so reducing the dependency helps
with cross building.

The other reason is rooted in the use-system-liburing.patch. It
introduces a use of PKG_CONFIG into the Makefiles driven from the CMake
build system. When debhelper detects CMake, it does not export
PKG_CONFIG and other variables, so liburing is not found. What would be
better here is locating liburing in CMake and linking the detected
library. Rather than fixing the patch, I suggest explicitly exporting
PKG_CONFIG.

The attached patch includes both changes and makes amd-aie-rt cross
buildable. Please consider applying an/or improving it.

Helmut
diff -Nru amd-aie-rt-2026.1.1+dfsg/debian/changelog 
amd-aie-rt-2026.1.1+dfsg/debian/changelog
--- amd-aie-rt-2026.1.1+dfsg/debian/changelog   2026-10-14 14:50:17.000000000 
+0200
+++ amd-aie-rt-2026.1.1+dfsg/debian/changelog   2026-10-26 20:56:25.000000000 
+0100
@@ -1,3 +1,12 @@
+amd-aie-rt (2026.1.1+dfsg-2.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: (Closes: #-1)
+    + Reduce cpputest dependency to libcpputest-dev.
+    + Export pkg-config for use-system-liburing.patch.
+
+ -- Helmut Grohne <[email protected]>  Mon, 26 Oct 2026 20:56:25 +0100
+
 amd-aie-rt (2026.1.1+dfsg-2) unstable; urgency=medium
 
   * d/watch: upgrade to version 5 format.
diff -Nru amd-aie-rt-2026.1.1+dfsg/debian/control 
amd-aie-rt-2026.1.1+dfsg/debian/control
--- amd-aie-rt-2026.1.1+dfsg/debian/control     2026-10-14 14:50:17.000000000 
+0200
+++ amd-aie-rt-2026.1.1+dfsg/debian/control     2026-10-26 19:09:45.000000000 
+0100
@@ -4,7 +4,7 @@
 Uploaders: Talha Can Havadar <[email protected]>
 Build-Depends: debhelper-compat (= 13),
                cmake,
-               cpputest,
+               libcpputest-dev,
                liburing-dev,
                pkgconf,
 Build-Depends-Indep: doxygen,
diff -Nru amd-aie-rt-2026.1.1+dfsg/debian/rules 
amd-aie-rt-2026.1.1+dfsg/debian/rules
--- amd-aie-rt-2026.1.1+dfsg/debian/rules       2026-10-14 14:50:17.000000000 
+0200
+++ amd-aie-rt-2026.1.1+dfsg/debian/rules       2026-10-26 20:42:19.000000000 
+0100
@@ -5,6 +5,10 @@
 # Fix "unsupported relocation" errors when linking
 export DEB_CFLAGS_MAINT_APPEND += -fPIC
 
+include /usr/share/dpkg/buildtools.mk
+# used by debian/patches/use-system-liburing.patch
+export PKG_CONFIG
+
 %:
        # The build fails if run with parallel enabled
        dh $@ --sourcedirectory=fal --no-parallel

Reply via email to