Merge lp:~noskcaj/ubuntu/utopic/xfce4-systemload-plugin/merge into lp:ubuntu/utopic/xfce4-systemload-plugin

Proposed by Jackson Doak
Status: Merged
Merge reported by: Martin Pitt
Merged at revision: not available
Proposed branch: lp:~noskcaj/ubuntu/utopic/xfce4-systemload-plugin/merge
Merge into: lp:ubuntu/utopic/xfce4-systemload-plugin
Diff against target: 131 lines (+80/-3)
5 files modified
debian/changelog (+22/-0)
debian/control (+4/-2)
debian/patches/01_upower-0.99.patch (+52/-0)
debian/patches/series (+1/-0)
debian/rules (+1/-1)
To merge this branch: bzr merge lp:~noskcaj/ubuntu/utopic/xfce4-systemload-plugin/merge
Reviewer Review Type Date Requested Status
Martin Pitt Approve
Review via email: mp+221652@code.launchpad.net

Description of the change

Merge from debian, add support for upower 0.99

To post a comment you must log in.
Revision history for this message
Martin Pitt (pitti) wrote :

Uploaded, thanks!

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== removed file '.pc/applied-patches'
2=== modified file 'debian/changelog'
3--- debian/changelog 2013-10-15 22:05:32 +0000
4+++ debian/changelog 2014-06-01 23:52:04 +0000
5@@ -1,3 +1,25 @@
6+xfce4-systemload-plugin (1:1.1.1-2ubuntu1) utopic; urgency=medium
7+
8+ * Resync with Debian testing.
9+ * Readd the epoch…
10+ * Add 01_upower-0.99.patch, prepares us for the upower 0.99 transition
11+
12+ -- Jackson Doak <noskcaj@ubuntu.com> Mon, 02 Jun 2014 09:40:43 +1000
13+
14+xfce4-systemload-plugin (1.1.1-2) unstable; urgency=low
15+
16+ [ Lionel Le Folgoc ]
17+ * debian/control:
18+ - build-dep on libupower-glib-dev and recommend upower to enable the
19+ power saving feature.
20+ - add myself to Uploaders.
21+
22+ [ Yves-Alexis Perez ]
23+ * debian/rules:
24+ - enable all hardening flags.
25+
26+ -- Lionel Le Folgoc <mrpouit@gmail.com> Wed, 22 May 2013 08:42:32 +0200
27+
28 xfce4-systemload-plugin (1:1.1.1-1ubuntu2) saucy; urgency=low
29
30 * Use dh_autotools-dev to update config.{sub,guess} for AArch64.
31
32=== modified file 'debian/control'
33--- debian/control 2012-05-17 23:18:47 +0000
34+++ debian/control 2014-06-01 23:52:04 +0000
35@@ -3,10 +3,11 @@
36 Priority: optional
37 Maintainer: Xubuntu Developers <xubuntu-devel@lists.ubuntu.com>
38 XSBC-Original-Maintainer: Debian Xfce Maintainers <pkg-xfce-devel@lists.alioth.debian.org>
39-Uploaders: Yves-Alexis Perez <corsac@debian.org>
40+Uploaders: Yves-Alexis Perez <corsac@debian.org>,
41+ Lionel Le Folgoc <mrpouit@gmail.com>
42 Build-Depends: autotools-dev, debhelper (>= 9), dpkg-dev (>= 1.16.1),
43 xfce4-panel-dev (>= 4.8.0), libxml2-dev, libxml-parser-perl, libxfce4ui-1-dev,
44- intltool
45+ intltool, libupower-glib-dev
46 Standards-Version: 3.9.3
47 Homepage: http://goodies.xfce.org/
48 Vcs-Svn: svn://svn.debian.org/pkg-xfce/goodies/trunk/xfce4-systemload-plugin/
49@@ -16,6 +17,7 @@
50 Section: xfce
51 Architecture: any
52 Depends: ${shlibs:Depends}, ${misc:Depends}
53+Recommends: upower
54 Description: system load monitor plugin for the Xfce4 panel
55 This plugins displays the current CPU load, the memory in use, the swap space
56 and the system uptime in the Xfce4 panel.
57
58=== added file 'debian/patches/01_upower-0.99.patch'
59--- debian/patches/01_upower-0.99.patch 1970-01-01 00:00:00 +0000
60+++ debian/patches/01_upower-0.99.patch 2014-06-01 23:52:04 +0000
61@@ -0,0 +1,52 @@
62+From 1bc7f32ea8244575124420bd34d52913831a1ae1 Mon Sep 17 00:00:00 2001
63+From: Eric Koegel <eric.koegel@gmail.com>
64+Date: Fri, 30 May 2014 19:12:02 +0300
65+Subject: [PATCH] Update for Upower 0.99
66+
67+Upower 0.99 changed from the "changed" signal to "notify" as well as
68+the function signature. This patch adds that while still supporting
69+the previous versions of upower.
70+---
71+ panel-plugin/systemload.c | 13 +++++++++++--
72+ 1 file changed, 11 insertions(+), 2 deletions(-)
73+
74+diff --git a/panel-plugin/systemload.c b/panel-plugin/systemload.c
75+index c0572a3..30636e9 100644
76+--- a/panel-plugin/systemload.c
77++++ b/panel-plugin/systemload.c
78+@@ -624,11 +624,15 @@ monitor_set_orientation (XfcePanelPlugin *plugin, GtkOrientation orientation,
79+
80+ #ifdef HAVE_UPOWER_GLIB
81+ static void
82++#if UP_CHECK_VERSION(0, 99, 0)
83++upower_changed_cb(UpClient *client, GParamSpec *pspec, t_global_monitor *global)
84++#else /* UP_CHECK_VERSION < 0.99 */
85+ upower_changed_cb(UpClient *client, t_global_monitor *global)
86++#endif /* UP_CHECK_VERSION */
87+ {
88+ setup_timer(global);
89+ }
90+-#endif
91++#endif /* HAVE_UPOWER_GLIB */
92+
93+ static void
94+ entry_changed_cb(GtkEntry *entry, t_global_monitor *global)
95+@@ -925,10 +929,15 @@ systemload_construct (XfcePanelPlugin *plugin)
96+
97+ #ifdef HAVE_UPOWER_GLIB
98+ if (global->upower) {
99++#if UP_CHECK_VERSION(0, 99, 0)
100++ g_signal_connect (global->upower, "notify",
101++ G_CALLBACK(upower_changed_cb), global);
102++#else /* UP_CHECK_VERSION < 0.99 */
103+ g_signal_connect (global->upower, "changed",
104+ G_CALLBACK(upower_changed_cb), global);
105++#endif /* UP_CHECK_VERSION */
106+ }
107+-#endif
108++#endif /* HAVE_UPOWER_GLIB */
109+
110+ g_signal_connect (plugin, "free-data", G_CALLBACK (monitor_free), global);
111+
112+--
113+1.9.3
114
115=== added file 'debian/patches/series'
116--- debian/patches/series 1970-01-01 00:00:00 +0000
117+++ debian/patches/series 2014-06-01 23:52:04 +0000
118@@ -0,0 +1,1 @@
119+01_upower-0.99.patch
120
121=== modified file 'debian/rules'
122--- debian/rules 2013-10-15 22:05:32 +0000
123+++ debian/rules 2014-06-01 23:52:04 +0000
124@@ -1,6 +1,6 @@
125 #!/usr/bin/make -f
126 export DEB_LDFLAGS_MAINT_APPEND=-Wl,--as-needed -Wl,-O1 -Wl,-z,defs
127-export DEB_BUILD_MAINT_OPTIONS=hardening=+pie,+bindnow
128+export DEB_BUILD_MAINT_OPTIONS=hardening=+all
129
130 %:
131 dh $@ --parallel --with autotools_dev

Subscribers

People subscribed via source and target branches

to all changes: