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

upx-ucl fails to cross build from source, because debian/rules passes
the $(CC) variable as compiler to cmake. As it happens CC defaults to
cc and that only happens to be right for native compilation. Just
deleting the assignment fixes things and still retains the ability to
override the compiler, because cmake picks up the CC environment
variable. I'm attaching a patch for your convenience.

Helmut
diff --minimal -Nru upx-ucl-4.2.4/debian/changelog 
upx-ucl-4.2.4/debian/changelog
--- upx-ucl-4.2.4/debian/changelog      2024-08-31 00:36:07.000000000 +0200
+++ upx-ucl-4.2.4/debian/changelog      2024-10-13 21:17:31.000000000 +0200
@@ -1,3 +1,10 @@
+upx-ucl (4.2.4-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Let debhelper choose the compiler. (Closes: #-1)
+
+ -- Helmut Grohne <hel...@subdivi.de>  Sun, 13 Oct 2024 21:17:31 +0200
+
 upx-ucl (4.2.4-1) unstable; urgency=medium
 
   * New upstream version:
diff --minimal -Nru upx-ucl-4.2.4/debian/rules upx-ucl-4.2.4/debian/rules
--- upx-ucl-4.2.4/debian/rules  2024-08-31 00:36:07.000000000 +0200
+++ upx-ucl-4.2.4/debian/rules  2024-10-13 21:17:29.000000000 +0200
@@ -27,8 +27,6 @@
        dh_auto_configure $(DH_AUTO_OPTIONS) -- \
                -DCMAKE_BUILD_TYPE=Release \
                -DCMAKE_VERBOSE_MAKEFILE=ON \
-               -DCMAKE_C_COMPILER="$(CC)" \
-               -DCMAKE_CXX_COMPILER="$(CXX)" \
                -DCMAKE_C_FLAGS="$(CPPFLAGS) $(CFLAGS)" \
                -DCMAKE_CXX_FLAGS="$(CPPFLAGS) $(CXXFLAGS)" \
                -DCMAKE_SHARED_LINKER_FLAGS="$(LDFLAGS)" \

Reply via email to