[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#839764: marked as done (libept FTCBFS: cmake is confused after invoking the build architecture compiler)



Your message dated Mon, 17 Mar 2025 18:21:00 +0000
with message-id <[🔎] E1tuF5A-00H7FC-TG@fasolo.debian.org>
and subject line Bug#1100178: Removed package(s) from unstable
has caused the Debian Bug report #839764,
regarding libept FTCBFS: cmake is confused after invoking the build architecture compiler
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
839764: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=839764
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Source: libept
Version: 1.1+nmu3
Tags: patch
User: helmutg@debian.org
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 <helmut@subdivi.de>  Tue, 04 Oct 2016 19:13:06 +0200
+
 libept (1.1+nmu3) unstable; urgency=medium
 
   * Non-maintainer upload

--- End Message ---
--- Begin Message ---
Version: 1.2.1+nmu1+rm

Dear submitter,

as the package libept has just been removed from the Debian archive
unstable we hereby close the associated bug reports.  We are sorry
that we couldn't deal with your issue properly.

For details on the removal, please see https://bugs.debian.org/1100178

The version of this package that was in Debian prior to this removal
can still be found using https://snapshot.debian.org/.

Please note that the changes have been done on the master archive and
will not propagate to any mirrors until the next dinstall run at the
earliest.

This message was generated automatically; if you believe that there is
a problem with it please contact the archive administrators by mailing
ftpmaster@ftp-master.debian.org.

Debian distribution maintenance software
pp.
Thorsten Alteholz (the ftpmaster behind the curtain)

--- End Message ---

Reply to: