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

Bug#836544: marked as done (libutempter FTCBFS: uses build architecture compiler)



Your message dated Thu, 29 Jun 2017 21:38:58 +0200
with message-id <20170629193858.t3uuttugqnpluqpd@alf.mars>
and subject line Re: libutempter FTCBFS: uses build architecture compiler
has caused the Debian Bug report #836544,
regarding libutempter FTCBFS: uses 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.)


-- 
836544: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=836544
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Source: libutempter
Version: 1.1.6-3
Tags: patch
User: helmutg@debian.org
Usertags: rebootstrap

libutempter fails to cross build from source, because it uses the build
architecture compiler. The later dh_strip (which uses host architecture
tools) fails operating on the generated ELF objects. The attached patch
supplies a triplet-prefixed CC variable and allows overriding CC for use
with e.g. clang based builds. Please consider applying it.

Helmut
diff --minimal -Nru libutempter-1.1.6/debian/changelog libutempter-1.1.6/debian/changelog
--- libutempter-1.1.6/debian/changelog	2016-02-18 19:47:33.000000000 +0100
+++ libutempter-1.1.6/debian/changelog	2016-09-03 22:47:11.000000000 +0200
@@ -1,3 +1,10 @@
+libutempter (1.1.6-3.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Pass triplet-prefixed CC to make. (Closes: #-1)
+
+ -- Helmut Grohne <helmut@subdivi.de>  Sat, 03 Sep 2016 22:46:56 +0200
+
 libutempter (1.1.6-3) unstable; urgency=medium
 
   * Team upload.
diff --minimal -Nru libutempter-1.1.6/debian/rules libutempter-1.1.6/debian/rules
--- libutempter-1.1.6/debian/rules	2016-02-18 19:47:33.000000000 +0100
+++ libutempter-1.1.6/debian/rules	2016-09-03 22:46:48.000000000 +0200
@@ -1,10 +1,17 @@
 #!/usr/bin/make -f
 
 export DEB_BUILD_MAINT_OPTIONS = hardening=+pie,+bindnow
+include /usr/share/dpkg/architecture.mk
+ifeq ($(origin CC),default)
+	CC=$(DEB_HOST_GNU_TYPE)-gcc
+endif
 
 %:
 	dh $@ --parallel --list-missing
 
+override_dh_auto_build:
+	dh_auto_build -- CC=$(CC)
+
 override_dh_fixperms:
 	dh_fixperms
 	chown root:utmp debian/libutempter0/usr/lib/$(DEB_HOST_MULTIARCH)/utempter/utempter

--- End Message ---
--- Begin Message ---
On Thu, Jun 29, 2017 at 08:21:22PM +0200, Felix Geyer wrote:
> Isn't this obsolete with debhelper 10.1?
> 
>   * Make the makefile.pm buildsystem (but not subclasses thereof)
>     pass the CC and CXX variables set to the host compilers when
>     cross-building.  Thanks to Helmut Grohne for the idea and
>     the initial patch.  (Closes: #836988)

Yes. Thanks for noticing.

Helmut

--- End Message ---

Reply to: