Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 262955 - [gnome-overlay] sys-apps/devicekit-power-006: compilation error due to a warning treated as error
Summary: [gnome-overlay] sys-apps/devicekit-power-006: compilation error due to a warn...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: AMD64 Linux
: High normal
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
: 263341 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-03-18 20:09 UTC by Romain Perier (RETIRED)
Modified: 2009-03-22 10:26 UTC (History)
2 users (show)

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


Attachments
the patch which solves the problem (fix_dpk-history-warning.patch,331 bytes, patch)
2009-03-18 20:10 UTC, Romain Perier (RETIRED)
Details | Diff
the new ebuild including the patch (devicekit-power-006-r1.ebuild,1.00 KB, text/plain)
2009-03-18 20:11 UTC, Romain Perier (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Romain Perier (RETIRED) gentoo-dev 2009-03-18 20:09:42 UTC
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
Comment 1 Romain Perier (RETIRED) gentoo-dev 2009-03-18 20:10:49 UTC
Created attachment 185456 [details, diff]
the patch which solves the problem
Comment 2 Romain Perier (RETIRED) gentoo-dev 2009-03-18 20:11:17 UTC
Created attachment 185458 [details]
the new ebuild including the patch
Comment 3 Tommaso Pasini 2009-03-20 16:32:22 UTC
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.
Comment 4 Nirbheek Chauhan (RETIRED) gentoo-dev 2009-03-21 17:54:46 UTC
(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
Comment 5 Nirbheek Chauhan (RETIRED) gentoo-dev 2009-03-22 09:11:57 UTC
*** Bug 263341 has been marked as a duplicate of this bug. ***
Comment 6 Walter Meinl 2009-03-22 10:24:49 UTC
 
> Added to overlay, thanks :)
> 
Nick, you missed to inherit eutils in the overlay update. Therefore, the patch doesn't get applied.
Comment 7 Walter Meinl 2009-03-22 10:26:38 UTC
(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