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 bugzilla.redhat.com.

Bug 1129632

Summary: FTBFS without ModemManager
Product: [Fedora] Fedora Reporter: Dan Horák <dan>
Component: NetworkManagerAssignee: Dan Williams <dcbw>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 21CC: dcbw, psimerda
Target Milestone: ---   
Target Release: ---   
Hardware: s390x   
OS: Unspecified   
Whiteboard:
Fixed In Version: NetworkManager-0.9.10.0-4.git20140704.fc22 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-08-18 15:11:06 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:
Bug Depends On:    
Bug Blocks: 467765    

Description Dan Horák 2014-08-13 11:56:00 UTC
starting with NetworkManager-0.9.9.95-1.git20140609.fc21 NetworkManager fails to build on s390(x) because it made ModemManager-glib-devel a hard requirement.

from build.log
...
checking for NSS... yes
checking pppd/pppd.h usability... yes
checking pppd/pppd.h presence... yes
checking for pppd/pppd.h... yes
checking for pppd... /usr/sbin/pppd
checking for pppoe... no
checking for MM_GLIB... no
configure: error: Couldn't find libmm-glib
error: Bad exit status from /var/tmp/rpm-tmp.mqROss (%build)
RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.mqROss (%build)
Child return code was: 1
EXCEPTION: Command failed. See logs for output.
...

for full logs please see http://s390.koji.fedoraproject.org/koji/taskinfo?taskID=1488265


Either MM-glib must be an optional dependency in configure or we need

eg.
diff --git a/NetworkManager.spec b/NetworkManager.spec
index 969cede..301a52b 100644
--- a/NetworkManager.spec
+++ b/NetworkManager.spec
@@ -145,7 +145,7 @@ BuildRequires: wimax-devel
 BuildRequires: systemd >= 200-3 systemd-devel
 BuildRequires: libsoup-devel
 BuildRequires: libndp-devel >= 1.0
-%if 0%{?with_wwan} && (0%{?rhel} || (0%{?fedora} && 0%{?fedora} > 19))
+%if 0%{?rhel} || (0%{?fedora} && 0%{?fedora} > 19)
 BuildRequires: ModemManager-glib-devel >= 1.0
 %endif
 %if 0%{?with_nmtui}