Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at
Bug 1423194 - galera: FTBFS in rawhide
Summary: galera: FTBFS in rawhide
Alias: None
Product: Fedora
Classification: Fedora
Component: galera
Version: rawhide
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
Assignee: Fabio Massimo Di Nitto
QA Contact: Fedora Extras Quality Assurance
Depends On:
TreeView+ depends on / blocked
Reported: 2017-02-17 03:07 UTC by Jonathan Wakely
Modified: 2017-02-18 01:03 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Last Closed: 2017-02-18 01:03:55 UTC
Type: Bug

Attachments (Terms of Use)
config.log from failed build (34.33 KB, text/plain)
2017-02-17 03:07 UTC, Jonathan Wakely
no flags Details

Description Jonathan Wakely 2017-02-17 03:07:14 UTC
Created attachment 1251347 [details]
config.log from failed build

Failed build:

Checking for C++ header file asio.hpp... no
Falling back to bundled asio
Checking for C++ header file asio.hpp... yes
Checking for C++ header file asio/ssl.hpp... no
ssl support required but asio/ssl.hpp not found or not usable
compile with ssl=0 or check that openssl devel headers are usable
error: Bad exit status from /var/tmp/rpm-tmp.l7NIxj (%build)
    Bad exit status from /var/tmp/rpm-tmp.l7NIxj (%build)
RPM build errors:
Child return code was: 1
EXCEPTION: [Error()]

This appears to be because the bundled asio doesn't support OpenSSL 1.1.0, because it's an old version of asio.

The package would probably build if BuildRequires was changed from openssl-devel to compat-openssl10-devel, but I wonder why it uses a bundled asio in the first place? There are already two copies of asio in Fedora, as boost-asio and the standalone asio. 

galera already has BuildRequires: boost-devel, so the asio headers are installed, but the config test doesn't look in /usr/include/boost so it doesn't find /usr/include/boost/asio.hpp

The package builds successfully if asio-devel is added to the BuildRequires, so  it finds /usr/include/asio.hpp and doesn't need the bundled version.

i.e this fixes the build, and stops using the bundled lib:

--- a/galera.spec
+++ b/galera.spec
@@ -10,7 +10,7 @@ Source0:{name}-3-%{version}.ta
 Source1:        garbd.service
 Source2:        garbd-wrapper
-BuildRequires:  boost-devel check-devel openssl-devel scons systemd
+BuildRequires:  boost-devel check-devel openssl-devel scons systemd asio-devel
 Requires:       nmap-ncat

Comment 1 Jonathan Wakely 2017-02-17 03:11:13 UTC
The spec file should have said "Provides: bundled(asio) = 1.4.8"

Note You need to log in before you can comment on or make changes to this bug.