Hello community,

here is the log from the commit of package tuned for openSUSE:Factory checked 
in at 2017-08-16 16:10:58
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/tuned (Old)
 and      /work/SRC/openSUSE:Factory/.tuned.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "tuned"

Wed Aug 16 16:10:58 2017 rev:13 rq:512788 version:2.8.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/tuned/tuned.changes      2016-01-22 
01:07:22.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.tuned.new/tuned.changes 2017-08-16 
16:11:03.167793783 +0200
@@ -1,0 +2,22 @@
+Fri Jul 07 15:07:04 UTC 2017 - [email protected]
+
+- Update to version 2.8.0:
+  * builtin functions: parser not traceback if func expands to empty string
+  * systemd: added support for older systemd CPUAffinity syntax
+  * scheduler: do not traceback if process dissapears during enumeration
+  * scheduler: fix more python-linux-procfs tracebacks
+  * plugin_net: Fix invocation of execute()
+  * cpu-partitioning: use tuna for cores isolation
+  * builtin functions: add strip
+  * bootloader: workaround for adding tuned_initrd to new kernels on restart
+  * new release (2.8.0)
+  + Add Patch: Fix category in desktop file for tuned-gui 
(fix-desktop-category.patch)
+  + Add Patch: Remove unnecessary shebangs (remove-unnecessary-shebangs.patch)
+  + Add Patch: Fix file permission for glade file 
(fix-glade-file-permission.patch)
+  + Add rpmlintrc to silence unnecessary warnings
+  + Remove Patch: tuned-2.4.0-use_cpupower_for_intel_perf_bias.patch
+  = Modified Patches to apply with 2.8.0:
+    - fix-allow-receive_sender-default.patch
+    - use-cpupower-for-intel-perf-bias.patch
+
+-------------------------------------------------------------------

Old:
----
  tuned-2.4.0-use_cpupower_for_intel_perf_bias.patch
  tuned-2.6.0.tar.bz2

New:
----
  _service
  _servicedata
  fix-desktop-category.patch
  fix-glade-file-permission.patch
  remove-unnecessary-shebangs.patch
  tuned-2.8.0.tar.xz
  tuned.rpmlintrc
  use-cpupower-for-intel-perf-bias.patch

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

Other differences:
------------------
++++++ tuned.spec ++++++
--- /var/tmp/diff_new_pack.rDloFY/_old  2017-08-16 16:11:04.347628173 +0200
+++ /var/tmp/diff_new_pack.rDloFY/_new  2017-08-16 16:11:04.351627611 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package tuned
 #
-# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -18,20 +18,29 @@
 
 %{!?_tmpfilesdir:%global _tmpfilesdir %{_libexecdir}/tmpfiles.d}
 Name:           tuned
-Version:        2.6.0
+Version:        2.8.0
 Release:        0
 Summary:        A dynamic adaptive system tuning daemon
 License:        GPL-2.0+
 Group:          System/Base
-Url:            https://fedorahosted.org/tuned/
-Source:         
https://fedorahosted.org/releases/t/u/tuned/tuned-%{version}.tar.bz2
+Url:            https://github.com/redhat-performance/tuned
+Source0:        %{name}-%{version}.tar.xz
+Source1:        tuned.rpmlintrc
 # PATCH-FIX-OPENSUSE fix-allow-receive_sender-default.patch <allow 
receive_sender="com.redhat.com"/> allow receive_* is normally
 # not needed as that is the default --<[email protected]>
 Patch0:         fix-allow-receive_sender-default.patch
-# PATCH-FIX-OPENSUSE tuned-2.4.0-use_cpupower_for_intel_perf_bias.patch --use 
cpupower instead of energy class
-Patch2:         tuned-2.4.0-use_cpupower_for_intel_perf_bias.patch
+# PATCH-FIX-OPENSUSE tuned-2.4.0-use-cpupower-for-intel-perf-bias.patch --use 
cpupower instead of energy class
+Patch1:         use-cpupower-for-intel-perf-bias.patch
+
+# Patches to make security and usability more stable
+# They also pushed upstream
+Patch2:         fix-desktop-category.patch
+Patch3:         remove-unnecessary-shebangs.patch
+Patch4:         fix-glade-file-permission.patch
+
 # Do not own standard directories
 BuildRequires:  bash-completion
+BuildRequires:  desktop-file-utils
 BuildRequires:  python
 BuildRequires:  systemd
 Requires:       %{_bindir}/cpupower
@@ -71,7 +80,7 @@
 Requires:       %{name} = %{version}
 
 %description profiles-sap
-Additional tuned profile(s) targeted to SAP NetWeaver loads.
+Additional profile(s) for the tuned daemon, targeted to SAP NetWeaver loads.
 
 %package profiles-sap-hana
 Summary:        Additional tuned profile(s) targeted to SAP HANA loads
