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 1075690 - fix to pass mock build on imsettings when GConf2 is not installed
Summary: fix to pass mock build on imsettings when GConf2 is not installed
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: imsettings
Version: rawhide
Hardware: ppc64le
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Akira TAGOH
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: F-ExcludeArch-ppc64le, PPC64LETracker
TreeView+ depends on / blocked
 
Reported: 2014-03-12 15:24 UTC by Menanteau Guy
Modified: 2014-03-13 12:16 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-03-13 12:16:11 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Menanteau Guy 2014-03-12 15:24:43 UTC
Description of problem: imseetings build failed with following error:
error: Installed (but unpackaged) file(s) found:
   /usr/lib64/imsettings/libimsettings-gconf.so

This happens when GConf2 is not installed

Version-Release number is imsettings-1.6.7

check you don't have GConf2 installed and run a build command like
rpmbuild -ba ...


For info, I bypassed the problem by changing the spec file like:
--- imsettings.spec.ori
+++ imsettings.spec
@@ -30,6 +30,11 @@ Requires:    %{name}-desktop-module%{?_isa}
 Requires(post):        /bin/dbus-send %{_sbindir}/alternatives
 Requires(postun):      /bin/dbus-send %{_sbindir}/alternatives

+# Detect gconf installation
+%if %(test -f /usr/lib64/pkgconfig/gconf-2.0.pc && echo 1 || echo 0)
+%define GConf 1
+%endif
+
 %description
 IMSettings is a framework that delivers Input Method
 settings and applies the changes so they take effect
@@ -267,6 +272,9 @@ fi
 %files libs
 %doc AUTHORS COPYING ChangeLog NEWS README
 %{_libdir}/libimsettings.so.*
+%if %{defined GConf}
+%{_libdir}/imsettings/libimsettings-gconf.so
+%endif

 %files devel
 %doc AUTHORS COPYING ChangeLog NEWS README

Comment 1 Akira TAGOH 2014-03-13 12:16:11 UTC
fixed in 1.6.7-2.fc21


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