Hello community, here is the log from the commit of package xfce4-panel-plugin-sensors for openSUSE:Factory checked in at Thu Mar 17 12:05:46 CET 2011.
-------- New Changes file: --- /dev/null 2010-08-26 16:28:41.000000000 +0200 +++ /mounts/work_src_done/STABLE/xfce4-panel-plugin-sensors/xfce4-panel-plugin-sensors.changes 2011-03-09 22:46:29.000000000 +0100 @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Wed Mar 9 11:00:00 UTC 2011 - [email protected] + +- new package (split off from xfce4-panel-plugins) + calling whatdependson for head-i586 New: ---- xfce4-panel-plugin-sensors-1.0.0-fix-build-with-4.7.patch xfce4-panel-plugin-sensors-1.0.0-fix-memory-leaks.patch xfce4-panel-plugin-sensors-1.0.0-fix-uninitialized-memory.patch xfce4-panel-plugin-sensors.changes xfce4-panel-plugin-sensors.spec xfce4-sensors-plugin-1.0.0.tar.bz2 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ xfce4-panel-plugin-sensors.spec ++++++ # # spec file for package xfce4-panel-plugin-sensors # # Copyright (c) 2011 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 panel_version 4.8.0 %define plugin_name xfce4-sensors-plugin Name: xfce4-panel-plugin-sensors License: GPLv2+ Version: 1.0.0 Release: 5 Summary: Hardware sensor plugin for the Xfce panel Url: http://goodies.xfce.org/projects/panel-plugins/xfce4-sensors-plugin Source0: xfce4-sensors-plugin-1.0.0.tar.bz2 # PATCH-FIX-UPSTREAM xfce4-panel-plugin-sensors-1.0.0-fix-memory-leaks.patch [email protected] -- Fixes memory leak (different fix is already in upstream git) Patch0: xfce4-panel-plugin-sensors-1.0.0-fix-memory-leaks.patch # PATCH-FIX-UPSTREAM xfce4-panel-plugin-sensors-1.0.0-fix-build-with-4.7.patch bxo#6938 [email protected] -- Port to xfce4-panel >= 4.7 Patch1: xfce4-panel-plugin-sensors-1.0.0-fix-build-with-4.7.patch # PATCH-FIX-UPSTREAM xfce4-panel-plugin-sensors-1.0.0-fix-uninitialized-memory.patch bxo#7248 [email protected] -- Fixes a crash due to uninitialized memory when no sensors are found Patch2: xfce4-panel-plugin-sensors-1.0.0-fix-uninitialized-memory.patch Group: System/GUI/XFCE BuildRequires: intltool BuildRequires: fdupes BuildRequires: update-desktop-files BuildRequires: pkgconfig(libxfce4panel-1.0) BuildRequires: pkgconfig(libnotify) BuildRequires: libsensors4-devel BuildRequires: xfce4-dev-tools Requires: xfce4-panel >= 4.8.0 Recommends: %{name}-lang = %{version} BuildRoot: %{_tmppath}/%{name}-%{version}-build %description The Sensors plugin and standalone application allow to monitor various hardware sensors suported by libsensors. %package devel License: GPLv2+ Summary: Development Files for %{name} Group: Development/Libraries/C and C++ Requires: xfce4-panel-plugin-sensors = 1.0.0 %description devel The Sensors plugin and standalone application allow to monitor various hardware sensors suported by libsensors. This package contains the development files needed to develop applications based on libxfce4sensors. %lang_package %prep %setup -q -n %{plugin_name}-%{version} %patch0 -p1 %patch1 -p1 %patch2 -p1 %build xdt-autogen %configure --disable-static make %{_smp_mflags} V=1 %install %make_install rm -rf %{buildroot}%{_libdir}/xfce4/modules/libxfce4sensors.la %suse_update_desktop_file -r xfce4-sensors X-XFCE System Monitor rm -rf %{buildroot}%{_datadir}/locale/{ast,kk,tl_PH,ur_PK} %find_lang %{plugin_name} %{name}.lang %fdupes %{buildroot}%{_datadir} %clean rm -rf %{buildroot} %if 0%{?suse_version} >= 1140 %post %desktop_database_post %icon_theme_cache_post %postun %desktop_database_postun %icon_theme_cache_postun %endif %files %defattr(-,root,root) %{_bindir}/xfce4-sensors %{_libexecdir}/xfce4/panel-plugins/xfce4-sensors-plugin %{_datadir}/icons/hicolor/*/apps/xfce-sensors.* %{_datadir}/applications/xfce4-sensors.desktop %{_datadir}/xfce4/panel-plugins/xfce4-sensors-plugin.desktop %dir %{_libdir}/xfce4 %dir %{_libdir}/xfce4/modules %{_libdir}/xfce4/modules/libxfce4sensors.so.* %files devel %defattr(-,root,root) %{_libdir}/pkgconfig/*.pc %{_libdir}/xfce4/modules/libxfce4sensors.so %files lang -f %{name}.lang %changelog ++++++ xfce4-panel-plugin-sensors-1.0.0-fix-build-with-4.7.patch ++++++ diff -ur xfce4-sensors-plugin-1.0.0.orig/include/sensors-interface-common.h xfce4-sensors-plugin-1.0.0/include/sensors-interface-common.h --- xfce4-sensors-plugin-1.0.0.orig/include/sensors-interface-common.h 2010-03-28 20:11:33.000000000 +0200 +++ xfce4-sensors-plugin-1.0.0/include/sensors-interface-common.h 2011-01-01 01:46:24.000000000 +0100 @@ -31,7 +31,7 @@ /* #include <glib/gprintf.h> */ /* Xfce includes */ -#include <libxfce4panel/xfce-panel-plugin.h> +#include <libxfce4panel/libxfce4panel.h> /* Package includes */ #include <types.h> diff -ur xfce4-sensors-plugin-1.0.0.orig/panel-plugin/Makefile.am xfce4-sensors-plugin-1.0.0/panel-plugin/Makefile.am --- xfce4-sensors-plugin-1.0.0.orig/panel-plugin/Makefile.am 2009-11-06 12:02:11.000000000 +0100 +++ xfce4-sensors-plugin-1.0.0/panel-plugin/Makefile.am 2011-01-01 01:48:53.000000000 +0100 @@ -20,6 +20,7 @@ xfce4_sensors_plugin_CFLAGS = \ @LIBXFCE4PANEL_CFLAGS@ \ + @LIBXFCEGUI4_CFLAGS@ \ @PLATFORM_CFLAGS@ \ -DPACKAGE_LOCALE_DIR=\"$(localedir)\" \ @LIBSENSORS_CFLAGS@ @@ -27,9 +28,10 @@ # @GTK_CFLAGS@ \ # @GLIB_CFLAGS@ -xfce4_sensors_plugin_LDFLAGS = \ +xfce4_sensors_plugin_LDADD = \ $(top_builddir)/lib/libxfce4sensors.la @LIBXFCE4PANEL_LIBS@ \ + @LIBXFCEGUI4_LIBS@ \ @SOLLIBS@ \ @LIBSENSORS_LDFLAGS@ diff -ur xfce4-sensors-plugin-1.0.0.orig/src/Makefile.am xfce4-sensors-plugin-1.0.0/src/Makefile.am --- xfce4-sensors-plugin-1.0.0.orig/src/Makefile.am 2009-11-06 12:02:11.000000000 +0100 +++ xfce4-sensors-plugin-1.0.0/src/Makefile.am 2011-01-01 10:39:52.000000000 +0100 @@ -27,7 +27,8 @@ -DPACKAGE_LOCALE_DIR=\"$(localedir)\" \ @LIBSENSORS_CFLAGS@ \ @LIBXFCE4UTIL_CFLAGS@ \ - @LIBXFCEGUI4_CFLAGS@ + @LIBXFCEGUI4_CFLAGS@ \ + @LIBXFCE4PANEL_CFLAGS@ # @GTK_CFLAGS@ \ # @GLIB_CFLAGS@ \ ++++++ xfce4-panel-plugin-sensors-1.0.0-fix-memory-leaks.patch ++++++ diff -ur xfce4-sensors-plugin-1.0.0.orig/lib/acpi.c xfce4-sensors-plugin-1.0.0/lib/acpi.c --- xfce4-sensors-plugin-1.0.0.orig/lib/acpi.c 2010-03-27 16:11:48.000000000 +0100 +++ xfce4-sensors-plugin-1.0.0/lib/acpi.c 2011-01-01 01:23:15.000000000 +0100 @@ -631,6 +631,7 @@ TRACE ("leaves get_acpi_info"); version = get_acpi_value (filename); + g_free (filename); if (version!=NULL) version = g_strchomp (version); @@ -654,6 +655,7 @@ filename = g_strdup_printf ("%s/%s/%s", ACPI_PATH, zone, file); value = get_acpi_value (filename); + g_free(filename); TRACE ("leaves get_acpi_zone_value with correctly converted value"); ++++++ xfce4-panel-plugin-sensors-1.0.0-fix-uninitialized-memory.patch ++++++ diff -ur xfce4-sensors-plugin-1.0.0.orig/lib/sensors-interface-common.c xfce4-sensors-plugin-1.0.0/lib/sensors-interface-common.c --- xfce4-sensors-plugin-1.0.0.orig/lib/sensors-interface-common.c 2010-03-27 16:11:48.000000000 +0100 +++ xfce4-sensors-plugin-1.0.0/lib/sensors-interface-common.c 2011-01-07 12:27:27.000000000 +0100 @@ -43,7 +43,7 @@ TRACE ("enters sensors_new"); - sensors = g_new (t_sensors, 1); + sensors = g_new0 (t_sensors, 1); sensors->plugin_config_file = plugin_config_file; /* important as we check against NULL frequently */ /* init xfce sensors stuff width default values */ @@ -69,6 +69,7 @@ chipfeature->address = 0; chip->sensorId = g_strdup(_("No sensors found!")); + chip->description = g_strdup(_("No sensors found!")); chip->num_features = 1; chipfeature->color = g_strdup("#000000"); /* g_free (chipfeature->name); */ ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun... -- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
