Description of problem: Updating : imsettings ####################### [ 7/42] /var/tmp/rpm-tmp.51378: line 4: 21741 Aborted imsettings-reload -f > /dev/null 2>&1 imsettings-0.99.6-2.fc9.x86_64
Can you reproduce it if you run imsettings-reload -f manually? I guess you were updating on the system that doesn't have a dbus session.
Yes, I can. There is a system dbus running, but I'm upgrading over ssh. [root@localhost ~]# imsettings-reload -f (imsettings-reload:27029): IMSettings-CRITICAL **: imsettings_request_new: assertion `connection != NULL' failed (imsettings-reload:27029): IMSettings-CRITICAL **: imsettings_request_new: assertion `connection != NULL' failed (imsettings-reload:27029): IMSettings-CRITICAL **: imsettings_request_new: assertion `connection != NULL' failed (imsettings-reload:27029): IMSettings-CRITICAL **: imsettings_request_reload: assertion `IMSETTINGS_IS_REQUEST (imsettings)' failed (imsettings-reload:27029): IMSettings-CRITICAL **: imsettings_request_reload: assertion `IMSETTINGS_IS_REQUEST (imsettings)' failed (imsettings-reload:27029): IMSettings-CRITICAL **: imsettings_request_reload: assertion `IMSETTINGS_IS_REQUEST (imsettings)' failed Reloaded. (imsettings-reload:27029): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed (imsettings-reload:27029): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed (imsettings-reload:27029): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed process 27029: arguments to dbus_connection_unref() were incorrect, assertion "connection != NULL" failed in file dbus-connection.c line 2645. This is normally a bug in some application using the D-Bus library. D-Bus not built with -rdynamic so unable to print a backtrace Aborted
Thanks. well, imsettings doesn't use the system bus but the session bus. probably I shouldn't run it at %post in this case? or consider another way of notifying the update. adding a sanity check more now anyway.
Well, if nothing else, silently exit instead of aborting. You're always going to be upgrading as root anyway - will you ever be able to access the users's system bus properly?
Unlikely, unless the "user" is root.
built 0.99.6-3. abort should be gone.
Tested, works, tagged, in the tree.