Gentoo Archives: gentoo-commits

From: "Richard Farina (zerochaos)" <zerochaos@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-power/powertop/files: powertop-2.2-use-package_version.patch
Date: Fri, 23 Nov 2012 18:06:11
Message-Id: 20121123180536.50E5920C9F@flycatcher.gentoo.org
1 zerochaos 12/11/23 18:05:36
2
3 Added: powertop-2.2-use-package_version.patch
4 Log:
5 fix powertop 2.2 to report proper version tag wrt bug #444466
6
7 (Portage version: 2.1.11.31/cvs/Linux x86_64, signed Manifest commit with key DD11F94A)
8
9 Revision Changes Path
10 1.1 sys-power/powertop/files/powertop-2.2-use-package_version.patch
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-power/powertop/files/powertop-2.2-use-package_version.patch?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-power/powertop/files/powertop-2.2-use-package_version.patch?rev=1.1&content-type=text/plain
14
15 Index: powertop-2.2-use-package_version.patch
16 ===================================================================
17 It was missed to update POWERTOP_VERSION macro so that the
18 new v2.2 release still shows v2.1 string on the header of
19 ncurses window. Convert to use PACKAGE_VERSION macro which
20 set by autotools to the AC_INIT version so that it cannot
21 be missed anymore.
22
23 Signed-off-by: Namhyung Kim <namhyung at gmail.com>
24 ---
25 src/lib.h | 4 ++--
26 1 file changed, 2 insertions(+), 2 deletions(-)
27
28 diff --git a/src/lib.h b/src/lib.h
29 index 8cf4632..209421a 100644
30 --- a/src/lib.h
31 +++ b/src/lib.h
32 @@ -35,8 +35,8 @@
33
34 #define _(STRING) gettext(STRING)
35
36 -#define POWERTOP_VERSION "v2.1"
37 -#define POWERTOP_SHORT_VERSION "2.1"
38 +#define POWERTOP_VERSION "v"PACKAGE_VERSION
39 +#define POWERTOP_SHORT_VERSION PACKAGE_VERSION
40
41
42 extern int get_max_cpu(void);