Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[gnome-overlay] devicekit-power patch
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
Henry78
Apprentice
Apprentice


Joined: 12 Jul 2004
Posts: 186
Location: Austria

PostPosted: Mon Mar 16, 2009 9:02 pm    Post subject: [gnome-overlay] devicekit-power patch Reply with quote

sys-apps/devicekit-power-006 needs a small patch (named dkp-history.patch here) named to fix an unitilialized variable.

Code:

--- src/dkp-history.c   2009-02-09 16:05:26.000000000 +0100
+++ src/dkp-history.c   2009-03-16 20:57:02.000000000 +0100
@@ -142,7 +142,7 @@
    DkpDeviceState state = DKP_DEVICE_STATE_UNKNOWN;
    guint64 time = 0;
    gdouble value = 0;
-   guint64 count;
+   guint64 count = 0;
    guint step = 1;
    gfloat preset;


to incorporate the patch, add this lines to the ebuild, right befor the pkg_setup() routine
Code:

src_unpack() {
    unpack ${A}

    cd "${S}"
    epatch "${FILESDIR}"/dkp-history.patch
}


--
regards, Henry
Back to top
View user's profile Send private message
sternklang
Veteran
Veteran


Joined: 10 Sep 2005
Posts: 1641
Location: Somewhere in time and space

PostPosted: Thu Mar 19, 2009 3:07 am    Post subject: Reply with quote

You might want to file a bug upstream about this, product DeviceKit, component DeviceKit-power.
Back to top
View user's profile Send private message
Henry78
Apprentice
Apprentice


Joined: 12 Jul 2004
Posts: 186
Location: Austria

PostPosted: Thu Mar 19, 2009 11:48 am    Post subject: Reply with quote

Done. See Bug 20749 wich is fixed now.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum