Update to upower-0.99.3.

ok landry@ (maintainer)
This commit is contained in:
ajacoutot 2015-05-30 07:26:09 +00:00
parent feb19d23f8
commit 7dc0772564
3 changed files with 5 additions and 33 deletions

View File

@ -1,14 +1,13 @@
# $OpenBSD: Makefile,v 1.47 2015/04/04 09:36:37 ajacoutot Exp $
# $OpenBSD: Makefile,v 1.48 2015/05/30 07:26:09 ajacoutot Exp $
ONLY_FOR_ARCHS =${APM_ARCHS}
COMMENT = userland power management interface
DISTNAME = upower-0.99.2
DISTNAME = upower-0.99.3
EXTRACT_SUFX = .tar.xz
CATEGORIES = sysutils
SHARED_LIBS += upower-glib 1.0 # 2.0
REVISION = 6
SHARED_LIBS += upower-glib 1.0 # 3.1
HOMEPAGE = http://upower.freedesktop.org/
MASTER_SITES = ${HOMEPAGE}/releases/

View File

@ -1,2 +1,2 @@
SHA256 (upower-0.99.2.tar.xz) = 6dxFOt+WuJySzMzTPytlQyWDRPfIuolGDcCpKoGAlG8=
SIZE (upower-0.99.2.tar.xz) = 428668
SHA256 (upower-0.99.3.tar.xz) = aXGZvMETuwaeb7a/QTVTanArqYR+RsX8bfh9GWJN3Tg=
SIZE (upower-0.99.3.tar.xz) = 429252

View File

@ -1,27 +0,0 @@
$OpenBSD: patch-libupower-glib_up-device_c,v 1.1 2015/03/27 16:03:33 ajacoutot Exp $
From 2510148b16a71504dff3880c8af416fd85a2885d Mon Sep 17 00:00:00 2001
From: Vlad Orlov <monsta@inbox.ru>
Date: Fri, 13 Mar 2015 13:17:31 +0100
Subject: lib: Fix crash on uninitialized variant
--- libupower-glib/up-device.c.orig Tue May 20 14:24:12 2014
+++ libupower-glib/up-device.c Fri Mar 27 14:54:03 2015
@@ -422,7 +422,7 @@ GPtrArray *
up_device_get_history_sync (UpDevice *device, const gchar *type, guint timespec, guint resolution, GCancellable *cancellable, GError **error)
{
GError *error_local = NULL;
- GVariant *gva;
+ GVariant *gva = NULL;
guint i;
GPtrArray *array = NULL;
gboolean ret;
@@ -502,7 +502,7 @@ GPtrArray *
up_device_get_statistics_sync (UpDevice *device, const gchar *type, GCancellable *cancellable, GError **error)
{
GError *error_local = NULL;
- GVariant *gva;
+ GVariant *gva = NULL;
guint i;
GPtrArray *array = NULL;
gboolean ret;