Hello community, here is the log from the commit of package yast2-hardware-detection checked in at Thu Mar 1 22:02:29 CET 2007. -------- --- yast2-hardware-detection/yast2-hardware-detection.changes 2006-11-14 11:25:38.000000000 +0100 +++ /mounts/work_src_done/STABLE/yast2-hardware-detection/yast2-hardware-detection.changes 2007-03-01 17:15:04.000000000 +0100 @@ -1,0 +2,25 @@ +Thu Mar 1 16:57:43 CET 2007 - mvidner@suse.cz + +- Fixed a bug in the last change that converted nearly + all probes to disk probes. +- 2.15.3 + +------------------------------------------------------------------- +Wed Feb 28 13:40:42 CET 2007 - jsrain@suse.cz + +- fixed more memory leaks when probing hardware (#249276) +- 2.15.2 + +------------------------------------------------------------------- +Tue Feb 27 14:53:16 CET 2007 - jsrain@suse.cz + +- fixed memory leak when probing hardware (#249276) +- 2.15.1 + +------------------------------------------------------------------- +Tue Feb 27 11:03:03 CET 2007 - mvidner@suse.cz + +- Added .probe.is_xen (#241564). +- 2.15.0 + +------------------------------------------------------------------- Old: ---- yast2-hardware-detection-2.14.0.tar.bz2 New: ---- yast2-hardware-detection-2.15.3.tar.bz2 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ yast2-hardware-detection.spec ++++++ --- /var/tmp/diff_new_pack.N22557/_old 2007-03-01 22:02:14.000000000 +0100 +++ /var/tmp/diff_new_pack.N22557/_new 2007-03-01 22:02:14.000000000 +0100 @@ -1,7 +1,7 @@ # -# spec file for package yast2-hardware-detection (Version 2.14.0) +# spec file for package yast2-hardware-detection (Version 2.15.3) # -# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany. # This file and all modifications and additions to the pristine # package are under the same license as the package itself. # @@ -11,12 +11,12 @@ # norootforbuild Name: yast2-hardware-detection -Version: 2.14.0 +Version: 2.15.3 Release: 1 License: GNU General Public License (GPL) Group: System/YaST BuildRoot: %{_tmppath}/%{name}-%{version}-build -Source0: yast2-hardware-detection-2.14.0.tar.bz2 +Source0: yast2-hardware-detection-2.15.3.tar.bz2 prefix: /usr # obviously BuildRequires: gcc-c++ @@ -37,8 +37,8 @@ # we check for hwinfo BuildRequires: pkg-config Summary: YaST2 Hardware Detection Interface -# hwinfo-13.6: s_hd_t.driver_module -Requires: hwinfo >= 13.6 +# hwinfo-13.24: hd_is_xen +Requires: hwinfo >= 13.23 %description This package contains the hardware detection library for YaST2. @@ -53,7 +53,7 @@ Stefan Hundhammer <sh@suse.de> %prep -%setup -n yast2-hardware-detection-2.14.0 +%setup -n yast2-hardware-detection-2.15.3 %build %{prefix}/bin/y2tool y2autoconf @@ -84,7 +84,20 @@ %{_libdir}/YaST2/plugin/libpy2ag_hwprobe.so %doc %{prefix}/share/doc/packages/yast2-hardware-detection -%changelog -n yast2-hardware-detection +%changelog +* Thu Mar 01 2007 - mvidner@suse.cz +- Fixed a bug in the last change that converted nearly + all probes to disk probes. +- 2.15.3 +* Wed Feb 28 2007 - jsrain@suse.cz +- fixed more memory leaks when probing hardware (#249276) +- 2.15.2 +* Tue Feb 27 2007 - jsrain@suse.cz +- fixed memory leak when probing hardware (#249276) +- 2.15.1 +* Tue Feb 27 2007 - mvidner@suse.cz +- Added .probe.is_xen (#241564). +- 2.15.0 * Tue Nov 14 2006 - mvidner@suse.cz - Use pkg-config to determine libraries needed by hwinfo. - Convenience: enable compilation with hwinfo < 13.6. ++++++ yast2-hardware-detection-2.14.0.tar.bz2 -> yast2-hardware-detection-2.15.3.tar.bz2 ++++++ ++++ 13105 lines of diff (skipped) ++++ retrying with extended exclude list diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/yast2-hardware-detection-2.14.0/config.h.in new/yast2-hardware-detection-2.15.3/config.h.in --- old/yast2-hardware-detection-2.14.0/config.h.in 2006-11-14 11:26:51.000000000 +0100 +++ new/yast2-hardware-detection-2.15.3/config.h.in 2007-03-01 17:17:14.000000000 +0100 @@ -21,6 +21,9 @@ /* Define if s_hd_t.driver_module exists */ #undef HAVE_DRIVER_MODULE +/* Define if hd_is_xen exists */ +#undef HAVE_HD_IS_XEN + /* Define to 1 if you have the <inttypes.h> header file. */ #undef HAVE_INTTYPES_H @@ -68,7 +71,7 @@ /* If using the C implementation of alloca, define if you know the direction of stack growth for your system; otherwise it will be - automatically deduced at run-time. + automatically deduced at runtime. STACK_DIRECTION > 0 => grows toward higher addresses STACK_DIRECTION < 0 => grows toward lower addresses STACK_DIRECTION = 0 => direction of growth unknown */ diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/yast2-hardware-detection-2.14.0/configure.in new/yast2-hardware-detection-2.15.3/configure.in --- old/yast2-hardware-detection-2.14.0/configure.in 2006-11-14 11:25:48.000000000 +0100 +++ new/yast2-hardware-detection-2.15.3/configure.in 2007-03-01 17:16:37.000000000 +0100 @@ -1,9 +1,9 @@ dnl configure.in for yast2-hardware-detection dnl -dnl -- This file is generated by y2autoconf 2.13.29 - DO NOT EDIT! -- +dnl -- This file is generated by y2autoconf 2.14.0 - DO NOT EDIT! -- dnl (edit configure.in.in instead) -AC_INIT(yast2-hardware-detection, 2.14.0, http://bugs.opensuse.org/, yast2-hardware-detection) +AC_INIT(yast2-hardware-detection, 2.15.3, http://bugs.opensuse.org/, yast2-hardware-detection) dnl Check for presence of file 'RPMNAME' AC_CONFIG_SRCDIR([RPMNAME]) @@ -17,7 +17,7 @@ AM_INIT_AUTOMAKE(tar-ustar) dnl searches for some needed programs dnl Important YaST2 variables -VERSION="2.14.0" +VERSION="2.15.3" RPMNAME="yast2-hardware-detection" MAINTAINER="Martin Vidner <mvidner@suse.cz>" @@ -174,15 +174,24 @@ fi AH_TEMPLATE([HAVE_DRIVER_MODULE], [Define if s_hd_t.driver_module exists]) +AH_TEMPLATE([HAVE_HD_IS_XEN], [Define if hd_is_xen exists]) HWINFO_VERSION=`pkg-config --print-errors --modversion hwinfo` if test -z "$HWINFO_VERSION"; then HWINFO_VERSION=0.0 fi HWINFO_VERSION_MAJOR=`echo $HWINFO_VERSION | sed 's/..*//'` HWINFO_VERSION_MINOR=`echo $HWINFO_VERSION | sed 's/.*.//'` -if test "$HWINFO_VERSION_MAJOR" -eq 13 -a "$HWINFO_VERSION_MINOR" -ge 6; then +if test \ + ( "$HWINFO_VERSION_MAJOR" -eq 13 -a "$HWINFO_VERSION_MINOR" -ge 6 ) -o \ + "$HWINFO_VERSION_MAJOR" -ge 14; then AC_DEFINE([HAVE_DRIVER_MODULE], 1) fi +if test \ + ( "$HWINFO_VERSION_MAJOR" -eq 12 -a "$HWINFO_VERSION_MINOR" -ge 44 ) -o \ + ( "$HWINFO_VERSION_MAJOR" -eq 13 -a "$HWINFO_VERSION_MINOR" -ge 23 ) -o \ + "$HWINFO_VERSION_MAJOR" -ge 14; then + AC_DEFINE([HAVE_HD_IS_XEN], 1) +fi PKG_CHECK_MODULES([HWINFO], [hwinfo]) diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/yast2-hardware-detection-2.14.0/configure.in.in new/yast2-hardware-detection-2.15.3/configure.in.in --- old/yast2-hardware-detection-2.14.0/configure.in.in 2006-11-14 10:41:17.000000000 +0100 +++ new/yast2-hardware-detection-2.15.3/configure.in.in 2007-02-27 11:01:15.000000000 +0100 @@ -22,15 +22,24 @@ fi AH_TEMPLATE([HAVE_DRIVER_MODULE], [Define if s_hd_t.driver_module exists]) +AH_TEMPLATE([HAVE_HD_IS_XEN], [Define if hd_is_xen exists]) HWINFO_VERSION=`pkg-config --print-errors --modversion hwinfo` if test -z "$HWINFO_VERSION"; then HWINFO_VERSION=0.0 fi HWINFO_VERSION_MAJOR=`echo $HWINFO_VERSION | sed 's/..*//'` HWINFO_VERSION_MINOR=`echo $HWINFO_VERSION | sed 's/.*.//'` -if test "$HWINFO_VERSION_MAJOR" -eq 13 -a "$HWINFO_VERSION_MINOR" -ge 6; then +if test \ + ( "$HWINFO_VERSION_MAJOR" -eq 13 -a "$HWINFO_VERSION_MINOR" -ge 6 ) -o \ + "$HWINFO_VERSION_MAJOR" -ge 14; then AC_DEFINE([HAVE_DRIVER_MODULE], 1) fi +if test \ + ( "$HWINFO_VERSION_MAJOR" -eq 12 -a "$HWINFO_VERSION_MINOR" -ge 44 ) -o \ + ( "$HWINFO_VERSION_MAJOR" -eq 13 -a "$HWINFO_VERSION_MINOR" -ge 23 ) -o \ + "$HWINFO_VERSION_MAJOR" -ge 14; then + AC_DEFINE([HAVE_HD_IS_XEN], 1) +fi PKG_CHECK_MODULES([HWINFO], [hwinfo]) diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/yast2-hardware-detection-2.14.0/src/HwParse.cc new/yast2-hardware-detection-2.15.3/src/HwParse.cc --- old/yast2-hardware-detection-2.14.0/src/HwParse.cc 2006-11-14 10:24:06.000000000 +0100 +++ new/yast2-hardware-detection-2.15.3/src/HwParse.cc 2007-03-01 17:13:13.000000000 +0100 @@ -1553,7 +1553,12 @@ YCPValue HwProbe::byItem (hd_hw_item_t item, bool re_probe) { - return hdlist2ycplist (hd_list (hd_base, item, 1, 0)); + hd_data_t *my_hd_base = (hd_data_t *)calloc (1, sizeof (hd_data_t)); + hd_t * hdlist = hd_list (my_hd_base, item, 1, 0); + YCPValue ret = hdlist2ycplist (hdlist); + hd_free_hd_data(my_hd_base); + free(my_hd_base); + return ret; } @@ -1564,7 +1569,12 @@ YCPValue HwProbe::filterManual (hd_hw_item_t item) { - return hdlist2ycplist (hd_list (hd_base, hw_manual, 1, 0), item); + hd_data_t *my_hd_base = (hd_data_t *)calloc (1, sizeof (hd_data_t)); + hd_t * hdlist = hd_list (my_hd_base, hw_manual, 1, 0); + YCPValue ret = hdlist2ycplist (hdlist, item); + hd_free_hd_data (my_hd_base); + free(my_hd_base); + return ret; } diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/yast2-hardware-detection-2.14.0/src/HwProbe.cc new/yast2-hardware-detection-2.15.3/src/HwProbe.cc --- old/yast2-hardware-detection-2.14.0/src/HwProbe.cc 2006-10-10 14:04:03.000000000 +0200 +++ new/yast2-hardware-detection-2.15.3/src/HwProbe.cc 2007-02-27 11:01:15.000000000 +0100 @@ -14,6 +14,9 @@ */ +#ifdef HAVE_CONFIG_H +#include <config.h> +#endif #include <stdio.h> #include <stdlib.h> #include <fcntl.h> @@ -283,6 +286,9 @@ { "framebuffer", 13, pr_fb, 0}, { "status", 14, pr_null, sub_status}, { "uniqueid", 15, pr_null, 0}, +#ifdef HAVE_HD_IS_XEN + { "is_xen", 16, pr_null, 0}, +#endif /* now the hw_items */ #define ITEM(x) ((int)x + 42) { "cdrom", ITEM(hw_cdrom), pr_null, 0}, @@ -486,6 +492,13 @@ case 15: // by unique_id value = readByUniqueID (arg); break; +#ifdef HAVE_HD_IS_XEN + case 16: // is_xen, #241564 + value = YCPBoolean (hd_is_xen (hd_base) ? true : false); + break; +#else +#warning "Omitting is_xen" +#endif case ITEM(hw_manual): value = filterManual ((hd_hw_item_t)(typelist[1]-42)); break; diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/yast2-hardware-detection-2.14.0/VERSION new/yast2-hardware-detection-2.15.3/VERSION --- old/yast2-hardware-detection-2.14.0/VERSION 2006-11-14 11:25:06.000000000 +0100 +++ new/yast2-hardware-detection-2.15.3/VERSION 2007-03-01 17:13:38.000000000 +0100 @@ -1 +1 @@ -2.14.0 +2.15.3 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun... --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org