@@ -79,7 +88,7 @@
 Requires:       %{name} = %{version}
 
 %description profiles-sap-hana
-Additional tuned profile(s) targeted to SAP HANA loads.
+Additional profile(s) for the tuned daemon, targeted to SAP HANA loads.
 
 %package profiles-atomic
 Summary:        Additional tuned profiles targeted to Atomic
@@ -87,7 +96,7 @@
 Requires:       %{name} = %{version}
 
 %description profiles-atomic
-Additional tuned profiles targeted to Atomic host and guest.
+Additional profile(s) for the tuned daemon, targeted to Atomic host and guest.
 
 %package profiles-realtime
 Summary:        Additional tuned profiles targeted to realtime
@@ -95,7 +104,7 @@
 Requires:       %{name} = %{version}
 
 %description profiles-realtime
-Additional tuned profiles targeted to realtime.
+Additional profile(s) for the tuned daemon, targeted to realtime.
 
 %package profiles-oracle
 Summary:        Additional tuned profiles targeted to Oracle loads
@@ -103,7 +112,7 @@
 Requires:       %{name} = %{version}
 
 %description profiles-oracle
-Additional tuned profiles targeted to Oracle loads.
+Additional profile(s) for the tuned daemon,  targeted to Oracle loads.
 
 %package profiles-nfv
 Summary:        Additional tuned profiles targeted to Network Function 
Virtualization (NFV)
@@ -111,7 +120,7 @@
 Requires:       %{name} = %{version}
 
 %description profiles-nfv
-Additional tuned profiles targeted to Network Function Virtualization (NFV).
+Additional profile(s) for the tuned daemon, targeted to Network Function 
Virtualization (NFV).
 
 %package utils
 Summary:        Disk and net statistic monitoring systemtap scripts
@@ -139,7 +148,10 @@
 %prep
 %setup -q
 %patch0 -p1
+%patch1 -p1
 %patch2 -p1
+%patch3 -p1
+%patch4 -p1
 
 %build
 # The tuned daemon is written in pure Python. Nothing requires to be built.
@@ -164,6 +176,7 @@
 %endif
 # convert active_profile from full path to name (if needed)
 sed -i 's|.*/\([^/]\+\)/[^\.]\+\.conf|\1|' %{_sysconfdir}/tuned/active_profile
+%desktop_database_post
 
 %pre
 %service_add_pre %{name}.service
@@ -173,24 +186,30 @@
 
 %postun
 %service_del_postun %{name}.service
+%desktop_database_postun
 
 %files
 %defattr(-,root,root,-)
+
+%dir %{_sysconfdir}/modprobe.d
 %doc AUTHORS COPYING README
 %{_datadir}/bash-completion/completions/tuned-adm
+%{_datadir}/polkit-1/actions/com.redhat.tuned.policy
 %exclude %{python_sitelib}/tuned/gtk
 %{python_sitelib}/tuned
 %{_sbindir}/tuned
 %{_sbindir}/tuned-adm
 %{_sbindir}/rctuned
 %exclude %{_sysconfdir}/tuned/realtime-variables.conf
+%exclude %{_sysconfdir}/tuned/realtime-virtual-guest-variables.conf
+%exclude %{_sysconfdir}/tuned/realtime-virtual-host-variables.conf
+%exclude %{_libexecdir}/tuned/realtime-virtual-guest
+%exclude %{_libexecdir}/tuned/realtime-virtual-host
 %exclude %{_libexecdir}/tuned/sap-netweaver
 %exclude %{_libexecdir}/tuned/sap-hana
 %exclude %{_libexecdir}/tuned/sap-hana-vmware
 %exclude %{_libexecdir}/tuned/atomic-host
 %exclude %{_libexecdir}/tuned/atomic-guest
-%exclude %{_libexecdir}/tuned/realtime-virtual-guest
-%exclude %{_libexecdir}/tuned/realtime-virtual-host
 %exclude %{_libexecdir}/tuned/oracle
 %exclude %{_libexecdir}/tuned/realtime
 %exclude %{_libexecdir}/tuned/defirqaffinity*
@@ -198,6 +217,8 @@
 # active_profile might be empty when built via build service, but typically
 # not on a real install -> better do not mark it %%ghost
 %config(noreplace) %verify(not size mtime md5) 
%{_sysconfdir}/tuned/active_profile
+%config(noreplace) %{_sysconfdir}/modprobe.d/tuned.conf
+%config(noreplace) %{_sysconfdir}/tuned/cpu-partitioning-variables.conf
 %config(noreplace) %{_sysconfdir}/tuned/tuned-main.conf
 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/tuned/bootcmdline
 %config %{_sysconfdir}/dbus-1/system.d/com.redhat.tuned.conf
