[pkg-bacula-devel] Bug#1009012: bacula FTCBFS: uses the build architecture qmake

Helmut Grohne helmut at subdivi.de
Tue Apr 5 12:20:08 BST 2022


Source: bacula
Version: 9.6.7-4
Tags: patch upstream
User: debian-cross at lists.debian.org
Usertags: ftcbfs

bacula fails to cross build from source, because it attempts to use the
build architecture qmake while Build-Depends requested the host
architecture one. To make matters worse, this is only visible much later
in the build as the qmake failure is swallowed. Such behaviour arguably
runs afoul Debian policy section 4.6 and should likely be considered a
serious policy violation.

In any case, bacula's configure.ac uses AC_PATH_PROG to locate qmake.
Once changing that to AC_PATH_TOOL, the host architecture qmake is being
used and this part magically works. This is what this bug is about. I'm
attaching a patch for your convenience.

Beyond this, bacula uses mysql_config to discover mysql client
libraries. Cross building with mysql_config is not something we can fix.
If bacula is to support cross building, it will need to use pkg-config
(or pkgconf) instead. The relevant code is quite non-trivial and I
couldn't come up with a working version. Would you be interested in
looking into this? The following link describes a way that is
automatically compatible with cross building. The module name is
"mysqlclient". https://autotools.info/pkgconfig/pkg_check_modules.html

So please close this bug when fixing the qmake invocation and
preferably also the policy violation.

Helmut
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cross.patch
Type: text/x-diff
Size: 385 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-bacula-devel/attachments/20220405/39dbbb7f/attachment.patch>


More information about the pkg-bacula-devel mailing list