Gentoo Archives: gentoo-dev

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

Replies