Source: upx-ucl
Version: 4.2.2-3
Tags: patch
User: debian-cr...@lists.debian.org
Usertags: ftcbfs

upx-ucl fails to cross build from source, because it does not pass any
cross flags to cmake. The easiest way of doing this - using
dh_auto_configure - makes upx-ucl cross buildable. I'm attaching a patch
for your convenience.

Helmut
--- upx-ucl-4.2.2/debian/changelog
+++ upx-ucl-4.2.2/debian/changelog
@@ -1,3 +1,10 @@
+upx-ucl (4.2.2-3.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Let dh_auto_configure pass cross flags to cmake. (Closes: #-1)
+
+ -- Helmut Grohne <hel...@subdivi.de>  Sat, 03 Feb 2024 08:51:17 +0100
+
 upx-ucl (4.2.2-3) unstable; urgency=medium
 
   * Extract the list of architectures which binaries are supported by UPX to
--- upx-ucl-4.2.2/debian/rules
+++ upx-ucl-4.2.2/debian/rules
@@ -24,11 +24,8 @@
        dh "$@"
 
 override_dh_auto_configure:
-       mkdir -p $(BUILDDIR)
-       cd $(BUILDDIR) && cmake .. -DCMAKE_BUILD_TYPE=Release \
-               -DCMAKE_VERBOSE_MAKEFILE=ON \
-               -DCMAKE_C_COMPILER="$(CC)" \
-               -DCMAKE_CXX_COMPILER="$(CXX)" \
+       dh_auto_configure --buildsystem=cmake --builddirectory=$(BUILDDIR) -- \
+               -DCMAKE_BUILD_TYPE=Release \
                -DCMAKE_C_FLAGS="$(CPPFLAGS) $(CFLAGS)" \
                -DCMAKE_CXX_FLAGS="$(CPPFLAGS) $(CXXFLAGS)" \
                -DCMAKE_SHARED_LINKER_FLAGS="$(LDFLAGS)" \

Reply via email to