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

Re: Bug#949988: axmail FTCBFS: uses the build architecture compiler as linker



Hi Helmut,

Thanks for forwarding this on - I've been a little afk for a variety of reasons, but I'm looking at it now!

Cheers,
DH

-- 
  Hibby
  MM3ZRZ

On Tue, 28 Jan 2020, at 5:05 AM, Helmut Grohne wrote:
> Source: axmail
> Version: 2.9-2
> Tags: patch upstream
> User: debian-cross@lists.debian.org
> Usertags: ftcbfs
> 
> axmail fails to cross build from source, because it uses the build
> architecture compiler as linker via the LD variable. Unfortunately, the
> meaning of LD varies widely, so dh_auto_build cannot substitute it. I
> propose defaulting it to the compiler variable such that it
> automatically gets substituted correctly in most cases while still
> leaving room for choosing it manualy. Further more, axmail passes -s to
> install which causes it to stip with the wrong strip. Beyond breaking
> cross compilation, doing so also breaks DEB_BUILD_OPTIONS=nostrip as
> well as generation of -dbgsym packages. It is best to avoid -s entirely
> and leave that up to dh_strip. Indeed, debhelper already supports that
> by passing a non-stripping install as INSTALL, so all we need to do here
> is make install substitutable. Please consider applying the attached
> patch.
> 
> Helmut
> 
> Attachments:
> * cross.patch


Reply to: