Mailinglist Archive: opensuse-commit (1417 mails)

< Previous Next >
commit powersave
  • From: root@xxxxxxxxxxxxxxx (h_root)
  • Date: Thu, 22 May 2008 04:17:07 +0200
  • Message-id: <20080522021707.6E0BE6780DE@xxxxxxxxxxxxxxx>

Hello community,

here is the log from the commit of package powersave
checked in at Thu May 22 04:17:07 CEST 2008.


--------
--- powersave/powersave.changes 2008-04-10 13:00:22.000000000 +0200
+++ powersave/powersave.changes 2008-05-19 15:28:16.000000000 +0200
@@ -1,0 +2,8 @@
+Mon May 19 15:27:20 CEST 2008 - hmacht@xxxxxxx
+
+- powersave-fix-suspend.patch:
+ - add copyright header to some source files
+ - fix suspend availability detection (bnc#392022)
+ - prevent possible segfault
+
+-------------------------------------------------------------------



New:
----
powersave-fix-suspend.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ powersave.spec ++++++
--- /var/tmp/diff_new_pack.x22186/_old 2008-05-22 04:16:20.000000000 +0200
+++ /var/tmp/diff_new_pack.x22186/_new 2008-05-22 04:16:20.000000000 +0200
@@ -16,7 +16,7 @@
Url: http://powersave.sourceforge.net/
Summary: General Powermanagement daemon supporting APM, ACPI and CPU
frequency scaling
Version: 0.15.20
-Release: 22
+Release: 34
License: GPL v2 only; GPL v2 or later
Group: System/Daemons
AutoReqProv: on
@@ -25,6 +25,7 @@
Summary: General Powermanagement daemon supporting APM, ACPI and CPU
frequency scaling
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Source0: %{name}-%{version}.tar.bz2
+Patch0: %{name}-fix-suspend.patch

%package devel
License: GPL v2 or later
@@ -85,6 +86,7 @@

%prep
%setup -q -n %{name}-%{version}
+%patch0

%build
autoreconf -fi
@@ -168,6 +170,11 @@
%_libdir/lib*.so*

%changelog
+* Mon May 19 2008 hmacht@xxxxxxx
+- powersave-fix-suspend.patch:
+ - add copyright header to some source files
+ - fix suspend availability detection (bnc#392022)
+ - prevent possible segfault
* Thu Apr 10 2008 ro@xxxxxxx
- added baselibs.conf file to build xxbit packages
for multilib support


++++++ powersave-fix-suspend.patch ++++++
Index: daemon/cpu.h
===================================================================
--- daemon/cpu.h (revision 3135)
+++ daemon/cpu.h (working copy)
@@ -1,3 +1,25 @@
+/***************************************************************************
+ * *
+ * Powersave Daemon *
+ * *
+ * Copyright (C) 2004-2008 SUSE Linux Products GmbH *
+ * *
+ * This program is free software; you can redistribute it and/or modify it *
+ * under the terms of the GNU General Public License as published by the *
+ * Free Software Foundation; either version 2 of the License, or (at you *
+ * option) any later version. *
+ * *
+ * This program is distributed in the hope that it will be useful, but *
+ * WITHOUT ANY WARRANTY; without even the implied warranty of *
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
+ * General Public License for more details. *
+ * *
+ * You should have received a copy of the GNU General Public License along *
+ * with this program; if not, write to the Free Software Foundation, Inc., *
+ * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA *
+ * *
+ ***************************************************************************/
+
#ifndef CPU_H
#define CPU_H

Index: daemon/cpu.cpp
===================================================================
--- daemon/cpu.cpp (revision 3135)
+++ daemon/cpu.cpp (working copy)
@@ -1,3 +1,25 @@
+/***************************************************************************
+ * *
+ * Powersave Daemon *
+ * *
+ * Copyright (C) 2004-2008 SUSE Linux Products GmbH *
+ * *
+ * This program is free software; you can redistribute it and/or modify it *
+ * under the terms of the GNU General Public License as published by the *
+ * Free Software Foundation; either version 2 of the License, or (at you *
+ * option) any later version. *
+ * *
+ * This program is distributed in the hope that it will be useful, but *
+ * WITHOUT ANY WARRANTY; without even the implied warranty of *
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
+ * General Public License for more details. *
+ * *
+ * You should have received a copy of the GNU General Public License along *
+ * with this program; if not, write to the Free Software Foundation, Inc., *
+ * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA *
+ * *
+ ***************************************************************************/
+
#include "cpu.h"
#include "powerlib.h"

Index: daemon/pm_interface.cpp
===================================================================
--- daemon/pm_interface.cpp (revision 3135)
+++ daemon/pm_interface.cpp (working copy)
@@ -81,12 +81,17 @@
_brightness = new Brightness();

int can;
- liblazy_hal_get_property_bool(DBUS_HAL_UDI_COMPUTER,
- "power_management.can_suspend_to_disk",
&can);
+ if (liblazy_hal_get_property_bool(DBUS_HAL_UDI_COMPUTER,
"power_management.can_hibernate", &can) != 0) {
+ liblazy_hal_get_property_bool(DBUS_HAL_UDI_COMPUTER,
"power_management.can_suspend_to_disk", &can);
+ }
+
if (can != 1)
_can_suspend_to_disk = false;
- liblazy_hal_get_property_bool(DBUS_HAL_UDI_COMPUTER,
- "power_management.can_suspend_to_ram",
&can);
+
+ if
(liblazy_hal_get_property_bool(DBUS_HAL_UDI_COMPUTER,"power_management.can_suspend",
&can) != 0) {
+
liblazy_hal_get_property_bool(DBUS_HAL_UDI_COMPUTER,"power_management.can_suspend_to_ram",
&can);
+ }
+
if (can != 1)
_can_suspend_to_ram = false;
}
@@ -597,7 +602,7 @@

DBUS_ERROR PM_Interface::handleScriptsMessage(DBusMessage *msg, const string
&msg_member)
{
- char dummy[] = "";
+ char *dummy;

pDebug (DBG_DIAG, "Handling Scripts request");
if (msg_member == "ScriptReturn") {

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++



Remember to have fun...

---------------------------------------------------------------------
To unsubscribe, e-mail: opensuse-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages