#917137 sphinxsearch FTCBFS: mysql_config does not work

Package:
src:sphinxsearch
Source:
sphinxsearch
Submitter:
Helmut Grohne
Date:
2021-12-03 13:36:04 UTC
Severity:
normal
Tags:
#917137#5
Date:
2018-12-23 07:02:59 UTC
From:
To:
sphinxsearch fails to cross build from source, because it fails
detecting mysql using mysql_config. During cross compilation,
mysql_config does not work at all. For that reason, it should not be
used at all. The attached patch looks up mysql using pkg-config, which
presently is the standard tools for discovering compiler and linker
flags. It makes sphinxsearch cross buildable. Please be aware:
 * In order to use PKG_CHECK_MODULES, it must not occur in a shell
   if/else branch. Such branches must be expressed using AS_IF to make
   the use of AC_REQUIRE work.
 * mariadb presently lacks a dependency on libssl-dev, but it emits
   -lssl as linker flag, see #917135.
 * In order to use the patch, you need to add pkg-config to
   Build-Depends.
I tried writing the patch in a way that is upstreamable as it is useful
to other distributions (e.g. yocto).

Helmut

#917137#12
Date:
2021-12-03 13:33:51 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
sphinxsearch, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 917137@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Andrej Shadura <andrewsh@debian.org> (supplier of updated sphinxsearch package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Fri, 03 Dec 2021 14:21:45 +0100
Source: sphinxsearch
Architecture: source
Version: 2.2.11-6
Distribution: unstable
Urgency: medium
Maintainer: Andrej Shadura <andrewsh@debian.org>
Changed-By: Andrej Shadura <andrewsh@debian.org>
Closes: 917137
Changes:
 sphinxsearch (2.2.11-6) unstable; urgency=medium
 .
   [ Helmut Grohne ]
   * Use pkg-config instead of mysql_config (Closes: #917137).
 .
   [ Andrej Shadura ]
   * Build-Depend on unixodbc-dev.
   * Use pkg-config to detect libre2 (fixes FTBFS on non-x86).
Checksums-Sha1:
 66874be80eed542284b3c93f9e631c0b21c5263d 1467 sphinxsearch_2.2.11-6.dsc
 1ced0214dc931618f0c06187144f847e7e7daa9e 18540 sphinxsearch_2.2.11-6.debian.tar.xz
Checksums-Sha256:
 95ea3ea9fc9c76c7bad5893b44bc27e53426ffa1a8043fa199df5a7d791d648a 1467 sphinxsearch_2.2.11-6.dsc
 84b1d50d22683f407f5a610911f9c1edd4f2f4c48b90dcde2e15863d9db03b07 18540 sphinxsearch_2.2.11-6.debian.tar.xz
Files:
 7c57851232b2dec4fa0cc264f0e1b7a0 1467 misc optional sphinxsearch_2.2.11-6.dsc
 b5225112b00ebea71457b7fbba07472b 18540 misc optional sphinxsearch_2.2.11-6.debian.tar.xz
-----BEGIN PGP SIGNATURE-----

iHUEARYIAB0WIQSD3NF/RLIsyDZW7aHoRGtKyMdyYQUCYaoaJwAKCRDoRGtKyMdy
YaT3AP4jPLMOuKl9U5yDFsT0pIik1QAZmg60chNzo2NQ1Z/xTQEAofaGJkE8bFAc
zXYCwEN8T1TMBJ9lm3LjW1jEpEMhpw4=
=2Shi
-----END PGP SIGNATURE-----