Bug#792851: FTCBFS: confuses build arch and host arch compiler

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Bug#792851: FTCBFS: confuses build arch and host arch compiler

Helmut Grohne
Source: cyrus-sasl2
Version: 2.1.26.dfsg1-12
Tags: patch
User: [hidden email]
Usertags: rebootstrap

Dear cyrus-sasl2 maintainers,

I noticed that cyrus-sasl2 fails to crossbuild from source. It uses the
wrong compiler in various places. Let me summarize:

 * The makemd5 tool is executed during build, but not installed into any
   binary package. Thus it needs to be built with the build arch
   compiler, but the upstream source currently selects the host arch
   compiler.
 * The upstream source adds -ldb as a Makefile prerequisite. Thereby, it
   accidentally exploits an area of make where architecture awareness is
   exhibited: Make searches for -ldb in using its build(!) arch search
   path. Since -ldb is only requested for the host architecture, that
   search fails. The proposed solution here is to remove -ldb from the
   make dependencies while still linking it.
 * The Debian packaging builds a sample server and client and uses the
   build arch compiler. Thus linking fails, because no build arch
   version of -lsasl2 can be found. The solution is to use the host arch
   compiler here as those binaries are installed into binary packages.

All of these these fixes can be found in the cumulative patch attached
to this bug report. Please consider applying it. If you have questions
about the proposed fixes or identified issues, don't hesitate to ask.

Helmut

cyrus-sasl2_cross.debdiff (3K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Bug#792851: canceled NMUs are not pending

Ryan Tandy-4
tag 792851 - pending
tag 880393 - pending
thanks

Since Helmut's NMU was canceled as described in #880393, I am removing
the "pending" tag from these two bugs.