Hi, this evening when i tried to update devicekit-power to 006 version, i get the following message compilation error: cc1: warnings being treated as errors dkp-history.c: In function ‘dkp_history_get_data’: dkp-history.c:145: attention : ‘count’ may be used uninitialized in this function make[3]: *** [devkit_power_daemon-dkp-history.o] Error 1 make[3]: Leaving directory `/var/tmp/portage/sys-apps/devicekit-power-006/work/DeviceKit-power-006/src' make[2]: *** [all] Error 2 make[2]: Leaving directory `/var/tmp/portage/sys-apps/devicekit-power-006/work/DeviceKit-power-006/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/sys-apps/devicekit-power-006/work/DeviceKit-power-006' make: *** [all] Error 2 * * ERROR: sys-apps/devicekit-power-006 failed. * Call stack: * ebuild.sh, line 48: Called src_compile * environment, line 1359: Called gnome2_src_compile * environment, line 1111: Called die * The specific snippet of code: * emake || die "compile failure" * The die message: * compile failure * * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/var/tmp/portage/sys-apps/devicekit-power-006/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/sys-apps/devicekit-power-006/temp/environment'. * This ebuild is from an overlay named 'gnome': '/usr/local/portage/layman/gnome/' * >>> Failed to emerge sys-apps/devicekit-power-006, Log file: >>> '/var/tmp/portage/sys-apps/devicekit-power-006/temp/build.log' * Messages for package sys-apps/devicekit-power-006: * * ERROR: sys-apps/devicekit-power-006 failed. * Call stack: * ebuild.sh, line 48: Called src_compile * environment, line 1359: Called gnome2_src_compile * environment, line 1111: Called die * The specific snippet of code: * emake || die "compile failure" * The die message: * compile failure * * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/var/tmp/portage/sys-apps/devicekit-power-006/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/sys-apps/devicekit-power-006/temp/environment'. * This ebuild is from an overlay named 'gnome': '/usr/local/portage/layman/gnome/' * This is a trivial bug and it was just due to a variable that was declared without beeing initialized. Please find a attachment a small patch which solves the problem, and to finish the new ebuild including the patch. mrpouet Reproducible: Always
Created attachment 185456 [details, diff] the patch which solves the problem
Created attachment 185458 [details] the new ebuild including the patch
The patch fixes the problem also for me. I suggest reading the comment http://bugs.gentoo.org/show_bug.cgi?id=246643#c3 on a similar bug, regarding the future of devicekit and devicekit-power.
(In reply to comment #1) > Created an attachment (id=185456) [edit] > the patch which solves the problem > Added to overlay, thanks :) (In reply to comment #3) > The patch fixes the problem also for me. > I suggest reading the comment http://bugs.gentoo.org/show_bug.cgi?id=246643#c3 > on a similar bug, regarding the future of devicekit and devicekit-power. > The addition will be to udev-extras, and since it involves a dbus name change, probably won't affect us before GNOME 2.28
*** Bug 263341 has been marked as a duplicate of this bug. ***
> Added to overlay, thanks :) > Nick, you missed to inherit eutils in the overlay update. Therefore, the patch doesn't get applied.
(In reply to comment #6) > > Added to overlay, thanks :) > > > Nick, you missed to inherit eutils in the overlay update. Therefore, the patch > doesn't get applied. > Sorry for my confusion with your first name, Nirbheek