Hello community,

here is the log from the commit of package pm-utils.572 for 
openSUSE:11.4:Update checked in at 2012-07-03 16:55:36
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:11.4:Update/pm-utils.572 (Old)
 and      /work/SRC/openSUSE:11.4:Update/.pm-utils.572.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "pm-utils.572", Maintainer is ""

Changes:
--------
New Changes file:

--- /dev/null   2012-06-28 07:48:42.835576985 +0200
+++ /work/SRC/openSUSE:11.4:Update/.pm-utils.572.new/pm-utils.changes   
2012-07-03 16:55:40.000000000 +0200
@@ -0,0 +1,566 @@
+-------------------------------------------------------------------
+Tue Jun 26 15:40:40 UTC 2012 - vdziewie...@suse.com
+
+-Changed licence in specfile to GPL-2.0 - bnc#768867  
+
+-------------------------------------------------------------------
+Thu Jun 21 16:57:14 UTC 2012 - vdziewie...@suse.com
+
+-bnc#751621 (again): Test systemd presence (/proc/1/comm) and
+choose either systemctl or /sbin/service when stopping and
+restarting services. This should make the services stop and start properly,
+but avoid dumping binary crap in the log (bnc#751811).
+-Fixed bnc#753589 - sysctl.conf settings are lost when changing
+powerstate
+-Fixed bnc#633496 - /usr/lib/pm-utils/sleep.d/75modules should cancel 
suspend2disk when unloading a module fails
+-Fixed bnc#697379 - Powermanagement snd_hda_intel - Skript 
/usr/lib/pm-utils/intel-audio-powersave doesnt' work
+
+
+-------------------------------------------------------------------
+Fri Apr  6 13:47:10 UTC 2012 - vdziewie...@suse.com
+
+-Fixed 06autofs, which got stuck waiting for stdin and made suspend 
impossible. 
+
+-------------------------------------------------------------------
+Tue Apr  3 12:36:20 UTC 2012 - vdziewie...@suse.com
+
+-Used git repository g...@gitorious.org:opensuse/pm-utils.git, a branch of 
git://anongit.freedesktop.org/git/pm-utils. It now contains all the suse 
additions and all the patches to avoid having suse hooks in a separate package
+
+-------------------------------------------------------------------
+Mon Mar 19 09:24:47 UTC 2012 - vdziewie...@suse.com
+
+Fixed  bnc#751887 - Hibernation failure after security patches applied;
+Fixed  bnc#751621 - /usr/lib/pm-utils/sleep.d/06autofs unconditionally 
(re)starts autofs 
+Fixed  bnc#751811 - pm-suspend generates defective /var/log/pm-suspend.log file
+
+-------------------------------------------------------------------
+Wed Feb 29 12:51:24 UTC 2012 - mvysko...@suse.cz
+
+- fix bnc#749031: Add pm-utils-dhcp-interfaces.patch, fix script
+  50rcnetwork error and update savestate/restorestate functions.
+- add pm-utils-1.4.1-vtXX-upower-battery-AC-adapter.patch (bnc#670074)
+
+-------------------------------------------------------------------
+Mon Feb 13 09:57:57 UTC 2012 - bi...@opensuse.org
+
+- Add pm-utils-1.4.1-networkmanager.patch, the methods 
+  org.freedesktop.NetworkManager.{sleep,wake} have been replaced in
+  post-6.x NetworkManager by org.freedesktop.NetworkManager.Sleep
+  which takes a boolean argument(bnc#735837).
+
+-------------------------------------------------------------------
+Tue Mar  1 08:29:54 UTC 2011 - mvysko...@suse.cz
+
+- Fix bnc#663067 - remove harddrive power.d hook 
+
+-------------------------------------------------------------------
+Sun Feb 13 23:19:38 CET 2011 - vu...@opensuse.org
+
+- Use a %triggerun on pm-utils < 1.4.1-3 (should be this version)
+  to forcefully enable the cpufreq service, since else, it's not
+  enabled on upgrades. Thanks to Kay Sievers for the hint!
+  Fix bnc#653540.
+
+-------------------------------------------------------------------
+Wed Jan 26 23:28:22 CET 2011 - vu...@opensuse.org
+
+- Update rc.cpufreq:
+  + Use acpi_cpufreq instead of acpi-cpufreq for consistency.
+  + Do not report failure on start when hardware doesn't support
+    frequency scaling. Report "skipped" instead. Based on patch
+    from Per Jessen <p...@opensuse.org>. Fix bnc#660417.
+
+-------------------------------------------------------------------
+Mon Jan  3 13:21:12 UTC 2011 - tr...@novell.com
+
+- rccpufreq fixups:
+   speedstep_centrino functionality is replaced by acpi-cpufreq for quite some
+   time and is not compiled on our latest kernels anymore
+   (CONFIG_X86_SPEEDSTEP_CENTRINO)
+   Try to load mostly used cpufreq driver (acpi-cpufreq) first for speedup
+   reasons
+
+-------------------------------------------------------------------
+Tue Oct 12 13:45:13 CEST 2010 - vu...@opensuse.org
+
+- Add a cpufreq init script, with code that was originally in hal
+  init script. Since hal is getting killed, we need to move this
+  elsewhere. This will help with bnc#612131.
+  + Install rc.cpufreq as /etc/init.d/cpufreq and link it from
+    /usr/sbin/rccpufreq.
+  + Add %insserv_prereq PreReq.
+  + Add scriptlets to handle this init script. We enable it by
+    default.
+
+-------------------------------------------------------------------
+Mon Sep 20 11:40:15 UTC 2010 - mvysko...@suse.cz
+
+- Update to 1.4.1
+  * New power.d hooks:
+    - disable_wol (obsoletes wol, $WOL)
+    - hal-cd-polling
+    - harddrive,
+    - intel-audio-powersave (obsoletes sound-pm, $SOUND_PM),
+    - journal-commit,
+    - laptop-mode
+    - pcie_aspm,
+    - readahead,
+    - sata_alpm (obsoletes sata_pm, $SATA_PM)
+    - wireless (obsoletes iwl-pm, $IWL_PM)
+    - xfs_buffer
+  * Load hook blacklist for power.d hooks
+  * Fix paths for sched_powersave script
+  * Try falling back to standby suspend of mem is not available.
+  * Use flock for more robust lock file handling
+  * Make tuxonice methods chvt if using a userspace UI.
+  * Autodetect sleep modules by default instead of forcing the kernel one.
+  * Rewrote the sched-powersave hook to eliminate redundancy.
+  * Help functionality to pm-powersave
+- SUSE aditions
+  * set and check the governors via sysfs - bnc#619750
+  * do a sanity check on S2DISK_CONF
+  * fix bnc#617667: 50rcnetwork sleep hook cannot work
+  * remove power.d hooks already in upstream pm-utils 1.4.0+
+    - iwl-pm and $IWL_PM config variable replaced by wireless hook, no config 
variable
+    - sata-pm and $SATA_PM replaced by sata_alpm, $SATA_ALPM_ENABLE
+    - sound-pm and $SOUND_PM replaced by intel-audio-powersave, 
$INTEL_AUDIO_POWERSAVE
+    - wol and $WOL replaced by disable_wol, no config variable
+
+-------------------------------------------------------------------
+Mon Jul  5 13:40:49 UTC 2010 - se...@opensuse.org
+
+- bash scripts are best if their logic is correct (bnc#619734)
+
+-------------------------------------------------------------------
+Tue Jun 29 11:52:04 UTC 2010 - co...@novell.com
+
+- bash scripts are better if they follow the syntax
+
+-------------------------------------------------------------------
+Sat Jun 26 11:41:53 UTC 2010 - se...@opensuse.org
+
+- fixes bnc#617667: 50rcnetwork sleep hook cannot work
+
+-------------------------------------------------------------------
+Wed Jun 23 16:14:32 CEST 2010 - mvysko...@suse.cz
+
+- fixes bnc# 615646 - Suspending with upower/dk-power blocks the calling 
process
+  * pm-utils-1.3.0-direct-on_ac_power.patch
+
+-------------------------------------------------------------------
+Mon Jun 14 15:17:15 CEST 2010 - mvysko...@suse.cz
+
+- fixes bnc#603291: restart DHCP clients if traditional ifup is used
+- fixes bnc#613967: typo in stderr redirection
+
+-------------------------------------------------------------------
+Thu May  6 07:35:56 UTC 2010 - mvysko...@suse.cz
+
+- refresh patches to fix a build 
+
+-------------------------------------------------------------------
+Fri Apr 30 09:18:15 UTC 2010 - mvysko...@suse.cz
+
+- fix bnc#304995: export SUSE_IGNORE_FBMODES to ignore fb.modes read from 
DirectFB
+
+-------------------------------------------------------------------
+Wed Apr  7 14:17:47 UTC 2010 - mvysko...@suse.cz
+
+- fix power.d/iwl-pm hook 
+
+-------------------------------------------------------------------
+Fri Apr  2 08:45:12 UTC 2010 - mvysko...@suse.cz
+
+- Updated to 1.3.0: fix bnc#590709
+  * pm-utils does not depends on HAL anymore
+  * import HAL's fdi quirks
+  * track whether suspend/hibernate succeeded, and handle things as 
appropriately as we can.
+  * Native suspend-hybrid method.
+  * Profile the entire suspend/resume process using PM_PROFILE.
+- backport the existing patches, split and sort them
+- remove the HAL dependencies from power.d hooks wol and sata-pm
+- use explicit dependencies on external tools
+- powersave is back - now partially supports upower
+
+-------------------------------------------------------------------
+Tue Feb 16 16:18:12 CET 2010 - se...@opensuse.org
+
+- fix the location of S2DISK_CONF
+
+-------------------------------------------------------------------
+Sat Feb 13 16:02:49 CET 2010 - vu...@opensuse.org
+
+- Move the pkg-config file to /usr/share/pkgconfig to have it
+  findable on x86_64. We could also move it to
+  /usr/%_lib/pkgconfig, but we explicitly change libdir to not be
+  arch-specific, so /usr/share is more appropriate.
+
++++ 369 more lines (skipped)
++++ between /dev/null
++++ and /work/SRC/openSUSE:11.4:Update/.pm-utils.572.new/pm-utils.changes

New:
----
  pm-quirks-20100316.tar.bz2
  pm-utils-1.4.1-suse-8.tar.bz2
  pm-utils.changes
  pm-utils.spec
  rc.cpufreq

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

Other differences:
------------------
++++++ pm-utils.spec ++++++
#
# spec file for package pm-utils
#
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


%define pm_libdir %{_prefix}/lib/%{name}/
%define pm_quirkdbdir %{pm_libdir}/video-quirks
%define pm_sysconfdir %{_sysconfdir}/pm/config.d/
%define gitversion 8

Name:           pm-utils
Version:        1.4.1
Release:        5.<RELEASE13>
Summary:        Tools to suspend and hibernate computers
License:        GPL-2.0
Group:          System/Base
Url:            http://pm-utils.freedesktop.org/wiki/
Source0:        %{name}-%{version}-suse-%{gitversion}.tar.bz2
# http://gitorious.org/opensuse/pm-utils-suse
Source1:        
http://pm-utils.freedesktop.org/releases/pm-quirks-20100316.tar.bz2
Source2:        rc.cpufreq
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

PreReq:         %insserv_prereq

# hooks requires some external tools
Requires:       coreutils
Requires:       ethtool
Requires:       gawk
Requires:       grep
Requires:       module-init-tools
Requires:       sed

Requires:       upower

%description
pm-utils provide simple shell command line tools to suspend and
hibernate computers that can be used to run vendor or distro supplied
scripts on suspend and resume.

Authors:
--------
    Bill Nottingham <nott...@redhat.com>
    Peter Jones <pjo...@redhat.com>
    David Zeuthen <dav...@redhat.com>
    Richard Hughes <rich...@hughsie.com>

%package ndiswrapper
Summary:        The pm-utils hook for ndiswrapper
Group:          System/Base
Supplements:    ndiswrapper
Requires:       %{name} = %{version}

%description ndiswrapper
pm-utils provide simple shell command line tools to suspend and
hibernate computers that can be used to run vendor or distro supplied
scripts on suspend and resume. This package installs the 75ndiswrapper hook.


%prep
%setup -n %{name} -a 1 

%build
%{configure} \
  --docdir=%{_defaultdocdir}/%{name} \
  --libdir=%{_prefix}/lib
%{__make} -d

%install
%{makeinstall}
# bnc#663067
%{__rm} %{buildroot}/%{pm_libdir}/power.d/harddrive
#FIXME: should be installed by make install
%{__install} -m 644 man/*.1 %{buildroot}/%{_mandir}/man1
%{__install} -m 644 man/*.8 %{buildroot}/%{_mandir}/man8
#quirks
%{__install} -d -m 0755 %{buildroot}%{pm_quirkdbdir}
%{__install} -m 0644 *.quirkdb %{buildroot}%{pm_quirkdbdir}
#SUSE hooks
%{__install} -m 0755 pm/sleep.d/02rtcwake %{buildroot}/%{pm_libdir}/sleep.d/
%{__install} -m 0755 pm/sleep.d/06autofs %{buildroot}/%{pm_libdir}/sleep.d/
%{__install} -m 0755 pm/sleep.d/30s2disk-check 
%{buildroot}/%{pm_libdir}/sleep.d/
%{__install} -m 0755 pm/sleep.d/45pcmcia %{buildroot}/%{pm_libdir}/sleep.d/
%{__install} -m 0755 pm/sleep.d/50rcnetwork %{buildroot}/%{pm_libdir}/sleep.d/
%{__install} -m 0755 pm/sleep.d/75ndiswrapper %{buildroot}/%{pm_libdir}/sleep.d/
%{__install} -m 0755 pm/sleep.d/80acpi-fan %{buildroot}/%{pm_libdir}/sleep.d/
%{__install} -m 0755 pm/sleep.d/80videobios %{buildroot}/%{pm_libdir}/sleep.d/
%{__install} -m 0755 pm/sleep.d/99info %{buildroot}/%{pm_libdir}/sleep.d/
%{__install} -m 0644 pm/config.d/* %{buildroot}/%{pm_sysconfdir}/
# powersave command is back
%{__install} -m 0755 bin/powersave %{buildroot}/%{_bindir}
%{__install} -d -m 0755 %{buildroot}/%{_localstatedir}/log
touch %{buildroot}/%{_localstatedir}/log/pm-suspend.log
# changing libdir in configure has the side-effect of misinstalling the
# pkg-config file (/usr/lib/pkgconfig is not searched on x86_64). Since we have
# no arch-specific data, we put it in datadir.
%{__install} -d -m 0755 %{buildroot}%{_datadir}/pkgconfig
mv %{buildroot}%{_prefix}/lib/pkgconfig/%{name}.pc 
%{buildroot}%{_datadir}/pkgconfig
# install cpufreq init script
install -D -m 0755 %{S:2} %{buildroot}%{_sysconfdir}/init.d/cpufreq
install -d -m 0755 %{buildroot}%{_sbindir}
ln -sf %{_sysconfdir}/init.d/cpufreq %{buildroot}%{_sbindir}/rccpufreq

%clean
rm -rf %{buildroot}

%preun
%stop_on_removal cpufreq

%post
%fillup_and_insserv -f -y cpufreq

%triggerun -- %{name} < 1.4.1-3
# Forcefully enable the service on upgrades from versions where the service
# didn't exist or wasn't necessarily enabled by default. Without this, on
# upgrades, the service will not be enabled.
%insserv_force_if_yast cpufreq

%postun
%restart_on_update cpufreq
%insserv_cleanup

%files
%defattr (-,root,root)
%doc README AUTHORS README.smart-suspend-to-RAM
%attr(0755,root,root) %{_bindir}/*
%{_sbindir}/*
%config %{_sysconfdir}/init.d/cpufreq
%{_sysconfdir}/pm/
%config(noreplace) %{_sysconfdir}/pm/config.d/rtcwake.config
%{pm_libdir}
%exclude %{pm_libdir}/sleep.d/75ndiswrapper
%{_mandir}/man1/*
%{_mandir}/man8/*
%ghost %verify(not md5 size mtime) /var/log/pm-suspend.log
%{_datadir}/pkgconfig/%{name}.pc

%files ndiswrapper
%defattr (-,root,root)
%{pm_libdir}/sleep.d/75ndiswrapper

%changelog
++++++ rc.cpufreq ++++++
#!/bin/sh
# Author: Danny Kukawka <dkuka...@suse.de>
# Author: Vincent Untz <vu...@opensuse.org>
#
# /etc/init.d/cpufreq
#
### BEGIN INIT INFO
# Provides:          cpufreq
# Required-Start:    $null
# Should-Start:      $null
# Required-Stop:     $null
# Should-Stop:       $null
# Default-Start:     2 3 5
# Default-Stop:      
# Short-Description: CPUFreq modules loader
# Description:       This script loads the relevant CPUFreq modules in the 
kernel.
#                    
### END INIT INFO

# Parameters (startup)
CPUFREQ_SYSFS_PATH="/sys/devices/system/cpu/cpu0/cpufreq"
LOGGER="/bin/logger -t rc.cpufreq"

load_governors()
{
    if [ ! -r $CPUFREQ_SYSFS_PATH ];then
        $LOGGER Cannot load cpufreq governors - No cpufreq driver available
        return 1
    fi
    read govs < $CPUFREQ_SYSFS_PATH/scaling_available_governors
    case "$govs" in
        *powersave*) 
            ;;
        *) 
            modprobe -q cpufreq_powersave >/dev/null 2>&1
            [ $? != 0 ] && $LOGGER powersave cpufreq governor could not be 
loaded
            ;;
    esac
    case "$govs" in
        *performance*) 
            ;;
        *) 
            modprobe -q cpufreq_performance >/dev/null 2>&1
            [ $? != 0 ] && $LOGGER perfromance cpufreq governor could not be 
loaded
            ;;
    esac
    case "$govs" in
        *userspace*) 
            ;;
        *) 
            modprobe -q cpufreq_userspace >/dev/null 2>&1
            [ $? != 0 ] && $LOGGER userspace cpufreq governor could not be 
loaded
            ;;
    esac
    case "$govs" in
        *ondemand*)
            ;;
        *) 
            modprobe -q cpufreq_ondemand >/dev/null 2>&1
            [ $? != 0 ] && $LOGGER ondemand cpufreq governor could not be loaded
            ;;
    esac
    case "$govs" in
        *conservative*)
            ;;
        *) 
            modprobe -q cpufreq_conservative >/dev/null 2>&1
            [ $? != 0 ] && $LOGGER conservative cpufreq governor could not be 
loaded
            ;;
    esac
    return 0
}

function load_cpufreq_driver()
{
    CPUFREQ_MODULES="acpi_cpufreq powernow_k8 powernow_k7 powernow_k6 longrun 
speedstep_ich"
    
CPUFREQ_MODULES_GREP="^acpi_cpufreq\|^speedstep_ich\|^powernow_k8\|^powernow_k7\|^powernow_k6\|^longrun\|^longhaul"
    
    # if the drivers are compiled in, $CPUFREQ_SYSFS_PATH already exists
    if [ ! -d $CPUFREQ_SYSFS_PATH ]; then
        # test for already loaded modules
        ALREADY_LOADED_MODS=`grep $CPUFREQ_MODULES_GREP /proc/modules`
        if [ -z "$ALREADY_LOADED_MODS" ] ; then 
            for MODULE in $CPUFREQ_MODULES; do
                modprobe $MODULE &>/dev/null
                RETVAL=$?
                [ "$RETVAL" = 0 ] && break
            done
            # skip if no module could be loaded!
            if [ "$RETVAL" != 0 ]; then
                $LOGGER "CPU frequency scaling is not supported by your 
processor."
                $LOGGER "boot with 'CPUFREQ=no' in to avoid this warning."
                # remove eventually loaded modules, bug 150381
                rmmod speedstep_lib cpufreq_stats freq_table 2>/dev/null
                return $RETVAL
            fi
        fi
    fi

    return 0
}

. /etc/rc.status

rc_reset

case "$1" in
    start)
        echo -n "Loading CPUFreq modules"
        load_cpufreq_driver

        if [ "$?" != 0 ]; then
                echo -n " - hardware support not available"
                rc_status -s
                rc_exit
        fi

        load_governors
            
        if [ "$?" != 0 ]; then
                rc_failed 1
        fi

        rc_status -v
        ;;
    stop)
        rc_failed 0
        rc_status
        ;;
    try-restart|restart|reload|force-reload)
        $0 start
        ;;
    status)
        echo -n "Checking CPUFreq modules"
        if [ -r $CPUFREQ_SYSFS_PATH ]; then
                rc_failed 0
        else
                rc_failed 3
        fi
        rc_status -v
        ;;
    *)
        echo "Usage: $0 
{start|stop|status|try-restart|restart|force-reload|reload}"
        exit 1
        ;;
esac

rc_exit
-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org

Reply via email to