1 |
commit: 5ec086c2ab61eeed4f1fb75eb3231cfb3b556b67 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Dec 4 16:45:24 2018 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Dec 4 16:47:55 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5ec086c2 |
7 |
|
8 |
sys-power/upower-pm-utils: Remove last-rited pkg |
9 |
|
10 |
Closes: https://bugs.gentoo.org/596988 |
11 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
12 |
|
13 |
profiles/package.mask | 4 - |
14 |
sys-power/upower-pm-utils/Manifest | 1 - |
15 |
...-utils-0.9.23-always_use_pm-utils_backend.patch | 27 ------ |
16 |
...0.9.23-clamp_percentage_for_overfull_batt.patch | 72 --------------- |
17 |
...upower-pm-utils-0.9.23-create-dir-runtime.patch | 34 ------- |
18 |
.../upower-pm-utils-0.9.23-fix-segfault.patch | 24 ----- |
19 |
sys-power/upower-pm-utils/metadata.xml | 7 -- |
20 |
.../upower-pm-utils-0.9.23-r2.ebuild | 101 --------------------- |
21 |
8 files changed, 270 deletions(-) |
22 |
|
23 |
diff --git a/profiles/package.mask b/profiles/package.mask |
24 |
index 1d75588a265..34a42c4929e 100644 |
25 |
--- a/profiles/package.mask |
26 |
+++ b/profiles/package.mask |
27 |
@@ -392,10 +392,6 @@ sys-auth/bioapi |
28 |
sys-auth/tfm-fingerprint |
29 |
sys-auth/pam_bioapi |
30 |
|
31 |
-# Pacho Ramos <pacho@g.o> (04 Nov 2018) |
32 |
-# Dead for ages, not needed anymore (#596988). Removal in a month. |
33 |
-sys-power/upower-pm-utils |
34 |
- |
35 |
# Andreas Sturmlechner <asturm@g.o> (03 Nov 2018) |
36 |
# Breaks revdeps (GDir and GDirEntry split from gfile.h into new gdir.h) |
37 |
# See tracker: https://bugs.gentoo.org/670222 |
38 |
|
39 |
diff --git a/sys-power/upower-pm-utils/Manifest b/sys-power/upower-pm-utils/Manifest |
40 |
deleted file mode 100644 |
41 |
index 27515c195f3..00000000000 |
42 |
--- a/sys-power/upower-pm-utils/Manifest |
43 |
+++ /dev/null |
44 |
@@ -1 +0,0 @@ |
45 |
-DIST upower-0.9.23.tar.xz 425804 BLAKE2B 981fbc076ba969a0b19919b45a19ccc48fb19717ec61810d4df28341dae55d29937b89cd895882946eff8dde08e0bed3aadec1da22cbe40ee48334b3901efeb8 SHA512 526ef95e43faf61744ba2bbf80bae23bc5c8672130563a87a7f18f00d85b16e2069814ad70dd66ce6ce698037b522d78579cc2135e2af0c2a636230cfa662c6d |
46 |
|
47 |
diff --git a/sys-power/upower-pm-utils/files/upower-pm-utils-0.9.23-always_use_pm-utils_backend.patch b/sys-power/upower-pm-utils/files/upower-pm-utils-0.9.23-always_use_pm-utils_backend.patch |
48 |
deleted file mode 100644 |
49 |
index b1cb5c7334e..00000000000 |
50 |
--- a/sys-power/upower-pm-utils/files/upower-pm-utils-0.9.23-always_use_pm-utils_backend.patch |
51 |
+++ /dev/null |
52 |
@@ -1,27 +0,0 @@ |
53 |
-Description: Always use the pm-utils backend for now |
54 |
- Redirecting the suspend / hibernate request to logind requires systemd |
55 |
- to be running, as logind tries to start the suspend.target / |
56 |
- hibernate.target via the D-Bus interface provided by systemd. |
57 |
- The availability of logind does not necessarily imply that systemd is |
58 |
- available since we made logind D-Bus activatable under sysvinit. |
59 |
- Also, the systemd version currently in unstable (v44) is too old and |
60 |
- doesn't provide that functionality yet. |
61 |
- Ubuntu ships a very basic implementation of that D-Bus inferface in |
62 |
- systemd-shim which can be run under sysvinit. But we don't have that |
63 |
- package in Debian (yet). |
64 |
- For now, it's the safest option to just continue using the old |
65 |
- pm-utils backend always. |
66 |
-Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=718493 |
67 |
-diff --git a/src/linux/up-backend.c b/src/linux/up-backend.c |
68 |
-index b9f75f5..595a1b2 100644 |
69 |
---- a/src/linux/up-backend.c |
70 |
-+++ b/src/linux/up-backend.c |
71 |
-@@ -51,7 +51,7 @@ |
72 |
- |
73 |
- #ifdef ENABLE_DEPRECATED |
74 |
- |
75 |
--#define LOGIND_AVAILABLE() (access("/run/systemd/seats/", F_OK) >= 0) |
76 |
-+#define LOGIND_AVAILABLE() (FALSE) |
77 |
- |
78 |
- #define SD_HIBERNATE_COMMAND "gdbus call --system --dest org.freedesktop.login1 --object-path /org/freedesktop/login1 --method org.freedesktop.login1.Manager.Hibernate 'true'" |
79 |
- #define SD_SUSPEND_COMMAND "gdbus call --system --dest org.freedesktop.login1 --object-path /org/freedesktop/login1 --method org.freedesktop.login1.Manager.Suspend 'true'" |
80 |
|
81 |
diff --git a/sys-power/upower-pm-utils/files/upower-pm-utils-0.9.23-clamp_percentage_for_overfull_batt.patch b/sys-power/upower-pm-utils/files/upower-pm-utils-0.9.23-clamp_percentage_for_overfull_batt.patch |
82 |
deleted file mode 100644 |
83 |
index 6e643c42de5..00000000000 |
84 |
--- a/sys-power/upower-pm-utils/files/upower-pm-utils-0.9.23-clamp_percentage_for_overfull_batt.patch |
85 |
+++ /dev/null |
86 |
@@ -1,72 +0,0 @@ |
87 |
-From b8fe9902f3c6c50ca6a23e24fcea99582beebc65 Mon Sep 17 00:00:00 2001 |
88 |
-From: Martin Pitt <martinpitt@×××××.org> |
89 |
-Date: Tue, 22 Oct 2013 08:02:51 +0000 |
90 |
-Subject: linux: Clamp percentage for overfull batteries |
91 |
- |
92 |
-Some batteries report energy > energy_full and a percentage ("capacity" |
93 |
-attribute) > 100%. Clamp these within 0 and 100% for both plausibility as well |
94 |
-as to avoid setting an out-of-range property which would then become 0%. |
95 |
- |
96 |
-https://launchpad.net/bugs/1240673 |
97 |
---- |
98 |
-diff --git a/src/linux/integration-test b/src/linux/integration-test |
99 |
-index 8489bf3..4be1922 100755 |
100 |
---- a/src/linux/integration-test |
101 |
-+++ b/src/linux/integration-test |
102 |
-@@ -442,6 +442,39 @@ class Tests(unittest.TestCase): |
103 |
- self.assertEqual(self.get_dbus_property('OnLowBattery'), False) |
104 |
- self.stop_daemon() |
105 |
- |
106 |
-+ def test_battery_overfull(self): |
107 |
-+ '''battery which reports a > 100% percentage for a full battery''' |
108 |
-+ |
109 |
-+ self.testbed.add_device('power_supply', 'BAT0', None, |
110 |
-+ ['type', 'Battery', |
111 |
-+ 'present', '1', |
112 |
-+ 'status', 'Full', |
113 |
-+ 'current_now', '1000', |
114 |
-+ 'charge_now', '11000000', |
115 |
-+ 'charge_full', '10000000', |
116 |
-+ 'charge_full_design', '11000000', |
117 |
-+ 'capacity', '110', |
118 |
-+ 'voltage_now', '12000000'], []) |
119 |
-+ |
120 |
-+ self.start_daemon() |
121 |
-+ devs = self.proxy.EnumerateDevices() |
122 |
-+ self.assertEqual(len(devs), 1) |
123 |
-+ bat0_up = devs[0] |
124 |
-+ |
125 |
-+ # should clamp percentage |
126 |
-+ self.assertEqual(self.get_dbus_dev_property(bat0_up, 'Percentage'), 100.0) |
127 |
-+ self.assertEqual(self.get_dbus_dev_property(bat0_up, 'IsPresent'), True) |
128 |
-+ self.assertEqual(self.get_dbus_dev_property(bat0_up, 'State'), |
129 |
-+ UP_DEVICE_STATE_FULLY_CHARGED) |
130 |
-+ self.assertEqual(self.get_dbus_dev_property(bat0_up, 'Energy'), 132.0) |
131 |
-+ # should adjust EnergyFull to reality, not what the battery claims |
132 |
-+ self.assertEqual(self.get_dbus_dev_property(bat0_up, 'EnergyFull'), 132.0) |
133 |
-+ self.assertEqual(self.get_dbus_dev_property(bat0_up, 'EnergyFullDesign'), 132.0) |
134 |
-+ self.assertEqual(self.get_dbus_dev_property(bat0_up, 'Voltage'), 12.0) |
135 |
-+ self.assertEqual(self.get_dbus_dev_property(bat0_up, 'PowerSupply'), True) |
136 |
-+ self.assertEqual(self.get_dbus_dev_property(bat0_up, 'Type'), 2) |
137 |
-+ self.stop_daemon() |
138 |
-+ |
139 |
- def test_battery_temperature(self): |
140 |
- '''battery which reports temperature''' |
141 |
- |
142 |
-diff --git a/src/linux/up-device-supply.c b/src/linux/up-device-supply.c |
143 |
-index 8020277..b953d65 100644 |
144 |
---- a/src/linux/up-device-supply.c |
145 |
-+++ b/src/linux/up-device-supply.c |
146 |
-@@ -708,6 +708,10 @@ up_device_supply_refresh_battery (UpDeviceSupply *supply) |
147 |
- /* get a precise percentage */ |
148 |
- if (sysfs_file_exists (native_path, "capacity")) { |
149 |
- percentage = sysfs_get_double (native_path, "capacity"); |
150 |
-+ if (percentage < 0.0f) |
151 |
-+ percentage = 0.0f; |
152 |
-+ if (percentage > 100.0f) |
153 |
-+ percentage = 100.0f; |
154 |
- /* for devices which provide capacity, but not {energy,charge}_now */ |
155 |
- if (energy < 0.1f && energy_full > 0.0f) |
156 |
- energy = energy_full * percentage / 100; |
157 |
--- |
158 |
-cgit v0.9.0.2-2-gbebe |
159 |
|
160 |
diff --git a/sys-power/upower-pm-utils/files/upower-pm-utils-0.9.23-create-dir-runtime.patch b/sys-power/upower-pm-utils/files/upower-pm-utils-0.9.23-create-dir-runtime.patch |
161 |
deleted file mode 100644 |
162 |
index 34340d44ec3..00000000000 |
163 |
--- a/sys-power/upower-pm-utils/files/upower-pm-utils-0.9.23-create-dir-runtime.patch |
164 |
+++ /dev/null |
165 |
@@ -1,34 +0,0 @@ |
166 |
-From b9cff29978113aefe3ad18521f383f12ab099a34 Mon Sep 17 00:00:00 2001 |
167 |
-From: Cosimo Cecchi <cosimo@××××××××.com> |
168 |
-Date: Tue, 25 Feb 2014 09:43:04 +0000 |
169 |
-Subject: Create the history directory at runtime |
170 |
- |
171 |
-In addition to build time - this increases compatibilty with OSTree, |
172 |
-which starts out with an empty /var. |
173 |
- |
174 |
-Signed-off-by: Richard Hughes <richard@×××××××.com> |
175 |
---- |
176 |
-diff --git a/src/up-history.c b/src/up-history.c |
177 |
-index f9d0fdf..795b093 100644 |
178 |
---- a/src/up-history.c |
179 |
-+++ b/src/up-history.c |
180 |
-@@ -414,6 +414,7 @@ up_history_set_directory (UpHistory *history, const gchar *dir) |
181 |
- { |
182 |
- g_free (history->priv->dir); |
183 |
- history->priv->dir = g_strdup (dir); |
184 |
-+ g_mkdir_with_parents (dir, 0755); |
185 |
- } |
186 |
- |
187 |
- /** |
188 |
-@@ -887,7 +888,8 @@ up_history_init (UpHistory *history) |
189 |
- history->priv->data_time_full = g_ptr_array_new_with_free_func ((GDestroyNotify) g_object_unref); |
190 |
- history->priv->data_time_empty = g_ptr_array_new_with_free_func ((GDestroyNotify) g_object_unref); |
191 |
- history->priv->max_data_age = UP_HISTORY_DEFAULT_MAX_DATA_AGE; |
192 |
-- history->priv->dir = g_build_filename (HISTORY_DIR, NULL); |
193 |
-+ |
194 |
-+ up_history_set_directory (history, HISTORY_DIR); |
195 |
- } |
196 |
- |
197 |
- /** |
198 |
--- |
199 |
-cgit v0.9.0.2-2-gbebe |
200 |
|
201 |
diff --git a/sys-power/upower-pm-utils/files/upower-pm-utils-0.9.23-fix-segfault.patch b/sys-power/upower-pm-utils/files/upower-pm-utils-0.9.23-fix-segfault.patch |
202 |
deleted file mode 100644 |
203 |
index 3e897632077..00000000000 |
204 |
--- a/sys-power/upower-pm-utils/files/upower-pm-utils-0.9.23-fix-segfault.patch |
205 |
+++ /dev/null |
206 |
@@ -1,24 +0,0 @@ |
207 |
-From 0d64bbddaa0078ef148d609a3cfad854cf00d7de Mon Sep 17 00:00:00 2001 |
208 |
-From: Martin Pitt <martinpitt@×××××.org> |
209 |
-Date: Fri, 08 Nov 2013 13:59:50 +0000 |
210 |
-Subject: lib: Fix segfault on getting property when daemon is not running |
211 |
- |
212 |
-This fixes "upower --version" when the daemon is not running, and thus the |
213 |
-client proxy is NULL. |
214 |
---- |
215 |
-diff --git a/libupower-glib/up-client.c b/libupower-glib/up-client.c |
216 |
-index 35d7b5d..17fb02d 100644 |
217 |
---- a/libupower-glib/up-client.c |
218 |
-+++ b/libupower-glib/up-client.c |
219 |
-@@ -322,6 +322,9 @@ up_client_get_property (GObject *object, |
220 |
- UpClient *client; |
221 |
- client = UP_CLIENT (object); |
222 |
- |
223 |
-+ if (client->priv->proxy == NULL) |
224 |
-+ return; |
225 |
-+ |
226 |
- switch (prop_id) { |
227 |
- case PROP_DAEMON_VERSION: |
228 |
- g_value_set_string (value, up_client_glue_get_daemon_version (client->priv->proxy)); |
229 |
--- |
230 |
-cgit v0.9.0.2-2-gbebe |
231 |
|
232 |
diff --git a/sys-power/upower-pm-utils/metadata.xml b/sys-power/upower-pm-utils/metadata.xml |
233 |
deleted file mode 100644 |
234 |
index 95e86c12108..00000000000 |
235 |
--- a/sys-power/upower-pm-utils/metadata.xml |
236 |
+++ /dev/null |
237 |
@@ -1,7 +0,0 @@ |
238 |
-<?xml version="1.0" encoding="UTF-8"?> |
239 |
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
240 |
-<pkgmetadata> |
241 |
- <maintainer type="project"> |
242 |
- <email>freedesktop-bugs@g.o</email> |
243 |
- </maintainer> |
244 |
-</pkgmetadata> |
245 |
|
246 |
diff --git a/sys-power/upower-pm-utils/upower-pm-utils-0.9.23-r2.ebuild b/sys-power/upower-pm-utils/upower-pm-utils-0.9.23-r2.ebuild |
247 |
deleted file mode 100644 |
248 |
index 6359e7400a3..00000000000 |
249 |
--- a/sys-power/upower-pm-utils/upower-pm-utils-0.9.23-r2.ebuild |
250 |
+++ /dev/null |
251 |
@@ -1,101 +0,0 @@ |
252 |
-# Copyright 1999-2015 Gentoo Foundation |
253 |
-# Distributed under the terms of the GNU General Public License v2 |
254 |
- |
255 |
-EAPI=5 |
256 |
-inherit eutils systemd |
257 |
- |
258 |
-DESCRIPTION="The upstream upower 0.9 git branch for use with sys-power/pm-utils" |
259 |
-HOMEPAGE="https://upower.freedesktop.org/" |
260 |
-SRC_URI="https://upower.freedesktop.org/releases/upower-${PV}.tar.xz" |
261 |
- |
262 |
-LICENSE="GPL-2" |
263 |
-SLOT="0" |
264 |
-KEYWORDS="alpha amd64 arm ia64 ~mips ppc ppc64 sparc x86 ~x86-fbsd" |
265 |
-IUSE="+introspection ios kernel_FreeBSD kernel_linux" |
266 |
- |
267 |
-COMMON_DEPEND=">=dev-libs/dbus-glib-0.100 |
268 |
- >=dev-libs/glib-2.22 |
269 |
- sys-apps/dbus |
270 |
- >=sys-auth/polkit-0.110 |
271 |
- introspection? ( dev-libs/gobject-introspection ) |
272 |
- kernel_linux? ( |
273 |
- virtual/libusb:1 |
274 |
- virtual/libgudev:= |
275 |
- virtual/udev |
276 |
- ios? ( |
277 |
- >=app-pda/libimobiledevice-1:= |
278 |
- >=app-pda/libplist-1:= |
279 |
- ) |
280 |
- ) |
281 |
- !sys-power/upower" |
282 |
-RDEPEND="${COMMON_DEPEND} |
283 |
- kernel_linux? ( >=sys-power/pm-utils-1.4.1-r2 )" |
284 |
-DEPEND="${COMMON_DEPEND} |
285 |
- dev-libs/libxslt |
286 |
- app-text/docbook-xsl-stylesheets |
287 |
- dev-util/intltool |
288 |
- >=sys-devel/gettext-0.17 |
289 |
- virtual/pkgconfig" |
290 |
- |
291 |
-QA_MULTILIB_PATHS="usr/lib/upower/.*" |
292 |
- |
293 |
-DOCS="AUTHORS HACKING NEWS README" |
294 |
- |
295 |
-S=${WORKDIR}/upower-${PV} |
296 |
- |
297 |
-src_prepare() { |
298 |
- sed -i -e '/DISABLE_DEPRECATED/d' configure || die |
299 |
- |
300 |
- # https://bugs.freedesktop.org/show_bug.cgi?id=79565 |
301 |
- # https://bugzilla.xfce.org/show_bug.cgi?id=10931 |
302 |
- # Same effect as Debian -no_deprecation_define.patch, they patch .h, we patch .pc |
303 |
- sed -i -e 's|Cflags: |&-DUPOWER_ENABLE_DEPRECATED |' upower-glib.pc.in || die |
304 |
- |
305 |
- # From upstream 0.9 git branch: |
306 |
- epatch \ |
307 |
- "${FILESDIR}"/${P}-create-dir-runtime.patch \ |
308 |
- "${FILESDIR}"/${P}-fix-segfault.patch \ |
309 |
- "${FILESDIR}"/${P}-clamp_percentage_for_overfull_batt.patch |
310 |
- |
311 |
- # From Debian: |
312 |
- epatch "${FILESDIR}"/${P}-always_use_pm-utils_backend.patch |
313 |
-} |
314 |
- |
315 |
-src_configure() { |
316 |
- local backend myconf |
317 |
- |
318 |
- if use kernel_linux; then |
319 |
- backend=linux |
320 |
- myconf="--enable-deprecated" |
321 |
- elif use kernel_FreeBSD; then |
322 |
- backend=freebsd |
323 |
- else |
324 |
- backend=dummy |
325 |
- fi |
326 |
- |
327 |
- econf \ |
328 |
- --libexecdir="${EPREFIX}"/usr/lib/upower \ |
329 |
- --localstatedir="${EPREFIX}"/var \ |
330 |
- $(use_enable introspection) \ |
331 |
- --disable-static \ |
332 |
- ${myconf} \ |
333 |
- --enable-man-pages \ |
334 |
- --disable-tests \ |
335 |
- --with-html-dir="${EPREFIX}"/usr/share/doc/${PF}/html \ |
336 |
- --with-backend=${backend} \ |
337 |
- $(use_with ios idevice) \ |
338 |
- "$(systemd_with_utildir)" \ |
339 |
- "$(systemd_with_unitdir)" |
340 |
-} |
341 |
- |
342 |
-src_install() { |
343 |
- default |
344 |
- |
345 |
- # https://bugs.gentoo.org/487400 |
346 |
- insinto /usr/share/doc/${PF}/html/UPower |
347 |
- doins doc/html/* |
348 |
- dosym /usr/share/doc/${PF}/html/UPower /usr/share/gtk-doc/html/UPower |
349 |
- |
350 |
- keepdir /var/lib/upower #383091 |
351 |
- prune_libtool_files |
352 |
-} |