Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 403527 - gnome-base/gnome-control-center-3.2.1 crashes if gnome-base/gnome-settings-daemon-3.2.1 is build with -policykit
Summary: gnome-base/gnome-control-center-3.2.1 crashes if gnome-base/gnome-settings-da...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-14 06:57 UTC by Johann Schmitz (ercpe) (RETIRED)
Modified: 2012-02-16 07:27 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Johann Schmitz (ercpe) (RETIRED) gentoo-dev 2012-02-14 06:57:11 UTC
The gnome control center crashes on opening the "Date and Time" dialog if gnome-settings-daemon is build without the policykit use flag with the message:


(gnome-control-center:11337): datetime-cc-panel-WARNING **: Failed to get using ntp: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SettingsDaemon.DateTimeMechanism was not provided by any .service files

(gnome-control-center:11337): datetime-cc-panel-WARNING **: Your system does not have the 'org.gnome.settingsdaemon.datetimemechanism.configure' PolicyKit files installed. Please check your installation

(gnome-control-center:11337): datetime-cc-panel-WARNING **: Could not get current timezone: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SettingsDaemon.DateTimeMechanism was not provided by any .service files


We should either remove the "Date and Time" option from the control center if build with -policykit (if this is possible), or force the dependency to policykit in gnome-settings-daemon.



Reproducible: Always

Steps to Reproduce:
1. Emerge gnome-settings-daemon without policykit
2. Open gnome-control-center
3. Choose "Date and Time"
Comment 1 Alexandre Rostovtsev (RETIRED) gentoo-dev 2012-02-14 10:46:02 UTC
Thanks for reporting. The crash was caused by free() on a variable that could be uninitialized - and, in particular, always was uninitialized if gnome-settings-daemon had been built without policykit support. Fixed in gnome-control-center-3.2.2-r1, patch submitted upstream to https://bugzilla.gnome.org/show_bug.cgi?id=670042

>*gnome-control-center-3.2.2-r1 (14 Feb 2012)
>
>  14 Feb 2012; Alexandre Rostovtsev <tetromino@gentoo.org>
>  -gnome-control-center-3.2.1.ebuild, +gnome-control-center-3.2.2-r1.ebuild,
>  +files/gnome-control-center-3.2.2-timezone-free.patch,
>  +files/gnome-control-center-3.2.2-timezones-linguas.patch:
>  Fix crash in date and time panel with gnome-settings-daemon[-policykit] (bug
>  #403527, thanks to Johann Schmitz for reporting). Add a patch to respect
>  LINGUAS for timezone translations. Drop old.
Comment 2 Johann Schmitz (ercpe) (RETIRED) gentoo-dev 2012-02-16 07:07:06 UTC
I just emerged gnome-base/gnome-control-center-3.2.2-r1 and the "Date and Time" dialog opens as expected. However, without +policykit on gnome-settings-daemon i still get the warnings regarding the missing .service files and all settings made in the dialog are not saved.

As i said in the first comment, we should either remove the "Date and Time" option from the control center or require +policykit on gnome-settings-daemon.
Comment 3 Alexandre Rostovtsev (RETIRED) gentoo-dev 2012-02-16 07:27:43 UTC
(In reply to comment #2)
Well, since gnome-control-center already requires sys-auth/polkit, I suppose that adding a dependency on gnome-settings-daemon[policykit] will not do any harm.

>  16 Feb 2012; Alexandre Rostovtsev <tetromino@gentoo.org>
>  gnome-control-center-3.2.2.ebuild, gnome-control-center-3.2.2-r1.ebuild:
>  Depend on gnome-settings-daemon[policykit] (bug #403527 comment #2).