Gentoo Archives: gentoo-dev

From: Bernard Cafarelli <voyageur@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Re: [gentoo-commits] gentoo-x86 commit in x11-plugins/wmbattery: ChangeLog wmbattery-2.42.ebuild wmbattery-2.19-r1.ebuild
Date: Thu, 13 Feb 2014 10:05:35
Message-Id: ce3e04097b0f649e0a82a72425675a61@cafarelli.fr
In Reply to: Re: [gentoo-dev] Re: [gentoo-commits] gentoo-x86 commit in x11-plugins/wmbattery: ChangeLog wmbattery-2.42.ebuild wmbattery-2.19-r1.ebuild by Samuli Suominen
1 Le 12/02/2014 15:13, Samuli Suominen a écrit :
2 > On 12/02/14 10:57, Bernard Cafarelli wrote:
3 >> Le 12/02/2014 1:02, Samuli Suominen a écrit :
4 >>> On 12/02/14 01:20, Bernard Cafarelli wrote:
5 >>>> Le Tue, 11 Feb 2014 12:09:14 +0200
6 >>>> Samuli Suominen <ssuominen@g.o> a écrit:
7 >>>>> On 11/02/14 11:42, Bernard Cafarelli (voyageur) wrote:
8 >>>>>> voyageur 14/02/11 09:42:47
9 >>>>>>
10 >>>>>> Modified: ChangeLog
11 >>>>>> Added: wmbattery-2.42.ebuild
12 >>>>>> Removed: wmbattery-2.19-r1.ebuild
13 >>>>>> Log:
14 >>>>>> Version bump, adds upower support
15 >>>>>>
16 >>>>>> (Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest
17 >>>>>> commit with key C74525F2)
18 >>>>>>
19 >>>>>> Revision Changes Path
20 >>>>>> 1.24 x11-plugins/wmbattery/ChangeLog
21 >>>>>>
22 >>>>>> file :
23 >>>>>> http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-plugins/wmbattery/ChangeLog?rev=1.24&view=markup
24 >>>>>> plain:
25 >>>>>> http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-plugins/wmbattery/ChangeLog?rev=1.24&content-type=text/plain
26 >>>>>> diff :
27 >>>>>> http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-plugins/wmbattery/ChangeLog?r1=1.23&r2=1.24
28 >>>>>>
29 >>>>>> Index: ChangeLog
30 >>>>>> ===================================================================
31 >>>>>> RCS file:
32 >>>>>> /var/cvsroot/gentoo-x86/x11-plugins/wmbattery/ChangeLog,v
33 >>>>>> retrieving revision 1.23
34 >>>>>> retrieving revision 1.24
35 >>>>>> diff -u -r1.23 -r1.24
36 >>>>>> --- ChangeLog 25 Sep 2012 14:08:40 -0000 1.23
37 >>>>>> +++ ChangeLog 11 Feb 2014 09:42:47 -0000 1.24
38 >>>>>> @@ -1,6 +1,12 @@
39 >>>>>> # ChangeLog for x11-plugins/wmbattery
40 >>>>>> -# Copyright 1999-2012 Gentoo Foundation; Distributed under the
41 >>>>>> GPL v2
42 >>>>>> -# $Header:
43 >>>>>> /var/cvsroot/gentoo-x86/x11-plugins/wmbattery/ChangeLog,v 1.23
44 >>>>>> 2012/09/25 14:08:40 voyageur Exp $
45 >>>>>> +# Copyright 1999-2014 Gentoo Foundation; Distributed under the
46 >>>>>> GPL v2
47 >>>>>> +# $Header:
48 >>>>>> /var/cvsroot/gentoo-x86/x11-plugins/wmbattery/ChangeLog,v 1.24
49 >>>>>> 2014/02/11 09:42:47 voyageur Exp $
50 >>>>>> +
51 >>>>>> +*wmbattery-2.42 (11 Feb 2014)
52 >>>>>> +
53 >>>>>> + 11 Feb 2014; Bernard Cafarelli <voyageur@g.o>
54 >>>>>> + -wmbattery-2.19-r1.ebuild, +wmbattery-2.42.ebuild:
55 >>>>>> + Version bump, adds upower support
56 >>>>>>
57 >>>>>> *wmbattery-2.41 (25 Sep 2012)
58 >>>>>>
59 >>>>>>
60 >>>>>>
61 >>>>>>
62 >>>>>> 1.1 x11-plugins/wmbattery/wmbattery-2.42.ebuild
63 >>>>>>
64 >>>>>> file :
65 >>>>>> http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-plugins/wmbattery/wmbattery-2.42.ebuild?rev=1.1&view=markup
66 >>>>>> plain:
67 >>>>>> http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-plugins/wmbattery/wmbattery-2.42.ebuild?rev=1.1&content-type=text/plain
68 >>>>>>
69 >>>>>> Index: wmbattery-2.42.ebuild
70 >>>>>> ===================================================================
71 >>>>>> # Copyright 1999-2014 Gentoo Foundation
72 >>>>>> # Distributed under the terms of the GNU General Public License v2
73 >>>>>> # $Header:
74 >>>>>> /var/cvsroot/gentoo-x86/x11-plugins/wmbattery/wmbattery-2.42.ebuild,v
75 >>>>>> 1.1 2014/02/11 09:42:47 voyageur Exp $
76 >>>>>>
77 >>>>>> EAPI=5
78 >>>>>> inherit autotools
79 >>>>>>
80 >>>>>> DESCRIPTION="A dockable app to report APM, ACPI, or SPIC battery
81 >>>>>> status"
82 >>>>>> HOMEPAGE="http://joeyh.name/code/wmbattery/"
83 >>>>>> SRC_URI="mirror://debian/pool/main/w/${PN}/${PN}_${PV}.tar.gz"
84 >>>>>>
85 >>>>>> LICENSE="GPL-2"
86 >>>>>> SLOT="0"
87 >>>>>> KEYWORDS="~amd64 ~ppc -sparc ~x86"
88 >>>>>> IUSE=""
89 >>>>>>
90 >>>>>> DEPEND="sys-apps/apmd
91 >>>>>> sys-power/upower
92 >>>>>> x11-libs/libX11
93 >>>>>> x11-libs/libXext
94 >>>>>> x11-libs/libXpm"
95 >>>>> Are you sure there are no runtime dependencies at all?
96 >>>>> Futhermore, does it really link against the upower libraries or
97 >>>>> just
98 >>>>> call it only at RDEPEND through dbus?
99 >>>>> In any case, the deps are wrong.
100 >>>> Nice catch, also present in the previous bump! 2.40 used EAPI 3 so
101 >>>> it
102 >>>> had the implicit RDEPEND=${DEPEND}... Fixed in both 2.41 and 2.42
103 >>>> ebuilds
104 >>>>
105 >>>> For upower this new version directly uses upower-glib, so it's a
106 >>>> build
107 >>>> dependency
108 >>>>
109 >>>
110 >>> I don't think it's legit to use the upower-glib library without
111 >>> pkg-config. So I'm pretty sure you are missing build-time-only
112 >>> dependency of virtual/pkgconfig then too.
113 >>
114 >> Indeed:
115 >>
116 >> % grep 'pkg-config.*upower'
117 >> /var/tmp/portage/x11-plugins/wmbattery-2.42/work/wmbattery/Makefile
118 >> LIBS+=$(shell pkg-config --libs upower-glib)
119 >> $(CC) $(CPPFLAGS) $(CFLAGS) $(shell pkg-config --cflags
120 >> upower-glib) -c upower.c -o upower.o
121 >>
122 >> Dependency added, thanks!
123 >>
124 >>
125 >
126 > One more thing, why does it depend on sys-apps/apmd (which is part of
127 > the old hotplug base that got replaced by acpi in 1995'ish) ?
128 > It is really a hardcoded dependency after gained upower support? Seems
129 > crazy, I don't think APM is used in any modern machines.
130 > I don't think Linux kernel even supports APM since version 3.3.0
131 > anymore
132 > fully...
133
134 The original codebase was APM-only (it's a fork from wmapm), with
135 support for
136 optional additional sources (sonypi/HAL/ACPI/...). But the base is still
137 APM.
138
139 Making it optional would be a nice new upstream feature indeed :)