Bug 1653030

Summary: Fawkes incompatible with mongo-cxx-driver 3.3.1
Product: [Fedora] Fedora Reporter: Rich Mattes <richmattes>
Component: fawkesAssignee: Till Hofmann <thofmann>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: thofmann, tim
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-02-12 17:25:59 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Rich Mattes 2018-11-24 18:15:28 UTC
Description of problem:
fawkes-1.0.1 fails to build in rawhide, due to an incompatibility with mongo-cxx-driver.  The rawhide version of mongo-cxx-driver was upgraded to version 3.3.1 from version 1.1.2.  Version 3.3.1 looks quite different in terms of the header file layout, and as a result fawkes' buildsystem skips building the mongodb plugin. From the looks of it, the build scripts and the plugin source will need to be ported to the new version of mongo-cxx-driver.

Version-Release number of selected component (if applicable):
mongo-cxx-driver-devel-3.3.1-1.fc30
fawkes-1.0.1-1.fc30

How reproducible:
Attempt to build fawkes in the f30-protobuf side tag

Steps to Reproduce:
1. fedpkg clone fawkes && cd fawkes
2. fedpkg scratch-build --target f30-protobuf

Actual results:
Fawkes fails to detect mongodb, probably due to the changed header file layout.  The package builds, but since the mongo plugin wasn't built, the RPM build fails due to the missing library.

An example build can be found here:
https://koji.fedoraproject.org/koji/taskinfo?taskID=31081022

Expected results:
Successful build

Comment 1 Till Hofmann 2018-11-24 18:34:01 UTC
We are aware upstream: https://github.com/fawkesrobotics/fawkes/issues/16

Comment 2 Rich Mattes 2019-02-12 02:34:21 UTC
In light of mongodb being phased out of the distro[1], should we just disable the fawkes mongo support in rawhide?

[1] https://pagure.io/fesco/issue/2078

Comment 3 Till Hofmann 2019-02-12 17:25:59 UTC
Yes, I just pushed a patch that adds %bcond_with mongodb so the mongodb plugins are not built by default, but we can still re-enable it if we want to:
https://src.fedoraproject.org/rpms/fawkes/c/ae2fd5bf7ef3cdf0fb709df7f189e61c7ed19e9d?branch=master