@@ -207,17 +228,23 @@
 %dir %{_localstatedir}/log/tuned
 %dir %{_sysconfdir}/tuned
 %{_mandir}/man5/tuned*
-%{_mandir}/man7/tuned-profiles.7*
+%{_mandir}/man7/tuned-profiles-cpu-partitioning.7.gz
+%{_mandir}/man7/tuned-profiles.7.gz
 %{_mandir}/man8/tuned*
 %dir %{_datadir}/tuned
 %ghost %dir /run/tuned
 
 %files gtk
 %defattr(-,root,root,-)
+%dir /usr/share/icons/hicolor
+%dir /usr/share/icons/hicolor/*/
+%dir /usr/share/icons/hicolor/*/apps
+%{_datadir}/icons/hicolor/*/apps/*
+%{_datadir}/applications/tuned-gui.desktop
 %{_sbindir}/tuned-gui
 %{python_sitelib}/tuned/gtk
 %{_datadir}/tuned/ui
-%{_datadir}/polkit-1/actions/org.tuned.gui.policy
+%{_datadir}/polkit-1/actions/com.redhat.tuned.gui.policy
 
 %files profiles-sap
 %defattr(-,root,root,-)
@@ -254,7 +281,7 @@
 %{_libexecdir}/tuned/realtime-virtual-guest
 %{_libexecdir}/tuned/realtime-virtual-host
 %{_libexecdir}/tuned/defirqaffinity*
-%{_mandir}/man7/tuned-profiles-nfv.7*
+%{_mandir}/man7/tuned-profiles-nfv-*.7.gz
 
 %files utils
 %defattr(-,root,root,-)

++++++ _service ++++++
<services>
  <service name="tar_scm" mode="disabled">
    <param name="scm">git</param>
    <param name="url">https://github.com/redhat-performance/tuned</param>
    <param name="subdir"></param>
    <param name="filename">tuned</param>
    <param name="versionformat">2.8.0</param>
    <param name="changesgenerate">enable</param>
    <param name="revision">refs/tags/v2.8.0</param>
  </service>
  <service name="recompress" mode="disabled">
    <param name="file">tuned*.tar</param>
    <param name="compression">xz</param>
  </service>
  <service name="set_version" mode="disabled"/>
</services>
++++++ _servicedata ++++++
<servicedata>
<service name="tar_scm">
                <param 
name="url">https://github.com/redhat-performance/tuned</param>
              <param 
name="changesrevision">de880346fa29efafce002a4245968d8cbabae142</param></service></servicedata>++++++
 fix-allow-receive_sender-default.patch ++++++
--- /var/tmp/diff_new_pack.rDloFY/_old  2017-08-16 16:11:04.515604594 +0200
+++ /var/tmp/diff_new_pack.rDloFY/_new  2017-08-16 16:11:04.523603471 +0200
@@ -1,12 +1,12 @@
-Index: tuned-2.6.0/dbus.conf
+Index: tuned-2.8.0/dbus.conf
 ===================================================================
---- tuned-2.6.0.orig/dbus.conf
-+++ tuned-2.6.0/dbus.conf
-@@ -9,7 +9,6 @@
+--- tuned-2.8.0.orig/dbus.conf
++++ tuned-2.8.0/dbus.conf
+@@ -4,7 +4,6 @@
+ 
  <busconfig>
        <policy context="default">
-               <deny send_destination="com.redhat.tuned" />
 -              <allow receive_sender="com.redhat.tuned" />
- 
                <allow send_destination="com.redhat.tuned" 
send_interface="org.freedesktop.DBus.Introspectable" />
- 
+               <allow send_destination="com.redhat.tuned" 
send_interface="com.redhat.tuned.control" />
+       </policy>

++++++ fix-desktop-category.patch ++++++
Index: tuned-2.8.0/tuned-gui.desktop
===================================================================
--- tuned-2.8.0.orig/tuned-gui.desktop
+++ tuned-2.8.0/tuned-gui.desktop
@@ -7,5 +7,5 @@ Exec=tuned-gui
 Icon=tuned
 Terminal=false
 Type=Application
-Categories=System;
+Categories=Settings;HardwareSettings;
 Version=1.0
++++++ fix-glade-file-permission.patch ++++++
Index: tuned-2.8.0/Makefile
===================================================================
--- tuned-2.8.0.orig/Makefile
+++ tuned-2.8.0/Makefile
@@ -113,7 +113,7 @@ install: install-dirs
                install -Dpm 0755 $(file) $(DESTDIR)/usr/sbin/$(notdir 
$(file));)
 
        # glade
-       install -Dpm 0755 tuned-gui.glade 
$(DESTDIR)$(DATADIR)/tuned/ui/tuned-gui.glade
+       install -Dpm 0644 tuned-gui.glade 
$(DESTDIR)$(DATADIR)/tuned/ui/tuned-gui.glade
 
        # tools
        install -Dpm 0755 experiments/powertop2tuned.py 
$(DESTDIR)/usr/bin/powertop2tuned
++++++ remove-unnecessary-shebangs.patch ++++++
Index: tuned-2.8.0/tuned/gtk/gui_plugin_loader.py
===================================================================
--- tuned-2.8.0.orig/tuned/gtk/gui_plugin_loader.py
+++ tuned-2.8.0/tuned/gtk/gui_plugin_loader.py
@@ -1,4 +1,3 @@
-#!/usr/bin/python
 # -*- coding: utf-8 -*-
 
 # Copyright (C) 2008-2014 Red Hat, Inc.
Index: tuned-2.8.0/tuned/gtk/gui_profile_loader.py
===================================================================
--- tuned-2.8.0.orig/tuned/gtk/gui_profile_loader.py
+++ tuned-2.8.0/tuned/gtk/gui_profile_loader.py
@@ -1,4 +1,3 @@
-#!/usr/bin/python
 # -*- coding: utf-8 -*-
 
 # Copyright (C) 2008-2014 Red Hat, Inc.
Index: tuned-2.8.0/tuned/gtk/managerException.py
===================================================================
--- tuned-2.8.0.orig/tuned/gtk/managerException.py
+++ tuned-2.8.0/tuned/gtk/managerException.py
@@ -1,4 +1,3 @@
-#!/usr/bin/python
 # -*- coding: utf-8 -*-
 
 # Copyright (C) 2008-2014 Red Hat, Inc.
++++++ tuned.rpmlintrc ++++++
addFilter("W: files-duplicate /etc/tuned/realtime-virtual-host-variables.conf 
/etc/tuned/realtime-virtual-guest-variables.conf")
addFilter("W: zero-length /etc/tuned/active_profile")
addFilter("W: obsolete-not-provided pm-profiler")
++++++ use-cpupower-for-intel-perf-bias.patch ++++++
Index: tuned-2.8.0/tuned/plugins/plugin_cpu.py
===================================================================
--- tuned-2.8.0.orig/tuned/plugins/plugin_cpu.py
+++ tuned-2.8.0/tuned/plugins/plugin_cpu.py
@@ -110,7 +110,8 @@ class CPULatencyPlugin(base.Plugin):
                                instance._load_monitor = None
 
                        # Check for x86_energy_perf_policy, ignore if not 
available / supported
-                       self._check_energy_perf_bias()
+                       if self._has_cpupower is False:
+                               self._check_energy_perf_bias()
                        # Check for intel_pstate
                        self._check_intel_pstate()
                else:
@@ -262,7 +263,17 @@ class CPULatencyPlugin(base.Plugin):
                if not self._is_cpu_online(device):
                        log.debug("%s is not online, skipping" % device)
                        return None
-               if self._has_energy_perf_bias:
+               if self._has_cpupower is True:
+                       bias_str = str(energy_perf_bias)
+                       if bias_str == "performance":
+                               bias_str = "0"
+                       elif bias_str == "powersave":
+                               bias_str = "15"
+                       elif bias_str == "normal":
+                               bias_str = "6"
+                       cpu_id = device.lstrip("cpu")
+                       self._cmd.execute(["cpupower", "-c", cpu_id, "set", 
"-b", bias_str])
+               elif self._has_energy_perf_bias:
                        if not sim:
                                cpu_id = device.lstrip("cpu")
                                log.info("setting energy_perf_bias '%s' on cpu 
'%s'" % (energy_perf_bias, device))
@@ -290,14 +301,21 @@ class CPULatencyPlugin(base.Plugin):
                if not self._is_cpu_online(device):
                        log.debug("%s is not online, skipping" % device)
                        return None
-               if self._has_energy_perf_bias:
+               if self._has_cpupower is True:
+                       cpu_id = device.lstrip("cpu")
+                       retcode, lines = self._cmd.execute(["cpupower", "-c", 
cpu_id, "info", "-b"])
+               elif self._has_energy_perf_bias:
                        cpu_id = device.lstrip("cpu")
                        retcode, lines = 
self._cmd.execute(["x86_energy_perf_policy", "-c", cpu_id, "-r"])
-                       if retcode == 0:
-                               for line in lines.splitlines():
-                                       l = line.split()
-                                       if len(l) == 2:
-                                               energy_perf_bias = 
self._energy_perf_policy_to_human(l[1])
-                                               break
+               else:
+                       return None
+               if retcode == 0:
+                       for line in lines.splitlines():
+                               if line.startswith("analyzing CPU"):
+                                       continue
+                               l = line.split()
+                               if len(l) == 2:
+                                       energy_perf_bias = l[1]
+                                       break
 
                return energy_perf_bias

Reply via email to