Source: lsp-plugins
Version: 1.2.25-1
Tags: patch
User: [email protected]
Usertags: ftcbfs

lsp-plugins fails to cross build from source for a number of reasons.

An early sign is a failure to find freetype. This is due to the 
configure target not being passed a triplet-prefixed pkg-config. It also 
happens to need a suitable LD and CROSS_COMPILE variable.

After fixing that, the native (lsp calls this host, dpkg calls this 
build) build pass misses freetype and later sndfile. These packages are 
needed for both the build architecture and host architecture (in dpkg 
terms), so :native dependencies are needed.

Last but not least, make install relinks some files. It should not do 
that, but it does. Unfortunately, dh_auto_install does not pass cross 
tools to make install, so this relinking happens with the build 
architecture compiler (in dpkg terms) and it doesn't like the host's 
objects (in dpkg terms, lsp calls this target). Explicitly passing CXX 
works around this.

With all of these changes, lsp-plugins can be made to cross build. 
Please consider applying the attached patch.

Helmut
diff -Nru lsp-plugins-1.2.25/debian/changelog 
lsp-plugins-1.2.25/debian/changelog
--- lsp-plugins-1.2.25/debian/changelog 2025-11-09 23:29:12.000000000 +0100
+++ lsp-plugins-1.2.25/debian/changelog 2025-11-15 00:25:14.000000000 +0100
@@ -1,3 +1,13 @@
+lsp-plugins (1.2.25-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: (Closes: #-1)
+    + Pass triplet-prefixed tools and CROSS_COMPILE to configure.
+    + Pass a triplet-prefixed compiler to make install.
+    + Add missing native build dependencies.
+
+ -- Helmut Grohne <[email protected]>  Sat, 15 Nov 2025 00:25:14 +0100
+
 lsp-plugins (1.2.25-1) unstable; urgency=medium
 
   * New upstream version 1.2.25
diff -Nru lsp-plugins-1.2.25/debian/control lsp-plugins-1.2.25/debian/control
--- lsp-plugins-1.2.25/debian/control   2025-11-09 23:28:59.000000000 +0100
+++ lsp-plugins-1.2.25/debian/control   2025-11-15 00:25:14.000000000 +0100
@@ -9,10 +9,12 @@
  ladspa-sdk,
  libcairo2-dev,
  libexpat1-dev,
+ libfreetype-dev:native,
  libgl-dev,
  libglu1-mesa-dev,
  libjack-dev | libjack-jackd2-dev,
  libsndfile1-dev,
+ libsndfile1-dev:native,
  libxrandr-dev,
  lv2-dev,
  unsupported-architecture [armel hurd-i386 hurd-amd64],
diff -Nru lsp-plugins-1.2.25/debian/rules lsp-plugins-1.2.25/debian/rules
--- lsp-plugins-1.2.25/debian/rules     2025-04-10 23:16:27.000000000 +0200
+++ lsp-plugins-1.2.25/debian/rules     2025-11-15 00:25:14.000000000 +0100
@@ -47,6 +47,9 @@
 execute_before_dh_auto_configure:
        find -type f -name Makefile*.d -delete
        $(MAKE) config FEATURES='clap jack ladspa lv2 ui vst2 vst3 xdg' \
+               $(if $(filter 
$(DEB_BUILD_ARCH),$(DEB_HOST_ARCH)),,CROSS_COMPILE=1) \
+               LD='$(LD)' \
+               PKG_CONFIG='$(PKG_CONFIG)' \
                DESTDIR=debian/tmp \
                PREFIX=/usr \
                ARCHITECTURE=$(ARCHITECTURE) \
@@ -56,3 +59,6 @@
 override_dh_auto_test:
        # the test suite requires build options incompatible with what we
        # ship in the package, so disable until upstream resolves this
+
+override_dh_auto_install:
+       dh_auto_install -- CXX='$(CXX)'

Reply via email to