Source: libept
Version: 1.1+nmu3
Tags: patch
User: [email protected]
Usertags: rebootstrap
libept fails to cross build from source. I don't quite understand the
failure mode. It seems that CMAKE_LIBRARY_ARCHITECTURE ends up being
empty than thus dh_install fails. While trying to understand the
problem, I noticed that the main CMakeLists.txt has an explicit cc
invocation. That's bad, because it examines the build architecture
instead of the host architecture. Surprisingly replacing that single
call with ${CMAKE_C_COMPILER} (which should have been used in the first
place) makes the cross build just work. Please consider applying the
attached patch.
Helmut
diff --minimal -Nru libept-1.1+nmu3/CMakeLists.txt
libept-1.1+nmu4/CMakeLists.txt
--- libept-1.1+nmu3/CMakeLists.txt 2015-11-28 21:04:48.000000000 +0100
+++ libept-1.1+nmu4/CMakeLists.txt 2016-10-04 19:13:04.000000000 +0200
@@ -9,7 +9,7 @@
# Get the soversion from libapt-pkg to include in our own
execute_process(
- COMMAND "cc" "-xc" "-shared" "-Wl,--no-as-needed" "/dev/null"
"-lapt-pkg"
+ COMMAND "${CMAKE_C_COMPILER}" "-xc" "-shared" "-Wl,--no-as-needed"
"/dev/null" "-lapt-pkg"
)
execute_process(
COMMAND "objdump" "-p" "a.out"
diff --minimal -Nru libept-1.1+nmu3/debian/changelog
libept-1.1+nmu4/debian/changelog
--- libept-1.1+nmu3/debian/changelog 2015-11-28 21:04:48.000000000 +0100
+++ libept-1.1+nmu4/debian/changelog 2016-10-04 19:13:37.000000000 +0200
@@ -1,3 +1,10 @@
+libept (1.1+nmu4) UNRELEASED; urgency=medium
+
+ * Non-maintainer upload.
+ * Fix FTCBFS: Use cross compiler in all invocations. (Closes: #-1)
+
+ -- Helmut Grohne <[email protected]> Tue, 04 Oct 2016 19:13:06 +0200
+
libept (1.1+nmu3) unstable; urgency=medium
* Non-maintainer upload