[debian-mysql] Bug#981652: galera-4 FTCBFS: hard codes the build architecture objdump

Helmut Grohne helmut at subdivi.de
Tue Feb 2 12:24:26 GMT 2021


Source: galera-4
Version: 26.4.7-1
Tags: patch upstream
User: debian-cross at lists.debian.org
Usertags: ftcbfs

galera-4 fails to cross build from source, because it runs the build
architecture objdump on a host architecture ELF object. This is due to
hard coding the build architecture objdump in galera/src/CMakeLists.txt.
The solution here is to use ${CMAKE_OBJDUMP}, which refers to the
correctly detected objdump for the host architecture. Beyond this, it
also uses ldd, which is bound to fail during cross compilation. Almost
the same effect can be achieved with objdump -x though, so I propose
using it here as well. Please consider applying the attached patch as it
makes galera-4 cross buildable.

Helmut
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cross.patch
Type: text/x-diff
Size: 2629 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-mysql-maint/attachments/20210202/dd6e00d2/attachment.patch>


More information about the pkg-mysql-maint mailing list