commit hwinfo for openSUSE:Factory

2020-04-25 Thread root
Hello community,

here is the log from the commit of package hwinfo for openSUSE:Factory checked 
in at 2020-04-25 20:11:59

Comparing /work/SRC/openSUSE:Factory/hwinfo (Old)
 and  /work/SRC/openSUSE:Factory/.hwinfo.new.2738 (New)


Package is "hwinfo"

Sat Apr 25 20:11:59 2020 rev:174 rq:795961 version:21.70

Changes:

--- /work/SRC/openSUSE:Factory/hwinfo/hwinfo.changes2020-03-27 
21:55:17.474722735 +0100
+++ /work/SRC/openSUSE:Factory/.hwinfo.new.2738/hwinfo.changes  2020-04-25 
20:12:17.736039028 +0200
@@ -1,0 +2,8 @@
+Tue Apr 21 07:01:31 UTC 2020 - wfe...@opensuse.org
+
+- merge gh#openSUSE/hwinfo#86
+- update pci and usb ids (bsc#1169682)
+- fix compiler warnings
+- 21.70
+
+

Old:

  hwinfo-21.69.tar.xz

New:

  hwinfo-21.70.tar.xz



Other differences:
--
++ hwinfo.spec ++
--- /var/tmp/diff_new_pack.2pjjQc/_old  2020-04-25 20:12:18.744041106 +0200
+++ /var/tmp/diff_new_pack.2pjjQc/_new  2020-04-25 20:12:18.744041106 +0200
@@ -37,7 +37,7 @@
 License:GPL-2.0-or-later
 Group:  Hardware/Other
 Url:http://gitorious.org/opensuse/hwinfo
-Version:21.69
+Version:21.70
 Release:0
 Source: %{name}-%{version}.tar.xz
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build

++ hwinfo-21.69.tar.xz -> hwinfo-21.70.tar.xz ++
 11444 lines of diff (skipped)




commit hwinfo for openSUSE:Factory

2020-03-27 Thread root
Hello community,

here is the log from the commit of package hwinfo for openSUSE:Factory checked 
in at 2020-03-27 21:55:06

Comparing /work/SRC/openSUSE:Factory/hwinfo (Old)
 and  /work/SRC/openSUSE:Factory/.hwinfo.new.3160 (New)


Package is "hwinfo"

Fri Mar 27 21:55:06 2020 rev:173 rq:787876 version:21.69

Changes:

--- /work/SRC/openSUSE:Factory/hwinfo/hwinfo.changes2020-01-24 
14:10:51.614403311 +0100
+++ /work/SRC/openSUSE:Factory/.hwinfo.new.3160/hwinfo.changes  2020-03-27 
21:55:17.474722735 +0100
@@ -0,0 +1,8 @@
+
+Tue Mar 24 16:50:34 UTC 2020 - wfe...@opensuse.org
+
+- merge gh#openSUSE/hwinfo#85
+- fix xen detection (bsc#1167561)
+- add link to cpuid doc
+- 21.69
+

Old:

  hwinfo-21.68.tar.xz

New:

  hwinfo-21.69.tar.xz



Other differences:
--
++ hwinfo.spec ++
--- /var/tmp/diff_new_pack.HKf6XU/_old  2020-03-27 21:55:19.166723719 +0100
+++ /var/tmp/diff_new_pack.HKf6XU/_new  2020-03-27 21:55:19.170723722 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package hwinfo
 #
-# Copyright (c) 2020 SUSE LLC
+# Copyright (c) 2020 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
@@ -12,7 +12,7 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via https://bugs.opensuse.org/
+# Please submit bugfixes or comments via http://bugs.opensuse.org/
 #
 
 
@@ -36,8 +36,8 @@
 # Until migration to github this should be correct url
 License:GPL-2.0-or-later
 Group:  Hardware/Other
-URL:http://gitorious.org/opensuse/hwinfo
-Version:21.68
+Url:http://gitorious.org/opensuse/hwinfo
+Version:21.69
 Release:0
 Source: %{name}-%{version}.tar.xz
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build

++ hwinfo-21.68.tar.xz -> hwinfo-21.69.tar.xz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.68/VERSION new/hwinfo-21.69/VERSION
--- old/hwinfo-21.68/VERSION2020-01-14 11:38:50.0 +0100
+++ new/hwinfo-21.69/VERSION2020-03-24 17:50:34.0 +0100
@@ -1 +1 @@
-21.68
+21.69
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.68/changelog new/hwinfo-21.69/changelog
--- old/hwinfo-21.68/changelog  2020-01-14 11:38:50.0 +0100
+++ new/hwinfo-21.69/changelog  2020-03-24 17:50:34.0 +0100
@@ -1,3 +1,8 @@
+2020-03-24:21.69
+   - merge gh#openSUSE/hwinfo#85
+   - fix xen detection (bsc#1167561)
+   - add link to cpuid doc
+
 2020-01-14:21.68
- merge gh#openSUSE/hwinfo#84
- the /sbin/udevadm compat symlink is gone
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.68/src/hd/hd.c new/hwinfo-21.69/src/hd/hd.c
--- old/hwinfo-21.68/src/hd/hd.c2020-01-14 11:38:50.0 +0100
+++ new/hwinfo-21.69/src/hd/hd.c2020-03-24 17:50:34.0 +0100
@@ -3150,42 +3150,27 @@
 }
 
 
-
-
 /*
  * check for xen hypervisor
+ *
+ * see https://www.sandpile.org/x86/cpuid.htm#level_4000_h
  */
 int hd_is_xen(hd_data_t *hd_data)
 {
 #if defined(__i386__) || defined(__x86_64__)
 
-  char signature[13];
-  unsigned u, foo;
+  unsigned eax, ebx, ecx, edx;
 
   __asm__(
-#ifdef __i386__
-"push %%ebx\n\t"
-"cpuid\n\t"
-"mov %%ebx,(%%esi)\n\t"
-"mov %%ecx,4(%%esi)\n\t"
-"mov %%edx,8(%%esi)\n\t"
-"pop %%ebx"
-#else
-"push %%rbx\n\t"
-"cpuid\n\t"
-"mov %%ebx,(%%rsi)\n\t"
-"mov %%ecx,4(%%rsi)\n\t"
-"mov %%edx,8(%%rsi)\n\t"
-"pop %%rbx"
-#endif
-: "=a" (u), "=c" (foo)
-: "a" (0x4000), "c" (0), "S" (signature)
-: "%edx"
+"cpuid"
+: "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
+: "a" (0x4000), "c" (0)
   );
 
-  signature[12] = 0;
-
-  return u < 0x4002 || strcmp(signature, "XenVMMXenVMM") ? 0 : 1;
+  return eax >= 0x4002 &&
+ebx == 0x566e6558 /* "XenV" */ &&
+ecx == 0x65584d4d /* "MMXe" */ &&
+edx == 0x4d4d566e /* "nVMM" */;
 
 #else
 




commit hwinfo for openSUSE:Factory

2020-01-24 Thread root
Hello community,

here is the log from the commit of package hwinfo for openSUSE:Factory checked 
in at 2020-01-24 14:10:44

Comparing /work/SRC/openSUSE:Factory/hwinfo (Old)
 and  /work/SRC/openSUSE:Factory/.hwinfo.new.26092 (New)


Package is "hwinfo"

Fri Jan 24 14:10:44 2020 rev:172 rq:766622 version:21.68

Changes:

--- /work/SRC/openSUSE:Factory/hwinfo/hwinfo.changes2020-01-16 
18:19:36.328919309 +0100
+++ /work/SRC/openSUSE:Factory/.hwinfo.new.26092/hwinfo.changes 2020-01-24 
14:10:51.614403311 +0100
@@ -0,0 +1,6 @@
+---
+Thu Jan 23 11:59:07 UTC 2020 - Dominique Leuenberger 
+
+- BuildRequire pkgconfig(udev) instead of udev: allow OBS to
+  shortcut through the -mini flavor.
+



Other differences:
--
++ hwinfo.spec ++
--- /var/tmp/diff_new_pack.znxpAr/_old  2020-01-24 14:10:52.230403519 +0100
+++ /var/tmp/diff_new_pack.znxpAr/_new  2020-01-24 14:10:52.230403519 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package hwinfo
 #
-# Copyright (c) 2020 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -12,7 +12,7 @@
 # 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/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
 
@@ -21,7 +21,7 @@
 BuildRequires:  flex
 BuildRequires:  perl-XML-Parser
 BuildRequires:  pkg-config
-BuildRequires:  udev
+BuildRequires:  pkgconfig(udev)
 BuildRequires:  pkgconfig(uuid)
 %if 0%{?rhel_version} == 0
 BuildRequires:  perl-XML-Writer
@@ -36,7 +36,7 @@
 # Until migration to github this should be correct url
 License:GPL-2.0-or-later
 Group:  Hardware/Other
-Url:http://gitorious.org/opensuse/hwinfo
+URL:http://gitorious.org/opensuse/hwinfo
 Version:21.68
 Release:0
 Source: %{name}-%{version}.tar.xz




commit hwinfo for openSUSE:Factory

2020-01-16 Thread root
Hello community,

here is the log from the commit of package hwinfo for openSUSE:Factory checked 
in at 2020-01-16 18:19:29

Comparing /work/SRC/openSUSE:Factory/hwinfo (Old)
 and  /work/SRC/openSUSE:Factory/.hwinfo.new.26092 (New)


Package is "hwinfo"

Thu Jan 16 18:19:29 2020 rev:171 rq:764237 version:21.68

Changes:

--- /work/SRC/openSUSE:Factory/hwinfo/hwinfo.changes2019-09-05 
12:10:42.327848231 +0200
+++ /work/SRC/openSUSE:Factory/.hwinfo.new.26092/hwinfo.changes 2020-01-16 
18:19:36.328919309 +0100
@@ -0,0 +1,7 @@
+
+Tue Jan 14 10:38:50 UTC 2020 - wfe...@opensuse.org
+
+- merge gh#openSUSE/hwinfo#84
+- the /sbin/udevadm compat symlink is gone
+- 21.68
+

Old:

  hwinfo-21.67.tar.xz

New:

  hwinfo-21.68.tar.xz



Other differences:
--
++ hwinfo.spec ++
--- /var/tmp/diff_new_pack.9kULq0/_old  2020-01-16 18:19:36.908919637 +0100
+++ /var/tmp/diff_new_pack.9kULq0/_new  2020-01-16 18:19:36.908919637 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package hwinfo
 #
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 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
@@ -12,7 +12,7 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via https://bugs.opensuse.org/
+# Please submit bugfixes or comments via http://bugs.opensuse.org/
 #
 
 
@@ -37,7 +37,7 @@
 License:GPL-2.0-or-later
 Group:  Hardware/Other
 Url:http://gitorious.org/opensuse/hwinfo
-Version:21.67
+Version:21.68
 Release:0
 Source: %{name}-%{version}.tar.xz
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build

++ hwinfo-21.67.tar.xz -> hwinfo-21.68.tar.xz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.67/VERSION new/hwinfo-21.68/VERSION
--- old/hwinfo-21.67/VERSION2019-07-19 15:56:55.0 +0200
+++ new/hwinfo-21.68/VERSION2020-01-14 11:38:50.0 +0100
@@ -1 +1 @@
-21.67
+21.68
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.67/changelog new/hwinfo-21.68/changelog
--- old/hwinfo-21.67/changelog  2019-07-19 15:56:55.0 +0200
+++ new/hwinfo-21.68/changelog  2020-01-14 11:38:50.0 +0100
@@ -1,3 +1,7 @@
+2020-01-14:21.68
+   - merge gh#openSUSE/hwinfo#84
+   - the /sbin/udevadm compat symlink is gone
+
 2019-07-19:21.67
- merge gh#openSUSE/hwinfo#81
- fix DASD detection (bsc#1136475)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.67/src/hd/hd_int.h 
new/hwinfo-21.68/src/hd/hd_int.h
--- old/hwinfo-21.67/src/hd/hd_int.h2019-07-19 15:56:55.0 +0200
+++ new/hwinfo-21.68/src/hd/hd_int.h2020-01-14 11:38:50.0 +0100
@@ -43,7 +43,7 @@
 #define PROG_RMMOD "/sbin/rmmod"
 #define PROG_CARDCTL   "/sbin/cardctl"
 #define PROG_UDEVINFO  "/usr/bin/udevinfo"
-#define PROG_UDEVADM   "/sbin/udevadm"
+#define PROG_UDEVADM   "/usr/bin/udevadm"
 
 #define KLOG_BOOT  "/var/log/boot.msg"
 #define ISAPNP_CONF"/etc/isapnp.conf"




commit hwinfo for openSUSE:Factory

2019-09-05 Thread root
Hello community,

here is the log from the commit of package hwinfo for openSUSE:Factory checked 
in at 2019-09-05 12:10:39

Comparing /work/SRC/openSUSE:Factory/hwinfo (Old)
 and  /work/SRC/openSUSE:Factory/.hwinfo.new.7948 (New)


Package is "hwinfo"

Thu Sep  5 12:10:39 2019 rev:170 rq:721742 version:21.67

Changes:

--- /work/SRC/openSUSE:Factory/hwinfo/hwinfo.changes2019-07-23 
22:33:14.343022630 +0200
+++ /work/SRC/openSUSE:Factory/.hwinfo.new.7948/hwinfo.changes  2019-09-05 
12:10:42.327848231 +0200
@@ -0,0 +1,5 @@
+---
+Fri Aug  2 07:00:45 UTC 2019 - Martin Liška 
+
+- Use FAT LTO objects in order to provide proper static library.
+



Other differences:
--
++ hwinfo.spec ++
--- /var/tmp/diff_new_pack.VMMpe0/_old  2019-09-05 12:10:42.811848139 +0200
+++ /var/tmp/diff_new_pack.VMMpe0/_new  2019-09-05 12:10:42.815848138 +0200
@@ -12,7 +12,7 @@
 # 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/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
 
@@ -76,6 +76,7 @@
 %setup
 
 %build
+%global _lto_cflags %{_lto_cflags} -ffat-lto-objects
   make static
   # make copy of static library for installation
   cp src/libhd.a .




commit hwinfo for openSUSE:Factory

2019-07-23 Thread root
Hello community,

here is the log from the commit of package hwinfo for openSUSE:Factory checked 
in at 2019-07-23 22:33:12

Comparing /work/SRC/openSUSE:Factory/hwinfo (Old)
 and  /work/SRC/openSUSE:Factory/.hwinfo.new.4126 (New)


Package is "hwinfo"

Tue Jul 23 22:33:12 2019 rev:169 rq:717098 version:21.67

Changes:

--- /work/SRC/openSUSE:Factory/hwinfo/hwinfo.changes2019-05-25 
13:34:28.788009907 +0200
+++ /work/SRC/openSUSE:Factory/.hwinfo.new.4126/hwinfo.changes  2019-07-23 
22:33:14.343022630 +0200
@@ -1,0 +2,8 @@
+Fri Jul 19 13:56:55 UTC 2019 - wfe...@opensuse.org
+
+- merge gh#openSUSE/hwinfo#81
+- fix DASD detection (bsc#1136475)
+- don't include bcache devices
+- 21.67
+
+

Old:

  hwinfo-21.66.tar.xz

New:

  hwinfo-21.67.tar.xz



Other differences:
--
++ hwinfo.spec ++
--- /var/tmp/diff_new_pack.ZJFgRS/_old  2019-07-23 22:33:14.847022526 +0200
+++ /var/tmp/diff_new_pack.ZJFgRS/_new  2019-07-23 22:33:14.847022526 +0200
@@ -37,7 +37,7 @@
 License:GPL-2.0-or-later
 Group:  Hardware/Other
 Url:http://gitorious.org/opensuse/hwinfo
-Version:21.66
+Version:21.67
 Release:0
 Source: %{name}-%{version}.tar.xz
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build

++ hwinfo-21.66.tar.xz -> hwinfo-21.67.tar.xz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.66/VERSION new/hwinfo-21.67/VERSION
--- old/hwinfo-21.66/VERSION2019-05-23 15:32:53.0 +0200
+++ new/hwinfo-21.67/VERSION2019-07-19 15:56:55.0 +0200
@@ -1 +1 @@
-21.66
+21.67
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.66/changelog new/hwinfo-21.67/changelog
--- old/hwinfo-21.66/changelog  2019-05-23 15:32:53.0 +0200
+++ new/hwinfo-21.67/changelog  2019-07-19 15:56:55.0 +0200
@@ -1,3 +1,8 @@
+2019-07-19:21.67
+   - merge gh#openSUSE/hwinfo#81
+   - fix DASD detection (bsc#1136475)
+   - don't include bcache devices
+
 2019-05-23:21.66
- merge gh#openSUSE/hwinfo#80
- fix Makefile and allow building for old distros
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.66/src/hd/block.c 
new/hwinfo-21.67/src/hd/block.c
--- old/hwinfo-21.66/src/hd/block.c 2019-05-23 15:32:53.0 +0200
+++ new/hwinfo-21.67/src/hd/block.c 2019-07-19 15:56:55.0 +0200
@@ -525,36 +525,37 @@
 
   if(hd->sysfs_id) {
 if(
-  sscanf(hd->sysfs_id, "/block/cciss!c%ud%u", , ) == 2
+  sscanf(hd->sysfs_id, "/class/block/cciss!c%ud%u", , ) == 2
 ) {
   hd->slot = (u0 << 8) + u1;
   str_printf(>device.name, 0, "CCISS disk %u/%u", u0, u1);
 }
 else if(
-  sscanf(hd->sysfs_id, "/block/ida!c%ud%u", , ) == 2
+  sscanf(hd->sysfs_id, "/class/block/ida!c%ud%u", , ) == 2
 ) {
   hd->slot = (u0 << 8) + u1;
   str_printf(>device.name, 0, "SMART Array %u/%u", u0, u1);
 }
 else if(
-  sscanf(hd->sysfs_id, "/block/rd!c%ud%u", , ) == 2
+  sscanf(hd->sysfs_id, "/class/block/rd!c%ud%u", , ) == 2
 ) {
   hd->slot = (u0 << 8) + u1;
   str_printf(>device.name, 0, "DAC960 RAID Array %u/%u", u0, u1);
 }
 else if(
-  sscanf(hd->sysfs_id, "/block/i2o!hd%c", ) == 1 &&
+  sscanf(hd->sysfs_id, "/class/block/i2o!hd%c", ) == 1 &&
   c >= 'a'
 ) {
   hd->slot = c - 'a';
   str_printf(>device.name, 0, "I2O disk %u", hd->slot);
 }
 else if(
-  sscanf(hd->sysfs_id, "/block/dasd%c", ) == 1 &&
+  sscanf(hd->sysfs_id, "/class/block/dasd%c", ) == 1 &&
   c >= 'a'
 ) {
   hd->slot = c - 'a';
   hd->device.name = new_str("S390 Disk");
+  hd_set_hw_class(hd, hw_redasd);
 }
   }
 
@@ -1221,7 +1222,8 @@
   hd_data->flags.list_md ||
   (
 strncmp(name, "md", sizeof "md" - 1) &&
-strncmp(name, "dm-", sizeof "dm-" - 1)
+strncmp(name, "dm-", sizeof "dm-" - 1) &&
+strncmp(name, "bcache", sizeof "bcache" - 1)
   )
 )
   ) {
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.66/src/hd/hd.c new/hwinfo-21.67/src/hd/hd.c
--- old/hwinfo-21.66/src/hd/hd.c2019-05-23 15:32:53.0 +0200
+++ new/hwinfo-21.67/src/hd/hd.c2019-07-19 15:56:55.0 +0200
@@ -4783,13 +4783,6 @@
   ) {
 hd_set_hw_class(hd, hw_tape);
   }
-
-  if(
-hd->base_class.id == bc_storage_device &&
-hd->sub_class.id == sc_sdev_disk
-  ) {
-hd_set_hw_class(hd, hw_redasd);
-  }
 }
 
 




commit hwinfo for openSUSE:Factory

2019-05-25 Thread root
Hello community,

here is the log from the commit of package hwinfo for openSUSE:Factory checked 
in at 2019-05-25 13:34:27

Comparing /work/SRC/openSUSE:Factory/hwinfo (Old)
 and  /work/SRC/openSUSE:Factory/.hwinfo.new.5148 (New)


Package is "hwinfo"

Sat May 25 13:34:27 2019 rev:168 rq:705024 version:21.66

Changes:

--- /work/SRC/openSUSE:Factory/hwinfo/hwinfo.changes2019-03-19 
11:08:22.626094628 +0100
+++ /work/SRC/openSUSE:Factory/.hwinfo.new.5148/hwinfo.changes  2019-05-25 
13:34:28.788009907 +0200
@@ -1,0 +2,14 @@
+Thu May 23 13:32:53 UTC 2019 - wfe...@opensuse.org
+
+- merge gh#openSUSE/hwinfo#80
+- fix Makefile and allow building for old distros
+- 21.66
+
+
+Thu May 23 12:03:24 UTC 2019 - wfe...@opensuse.org
+
+- merge gh#openSUSE/hwinfo#79
+- return BIOS UUID in decoded (with '-'s) form (bsc#1135819)
+- 21.65
+
+

Old:

  hwinfo-21.64.tar.xz

New:

  hwinfo-21.66.tar.xz



Other differences:
--
++ hwinfo.spec ++
--- /var/tmp/diff_new_pack.CZOivs/_old  2019-05-25 13:34:29.640009299 +0200
+++ /var/tmp/diff_new_pack.CZOivs/_new  2019-05-25 13:34:29.644009296 +0200
@@ -22,6 +22,7 @@
 BuildRequires:  perl-XML-Parser
 BuildRequires:  pkg-config
 BuildRequires:  udev
+BuildRequires:  pkgconfig(uuid)
 %if 0%{?rhel_version} == 0
 BuildRequires:  perl-XML-Writer
 %endif
@@ -33,10 +34,10 @@
 PreReq: /sbin/ldconfig
 Summary:Hardware Library
 # Until migration to github this should be correct url
-License:GPL-2.0+
+License:GPL-2.0-or-later
 Group:  Hardware/Other
 Url:http://gitorious.org/opensuse/hwinfo
-Version:21.64
+Version:21.66
 Release:0
 Source: %{name}-%{version}.tar.xz
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build

++ hwinfo-21.64.tar.xz -> hwinfo-21.66.tar.xz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.64/Makefile new/hwinfo-21.66/Makefile
--- old/hwinfo-21.64/Makefile   2019-03-14 15:25:20.0 +0100
+++ new/hwinfo-21.66/Makefile   2019-05-23 15:32:53.0 +0200
@@ -3,9 +3,9 @@
 TARGETS= hwinfo hwinfo.pc changelog
 CLEANFILES = hwinfo hwinfo.pc hwinfo.static hwscan hwscan.static hwscand 
hwscanqueue doc/libhd doc/*~
 LIBS   = -lhd
-SLIBS  = -lhd
+SLIBS  = -lhd -luuid
 TLIBS  = -lhd_tiny
-SO_LIBS=
+SO_LIBS= -luuid
 TSO_LIBS   =
 
 export SO_LIBS
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.64/VERSION new/hwinfo-21.66/VERSION
--- old/hwinfo-21.64/VERSION2019-03-14 15:25:20.0 +0100
+++ new/hwinfo-21.66/VERSION2019-05-23 15:32:53.0 +0200
@@ -1 +1 @@
-21.64
+21.66
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.64/changelog new/hwinfo-21.66/changelog
--- old/hwinfo-21.64/changelog  2019-03-14 15:25:20.0 +0100
+++ new/hwinfo-21.66/changelog  2019-05-23 15:32:53.0 +0200
@@ -1,3 +1,11 @@
+2019-05-23:21.66
+   - merge gh#openSUSE/hwinfo#80
+   - fix Makefile and allow building for old distros
+
+2019-05-23:21.65
+   - merge gh#openSUSE/hwinfo#79
+   - return BIOS UUID in decoded (with '-'s) form (bsc#1135819)
+
 2019-03-14:21.64
- Update of pci and usb ids (bsc#1127840) (#77)
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.64/src/hd/smbios.c 
new/hwinfo-21.66/src/hd/smbios.c
--- old/hwinfo-21.64/src/hd/smbios.c2019-03-14 15:25:20.0 +0100
+++ new/hwinfo-21.66/src/hd/smbios.c2019-05-23 15:32:53.0 +0200
@@ -1,10 +1,16 @@
 #include 
 #include 
+#include 
 
 #include "hd.h"
 #include "hd_int.h"
 #include "smbios.h"
 
+// not in old uuid.h versions
+#ifndef UUID_STR_LEN
+#define UUID_STR_LEN 37
+#endif
+
 /**
  * @defgroup SMBIOSint System Management BIOS (SMBIOS)
  * @ingroup libhdINFOint
@@ -35,6 +41,7 @@
 static void smbios_str_print(FILE *f, char *str, char *label);
 static void smbios_id2str(hd_id_t *hid, sm_str_map_t *map, unsigned def);
 static void smbios_bitmap2str(hd_bitmap_t *hbm, sm_str_map_t *map);
+static char *smbios_decode_uuid(uuid_t uuid);
 
 
 /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
@@ -1287,7 +1294,7 @@
   hd_smbios_t *sm;
   str_list_t *sl;
   char c, *s;
-  unsigned u;
+  unsigned u, u_and, u_or;
   int i;
 
   if(!hd_data->smbios) return;
@@ -1310,18 +1317,17 @@
 if(sm->sysinfo.product) fprintf(f, "Product: \"%s\"\n", 

commit hwinfo for openSUSE:Factory

2019-03-19 Thread root
Hello community,

here is the log from the commit of package hwinfo for openSUSE:Factory checked 
in at 2019-03-19 11:08:19

Comparing /work/SRC/openSUSE:Factory/hwinfo (Old)
 and  /work/SRC/openSUSE:Factory/.hwinfo.new.28833 (New)


Package is "hwinfo"

Tue Mar 19 11:08:19 2019 rev:167 rq:685040 version:21.64

Changes:

--- /work/SRC/openSUSE:Factory/hwinfo/hwinfo.changes2018-12-11 
15:44:08.450450021 +0100
+++ /work/SRC/openSUSE:Factory/.hwinfo.new.28833/hwinfo.changes 2019-03-19 
11:08:22.626094628 +0100
@@ -1,0 +2,6 @@
+Thu Mar 14 14:25:20 UTC 2019 - sch...@suse.de
+
+- Update of pci and usb ids (bsc#1127840) (#77)
+- 21.64
+
+

Old:

  hwinfo-21.63.tar.xz

New:

  hwinfo-21.64.tar.xz



Other differences:
--
++ hwinfo.spec ++
--- /var/tmp/diff_new_pack.OWTTPr/_old  2019-03-19 11:08:23.42609 +0100
+++ /var/tmp/diff_new_pack.OWTTPr/_new  2019-03-19 11:08:23.42609 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package hwinfo
 #
-# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 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
@@ -36,7 +36,7 @@
 License:GPL-2.0+
 Group:  Hardware/Other
 Url:http://gitorious.org/opensuse/hwinfo
-Version:21.63
+Version:21.64
 Release:0
 Source: %{name}-%{version}.tar.xz
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build

++ hwinfo-21.63.tar.xz -> hwinfo-21.64.tar.xz ++
 6633 lines of diff (skipped)




commit hwinfo for openSUSE:Factory

2018-12-11 Thread root
Hello community,

here is the log from the commit of package hwinfo for openSUSE:Factory checked 
in at 2018-12-11 15:44:04

Comparing /work/SRC/openSUSE:Factory/hwinfo (Old)
 and  /work/SRC/openSUSE:Factory/.hwinfo.new.19453 (New)


Package is "hwinfo"

Tue Dec 11 15:44:04 2018 rev:166 rq:655627 version:21.63

Changes:

--- /work/SRC/openSUSE:Factory/hwinfo/hwinfo.changes2018-11-12 
09:36:13.593637379 +0100
+++ /work/SRC/openSUSE:Factory/.hwinfo.new.19453/hwinfo.changes 2018-12-11 
15:44:08.450450021 +0100
@@ -1,0 +2,9 @@
+Thu Dec 6 12:16:33 UTC 2018 - snw...@suse.de
+
+- merge gh#openSUSE/hwinfo#75
+- adjust system type detection (bsc#1117982)
+- rework version number generation in header file
+- small correction
+- 21.63
+
+

Old:

  hwinfo-21.62.tar.xz

New:

  hwinfo-21.63.tar.xz



Other differences:
--
++ hwinfo.spec ++
--- /var/tmp/diff_new_pack.F2w5f4/_old  2018-12-11 15:44:09.310449077 +0100
+++ /var/tmp/diff_new_pack.F2w5f4/_new  2018-12-11 15:44:09.314449073 +0100
@@ -36,7 +36,7 @@
 License:GPL-2.0+
 Group:  Hardware/Other
 Url:http://gitorious.org/opensuse/hwinfo
-Version:21.62
+Version:21.63
 Release:0
 Source: %{name}-%{version}.tar.xz
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build

++ hwinfo-21.62.tar.xz -> hwinfo-21.63.tar.xz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.62/Makefile new/hwinfo-21.63/Makefile
--- old/hwinfo-21.62/Makefile   2018-11-09 11:21:48.0 +0100
+++ new/hwinfo-21.63/Makefile   2018-12-06 13:16:33.0 +0100
@@ -116,6 +116,8 @@
fi
install -m 644 hwinfo.pc $(DESTDIR)$(ULIBDIR)/pkgconfig
install -m 644 src/hd/hd.h $(DESTDIR)/usr/include
+   perl -pi -e "s/define\s+HD_VERSION\b.*/define 
HD_VERSION\t\t$(LIBHD_MAJOR_VERSION)/" $(DESTDIR)/usr/include/hd.h
+   perl -pi -e "s/define\s+HD_MINOR_VERSION\b.*/define 
HD_MINOR_VERSION\t$(LIBHD_MINOR_VERSION)/" $(DESTDIR)/usr/include/hd.h
install -m 755 getsysinfo $(DESTDIR)/usr/sbin
install -m 755 src/isdn/cdb/mk_isdnhwdb $(DESTDIR)/usr/sbin
install -d -m 755 $(DESTDIR)/usr/share/hwinfo
@@ -125,7 +127,6 @@
 
 archive: changelog
@if [ ! -d .git ] ; then echo no git repo ; false ; fi
-   make -C src/hd hd.h
mkdir -p package
git archive --prefix=$(PREFIX)/ $(BRANCH) > package/$(PREFIX).tar
tar -r -f package/$(PREFIX).tar --mode=0664 --owner=root --group=root 
--mtime="`git show -s --format=%ci`" --transform='s:^:$(PREFIX)/:' VERSION 
changelog src/hd/hd.h
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.62/VERSION new/hwinfo-21.63/VERSION
--- old/hwinfo-21.62/VERSION2018-11-09 11:21:48.0 +0100
+++ new/hwinfo-21.63/VERSION2018-12-06 13:16:33.0 +0100
@@ -1 +1 @@
-21.62
+21.63
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.62/changelog new/hwinfo-21.63/changelog
--- old/hwinfo-21.62/changelog  2018-11-09 11:21:48.0 +0100
+++ new/hwinfo-21.63/changelog  2018-12-06 13:16:33.0 +0100
@@ -1,3 +1,9 @@
+2018-12-06:21.63
+   - merge gh#openSUSE/hwinfo#75
+   - adjust system type detection (bsc#1117982)
+   - rework version number generation in header file
+   - small correction
+
 2018-11-09:21.62
- merge gh#openSUSE/hwinfo#73
- update pci and usb ids (fate#326431)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.62/src/hd/Makefile 
new/hwinfo-21.63/src/hd/Makefile
--- old/hwinfo-21.62/src/hd/Makefile2018-11-09 11:21:48.0 +0100
+++ new/hwinfo-21.63/src/hd/Makefile2018-12-06 13:16:33.0 +0100
@@ -7,9 +7,5 @@
 version.h: $(TOPDIR)/VERSION
@echo "#define HD_VERSION_STRING \"`cat $(TOPDIR)/VERSION`\"" >$@
 
-hd.h: $(TOPDIR)/VERSION
-   @perl -pi -e "s/define\s+HD_VERSION\s+\d+/define 
HD_VERSION\t$(LIBHD_MAJOR_VERSION)/" $@
-   @perl -pi -e "s/define\s+HD_MINOR_VERSION\s+\d+/define 
HD_MINOR_VERSION\t$(LIBHD_MINOR_VERSION)/" $@
-
 $(LIBHD_D): $(OBJS)
ar r $(LIBHD) $?
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.62/src/hd/hd.h new/hwinfo-21.63/src/hd/hd.h
--- old/hwinfo-21.62/src/hd/hd.h2018-11-09 11:21:48.0 +0100
+++ new/hwinfo-21.63/src/hd/hd.h2018-12-06 13:16:33.0 +0100
@@ -19,8 +19,8 @@
  */
 
 /** Interface version */
-#define HD_VERSION 21
-#define HD_MINOR_VERSION   38
+#define HD_VERSION   

commit hwinfo for openSUSE:Factory

2018-11-12 Thread root
Hello community,

here is the log from the commit of package hwinfo for openSUSE:Factory checked 
in at 2018-11-12 09:36:10

Comparing /work/SRC/openSUSE:Factory/hwinfo (Old)
 and  /work/SRC/openSUSE:Factory/.hwinfo.new (New)


Package is "hwinfo"

Mon Nov 12 09:36:10 2018 rev:165 rq:647562 version:21.62

Changes:

--- /work/SRC/openSUSE:Factory/hwinfo/hwinfo.changes2018-11-08 
09:41:59.797555422 +0100
+++ /work/SRC/openSUSE:Factory/.hwinfo.new/hwinfo.changes   2018-11-12 
09:36:13.593637379 +0100
@@ -1,0 +2,11 @@
+Fri Nov 9 10:21:48 UTC 2018 - snw...@suse.de
+
+- merge gh#openSUSE/hwinfo#73
+- update pci and usb ids (fate#326431)
+- add script to update pci and usb ids
+- adjust hwinfo know about RISC-V
+- update git2log script
+- fix curl commands
+- 21.62
+
+

Old:

  hwinfo-21.61.tar.xz

New:

  hwinfo-21.62.tar.xz



Other differences:
--
++ hwinfo.spec ++
--- /var/tmp/diff_new_pack.hsn5xw/_old  2018-11-12 09:36:15.041635287 +0100
+++ /var/tmp/diff_new_pack.hsn5xw/_new  2018-11-12 09:36:15.045635281 +0100
@@ -36,7 +36,7 @@
 License:GPL-2.0+
 Group:  Hardware/Other
 Url:http://gitorious.org/opensuse/hwinfo
-Version:21.61
+Version:21.62
 Release:0
 Source: %{name}-%{version}.tar.xz
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build

++ hwinfo-21.61.tar.xz -> hwinfo-21.62.tar.xz ++
 23965 lines of diff (skipped)




commit hwinfo for openSUSE:Factory

2018-11-08 Thread root
Hello community,

here is the log from the commit of package hwinfo for openSUSE:Factory checked 
in at 2018-11-08 09:41:56

Comparing /work/SRC/openSUSE:Factory/hwinfo (Old)
 and  /work/SRC/openSUSE:Factory/.hwinfo.new (New)


Package is "hwinfo"

Thu Nov  8 09:41:56 2018 rev:164 rq:645306 version:21.61

Changes:

--- /work/SRC/openSUSE:Factory/hwinfo/hwinfo.changes2018-10-02 
19:41:19.250218613 +0200
+++ /work/SRC/openSUSE:Factory/.hwinfo.new/hwinfo.changes   2018-11-08 
09:41:59.797555422 +0100
@@ -1,0 +2,23 @@
+Mon Oct 29 14:56:09 UTC 2018 - snw...@suse.de
+
+- merge gh#openSUSE/hwinfo#72
+- fix id of s-par storage controller (bsc#1107196)
+- 21.61
+
+
+Wed Oct 17 13:23:47 UTC 2018 - snw...@suse.de
+
+- merge gh#openSUSE/hwinfo#71
+- add network interfaces found on mdio bus (bsc#1018271)
+- 21.60
+
+
+Fri Oct 12 08:46:53 UTC 2018 - snw...@suse.de
+
+- merge gh#openSUSE/hwinfo#70
+- The location of the S-Par drivers virtual buses has changed
+  (bsc#1107196)
+- The location of the S-Par drivers virtual buses has changed
+- 21.59
+
+

Old:

  hwinfo-21.58.tar.xz

New:

  hwinfo-21.61.tar.xz



Other differences:
--
++ hwinfo.spec ++
--- /var/tmp/diff_new_pack.vS84AM/_old  2018-11-08 09:42:00.277554865 +0100
+++ /var/tmp/diff_new_pack.vS84AM/_new  2018-11-08 09:42:00.277554865 +0100
@@ -36,7 +36,7 @@
 License:GPL-2.0+
 Group:  Hardware/Other
 Url:http://gitorious.org/opensuse/hwinfo
-Version:21.58
+Version:21.61
 Release:0
 Source: %{name}-%{version}.tar.xz
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build

++ hwinfo-21.58.tar.xz -> hwinfo-21.61.tar.xz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.58/VERSION new/hwinfo-21.61/VERSION
--- old/hwinfo-21.58/VERSION2018-09-27 14:37:03.0 +0200
+++ new/hwinfo-21.61/VERSION2018-10-29 15:56:09.0 +0100
@@ -1 +1 @@
-21.58
+21.61
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.58/changelog new/hwinfo-21.61/changelog
--- old/hwinfo-21.58/changelog  2018-09-27 14:37:03.0 +0200
+++ new/hwinfo-21.61/changelog  2018-10-29 15:56:09.0 +0100
@@ -1,3 +1,12 @@
+2018-10-29:21.61
+   - fix id of s-par storage controller (bsc #1107196)
+
+2018-10-17:21.60
+   - add network interfaces found on mdio bus (bsc #1018271)
+
+2018-10-08:21.59
+   - The location of the S-Par drivers virtual buses has changed (bsc 
#1107196)
+
 2018-03-29:21.58
- ensure udev device links are unique (bsc #1084700)
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.58/src/hd/hd.h new/hwinfo-21.61/src/hd/hd.h
--- old/hwinfo-21.58/src/hd/hd.h2018-09-27 14:37:03.0 +0200
+++ new/hwinfo-21.61/src/hd/hd.h2018-10-29 15:56:09.0 +0100
@@ -20,7 +20,7 @@
 
 /** Interface version */
 #define HD_VERSION 21
-#define HD_MINOR_VERSION   58
+#define HD_MINOR_VERSION   61
 #define HD_FULL_VERSION(HD_VERSION * 1000 + HD_MINOR_VERSION)
 
 /**
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.58/src/hd/pci.c 
new/hwinfo-21.61/src/hd/pci.c
--- old/hwinfo-21.58/src/hd/pci.c   2018-09-27 14:37:03.0 +0200
+++ new/hwinfo-21.61/src/hd/pci.c   2018-10-29 15:56:09.0 +0100
@@ -64,6 +64,8 @@
 static void hd_read_mmc(hd_data_t *hd_data);
 static void hd_read_sdio(hd_data_t *hd_data);
 static void hd_read_nd(hd_data_t *hd_data);
+static void hd_read_visorbus(hd_data_t *hd_data);
+static void hd_read_mdio(hd_data_t *hd_data);
 
 void hd_scan_sysfs_pci(hd_data_t *hd_data)
 {
@@ -124,6 +126,12 @@
 
   PROGRESS(15, 0, "nd");
   hd_read_nd(hd_data);
+
+  PROGRESS(16, 0, "visorbus");
+  hd_read_visorbus(hd_data);
+
+  PROGRESS(17, 0, "mdio");
+  hd_read_mdio(hd_data);
 }
 
 
@@ -2061,5 +2069,129 @@
   free_str_list(sf_bus);
 }
 
-/** @} */
 
+/*
+ * visorbus
+ */
+void hd_read_visorbus(hd_data_t *hd_data)
+{
+  uint64_t ul0;
+  hd_t *hd;
+  str_list_t *sf_bus, *sf_bus_e;
+  char *sf_dev, *drv, *drv_name;
+
+  sf_bus = read_dir("/sys/bus/visorbus/devices", 'l');
+
+  if(!sf_bus) {
+ADD2LOG("sysfs: no such bus: visorbus\n");
+return;
+  }
+
+  for(sf_bus_e = sf_bus; sf_bus_e; sf_bus_e = sf_bus_e->next) {
+sf_dev = new_str(hd_read_sysfs_link("/sys/bus/visorbus/devices", 
sf_bus_e->str));
+
+ADD2LOG(
+  "  visorbus 

commit hwinfo for openSUSE:Factory

2018-10-02 Thread root
Hello community,

here is the log from the commit of package hwinfo for openSUSE:Factory checked 
in at 2018-10-02 19:41:14

Comparing /work/SRC/openSUSE:Factory/hwinfo (Old)
 and  /work/SRC/openSUSE:Factory/.hwinfo.new (New)


Package is "hwinfo"

Tue Oct  2 19:41:14 2018 rev:163 rq:638786 version:21.58

Changes:

--- /work/SRC/openSUSE:Factory/hwinfo/hwinfo.changes2018-09-20 
11:38:39.564955245 +0200
+++ /work/SRC/openSUSE:Factory/.hwinfo.new/hwinfo.changes   2018-10-02 
19:41:19.250218613 +0200
@@ -1,0 +2,7 @@
+Thu Sep 27 12:37:03 UTC 2018 - snw...@suse.de
+
+- merge gh#openSUSE/hwinfo#59
+- ensure udev device links are unique (bsc#1084700)
+- 21.58
+
+

Old:

  hwinfo-21.57.tar.xz

New:

  hwinfo-21.58.tar.xz



Other differences:
--
++ hwinfo.spec ++
--- /var/tmp/diff_new_pack.jq28J2/_old  2018-10-02 19:41:20.170217247 +0200
+++ /var/tmp/diff_new_pack.jq28J2/_new  2018-10-02 19:41:20.190217216 +0200
@@ -36,7 +36,7 @@
 License:GPL-2.0+
 Group:  Hardware/Other
 Url:http://gitorious.org/opensuse/hwinfo
-Version:21.57
+Version:21.58
 Release:0
 Source: %{name}-%{version}.tar.xz
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build

++ hwinfo-21.57.tar.xz -> hwinfo-21.58.tar.xz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.57/VERSION new/hwinfo-21.58/VERSION
--- old/hwinfo-21.57/VERSION2018-09-17 13:59:38.0 +0200
+++ new/hwinfo-21.58/VERSION2018-09-27 14:37:03.0 +0200
@@ -1 +1 @@
-21.57
+21.58
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.57/changelog new/hwinfo-21.58/changelog
--- old/hwinfo-21.57/changelog  2018-09-17 13:59:38.0 +0200
+++ new/hwinfo-21.58/changelog  2018-09-27 14:37:03.0 +0200
@@ -1,3 +1,6 @@
+2018-03-29:21.58
+   - ensure udev device links are unique (bsc #1084700)
+
 2018-09-17:21.57
- check for vmware only when running in a vm (bsc #1105003)
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.57/src/hd/hd.c new/hwinfo-21.58/src/hd/hd.c
--- old/hwinfo-21.57/src/hd/hd.c2018-09-17 13:59:38.0 +0200
+++ new/hwinfo-21.58/src/hd/hd.c2018-09-27 14:37:03.0 +0200
@@ -5640,6 +5640,7 @@
   str_list_t *sl, *udevinfo;
   hd_udevinfo_t **uip, *ui;
   char *s = NULL, buf[256];
+  struct stat sbuf;
 
   udevinfo = read_file("| " PROG_UDEVADM " info -e 2>/dev/null", 0, 0);
   if(!udevinfo) udevinfo = read_file("| " PROG_UDEVINFO " -e 2>/dev/null", 0, 
0);
@@ -5681,6 +5682,33 @@
 
   s = free_mem(s);
 
+  /*
+   * It sometimes happens that udev generates the same link for different
+   * kernel devices. To catch this we check here that udev device symlinks
+   * actually point to the kernel device name.
+   *
+   * If it does not match the link is replaced by the kernel device name.
+   */
+  for(ui = hd_data->udevinfo; ui; ui = ui->next) {
+if(!ui->name || stat(ui->name, )) continue;
+
+for(sl = ui->links; sl; sl = sl->next) {
+  char *real_path = realpath(sl->str, NULL);
+
+  if(real_path) {
+if(strcmp(real_path, ui->name)) {
+  ADD2LOG(
+"udev link %s points to %s (expected %s) - removed\n",
+sl->str, real_path, ui->name
+  );
+  str_printf(>str, 0, "%s", ui->name);
+}
+
+free(real_path);
+  }
+}
+  }
+
   for(ui = hd_data->udevinfo; ui; ui = ui->next) {
 ADD2LOG("%s\n", ui->sysfs);
 if(ui->name) ADD2LOG("  name: %s\n", ui->name);
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.57/src/hd/hd.h new/hwinfo-21.58/src/hd/hd.h
--- old/hwinfo-21.57/src/hd/hd.h2018-09-17 13:59:38.0 +0200
+++ new/hwinfo-21.58/src/hd/hd.h2018-09-27 14:37:03.0 +0200
@@ -20,7 +20,7 @@
 
 /** Interface version */
 #define HD_VERSION 21
-#define HD_MINOR_VERSION   57
+#define HD_MINOR_VERSION   58
 #define HD_FULL_VERSION(HD_VERSION * 1000 + HD_MINOR_VERSION)
 
 /**




commit hwinfo for openSUSE:Factory

2018-09-20 Thread root
Hello community,

here is the log from the commit of package hwinfo for openSUSE:Factory checked 
in at 2018-09-20 11:38:32

Comparing /work/SRC/openSUSE:Factory/hwinfo (Old)
 and  /work/SRC/openSUSE:Factory/.hwinfo.new (New)


Package is "hwinfo"

Thu Sep 20 11:38:32 2018 rev:162 rq:636169 version:21.57

Changes:

--- /work/SRC/openSUSE:Factory/hwinfo/hwinfo.changes2018-07-04 
23:53:33.407996362 +0200
+++ /work/SRC/openSUSE:Factory/.hwinfo.new/hwinfo.changes   2018-09-20 
11:38:39.564955245 +0200
@@ -1,0 +2,7 @@
+Mon Sep 17 11:59:38 UTC 2018 - snw...@suse.de
+
+- merge gh#openSUSE/hwinfo#69
+- check for vmware only when running in a vm (bsc#1105003)
+- 21.57
+
+

Old:

  hwinfo-21.56.tar.xz

New:

  hwinfo-21.57.tar.xz



Other differences:
--
++ hwinfo.spec ++
--- /var/tmp/diff_new_pack.B2OPwp/_old  2018-09-20 11:38:40.528954677 +0200
+++ /var/tmp/diff_new_pack.B2OPwp/_new  2018-09-20 11:38:40.532954674 +0200
@@ -36,7 +36,7 @@
 License:GPL-2.0+
 Group:  Hardware/Other
 Url:http://gitorious.org/opensuse/hwinfo
-Version:21.56
+Version:21.57
 Release:0
 Source: %{name}-%{version}.tar.xz
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build

++ hwinfo-21.56.tar.xz -> hwinfo-21.57.tar.xz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.56/VERSION new/hwinfo-21.57/VERSION
--- old/hwinfo-21.56/VERSION2018-06-28 09:12:46.0 +0200
+++ new/hwinfo-21.57/VERSION2018-09-17 13:59:38.0 +0200
@@ -1 +1 @@
-21.56
+21.57
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.56/changelog new/hwinfo-21.57/changelog
--- old/hwinfo-21.56/changelog  2018-06-28 09:12:46.0 +0200
+++ new/hwinfo-21.57/changelog  2018-09-17 13:59:38.0 +0200
@@ -1,3 +1,6 @@
+2018-09-17:21.57
+   - check for vmware only when running in a vm (bsc #1105003)
+
 2018-06-26:21.56
- Add support for RISC-V
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.56/src/hd/hd.h new/hwinfo-21.57/src/hd/hd.h
--- old/hwinfo-21.56/src/hd/hd.h2018-06-28 09:12:46.0 +0200
+++ new/hwinfo-21.57/src/hd/hd.h2018-09-17 13:59:38.0 +0200
@@ -20,7 +20,7 @@
 
 /** Interface version */
 #define HD_VERSION 21
-#define HD_MINOR_VERSION   56
+#define HD_MINOR_VERSION   57
 #define HD_FULL_VERSION(HD_VERSION * 1000 + HD_MINOR_VERSION)
 
 /**
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.56/src/hd/sys.c 
new/hwinfo-21.57/src/hd/sys.c
--- old/hwinfo-21.56/src/hd/sys.c   2018-06-28 09:12:46.0 +0200
+++ new/hwinfo-21.57/src/hd/sys.c   2018-09-17 13:59:38.0 +0200
@@ -28,6 +28,7 @@
 static void sigsegv_handler(int signum);
 static int vmware_mouse(int set_iopl);
 static void chk_vmware(hd_data_t *hd_data, sys_info_t *st);
+static int chk_hypervisor(hd_data_t *hd_data);
 #endif
 
 #if defined(__i386__) || defined(__x86_64__)
@@ -214,8 +215,13 @@
   static int is_vmware = -1, has_vmware_mouse = -1;/* check only once */
 
   if(is_vmware < 0) {
-vm_1 = vmware_mouse(0);
-vm_2 = vmware_mouse(1);
+if(chk_hypervisor(hd_data)) {
+  vm_1 = vmware_mouse(0);
+  vm_2 = vmware_mouse(1);
+}
+else {
+  vm_1 = vm_2 = 0;
+}
 
 is_vmware = vm_1 > 0 ? 1 : 0;
 has_vmware_mouse = is_vmware || vm_2 > 0 ? 1 : 0;
@@ -318,6 +324,35 @@
 
   return st->model ? 1 : 0;
 }
+
+/*
+ * Check if we're running under a hypervisor (in a virtual machine).
+ *
+ * Return 1 if yes, else 0.
+ *
+ * The purpose if this check is to minimize chances the vmware check will
+ * have negative side effects (see bsc#1105003).
+ */
+int chk_hypervisor(hd_data_t *hd_data)
+{
+  int vm = 0;
+  str_list_t *sl;
+
+  for(sl = hd_data->cpu; sl; sl = sl->next) {
+if(
+  !strncmp(sl->str, "flags\t", sizeof "flags\t" - 1) &&
+  strstr(sl->str, " hypervisor")
+) {
+  vm = 1;
+  break;
+}
+  }
+
+  ADD2LOG("  hypervisor check: %d\n", vm);
+
+  return vm;
+}
+
 #endif /* __i386__ || __x86_64__ */
 
 /** @} */




commit hwinfo for openSUSE:Factory

2018-07-04 Thread root
Hello community,

here is the log from the commit of package hwinfo for openSUSE:Factory checked 
in at 2018-07-04 23:52:17

Comparing /work/SRC/openSUSE:Factory/hwinfo (Old)
 and  /work/SRC/openSUSE:Factory/.hwinfo.new (New)


Package is "hwinfo"

Wed Jul  4 23:52:17 2018 rev:161 rq:619529 version:21.56

Changes:

--- /work/SRC/openSUSE:Factory/hwinfo/hwinfo.changes2018-06-15 
14:33:58.251346688 +0200
+++ /work/SRC/openSUSE:Factory/.hwinfo.new/hwinfo.changes   2018-07-04 
23:53:33.407996362 +0200
@@ -1,0 +2,7 @@
+Thu Jun 28 07:12:46 UTC 2018 - sch...@suse.de
+
+- merge gh#openSUSE/hwinfo#66
+- Add support for RISC-V
+- 21.56
+
+

Old:

  hwinfo-21.55.tar.xz

New:

  hwinfo-21.56.tar.xz



Other differences:
--
++ hwinfo.spec ++
--- /var/tmp/diff_new_pack.oFMDQG/_old  2018-07-04 23:53:34.45156 +0200
+++ /var/tmp/diff_new_pack.oFMDQG/_new  2018-07-04 23:53:34.45156 +0200
@@ -36,7 +36,7 @@
 License:GPL-2.0+
 Group:  Hardware/Other
 Url:http://gitorious.org/opensuse/hwinfo
-Version:21.55
+Version:21.56
 Release:0
 Source: %{name}-%{version}.tar.xz
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build

++ hwinfo-21.55.tar.xz -> hwinfo-21.56.tar.xz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.55/VERSION new/hwinfo-21.56/VERSION
--- old/hwinfo-21.55/VERSION2018-06-08 14:54:19.0 +0200
+++ new/hwinfo-21.56/VERSION2018-06-28 09:12:46.0 +0200
@@ -1 +1 @@
-21.55
+21.56
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.55/changelog new/hwinfo-21.56/changelog
--- old/hwinfo-21.55/changelog  2018-06-08 14:54:19.0 +0200
+++ new/hwinfo-21.56/changelog  2018-06-28 09:12:46.0 +0200
@@ -1,3 +1,6 @@
+2018-06-26:21.56
+   - Add support for RISC-V
+
 2018-06-08:21.55
- try a more agressive way to catch all usb platform controllers (bsc 
#1072450)
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.55/src/hd/cpu.c 
new/hwinfo-21.56/src/hd/cpu.c
--- old/hwinfo-21.55/src/hd/cpu.c   2018-06-08 14:54:19.0 +0200
+++ new/hwinfo-21.56/src/hd/cpu.c   2018-06-28 09:12:46.0 +0200
@@ -149,6 +149,11 @@
   double bogo;
 #endif
 
+#ifdef __riscv
+  char hart[32], isa[32], mmu[32];
+  char uarch[80];
+#endif
+
   hd_data->cpu = read_file(PROC_CPUINFO, 0, 0);
   if((hd_data->debug & HD_DEB_CPU)) dump_cpu_data(hd_data);
   if(!hd_data->cpu) return;
@@ -682,6 +687,34 @@
 hd->detail->cpu.data = ct;
   }
 #endif /* __m68k__ */
+
+#ifdef __riscv
+  *isa = *mmu = *uarch = 0;
+  cpus = 0;
+
+  for (sl = hd_data->cpu; sl; sl = sl->next) {
+if (sscanf(sl->str, "isa : %31[^\n]", isa) == 1);
+if (sscanf(sl->str, "mmu : %31[^\n]", mmu) == 1);
+if (sscanf(sl->str, "uarch   : %79[^\n]", uarch) == 1);
+
+if(strstr(sl->str, "hart") == sl->str || !sl->next) {  /* EOF 
*/
+  if (*isa || *mmu || *uarch) {/* at least one of those */
+   ct = new_mem(sizeof *ct);
+   ct->architecture = arch_riscv;
+   if (*isa) ct->model_name = new_str(isa);
+   if (*uarch) ct->vend_name = new_str(uarch);
+
+hd = add_hd_entry(hd_data, __LINE__, 0);
+hd->base_class.id = bc_internal;
+hd->sub_class.id = sc_int_cpu;
+hd->slot = cpus;
+   hd->detail = new_mem(sizeof *hd->detail);
+   hd->detail->type = hd_detail_cpu;
+   hd->detail->cpu.data = ct;
+  }
+}
+  }
+#endif /* __riscv */
 }
 
 /*
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.55/src/hd/hd.c new/hwinfo-21.56/src/hd/hd.c
--- old/hwinfo-21.55/src/hd/hd.c2018-06-08 14:54:19.0 +0200
+++ new/hwinfo-21.56/src/hd/hd.c2018-06-28 09:12:46.0 +0200
@@ -152,6 +152,10 @@
 #define HD_ARCH "68k"
 #endif
 
+#ifdef __riscv
+#define HD_ARCH "riscv"
+#endif
+
 typedef struct disk_s {
   struct disk_s *next;
   unsigned crc;
@@ -3072,6 +3076,8 @@
   return arch_aarch64;
 #elif defined __m68k__
   return arch_68k;
+#elif defined __riscv
+  return arch_riscv;
 #else
   return arch_unknown;
 #endif
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.55/src/hd/hd.h new/hwinfo-21.56/src/hd/hd.h
--- old/hwinfo-21.55/src/hd/hd.h2018-06-08 14:54:19.0 +0200
+++ new/hwinfo-21.56/src/hd/hd.h2018-06-28 09:12:46.0 +0200
@@ -20,7 +20,7 @@
 
 /** Interface version */
 #define HD_VERSION 21
-#define HD_MINOR_VERSION 

commit hwinfo for openSUSE:Factory

2018-06-15 Thread root
Hello community,

here is the log from the commit of package hwinfo for openSUSE:Factory checked 
in at 2018-06-15 14:33:56

Comparing /work/SRC/openSUSE:Factory/hwinfo (Old)
 and  /work/SRC/openSUSE:Factory/.hwinfo.new (New)


Package is "hwinfo"

Fri Jun 15 14:33:56 2018 rev:160 rq:615244 version:21.55

Changes:

--- /work/SRC/openSUSE:Factory/hwinfo/hwinfo.changes2018-04-26 
13:33:17.698494132 +0200
+++ /work/SRC/openSUSE:Factory/.hwinfo.new/hwinfo.changes   2018-06-15 
14:33:58.251346688 +0200
@@ -1,0 +2,15 @@
+Fri Jun 8 12:54:19 UTC 2018 - wfe...@opensuse.org
+
+- merge gh#openSUSE/hwinfo#64
+- try a more agressive way to catch all usb platform controllers
+  (bsc#1072450)
+- 21.55
+
+
+Wed Jun 6 13:28:02 UTC 2018 - wfe...@opensuse.org
+
+- merge gh#openSUSE/hwinfo#63
+- detect ARM HISILICON SAS controller (bsc#1072450)
+- 21.54
+
+

Old:

  hwinfo-21.53.tar.xz

New:

  hwinfo-21.55.tar.xz



Other differences:
--
++ hwinfo.spec ++
--- /var/tmp/diff_new_pack.Hu1uE4/_old  2018-06-15 14:33:59.823289191 +0200
+++ /var/tmp/diff_new_pack.Hu1uE4/_new  2018-06-15 14:33:59.827289045 +0200
@@ -36,7 +36,7 @@
 License:GPL-2.0+
 Group:  Hardware/Other
 Url:http://gitorious.org/opensuse/hwinfo
-Version:21.53
+Version:21.55
 Release:0
 Source: %{name}-%{version}.tar.xz
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build

++ hwinfo-21.53.tar.xz -> hwinfo-21.55.tar.xz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.53/VERSION new/hwinfo-21.55/VERSION
--- old/hwinfo-21.53/VERSION2018-04-20 11:55:58.0 +0200
+++ new/hwinfo-21.55/VERSION2018-06-08 14:54:19.0 +0200
@@ -1 +1 @@
-21.53
+21.55
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.53/changelog new/hwinfo-21.55/changelog
--- old/hwinfo-21.53/changelog  2018-04-20 11:55:58.0 +0200
+++ new/hwinfo-21.55/changelog  2018-06-08 14:54:19.0 +0200
@@ -1,3 +1,9 @@
+2018-06-08:21.55
+   - try a more agressive way to catch all usb platform controllers (bsc 
#1072450)
+
+2018-06-06:21.54
+   - detect ARM HISILICON SAS controller (bsc #1072450)
+
 2018-04-11:21.53
- add xhci interface constant
- detect usb controller in ARM platform device (bsc #1072450)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.53/src/hd/hd.h new/hwinfo-21.55/src/hd/hd.h
--- old/hwinfo-21.53/src/hd/hd.h2018-04-20 11:55:58.0 +0200
+++ new/hwinfo-21.55/src/hd/hd.h2018-06-08 14:54:19.0 +0200
@@ -20,7 +20,7 @@
 
 /** Interface version */
 #define HD_VERSION 21
-#define HD_MINOR_VERSION   53
+#define HD_MINOR_VERSION   55
 #define HD_FULL_VERSION(HD_VERSION * 1000 + HD_MINOR_VERSION)
 
 /**
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.53/src/hd/pci.c 
new/hwinfo-21.55/src/hd/pci.c
--- old/hwinfo-21.53/src/hd/pci.c   2018-04-20 11:55:58.0 +0200
+++ new/hwinfo-21.55/src/hd/pci.c   2018-06-08 14:54:19.0 +0200
@@ -930,11 +930,11 @@
  */
 void hd_read_platform(hd_data_t *hd_data)
 {
-  char *s, *platform_type, *device_type = NULL;
+  char *s, *platform_type, *device_type, *driver;
   str_list_t *sf_bus, *sf_bus_e, *sf_eth_dev = NULL;
   char *sf_dev, *sf_eth_net;
   int mv643xx_eth_seen = 0;
-  int is_net, is_storage, is_usb, is_xhci;
+  int is_net, is_storage, is_usb, is_xhci, is_ehci;
   hd_t *hd;
 
   sf_bus = read_dir("/sys/bus/platform/devices", 'l');
@@ -955,27 +955,46 @@
 
 if((s = get_sysfs_attr_by_path(sf_dev, "modalias"))) {
   platform_type = canon_str(s, strlen(s));
-  device_type = free_mem(device_type);
+  device_type = new_str("");
   if((s = get_sysfs_attr_by_path(sf_dev, "uevent"))) {
 char *t, *t2;
 if((t = strstr(s, "OF_NAME="))) {
   t += sizeof "OF_NAME=" - 1;
   if((t2 = strchr(t, '\n'))) *t2 = 0;
-  device_type = strdup(t);
+  free_mem(device_type);
+  device_type = new_str(t);
 }
   }
-  ADD2LOG("type = \"%s\", modalias = \"%s\"\n", device_type, 
platform_type);
+  // 'driver' is a static reference, don't free
+  driver = hd_sysfs_find_driver(hd_data, hd_sysfs_id(sf_dev), 1);
+  if(!driver) driver = "";
+  ADD2LOG("type = \"%s\", modalias = \"%s\", driver = \"%s\"\n", 
device_type, platform_type, driver);
   is_net = 0;
   

commit hwinfo for openSUSE:Factory

2018-04-26 Thread root
Hello community,

here is the log from the commit of package hwinfo for openSUSE:Factory checked 
in at 2018-04-26 13:33:16

Comparing /work/SRC/openSUSE:Factory/hwinfo (Old)
 and  /work/SRC/openSUSE:Factory/.hwinfo.new (New)


Package is "hwinfo"

Thu Apr 26 13:33:16 2018 rev:159 rq:599222 version:21.53

Changes:

--- /work/SRC/openSUSE:Factory/hwinfo/hwinfo.changes2018-02-13 
10:24:26.087834904 +0100
+++ /work/SRC/openSUSE:Factory/.hwinfo.new/hwinfo.changes   2018-04-26 
13:33:17.698494132 +0200
@@ -1,0 +2,8 @@
+Fri Apr 20 09:55:58 UTC 2018 - wfe...@opensuse.org
+
+- merge gh#openSUSE/hwinfo#60
+- detect usb controller in ARM platform device (bsc#1072450)
+- add xhci interface constant
+- 21.53
+
+

Old:

  hwinfo-21.52.tar.xz

New:

  hwinfo-21.53.tar.xz



Other differences:
--
++ hwinfo.spec ++
--- /var/tmp/diff_new_pack.Xv3NAs/_old  2018-04-26 13:33:18.186476253 +0200
+++ /var/tmp/diff_new_pack.Xv3NAs/_new  2018-04-26 13:33:18.190476107 +0200
@@ -36,7 +36,7 @@
 License:GPL-2.0+
 Group:  Hardware/Other
 Url:http://gitorious.org/opensuse/hwinfo
-Version:21.52
+Version:21.53
 Release:0
 Source: %{name}-%{version}.tar.xz
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build

++ hwinfo-21.52.tar.xz -> hwinfo-21.53.tar.xz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.52/VERSION new/hwinfo-21.53/VERSION
--- old/hwinfo-21.52/VERSION2018-02-09 13:16:10.0 +0100
+++ new/hwinfo-21.53/VERSION2018-04-20 11:55:58.0 +0200
@@ -1 +1 @@
-21.52
+21.53
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.52/changelog new/hwinfo-21.53/changelog
--- old/hwinfo-21.52/changelog  2018-02-09 13:16:10.0 +0100
+++ new/hwinfo-21.53/changelog  2018-04-20 11:55:58.0 +0200
@@ -1,3 +1,7 @@
+2018-04-11:21.53
+   - add xhci interface constant
+   - detect usb controller in ARM platform device (bsc #1072450)
+
 2018-02-09:21.52
- add another sanity check on scsi serial id (bsc #1078511)
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.52/src/hd/hd.h new/hwinfo-21.53/src/hd/hd.h
--- old/hwinfo-21.52/src/hd/hd.h2018-02-09 13:16:10.0 +0100
+++ new/hwinfo-21.53/src/hd/hd.h2018-04-20 11:55:58.0 +0200
@@ -20,7 +20,7 @@
 
 /** Interface version */
 #define HD_VERSION 21
-#define HD_MINOR_VERSION   52
+#define HD_MINOR_VERSION   53
 #define HD_FULL_VERSION(HD_VERSION * 1000 + HD_MINOR_VERSION)
 
 /**
@@ -278,7 +278,7 @@
 
 /** prog_if's of sc_ser_usb */
 typedef enum pif_usb_e {
-  pif_usb_uhci = 0, pif_usb_ohci = 0x10, pif_usb_ehci = 0x20,
+  pif_usb_uhci = 0, pif_usb_ohci = 0x10, pif_usb_ehci = 0x20, pif_usb_xhci = 
0x30,
   pif_usb_other = 0x80, pif_usb_device = 0xfe
 } hd_pif_usb_t;
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.52/src/hd/pci.c 
new/hwinfo-21.53/src/hd/pci.c
--- old/hwinfo-21.52/src/hd/pci.c   2018-02-09 13:16:10.0 +0100
+++ new/hwinfo-21.53/src/hd/pci.c   2018-04-20 11:55:58.0 +0200
@@ -934,7 +934,7 @@
   str_list_t *sf_bus, *sf_bus_e, *sf_eth_dev = NULL;
   char *sf_dev, *sf_eth_net;
   int mv643xx_eth_seen = 0;
-  int is_net, is_storage, is_usb;
+  int is_net, is_storage, is_usb, is_xhci;
   hd_t *hd;
 
   sf_bus = read_dir("/sys/bus/platform/devices", 'l');
@@ -971,9 +971,11 @@
   is_net = sf_eth_net && sf_eth_dev;
   is_storage = device_type && !strcmp(device_type, "sata");
   is_usb = device_type && (!strcmp(device_type, "usb") || 
!strcmp(device_type, "dwusb"));
+  is_xhci = platform_type && strstr(platform_type, ":xhci-hcd");
   if(is_net) ADD2LOG("is net: sf_eth_net = %s\n", sf_eth_net);
   if(is_storage) ADD2LOG("is storage\n");
   if(is_usb) ADD2LOG("is usb\n");
+  if(is_xhci) ADD2LOG("is xhci\n");
   free_mem(sf_eth_net);
   free_str_list(sf_eth_dev);
   if(
@@ -1006,12 +1008,18 @@
 s = hd_sysfs_find_driver(hd_data, hd->sysfs_id, 1);
 if(s) add_str_list(>drivers, s);
   }
-  else if(is_usb) {
+  else if(is_usb || is_xhci) {
 hd = add_hd_entry(hd_data, __LINE__, 0);
 hd->base_class.id = bc_serial;
 hd->sub_class.id = sc_ser_usb;
 
-str_printf(>device.name, 0, "ARM USB %d", hd->slot);
+if(is_xhci) {
+  hd->prog_if.id = pif_usb_xhci;
+  str_printf(>device.name, 0, "ARM USB XHCI Controller");
+}
+ 

commit hwinfo for openSUSE:Factory

2018-02-13 Thread root
Hello community,

here is the log from the commit of package hwinfo for openSUSE:Factory checked 
in at 2018-02-13 10:24:24

Comparing /work/SRC/openSUSE:Factory/hwinfo (Old)
 and  /work/SRC/openSUSE:Factory/.hwinfo.new (New)


Package is "hwinfo"

Tue Feb 13 10:24:24 2018 rev:158 rq:574637 version:21.52

Changes:

--- /work/SRC/openSUSE:Factory/hwinfo/hwinfo.changes2018-01-16 
09:41:21.252543540 +0100
+++ /work/SRC/openSUSE:Factory/.hwinfo.new/hwinfo.changes   2018-02-13 
10:24:26.087834904 +0100
@@ -1,0 +2,7 @@
+Fri Feb 9 12:16:10 UTC 2018 - wfe...@opensuse.org
+
+- merge gh#openSUSE/hwinfo#57
+- add another sanity check on scsi serial id (bsc#1078511)
+- 21.52
+
+

Old:

  hwinfo-21.51.tar.xz

New:

  hwinfo-21.52.tar.xz



Other differences:
--
++ hwinfo.spec ++
--- /var/tmp/diff_new_pack.mmgmu2/_old  2018-02-13 10:24:26.659814296 +0100
+++ /var/tmp/diff_new_pack.mmgmu2/_new  2018-02-13 10:24:26.663814151 +0100
@@ -36,7 +36,7 @@
 License:GPL-2.0+
 Group:  Hardware/Other
 Url:http://gitorious.org/opensuse/hwinfo
-Version:21.51
+Version:21.52
 Release:0
 Source: %{name}-%{version}.tar.xz
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build

++ hwinfo-21.51.tar.xz -> hwinfo-21.52.tar.xz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.51/VERSION new/hwinfo-21.52/VERSION
--- old/hwinfo-21.51/VERSION2018-01-12 10:04:50.0 +0100
+++ new/hwinfo-21.52/VERSION2018-02-09 13:16:10.0 +0100
@@ -1 +1 @@
-21.51
+21.52
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.51/changelog new/hwinfo-21.52/changelog
--- old/hwinfo-21.51/changelog  2018-01-12 10:04:50.0 +0100
+++ new/hwinfo-21.52/changelog  2018-02-09 13:16:10.0 +0100
@@ -1,3 +1,6 @@
+2018-02-09:21.52
+   - add another sanity check on scsi serial id (bsc #1078511)
+
 2018-01-11:21.51
- Please make CDBISDN_DATE ignore timezone.
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.51/src/hd/block.c 
new/hwinfo-21.52/src/hd/block.c
--- old/hwinfo-21.51/src/hd/block.c 2018-01-12 10:04:50.0 +0100
+++ new/hwinfo-21.52/src/hd/block.c 2018-02-09 13:16:10.0 +0100
@@ -1066,7 +1066,9 @@
   ADD2LOG("\n");
 }
 
-if((hd->serial = canon_str(serial_buf + 4, serial_buf[3]))) {
+// bsc#1078511: additional consistency check:
+// vpd page number should be returned at offset 1
+if(serial_buf[1] == 0x80 && (hd->serial = canon_str(serial_buf + 4, 
serial_buf[3]))) {
   if(!*hd->serial) {
 hd->serial = free_mem(hd->serial);
   }
@@ -1074,6 +1076,9 @@
 ADD2LOG("  serial id: \"%s\"\n", hd->serial);
   }
 }
+else {
+  ADD2LOG("  invalid response\n");
+}
   }
   else {
 ADD2LOG("  no serial id\n");
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.51/src/hd/hd.h new/hwinfo-21.52/src/hd/hd.h
--- old/hwinfo-21.51/src/hd/hd.h2018-01-12 10:04:50.0 +0100
+++ new/hwinfo-21.52/src/hd/hd.h2018-02-09 13:16:10.0 +0100
@@ -20,7 +20,7 @@
 
 /** Interface version */
 #define HD_VERSION 21
-#define HD_MINOR_VERSION   51
+#define HD_MINOR_VERSION   52
 #define HD_FULL_VERSION(HD_VERSION * 1000 + HD_MINOR_VERSION)
 
 /**




commit hwinfo for openSUSE:Factory

2018-01-16 Thread root
Hello community,

here is the log from the commit of package hwinfo for openSUSE:Factory checked 
in at 2018-01-16 09:41:17

Comparing /work/SRC/openSUSE:Factory/hwinfo (Old)
 and  /work/SRC/openSUSE:Factory/.hwinfo.new (New)


Package is "hwinfo"

Tue Jan 16 09:41:17 2018 rev:157 rq:563790 version:21.51

Changes:

--- /work/SRC/openSUSE:Factory/hwinfo/hwinfo.changes2017-10-28 
14:21:13.192570896 +0200
+++ /work/SRC/openSUSE:Factory/.hwinfo.new/hwinfo.changes   2018-01-16 
09:41:21.252543540 +0100
@@ -1,0 +2,7 @@
+Fri Jan 12 09:04:50 UTC 2018 - opensuse-packag...@opensuse.org
+
+- merge gh#openSUSE/hwinfo#55
+- Please make CDBISDN_DATE ignore timezone.
+- 21.51
+
+

Old:

  hwinfo-21.50.tar.xz

New:

  hwinfo-21.51.tar.xz



Other differences:
--
++ hwinfo.spec ++
--- /var/tmp/diff_new_pack.LdHTzS/_old  2018-01-16 09:41:21.856515269 +0100
+++ /var/tmp/diff_new_pack.LdHTzS/_new  2018-01-16 09:41:21.860515082 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package hwinfo
 #
-# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2018 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
@@ -36,7 +36,7 @@
 License:GPL-2.0+
 Group:  Hardware/Other
 Url:http://gitorious.org/opensuse/hwinfo
-Version:21.50
+Version:21.51
 Release:0
 Source: %{name}-%{version}.tar.xz
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build

++ hwinfo-21.50.tar.xz -> hwinfo-21.51.tar.xz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.50/VERSION new/hwinfo-21.51/VERSION
--- old/hwinfo-21.50/VERSION2017-10-26 16:22:24.0 +0200
+++ new/hwinfo-21.51/VERSION2018-01-12 10:04:50.0 +0100
@@ -1 +1 @@
-21.50
+21.51
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.50/changelog new/hwinfo-21.51/changelog
--- old/hwinfo-21.50/changelog  2017-10-26 16:22:24.0 +0200
+++ new/hwinfo-21.51/changelog  2018-01-12 10:04:50.0 +0100
@@ -1,3 +1,6 @@
+2018-01-11:21.51
+   - Please make CDBISDN_DATE ignore timezone.
+
 2017-10-26:21.50
- support SMBIOS 3.0 spec (bsc #1062562)
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.50/src/hd/hd.h new/hwinfo-21.51/src/hd/hd.h
--- old/hwinfo-21.50/src/hd/hd.h2017-10-26 16:22:24.0 +0200
+++ new/hwinfo-21.51/src/hd/hd.h2018-01-12 10:04:50.0 +0100
@@ -20,7 +20,7 @@
 
 /** Interface version */
 #define HD_VERSION 21
-#define HD_MINOR_VERSION   50
+#define HD_MINOR_VERSION   51
 #define HD_FULL_VERSION(HD_VERSION * 1000 + HD_MINOR_VERSION)
 
 /**
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.50/src/isdn/cdb/isdn_cdb.c 
new/hwinfo-21.51/src/isdn/cdb/isdn_cdb.c
--- old/hwinfo-21.50/src/isdn/cdb/isdn_cdb.c2017-10-26 16:22:24.0 
+0200
+++ new/hwinfo-21.51/src/isdn/cdb/isdn_cdb.c2018-01-12 10:04:50.0 
+0100
@@ -224,7 +224,7 @@
fprintf(stdout,"const int  CDBISDN_DBVERSION = 0x%x;\n", 
CDB_DATAVERSION);
if ((source_date_epoch = getenv("SOURCE_DATE_EPOCH")) == NULL || (tim = 
(time_t)strtol(source_date_epoch, NULL, 10)) <= 0)
time();
-   strcpy(line,ctime());
+   strcpy(line,asctime(gmtime()));
l = strlen(line);
if (l)
line[l-1] = 0;




commit hwinfo for openSUSE:Factory

2017-10-28 Thread root
Hello community,

here is the log from the commit of package hwinfo for openSUSE:Factory checked 
in at 2017-10-28 14:21:12

Comparing /work/SRC/openSUSE:Factory/hwinfo (Old)
 and  /work/SRC/openSUSE:Factory/.hwinfo.new (New)


Package is "hwinfo"

Sat Oct 28 14:21:12 2017 rev:156 rq:536908 version:21.50

Changes:

--- /work/SRC/openSUSE:Factory/hwinfo/hwinfo.changes2017-09-13 
21:36:20.203528842 +0200
+++ /work/SRC/openSUSE:Factory/.hwinfo.new/hwinfo.changes   2017-10-28 
14:21:13.192570896 +0200
@@ -1,0 +2,7 @@
+Thu Oct 26 14:22:24 UTC 2017 - wfe...@opensuse.org
+
+- merge gh#openSUSE/hwinfo#54
+- support SMBIOS 3.0 spec (bsc#1062562)
+- 21.50
+
+

Old:

  hwinfo-21.49.tar.xz

New:

  hwinfo-21.50.tar.xz



Other differences:
--
++ hwinfo.spec ++
--- /var/tmp/diff_new_pack.5crT6X/_old  2017-10-28 14:21:14.368527904 +0200
+++ /var/tmp/diff_new_pack.5crT6X/_new  2017-10-28 14:21:14.372527757 +0200
@@ -36,7 +36,7 @@
 License:GPL-2.0+
 Group:  Hardware/Other
 Url:http://gitorious.org/opensuse/hwinfo
-Version:21.49
+Version:21.50
 Release:0
 Source: %{name}-%{version}.tar.xz
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build

++ hwinfo-21.49.tar.xz -> hwinfo-21.50.tar.xz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.49/VERSION new/hwinfo-21.50/VERSION
--- old/hwinfo-21.49/VERSION2017-09-12 10:48:46.0 +0200
+++ new/hwinfo-21.50/VERSION2017-10-26 16:22:24.0 +0200
@@ -1 +1 @@
-21.49
+21.50
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.49/changelog new/hwinfo-21.50/changelog
--- old/hwinfo-21.49/changelog  2017-09-12 10:48:46.0 +0200
+++ new/hwinfo-21.50/changelog  2017-10-26 16:22:24.0 +0200
@@ -1,3 +1,6 @@
+2017-10-26:21.50
+   - support SMBIOS 3.0 spec (bsc #1062562)
+
 2017-06-21:21.49
- Ensure /var/lib/hardware/udi exists and with 755 permissions
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.49/src/hd/bios.c 
new/hwinfo-21.50/src/hd/bios.c
--- old/hwinfo-21.49/src/hd/bios.c  2017-09-12 10:48:46.0 +0200
+++ new/hwinfo-21.50/src/hd/bios.c  2017-10-26 16:22:24.0 +0200
@@ -610,7 +610,8 @@
 void smbios_get_info(hd_data_t *hd_data, memory_range_t *mem, bios_info_t *bt)
 {
   unsigned u, u1, u2, ok, hlen = 0, ofs;
-  unsigned addr = 0, len = 0, scnt;
+  uint64_t addr = 0;
+  unsigned len = 0, scnt;
   unsigned structs = 0, type, slen;
   unsigned use_sysfs = 0;
   char *s;
@@ -657,6 +658,18 @@
   if(!mem->data || mem->size < 0x10) return;
 
   for(u = ok = 0; u <= mem->size - 0x10; u += 0x10) {
+if(memcmp(mem->data + u, "_SM3_", 5) == 0) {
+  hlen = mem->data[u + 6];
+  if(hlen < 0x18 || u + hlen > mem->size) continue;
+  addr = *(uint64_t *) (mem->data + u + 0x10);
+  len = *(unsigned *) (mem->data + u + 0x0c);  /* Maximum length */
+  structs = 0; /* Unknown */
+  ok = crc(mem->data + u, hlen) == 0 && len;
+  if(ok) {
+bt->smbios_ver = (mem->data[u + 7] << 8) + mem->data[u + 8];
+break;
+  }
+}
 if(*(unsigned *) (mem->data + u) == 0x5f4d535f) {  /* "_SM_" */
   hlen = mem->data[u + 5];
   if(hlen < 0x1e || u + hlen > mem->size) continue;
@@ -687,7 +700,11 @@
 
   hd_data->smbios = smbios_free(hd_data->smbios);
 
-  ADD2LOG("  Found DMI table at 0x%08x (0x%04x bytes)\n", addr, len);
+  // Starting with SMBIOS 3.0, exact table length is not known
+  ADD2LOG(
+"  Found DMI table at 0x%08llx (0x%04x bytes%s)\n",
+(unsigned long long) addr, len, structs ? "" : " max"
+  );
 
   memory.start = mem->start + u;
   memory.size = hlen;
@@ -695,6 +712,10 @@
   if(!use_sysfs) dump_memory(hd_data, , 0, "SMBIOS Entry Point");
 
   memory.data = NULL;
+  /*
+   * Note: memory.start is only 32 bit but this will only matter if we have
+   * to read the memory ourself and not via /sys/firmware/dmi/tables.
+   */
   memory.start = addr;
 
   if(use_sysfs) {
@@ -705,7 +726,8 @@
   memory.data = new_mem(memory.size);
   memcpy(memory.data, buf, memory.size);
   ADD2LOG("  Got DMI table from sysfs (0x%04x bytes)\n", memory.size);
-  if(memory.size != len) {
+  // Starting with SMBIOS 3.0, exact table length is not known
+  if(structs && memory.size != len) {
 ADD2LOG("  Oops: DMI table size mismatch; expected 0x%04x bytes!\n", 
len);
   }
 }
@@ -717,16 +739,17 @@
   }
 
   if(len >= 0x4000) {
+// Starting with SMBIOS 

commit hwinfo for openSUSE:Factory

2017-09-13 Thread root
Hello community,

here is the log from the commit of package hwinfo for openSUSE:Factory checked 
in at 2017-09-13 21:35:57

Comparing /work/SRC/openSUSE:Factory/hwinfo (Old)
 and  /work/SRC/openSUSE:Factory/.hwinfo.new (New)


Package is "hwinfo"

Wed Sep 13 21:35:57 2017 rev:155 rq:523614 version:21.49

Changes:

--- /work/SRC/openSUSE:Factory/hwinfo/hwinfo.changes2017-08-06 
11:31:58.479302374 +0200
+++ /work/SRC/openSUSE:Factory/.hwinfo.new/hwinfo.changes   2017-09-13 
21:36:20.203528842 +0200
@@ -1,0 +2,15 @@
+Tue Sep 12 08:48:46 UTC 2017 - opensuse-packag...@opensuse.org
+
+- merge gh#openSUSE/hwinfo#52
+- Ensure /var/lib/hardware/udi exists and with 755 permissions
+- 21.49
+
+
+Tue Sep 12 08:47:47 UTC 2017 - bwiedem...@suse.de
+
+- merge gh#openSUSE/hwinfo#51
+- sort input files (boo#1041090)
+- allow to override current time (boo#1047218)
+- 21.48
+
+

Old:

  hwinfo-21.47.tar.xz

New:

  hwinfo-21.49.tar.xz



Other differences:
--
++ hwinfo.spec ++
--- /var/tmp/diff_new_pack.z6fvSP/_old  2017-09-13 21:36:20.843438807 +0200
+++ /var/tmp/diff_new_pack.z6fvSP/_new  2017-09-13 21:36:20.843438807 +0200
@@ -36,7 +36,7 @@
 License:GPL-2.0+
 Group:  Hardware/Other
 Url:http://gitorious.org/opensuse/hwinfo
-Version:21.47
+Version:21.49
 Release:0
 Source: %{name}-%{version}.tar.xz
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build

++ hwinfo-21.47.tar.xz -> hwinfo-21.49.tar.xz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.47/Makefile new/hwinfo-21.49/Makefile
--- old/hwinfo-21.47/Makefile   2017-07-28 15:46:53.0 +0200
+++ new/hwinfo-21.49/Makefile   2017-09-12 10:48:46.0 +0200
@@ -119,6 +119,7 @@
install -m 755 getsysinfo $(DESTDIR)/usr/sbin
install -m 755 src/isdn/cdb/mk_isdnhwdb $(DESTDIR)/usr/sbin
install -d -m 755 $(DESTDIR)/usr/share/hwinfo
+   install -d -m 755 $(DESTDIR)/var/lib/hardware/udi
install -m 644 src/isdn/cdb/ISDN.CDB.txt $(DESTDIR)/usr/share/hwinfo
install -m 644 src/isdn/cdb/ISDN.CDB.hwdb $(DESTDIR)/usr/share/hwinfo
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.47/Makefile.common 
new/hwinfo-21.49/Makefile.common
--- old/hwinfo-21.47/Makefile.common2017-07-28 15:46:53.0 +0200
+++ new/hwinfo-21.49/Makefile.common2017-09-12 10:48:46.0 +0200
@@ -27,7 +27,7 @@
 
 LDFLAGS+= -Lsrc
 
-CFILES = $(wildcard *.c)
+CFILES = $(sort $(wildcard *.c))
 OBJS   = $(CFILES:.c=.o)
 LIBHD_BASE = libhd
 LIBHD  = $(TOPDIR)/src/$(LIBHD_BASE).a
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.47/VERSION new/hwinfo-21.49/VERSION
--- old/hwinfo-21.47/VERSION2017-07-28 15:46:53.0 +0200
+++ new/hwinfo-21.49/VERSION2017-09-12 10:48:46.0 +0200
@@ -1 +1 @@
-21.47
+21.49
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.47/changelog new/hwinfo-21.49/changelog
--- old/hwinfo-21.47/changelog  2017-07-28 15:46:53.0 +0200
+++ new/hwinfo-21.49/changelog  2017-09-12 10:48:46.0 +0200
@@ -1,3 +1,10 @@
+2017-06-21:21.49
+   - Ensure /var/lib/hardware/udi exists and with 755 permissions
+
+2017-05-29:21.48
+   - allow to override current time (boo#1047218)
+   - sort input files (boo#1041090)
+
 2017-07-28:21.47
- really set default timeout to 20s for Video BIOS emulation calls (bsc 
#1051076)
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.47/src/hd/hd.h new/hwinfo-21.49/src/hd/hd.h
--- old/hwinfo-21.47/src/hd/hd.h2017-07-28 15:46:53.0 +0200
+++ new/hwinfo-21.49/src/hd/hd.h2017-09-12 10:48:46.0 +0200
@@ -20,7 +20,7 @@
 
 /** Interface version */
 #define HD_VERSION 21
-#define HD_MINOR_VERSION   47
+#define HD_MINOR_VERSION   49
 #define HD_FULL_VERSION(HD_VERSION * 1000 + HD_MINOR_VERSION)
 
 /**
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.47/src/isdn/cdb/isdn_cdb.c 
new/hwinfo-21.49/src/isdn/cdb/isdn_cdb.c
--- old/hwinfo-21.47/src/isdn/cdb/isdn_cdb.c2017-07-28 15:46:53.0 
+0200
+++ new/hwinfo-21.49/src/isdn/cdb/isdn_cdb.c2017-09-12 10:48:46.0 
+0200
@@ -168,6 +168,7 @@
charline[256];
int l;
time_t  tim;
+   

commit hwinfo for openSUSE:Factory

2017-08-06 Thread root
Hello community,

here is the log from the commit of package hwinfo for openSUSE:Factory checked 
in at 2017-08-06 11:31:57

Comparing /work/SRC/openSUSE:Factory/hwinfo (Old)
 and  /work/SRC/openSUSE:Factory/.hwinfo.new (New)


Package is "hwinfo"

Sun Aug  6 11:31:57 2017 rev:154 rq:512927 version:21.47

Changes:

--- /work/SRC/openSUSE:Factory/hwinfo/hwinfo.changes2017-05-20 
10:09:16.353106214 +0200
+++ /work/SRC/openSUSE:Factory/.hwinfo.new/hwinfo.changes   2017-08-06 
11:31:58.479302374 +0200
@@ -1,0 +2,8 @@
+Fri Jul 28 13:46:53 UTC 2017 - wfe...@opensuse.org
+
+- merge gh#openSUSE/hwinfo#53
+- really set default timeout to 20s for Video BIOS emulation calls
+  (bsc#1051076)
+- 21.47
+
+

Old:

  hwinfo-21.46.tar.xz

New:

  hwinfo-21.47.tar.xz



Other differences:
--
++ hwinfo.spec ++
--- /var/tmp/diff_new_pack.ZVUg0E/_old  2017-08-06 11:31:59.995088821 +0200
+++ /var/tmp/diff_new_pack.ZVUg0E/_new  2017-08-06 11:32:00.035083187 +0200
@@ -36,7 +36,7 @@
 License:GPL-2.0+
 Group:  Hardware/Other
 Url:http://gitorious.org/opensuse/hwinfo
-Version:21.46
+Version:21.47
 Release:0
 Source: %{name}-%{version}.tar.xz
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build

++ hwinfo-21.46.tar.xz -> hwinfo-21.47.tar.xz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.46/VERSION new/hwinfo-21.47/VERSION
--- old/hwinfo-21.46/VERSION2017-05-12 13:53:38.0 +0200
+++ new/hwinfo-21.47/VERSION2017-07-28 15:46:53.0 +0200
@@ -1 +1 @@
-21.46
+21.47
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.46/changelog new/hwinfo-21.47/changelog
--- old/hwinfo-21.46/changelog  2017-05-12 13:53:38.0 +0200
+++ new/hwinfo-21.47/changelog  2017-07-28 15:46:53.0 +0200
@@ -1,3 +1,6 @@
+2017-07-28:21.47
+   - really set default timeout to 20s for Video BIOS emulation calls (bsc 
#1051076)
+
 2017-05-12:21.46
- add links to technical specifications
- try harder to get the video mode list
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.46/src/hd/hd.h new/hwinfo-21.47/src/hd/hd.h
--- old/hwinfo-21.46/src/hd/hd.h2017-05-12 13:53:38.0 +0200
+++ new/hwinfo-21.47/src/hd/hd.h2017-07-28 15:46:53.0 +0200
@@ -20,7 +20,7 @@
 
 /** Interface version */
 #define HD_VERSION 21
-#define HD_MINOR_VERSION   46
+#define HD_MINOR_VERSION   47
 #define HD_FULL_VERSION(HD_VERSION * 1000 + HD_MINOR_VERSION)
 
 /**
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.46/src/hd/mdt.c 
new/hwinfo-21.47/src/hd/mdt.c
--- old/hwinfo-21.46/src/hd/mdt.c   2017-05-12 13:53:38.0 +0200
+++ new/hwinfo-21.47/src/hd/mdt.c   2017-07-28 15:46:53.0 +0200
@@ -410,7 +410,7 @@
   // stack & buffer space
   x86emu_set_perm(vm->emu, VBE_BUF, 0x, X86EMU_PERM_RW);
 
-  if(vm->timeout) vm->emu->timeout = vm->timeout ?: 20;
+  vm->emu->timeout = vm->timeout ?: 20;
 
   vm->old_memio = x86emu_set_memio_handler(vm->emu, new_memio);
 




commit hwinfo for openSUSE:Factory

2017-05-20 Thread root
Hello community,

here is the log from the commit of package hwinfo for openSUSE:Factory checked 
in at 2017-05-20 10:08:57

Comparing /work/SRC/openSUSE:Factory/hwinfo (Old)
 and  /work/SRC/openSUSE:Factory/.hwinfo.new (New)


Package is "hwinfo"

Sat May 20 10:08:57 2017 rev:153 rq:494890 version:21.46

Changes:

--- /work/SRC/openSUSE:Factory/hwinfo/hwinfo.changes2017-05-10 
20:35:56.210286990 +0200
+++ /work/SRC/openSUSE:Factory/.hwinfo.new/hwinfo.changes   2017-05-20 
10:09:16.353106214 +0200
@@ -1,0 +2,9 @@
+Fri May 12 11:53:38 UTC 2017 - wfe...@opensuse.org
+
+- merge gh#openSUSE/hwinfo#50
+- map also alternate video bios entry points (bsc#1033832)
+- try harder to get the video mode list
+- add links to technical specifications
+- 21.46
+
+

Old:

  hwinfo-21.45.tar.xz

New:

  hwinfo-21.46.tar.xz



Other differences:
--
++ hwinfo.spec ++
--- /var/tmp/diff_new_pack.zPOVco/_old  2017-05-20 10:09:16.937023709 +0200
+++ /var/tmp/diff_new_pack.zPOVco/_new  2017-05-20 10:09:16.941023143 +0200
@@ -36,7 +36,7 @@
 License:GPL-2.0+
 Group:  Hardware/Other
 Url:http://gitorious.org/opensuse/hwinfo
-Version:21.45
+Version:21.46
 Release:0
 Source: %{name}-%{version}.tar.xz
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
@@ -107,9 +107,7 @@
 /usr/sbin/mk_isdnhwdb
 /usr/sbin/getsysinfo
 %{_libdir}/libhd.so.*
-%doc README.md
-%doc README-hwprobe.md
-%doc README-legacy.md
+%doc *.md
 %doc %{_mandir}/man1/getsysinfo.1*
 %doc %{_mandir}/man1/mk_isdnhwdb.1*
 %doc %{_mandir}/man8/hwinfo.8*

++ hwinfo-21.45.tar.xz -> hwinfo-21.46.tar.xz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.45/README.md new/hwinfo-21.46/README.md
--- old/hwinfo-21.45/README.md  2017-05-10 14:07:10.0 +0200
+++ new/hwinfo-21.46/README.md  2017-05-12 13:53:38.0 +0200
@@ -80,6 +80,12 @@
 > `hwinfo -bios` - note the single '`-`'). Please don't do this. If you are 
 > interested, you can
 > read about it [here](README-legacy.md).
 
+## Technical documentation
+
+The hardware detection library makes use of a number of technical 
specifications.
+
+[Here](specifications.md) is a compilation of external links to technical 
standards relevant to `libhd`.
+
 ## openSUSE Development
 
 To build the library, simply run `make`. Install with `make install`.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.45/VERSION new/hwinfo-21.46/VERSION
--- old/hwinfo-21.45/VERSION2017-05-10 14:07:10.0 +0200
+++ new/hwinfo-21.46/VERSION2017-05-12 13:53:38.0 +0200
@@ -1 +1 @@
-21.45
+21.46
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.45/changelog new/hwinfo-21.46/changelog
--- old/hwinfo-21.45/changelog  2017-05-10 14:07:10.0 +0200
+++ new/hwinfo-21.46/changelog  2017-05-12 13:53:38.0 +0200
@@ -1,3 +1,8 @@
+2017-05-12:21.46
+   - add links to technical specifications
+   - try harder to get the video mode list
+   - map also alternate video bios entry points (bsc #1033832)
+
 2017-05-10:21.45
- remove obsolete code
- avoid access to video memory (bsc #1033832)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.45/specifications.md 
new/hwinfo-21.46/specifications.md
--- old/hwinfo-21.45/specifications.md  1970-01-01 01:00:00.0 +0100
+++ new/hwinfo-21.46/specifications.md  2017-05-12 13:53:38.0 +0200
@@ -0,0 +1,46 @@
+# Links to external technical documentaion
+
+## System Management BIOS (SMBIOS)
+
+https://www.dmtf.org/standards/smbios
+
+
+## VESA BIOS Extensions (VBE)
+
+http://www.petesqbsite.com/sections/tutorials/tuts/vbe3.pdf
+
+
+## PCI specification
+
+https://pcisig.com/specifications
+
+### device ids
+
+- http://pci-ids.ucw.cz
+
+
+## SDIO specification
+
+https://www.sdcard.org/developers/overview/sdio/
+
+### device ids
+
+- https://github.com/systemd/systemd/blob/master/hwdb/sdio.ids
+- https://wikidevi.com/wiki/Talk:Linux_Wi-Fi_device_entries
+
+
+## USB specification
+
+http://www.usb.org/developers/docs/
+
+### device ids
+
+- http://www.linux-usb.org/usb.ids
+
+
+## SCSI specification
+
+### SCSI commands
+
+Google for 'SCSI Primary Commands 5 (SPC-5)' (or choose another version).
+The latest draft is usually freely available but not directly downloadable.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.45/src/hd/bios.c 
new/hwinfo-21.46/src/hd/bios.c
--- 

commit hwinfo for openSUSE:Factory

2017-05-10 Thread root
Hello community,

here is the log from the commit of package hwinfo for openSUSE:Factory checked 
in at 2017-05-10 20:35:53

Comparing /work/SRC/openSUSE:Factory/hwinfo (Old)
 and  /work/SRC/openSUSE:Factory/.hwinfo.new (New)


Package is "hwinfo"

Wed May 10 20:35:53 2017 rev:152 rq:494225 version:21.45

Changes:

--- /work/SRC/openSUSE:Factory/hwinfo/hwinfo.changes2017-05-04 
08:53:41.239036288 +0200
+++ /work/SRC/openSUSE:Factory/.hwinfo.new/hwinfo.changes   2017-05-10 
20:35:56.210286990 +0200
@@ -1,0 +2,35 @@
+Wed May 10 12:07:10 UTC 2017 - wfe...@opensuse.org
+
+- merge gh#openSUSE/hwinfo#49
+- avoid access to video memory (bsc#1033832)
+- 21.45
+
+
+Mon May 8 15:09:06 UTC 2017 - wfe...@opensuse.org
+
+- merge gh#openSUSE/hwinfo#48
+- fix conditional expression in hddb.c (gh#openSUSE/hwinfo#20)
+- 21.44
+
+
+Mon May 8 08:47:36 UTC 2017 - wfe...@opensuse.org
+
+- merge gh#openSUSE/hwinfo#47
+- block i/o access when reading mode list from BIOS (bsc#1033832)
+- 21.43
+
+
+Thu May 4 14:57:27 UTC 2017 - wfe...@opensuse.org
+
+- merge gh#openSUSE/hwinfo#46
+- include updated hd.h in package archive
+- update pci and usb ids (fate#321448)
+- 21.42
+
+
+Thu May 4 08:38:00 UTC 2017 - wfe...@opensuse.org
+
+- remove references to qlogic-firmware (bsc#1036884)
+- 21.41
+
+

Old:

  hwinfo-21.40.tar.xz

New:

  hwinfo-21.45.tar.xz



Other differences:
--
++ hwinfo.spec ++
--- /var/tmp/diff_new_pack.DBUXXA/_old  2017-05-10 20:35:56.810202349 +0200
+++ /var/tmp/diff_new_pack.DBUXXA/_new  2017-05-10 20:35:56.814201783 +0200
@@ -36,7 +36,7 @@
 License:GPL-2.0+
 Group:  Hardware/Other
 Url:http://gitorious.org/opensuse/hwinfo
-Version:21.40
+Version:21.45
 Release:0
 Source: %{name}-%{version}.tar.xz
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build

++ hwinfo-21.40.tar.xz -> hwinfo-21.45.tar.xz ++
 4748 lines of diff (skipped)




commit hwinfo for openSUSE:Factory

2017-05-04 Thread root
Hello community,

here is the log from the commit of package hwinfo for openSUSE:Factory checked 
in at 2017-05-04 08:53:37

Comparing /work/SRC/openSUSE:Factory/hwinfo (Old)
 and  /work/SRC/openSUSE:Factory/.hwinfo.new (New)


Package is "hwinfo"

Thu May  4 08:53:37 2017 rev:151 rq:491863 version:21.40

Changes:

--- /work/SRC/openSUSE:Factory/hwinfo/hwinfo.changes2017-04-11 
09:30:15.583395646 +0200
+++ /work/SRC/openSUSE:Factory/.hwinfo.new/hwinfo.changes   2017-05-04 
08:53:41.239036288 +0200
@@ -0,0 +1,8 @@
+
+Wed Apr 26 13:57:45 UTC 2017 - wfe...@opensuse.org
+
+- enhance documentation
+- merge gh#openSUSE/hwinfo#45
+- small doc changes
+- 21.40
+

Old:

  hwinfo-21.39.tar.xz

New:

  hwinfo-21.40.tar.xz



Other differences:
--
++ hwinfo.spec ++
--- /var/tmp/diff_new_pack.FMnDsn/_old  2017-05-04 08:53:41.858948863 +0200
+++ /var/tmp/diff_new_pack.FMnDsn/_new  2017-05-04 08:53:41.862948299 +0200
@@ -32,11 +32,11 @@
 Obsoletes:  libhd
 PreReq: /sbin/ldconfig
 Summary:Hardware Library
+# Until migration to github this should be correct url
 License:GPL-2.0+
 Group:  Hardware/Other
-# Until migration to github this should be correct url
 Url:http://gitorious.org/opensuse/hwinfo
-Version:21.39
+Version:21.40
 Release:0
 Source: %{name}-%{version}.tar.xz
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build

++ hwinfo-21.39.tar.xz -> hwinfo-21.40.tar.xz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.39/README-hwprobe.md 
new/hwinfo-21.40/README-hwprobe.md
--- old/hwinfo-21.39/README-hwprobe.md  2017-04-05 13:43:07.0 +0200
+++ new/hwinfo-21.40/README-hwprobe.md  2017-04-26 15:57:45.0 +0200
@@ -17,6 +17,10 @@
 * `hwprobe=-isapnp` - *never* do any isapnp probing
 * `hwprobe=-braille,-modem` - don't look for braille displays & modems
 
+The list of supported flags varies from version to version. To get a list of
+the actual set of probing flags, call `hwinfo -all` (**Not** `--all`!) and 
look at the top of
+the log (it lists all probing flags with their respective status there).
+
 ## Adding/removing hardware from results
 
 `hwprobe` allows you to add and remove hardware from the probing results. In
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.39/README.md new/hwinfo-21.40/README.md
--- old/hwinfo-21.39/README.md  2017-04-05 13:43:07.0 +0200
+++ new/hwinfo-21.40/README.md  2017-04-26 15:57:45.0 +0200
@@ -1,21 +1,117 @@
 # hwinfo
 
-## About hwinfo
+## Overview
 
-_hwinfo_ is used to probe for the hardware present in the system. It can be
+hwinfo/libhd are used to probe for the hardware present in the system. It can 
be
 used to generate a system overview log which can be later used for support.
 
-For general usage instructions, see `hwinfo` manual page. Additional 
documentation
-about [legacy 
features](https://github.com/openSUSE/hwinfo/blob/master/README-legacy.md)
-and [hwprobe environment 
variable](https://github.com/openSUSE/hwinfo/blob/master/README-hwprobe.md)
-is available in this repository.
+This project provides a hardware probing library `libhd.so` and a command line 
tool `hwinfo` using it.
+A major project using this library is [YaST](https://yast.github.io), the SUSE 
installation tool.
+
+To give you an idea what kind of information it provides, here's the output it 
gives when asked about the graphcs card:
+
+```sh
+# hwinfo --gfxcard
+27: PCI 200.0: 0300 VGA compatible controller (VGA)
+  [Created at pci.378]
+  Unique ID: B35A.G9ppNwS+xM4
+  Parent ID: _Znp.nMBktMhAWbC
+  SysFS ID: /devices/pci:00/:00:02.0/:02:00.0
+  SysFS BusID: :02:00.0
+  Hardware Class: graphics card
+  Model: "nVidia GF119 [NVS 310]"
+  Vendor: pci 0x10de "nVidia Corporation"
+  Device: pci 0x107d "GF119 [NVS 310]"
+  SubVendor: pci 0x10de "nVidia Corporation"
+  SubDevice: pci 0x094e
+  Revision: 0xa1
+  Driver: "nvidia"
+  Driver Modules: "nvidia"
+  Memory Range: 0xfa00-0xfaff (rw,non-prefetchable)
+  Memory Range: 0xf000-0xf7ff (ro,non-prefetchable)
+  Memory Range: 0xf800-0xf9ff (ro,non-prefetchable)
+  I/O Ports: 0xe000-0xefff (rw)
+  Memory Range: 0xfb00-0xfb07 (ro,non-prefetchable,disabled)
+  IRQ: 82 (3241635 events)
+  I/O Ports: 0x3c0-0x3df (rw)
+  Module Alias: "pci:v10DEd107Dsv10DEsd094Ebc03sc00i00"
+  Driver Info #0:
+Driver Status: nouveau is not active
+Driver Activation Cmd: "modprobe nouveau"
+  Driver Info #1:
+Driver Status: nvidia is active
+Driver 

commit hwinfo for openSUSE:Factory

2017-04-11 Thread root
Hello community,

here is the log from the commit of package hwinfo for openSUSE:Factory checked 
in at 2017-04-11 09:30:12

Comparing /work/SRC/openSUSE:Factory/hwinfo (Old)
 and  /work/SRC/openSUSE:Factory/.hwinfo.new (New)


Package is "hwinfo"

Tue Apr 11 09:30:12 2017 rev:150 rq:486334 version:21.39

Changes:

--- /work/SRC/openSUSE:Factory/hwinfo/hwinfo.changes2016-12-09 
09:35:25.844235518 +0100
+++ /work/SRC/openSUSE:Factory/.hwinfo.new/hwinfo.changes   2017-04-11 
09:30:15.583395646 +0200
@@ -1,0 +2,11 @@
+Fri Apr  7 10:29:25 CEST 2017 - snw...@suse.de
+
+- sanitize changelog
+
+---
+Wed Apr  5 11:44:32 UTC 2017 - snw...@suse.com
+
+- powerpc: support ibmvnic network interfaces (bsc#1031676)
+- 21.39
+
+---
@@ -145 +156 @@
-- Expose more properties to all devices in /proc/device-tree/vpd
+- Expose more properties to all devices in /proc/device-tree/vpd (bsc#941288)

Old:

  hwinfo-21.38.tar.xz

New:

  hwinfo-21.39.tar.xz



Other differences:
--
++ hwinfo.spec ++
--- /var/tmp/diff_new_pack.BgDzri/_old  2017-04-11 09:30:16.175312049 +0200
+++ /var/tmp/diff_new_pack.BgDzri/_new  2017-04-11 09:30:16.175312049 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package hwinfo
 #
-# Copyright (c) 2016 SUSE LINUX Products 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
@@ -36,7 +36,7 @@
 Group:  Hardware/Other
 # Until migration to github this should be correct url
 Url:http://gitorious.org/opensuse/hwinfo
-Version:21.38
+Version:21.39
 Release:0
 Source: %{name}-%{version}.tar.xz
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build

++ hwinfo-21.38.tar.xz -> hwinfo-21.39.tar.xz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.38/VERSION new/hwinfo-21.39/VERSION
--- old/hwinfo-21.38/VERSION2016-12-05 16:05:31.0 +0100
+++ new/hwinfo-21.39/VERSION2017-04-05 13:43:07.0 +0200
@@ -1 +1 @@
-21.38
+21.39
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.38/changelog new/hwinfo-21.39/changelog
--- old/hwinfo-21.38/changelog  2016-12-05 16:05:31.0 +0100
+++ new/hwinfo-21.39/changelog  2017-04-05 13:43:07.0 +0200
@@ -1,3 +1,6 @@
+2017-04-05:21.39
+   - powerpc: support ibmvnic network interfaces (bsc #1031676)
+
 2016-12-05:21.38
- increase version
- simplify code in smbios_get_info()
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.38/src/hd/pci.c 
new/hwinfo-21.39/src/hd/pci.c
--- old/hwinfo-21.38/src/hd/pci.c   2016-12-05 16:05:31.0 +0100
+++ new/hwinfo-21.39/src/hd/pci.c   2017-04-05 13:43:07.0 +0200
@@ -843,6 +843,7 @@
 if(
   vio_name && (
 !strcmp(vio_name, "l-lan") || /* pseries && iseries */
+!strcmp(vio_name, "vnic") || /* ibmvnic */
 !strcmp(vio_name, "viodasd") || /* iseries */
 !strcmp(vio_name, "viocd") || /* iseries */
 !strcmp(vio_name, "vfc-client") || /* ibmvfc */
@@ -855,7 +856,7 @@
 
   hd->vendor.id = MAKE_ID(TAG_SPECIAL, 0x6001);
 
-  if(!strcmp(vio_name, "l-lan")) {
+  if(!strcmp(vio_name, "l-lan") || !strcmp(vio_name, "vnic")) {
 hd->base_class.id = bc_network;
 hd->sub_class.id = 0;  /* ethernet */
 hd->slot = eth_cnt++;




commit hwinfo for openSUSE:Factory

2016-11-19 Thread h_root
Hello community,

here is the log from the commit of package hwinfo for openSUSE:Factory checked 
in at 2016-11-19 12:49:46

Comparing /work/SRC/openSUSE:Factory/hwinfo (Old)
 and  /work/SRC/openSUSE:Factory/.hwinfo.new (New)


Package is "hwinfo"

Changes:

--- /work/SRC/openSUSE:Factory/hwinfo/hwinfo.changes2016-11-12 
12:59:56.0 +0100
+++ /work/SRC/openSUSE:Factory/.hwinfo.new/hwinfo.changes   2016-11-19 
12:49:47.0 +0100
@@ -1,0 +2,14 @@
+Fri Nov 18 15:04:57 UTC 2016 - snw...@suse.com
+
+- increase version
+- look for dmi table also in sysfs (bsc#1010276)
+- 21.37
+
+---
+Thu Nov 17 12:49:23 UTC 2016 - snw...@suse.com
+
+- provide also HD_MINOR_VERSION in hd.h header file
+- add permanent mac address field for network cards (bsc#1007172)
+- 21.36
+
+---

Old:

  hwinfo-21.35.tar.xz

New:

  hwinfo-21.37.tar.xz



Other differences:
--
++ hwinfo.spec ++
--- /var/tmp/diff_new_pack.taBZ6A/_old  2016-11-19 12:49:48.0 +0100
+++ /var/tmp/diff_new_pack.taBZ6A/_new  2016-11-19 12:49:48.0 +0100
@@ -36,7 +36,7 @@
 Group:  Hardware/Other
 # Until migration to github this should be correct url
 Url:http://gitorious.org/opensuse/hwinfo
-Version:21.35
+Version:21.37
 Release:0
 Source: %{name}-%{version}.tar.xz
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build

++ hwinfo-21.35.tar.xz -> hwinfo-21.37.tar.xz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.35/VERSION new/hwinfo-21.37/VERSION
--- old/hwinfo-21.35/VERSION2016-11-11 15:53:27.0 +0100
+++ new/hwinfo-21.37/VERSION2016-11-18 16:02:04.0 +0100
@@ -1 +1 @@
-21.35
+21.37
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.35/changelog new/hwinfo-21.37/changelog
--- old/hwinfo-21.35/changelog  2016-11-11 15:53:27.0 +0100
+++ new/hwinfo-21.37/changelog  2016-11-18 16:02:04.0 +0100
@@ -1,3 +1,11 @@
+2016-11-18:21.37
+   - increase version
+   - look for dmi table also in sysfs (bsc #1010276)
+
+2016-11-17:21.36
+   - provide also HD_MINOR_VERSION in hd.h header file
+   - add permanent mac address field for network cards (bsc #1007172)
+
 2016-11-11:21.35
- ensure network devices have a bus_id (bsc #1007172)
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.35/src/hd/Makefile 
new/hwinfo-21.37/src/hd/Makefile
--- old/hwinfo-21.35/src/hd/Makefile2016-11-11 15:53:27.0 +0100
+++ new/hwinfo-21.37/src/hd/Makefile2016-11-18 16:02:04.0 +0100
@@ -9,6 +9,7 @@
 
 hd.h: $(TOPDIR)/VERSION
@perl -pi -e "s/define\s+HD_VERSION\s+\d+/define 
HD_VERSION\t$(LIBHD_MAJOR_VERSION)/" $@
+   @perl -pi -e "s/define\s+HD_MINOR_VERSION\s+\d+/define 
HD_MINOR_VERSION\t$(LIBHD_MINOR_VERSION)/" $@
 
 $(LIBHD_D): $(OBJS)
ar r $(LIBHD) $?
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.35/src/hd/bios.c 
new/hwinfo-21.37/src/hd/bios.c
--- old/hwinfo-21.35/src/hd/bios.c  2016-11-11 15:53:27.0 +0100
+++ new/hwinfo-21.37/src/hd/bios.c  2016-11-18 16:02:04.0 +0100
@@ -612,10 +612,26 @@
   unsigned u, u1, u2, ok, hlen = 0, ofs;
   unsigned addr = 0, len = 0, scnt;
   unsigned structs = 0, type, slen;
+  unsigned use_sysfs = 0;
   char *s;
-  memory_range_t memory;
+  memory_range_t memory, memory_sysfs;
   hd_smbios_t *sm;
 
+  memory_sysfs.data = get_sysfs_attr_by_path2("/sys/firmware/dmi/tables", 
"smbios_entry_point", _sysfs.size);
+
+  if(memory_sysfs.data) {
+// get_sysfs_attr_by_path2 returns static buffer; make a copy
+unsigned char *buf = memory_sysfs.data;
+memory_sysfs.data = new_mem(memory_sysfs.size);
+memcpy(memory_sysfs.data, buf, memory_sysfs.size);
+memory_sysfs.start = 0;
+dump_memory(hd_data, _sysfs, 0, "SMBIOS Entry Point (sysfs)");
+if(memory_sysfs.size >= 0x10) {
+  use_sysfs = 1;
+  mem = _sysfs;
+}
+  }
+
   if(!mem->data || mem->size < 0x10) return;
 
   for(u = ok = 0; u <= mem->size - 0x10; u += 0x10) {
@@ -649,15 +665,35 @@
 
   hd_data->smbios = smbios_free(hd_data->smbios);
 
+  ADD2LOG("  Found DMI table at 0x%08x (0x%04x bytes)\n", addr, len);
+
   memory.start = mem->start + u;
   memory.size = hlen;
   memory.data = mem->data + u;
-  dump_memory(hd_data, , 0, "SMBIOS Entry Point");
+  if(!use_sysfs) dump_memory(hd_data, , 0, "SMBIOS Entry Point");
 
-  memory.start = addr;
-  memory.size 

commit hwinfo for openSUSE:Factory

2016-11-12 Thread h_root
Hello community,

here is the log from the commit of package hwinfo for openSUSE:Factory checked 
in at 2016-11-12 12:59:53

Comparing /work/SRC/openSUSE:Factory/hwinfo (Old)
 and  /work/SRC/openSUSE:Factory/.hwinfo.new (New)


Package is "hwinfo"

Changes:

--- /work/SRC/openSUSE:Factory/hwinfo/hwinfo.changes2016-11-11 
14:30:35.0 +0100
+++ /work/SRC/openSUSE:Factory/.hwinfo.new/hwinfo.changes   2016-11-12 
12:59:56.0 +0100
@@ -1,0 +2,6 @@
+Fri Nov 11 14:54:40 UTC 2016 - snw...@suse.com
+
+- ensure network devices have a bus_id (bsc#1007172)
+- 21.35
+
+---

Old:

  hwinfo-21.34.tar.xz

New:

  hwinfo-21.35.tar.xz



Other differences:
--
++ hwinfo.spec ++
--- /var/tmp/diff_new_pack.BZNU6z/_old  2016-11-12 12:59:56.0 +0100
+++ /var/tmp/diff_new_pack.BZNU6z/_new  2016-11-12 12:59:56.0 +0100
@@ -36,7 +36,7 @@
 Group:  Hardware/Other
 # Until migration to github this should be correct url
 Url:http://gitorious.org/opensuse/hwinfo
-Version:21.34
+Version:21.35
 Release:0
 Source: %{name}-%{version}.tar.xz
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build

++ hwinfo-21.34.tar.xz -> hwinfo-21.35.tar.xz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.34/VERSION new/hwinfo-21.35/VERSION
--- old/hwinfo-21.34/VERSION2016-11-09 15:51:34.0 +0100
+++ new/hwinfo-21.35/VERSION2016-11-11 15:53:27.0 +0100
@@ -1 +1 @@
-21.34
+21.35
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.34/changelog new/hwinfo-21.35/changelog
--- old/hwinfo-21.34/changelog  2016-11-09 15:51:34.0 +0100
+++ new/hwinfo-21.35/changelog  2016-11-11 15:53:27.0 +0100
@@ -1,3 +1,6 @@
+2016-11-11:21.35
+   - ensure network devices have a bus_id (bsc #1007172)
+
 2016-11-09:21.34
- update usb ids
- update script to parse usb id list correctly
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.34/src/hd/pci.c 
new/hwinfo-21.35/src/hd/pci.c
--- old/hwinfo-21.34/src/hd/pci.c   2016-11-09 15:51:34.0 +0100
+++ new/hwinfo-21.35/src/hd/pci.c   2016-11-11 15:53:27.0 +0100
@@ -429,6 +429,7 @@
   for(; net_ifs2; net_ifs2 = net_ifs2->next) {
 hd2 = add_hd_entry(hd_data, __LINE__, 0);
 hd2->sysfs_id = new_str(hd->sysfs_id);
+hd2->sysfs_bus_id = new_str(hd->sysfs_bus_id);
 if(hd->drivers) {
   add_str_list(>drivers, hd->drivers->str);
 }




commit hwinfo for openSUSE:Factory

2016-11-11 Thread h_root
Hello community,

here is the log from the commit of package hwinfo for openSUSE:Factory checked 
in at 2016-11-11 14:30:32

Comparing /work/SRC/openSUSE:Factory/hwinfo (Old)
 and  /work/SRC/openSUSE:Factory/.hwinfo.new (New)


Package is "hwinfo"

Changes:

--- /work/SRC/openSUSE:Factory/hwinfo/hwinfo.changes2016-10-22 
13:04:56.0 +0200
+++ /work/SRC/openSUSE:Factory/.hwinfo.new/hwinfo.changes   2016-11-11 
14:30:35.0 +0100
@@ -1,0 +2,14 @@
+Wed Nov  9 14:54:23 UTC 2016 - snw...@suse.com
+
+- update usb ids
+- update script to parse usb id list correctly
+- update pci ids (bsc#1006818)
+- 21.34
+
+---
+Wed Nov  9 14:19:22 UTC 2016 - snw...@suse.com
+
+- implement nvdimm support (bsc#970111)
+- 21.33
+
+---

Old:

  hwinfo-21.32.tar.xz

New:

  hwinfo-21.34.tar.xz



Other differences:
--
++ hwinfo.spec ++
--- /var/tmp/diff_new_pack.pKEvDR/_old  2016-11-11 14:30:36.0 +0100
+++ /var/tmp/diff_new_pack.pKEvDR/_new  2016-11-11 14:30:36.0 +0100
@@ -36,7 +36,7 @@
 Group:  Hardware/Other
 # Until migration to github this should be correct url
 Url:http://gitorious.org/opensuse/hwinfo
-Version:21.32
+Version:21.34
 Release:0
 Source: %{name}-%{version}.tar.xz
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build

++ hwinfo-21.32.tar.xz -> hwinfo-21.34.tar.xz ++
 91563 lines of diff (skipped)




commit hwinfo for openSUSE:Factory

2016-10-22 Thread h_root
Hello community,

here is the log from the commit of package hwinfo for openSUSE:Factory checked 
in at 2016-10-22 13:04:55

Comparing /work/SRC/openSUSE:Factory/hwinfo (Old)
 and  /work/SRC/openSUSE:Factory/.hwinfo.new (New)


Package is "hwinfo"

Changes:

--- /work/SRC/openSUSE:Factory/hwinfo/hwinfo.changes2016-09-21 
18:24:16.0 +0200
+++ /work/SRC/openSUSE:Factory/.hwinfo.new/hwinfo.changes   2016-10-22 
13:04:56.0 +0200
@@ -1,0 +2,6 @@
+Thu Oct 20 10:19:50 UTC 2016 - snw...@suse.com
+
+- aarch64: fix detection of usb controllers (bsc#1005428)
+- 21.32
+
+---

Old:

  hwinfo-21.31.tar.xz

New:

  hwinfo-21.32.tar.xz



Other differences:
--
++ hwinfo.spec ++
--- /var/tmp/diff_new_pack.XSNIA2/_old  2016-10-22 13:04:57.0 +0200
+++ /var/tmp/diff_new_pack.XSNIA2/_new  2016-10-22 13:04:57.0 +0200
@@ -36,7 +36,7 @@
 Group:  Hardware/Other
 # Until migration to github this should be correct url
 Url:http://gitorious.org/opensuse/hwinfo
-Version:21.31
+Version:21.32
 Release:0
 Source: %{name}-%{version}.tar.xz
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build

++ hwinfo-21.31.tar.xz -> hwinfo-21.32.tar.xz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.31/VERSION new/hwinfo-21.32/VERSION
--- old/hwinfo-21.31/VERSION2016-09-16 10:33:46.0 +0200
+++ new/hwinfo-21.32/VERSION2016-10-20 12:18:19.0 +0200
@@ -1 +1 @@
-21.31
+21.32
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.31/changelog new/hwinfo-21.32/changelog
--- old/hwinfo-21.31/changelog  2016-09-16 10:33:46.0 +0200
+++ new/hwinfo-21.32/changelog  2016-10-20 12:18:19.0 +0200
@@ -1,3 +1,6 @@
+2016-10-20:21.32
+   - aarch64: fix detection of usb controllers (bsc #1005428)
+
 2016-09-16:21.31
- improved comment
- document id data sources
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.31/src/hd/pci.c 
new/hwinfo-21.32/src/hd/pci.c
--- old/hwinfo-21.31/src/hd/pci.c   2016-09-16 10:33:46.0 +0200
+++ new/hwinfo-21.32/src/hd/pci.c   2016-10-20 12:18:19.0 +0200
@@ -964,7 +964,7 @@
   sf_eth_dev = read_dir(sf_eth_net, 'd');
   is_net = sf_eth_net && sf_eth_dev;
   is_storage = device_type && !strcmp(device_type, "sata");
-  is_usb = device_type && !strcmp(device_type, "usb");
+  is_usb = device_type && (!strcmp(device_type, "usb") || 
!strcmp(device_type, "dwusb"));
   if(is_net) ADD2LOG("is net: sf_eth_net = %s\n", sf_eth_net);
   if(is_storage) ADD2LOG("is storage\n");
   if(is_usb) ADD2LOG("is usb\n");




commit hwinfo for openSUSE:Factory

2016-09-21 Thread h_root
Hello community,

here is the log from the commit of package hwinfo for openSUSE:Factory checked 
in at 2016-09-21 18:24:14

Comparing /work/SRC/openSUSE:Factory/hwinfo (Old)
 and  /work/SRC/openSUSE:Factory/.hwinfo.new (New)


Package is "hwinfo"

Changes:

--- /work/SRC/openSUSE:Factory/hwinfo/hwinfo.changes2016-08-03 
11:42:05.0 +0200
+++ /work/SRC/openSUSE:Factory/.hwinfo.new/hwinfo.changes   2016-09-21 
18:24:16.0 +0200
@@ -1,0 +2,10 @@
+Fri Sep 16 08:34:28 UTC 2016 - snw...@suse.com
+
+- improved comment
+- document id data sources
+- find parent device
+- add support for mmc/sdio devices (bsc#996183)
+- add sdio id list
+- 21.31
+
+---

Old:

  hwinfo-21.30.tar.xz

New:

  hwinfo-21.31.tar.xz



Other differences:
--
++ hwinfo.spec ++
--- /var/tmp/diff_new_pack.ddkGTG/_old  2016-09-21 18:24:17.0 +0200
+++ /var/tmp/diff_new_pack.ddkGTG/_new  2016-09-21 18:24:17.0 +0200
@@ -36,7 +36,7 @@
 Group:  Hardware/Other
 # Until migration to github this should be correct url
 Url:http://gitorious.org/opensuse/hwinfo
-Version:21.30
+Version:21.31
 Release:0
 Source: %{name}-%{version}.tar.xz
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build

++ hwinfo-21.30.tar.xz -> hwinfo-21.31.tar.xz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.30/VERSION new/hwinfo-21.31/VERSION
--- old/hwinfo-21.30/VERSION2016-07-28 15:50:17.0 +0200
+++ new/hwinfo-21.31/VERSION2016-09-16 10:33:46.0 +0200
@@ -1 +1 @@
-21.30
+21.31
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.30/changelog new/hwinfo-21.31/changelog
--- old/hwinfo-21.30/changelog  2016-07-28 15:50:17.0 +0200
+++ new/hwinfo-21.31/changelog  2016-09-16 10:33:46.0 +0200
@@ -1,3 +1,10 @@
+2016-09-16:21.31
+   - improved comment
+   - document id data sources
+   - find parent device
+   - add support for mmc/sdio devices (bsc #996183)
+   - add sdio id list
+
 2016-07-28:21.30
- fix input device name detection for usb devices (bsc #989633)
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.30/doc/hwinfo.8 
new/hwinfo-21.31/doc/hwinfo.8
--- old/hwinfo-21.30/doc/hwinfo.8   2016-07-28 15:50:17.0 +0200
+++ new/hwinfo-21.31/doc/hwinfo.8   2016-09-16 10:33:46.0 +0200
@@ -24,7 +24,7 @@
 
 all, arch, bios, block, bluetooth, braille, bridge, camera, cdrom, chipcard,
 cpu, disk, dsl, dvb, fingerprint, floppy, framebuffer, gfxcard, hub, ide, 
-isapnp, isdn, joystick, keyboard, memory, modem, monitor, mouse, netcard,
+isapnp, isdn, joystick, keyboard, memory, mmc-ctrl, modem, monitor, mouse, 
netcard,
 network, partition, pci, pcmcia, pcmcia-ctrl, pppoe, printer, redasd,
 reallyall, scanner, scsi, smp, sound, storage-ctrl, sys, tape, tv, uml, usb,
 usb-ctrl, vbe, wlan, xen, zip
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.30/hwinfo.c new/hwinfo-21.31/hwinfo.c
--- old/hwinfo-21.30/hwinfo.c   2016-07-28 15:50:17.0 +0200
+++ new/hwinfo-21.31/hwinfo.c   2016-09-16 10:33:46.0 +0200
@@ -161,6 +161,8 @@
   { "hotplug", 0, NULL, 1000 + hw_hotplug },
   { "hotplug-ctrl", 0, NULL, 1000 + hw_hotplug_ctrl },
   { "hotplug_ctrl", 0, NULL, 1000 + hw_hotplug_ctrl },
+  { "mmc-ctrl", 0, NULL, 1000 + hw_mmc_ctrl },
+  { "mmc_ctrl", 0, NULL, 1000 + hw_mmc_ctrl },
   { "zip", 0, NULL, 1000 + hw_zip },
   { "pppoe", 0, NULL, 1000 + hw_pppoe },
   { "dsl", 0, NULL, 1000 + hw_dsl },
@@ -810,7 +812,7 @@
 "all, arch, bios, block, bluetooth, braille, bridge, camera,\n"
 "cdrom, chipcard, cpu, disk, dsl, dvb, fingerprint, floppy,\n"
 "framebuffer, gfxcard, hub, ide, isapnp, isdn, joystick, 
keyboard,\n"
-"memory, modem, monitor, mouse, netcard, network, partition,\n"
+"memory, mmc-ctrl, modem, monitor, mouse, netcard, network, 
partition,\n"
 "pci, pcmcia, pcmcia-ctrl, pppoe, printer, redasd,\n"
 "reallyall, scanner, scsi, smp, sound, storage-ctrl, sys, tape,\n"
 "tv, uml, usb, usb-ctrl, vbe, wlan, xen, zip\n"
@@ -1412,6 +1414,7 @@
 if(!strcmp(sl->str, "isapnp")) { tag = TAG_EISA; continue; }
 if(!strcmp(sl->str, "special")) { tag = TAG_SPECIAL; continue; }
 if(!strcmp(sl->str, "pcmcia")) { tag = TAG_PCMCIA; continue; }
+if(!strcmp(sl->str, "sdio")) { tag = TAG_SDIO; continue; }
 
 if(sscanf(sl->str, "class=%i%n", , ) >= 1 && 

commit hwinfo for openSUSE:Factory

2016-08-03 Thread h_root
Hello community,

here is the log from the commit of package hwinfo for openSUSE:Factory checked 
in at 2016-08-03 11:42:04

Comparing /work/SRC/openSUSE:Factory/hwinfo (Old)
 and  /work/SRC/openSUSE:Factory/.hwinfo.new (New)


Package is "hwinfo"

Changes:

--- /work/SRC/openSUSE:Factory/hwinfo/hwinfo.changes2016-07-20 
09:16:59.0 +0200
+++ /work/SRC/openSUSE:Factory/.hwinfo.new/hwinfo.changes   2016-08-03 
11:42:05.0 +0200
@@ -1,0 +2,6 @@
+Thu Jul 28 13:54:59 UTC 2016 - snw...@suse.com
+
+- fix input device name detection for usb devices (bsc#989633)
+- 21.30
+
+---

Old:

  hwinfo-21.29.tar.xz

New:

  hwinfo-21.30.tar.xz



Other differences:
--
++ hwinfo.spec ++
--- /var/tmp/diff_new_pack.NrGa9h/_old  2016-08-03 11:42:06.0 +0200
+++ /var/tmp/diff_new_pack.NrGa9h/_new  2016-08-03 11:42:06.0 +0200
@@ -36,7 +36,7 @@
 Group:  Hardware/Other
 # Until migration to github this should be correct url
 Url:http://gitorious.org/opensuse/hwinfo
-Version:21.29
+Version:21.30
 Release:0
 Source: %{name}-%{version}.tar.xz
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build

++ hwinfo-21.29.tar.xz -> hwinfo-21.30.tar.xz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.29/VERSION new/hwinfo-21.30/VERSION
--- old/hwinfo-21.29/VERSION2016-07-14 10:59:21.0 +0200
+++ new/hwinfo-21.30/VERSION2016-07-28 15:50:17.0 +0200
@@ -1 +1 @@
-21.29
+21.30
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.29/changelog new/hwinfo-21.30/changelog
--- old/hwinfo-21.29/changelog  2016-07-14 10:59:21.0 +0200
+++ new/hwinfo-21.30/changelog  2016-07-28 15:50:17.0 +0200
@@ -1,3 +1,6 @@
+2016-07-28:21.30
+   - fix input device name detection for usb devices (bsc #989633)
+
 2016-07-14:21.29
- refine last patch a bit (bsc #960507)
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.29/src/hd/usb.c 
new/hwinfo-21.30/src/hd/usb.c
--- old/hwinfo-21.29/src/hd/usb.c   2016-07-14 10:59:21.0 +0200
+++ new/hwinfo-21.30/src/hd/usb.c   2016-07-28 15:50:17.0 +0200
@@ -569,41 +569,48 @@
   s
 );
 
-for(hd = hd_data->hd; hd; hd = hd->next) {
-  if(
-hd->module == hd_data->module &&
-hd->sysfs_id &&
-s &&
-!strcmp(s, hd->sysfs_id)
-  ) {
-t = NULL;
-str_printf(, 0, "/dev/input/%s", sf_cdev_name);
-
-if(strncmp(sf_cdev_name, "mouse", sizeof "mouse" - 1)) {
-  if(!hd->unix_dev_name) {
-hd->unix_dev_name = t;
-hd->unix_dev_num = dev_num;
-  }
-}
-else {
-  free_mem(hd->unix_dev_name);
-  free_mem(hd->unix_dev_name2);
-
-  hd->unix_dev_name2 = t;
-  hd->unix_dev_num2 = dev_num;
-
-  dev_num.major = 13;
-  dev_num.minor = 63;
-  hd->unix_dev_name = new_str(DEV_MICE);
+/* find device (matching sysfs path) */
+hd = hd_find_sysfs_id(hd_data, s);
+
+/* not found? - retry one level up */
+if(!hd) {
+  char *ns = new_str(s), *nt;
+  if((nt = strrchr(ns, '/'))) {
+*nt = 0;
+hd = hd_find_sysfs_id(hd_data, ns);
+  }
+  free_mem(ns);
+}
+
+/* when we have it, add input device name */
+if(hd) {
+  t = NULL;
+  str_printf(, 0, "/dev/input/%s", sf_cdev_name);
+
+  if(strncmp(sf_cdev_name, "mouse", sizeof "mouse" - 1)) {
+if(!hd->unix_dev_name) {
+  hd->unix_dev_name = t;
   hd->unix_dev_num = dev_num;
+}
+  }
+  else {
+free_mem(hd->unix_dev_name);
+free_mem(hd->unix_dev_name2);
+
+hd->unix_dev_name2 = t;
+hd->unix_dev_num2 = dev_num;
+
+dev_num.major = 13;
+dev_num.minor = 63;
+hd->unix_dev_name = new_str(DEV_MICE);
+hd->unix_dev_num = dev_num;
 
-  // make it a mouse, #216091
-  if(hd->base_class.id == bc_none) {
-hd->base_class.id = bc_mouse;
-hd->sub_class.id = sc_mou_usb;
-hd->compat_vendor.id = MAKE_ID(TAG_SPECIAL, 0x0200);
-hd->compat_device.id = MAKE_ID(TAG_SPECIAL, 0x001);
-  }
+// make it a mouse, #216091
+if(hd->base_class.id == bc_none) {
+  hd->base_class.id = bc_mouse;
+  hd->sub_class.id = sc_mou_usb;
+  hd->compat_vendor.id = MAKE_ID(TAG_SPECIAL, 0x0200);
+  hd->compat_device.id = MAKE_ID(TAG_SPECIAL, 0x001);
 }
  

commit hwinfo for openSUSE:Factory

2016-07-20 Thread h_root
Hello community,

here is the log from the commit of package hwinfo for openSUSE:Factory checked 
in at 2016-07-20 09:16:56

Comparing /work/SRC/openSUSE:Factory/hwinfo (Old)
 and  /work/SRC/openSUSE:Factory/.hwinfo.new (New)


Package is "hwinfo"

Changes:

--- /work/SRC/openSUSE:Factory/hwinfo/hwinfo.changes2016-06-13 
21:49:10.0 +0200
+++ /work/SRC/openSUSE:Factory/.hwinfo.new/hwinfo.changes   2016-07-20 
09:16:59.0 +0200
@@ -1,0 +2,12 @@
+Thu Jul 14 09:04:26 UTC 2016 - snw...@suse.com
+
+- refine last patch a bit (bsc#960507)
+- 21.29
+
+---
+Wed Jul 13 14:40:35 UTC 2016 - snw...@suse.com
+
+- avoid bogus virtio devices in device listing (bsc#960507)
+- 21.28
+
+---

Old:

  hwinfo-21.27.tar.xz

New:

  hwinfo-21.29.tar.xz



Other differences:
--
++ hwinfo.spec ++
--- /var/tmp/diff_new_pack.d6ig8V/_old  2016-07-20 09:16:59.0 +0200
+++ /var/tmp/diff_new_pack.d6ig8V/_new  2016-07-20 09:16:59.0 +0200
@@ -36,7 +36,7 @@
 Group:  Hardware/Other
 # Until migration to github this should be correct url
 Url:http://gitorious.org/opensuse/hwinfo
-Version:21.27
+Version:21.29
 Release:0
 Source: %{name}-%{version}.tar.xz
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build

++ hwinfo-21.27.tar.xz -> hwinfo-21.29.tar.xz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.27/VERSION new/hwinfo-21.29/VERSION
--- old/hwinfo-21.27/VERSION2016-06-08 12:40:59.0 +0200
+++ new/hwinfo-21.29/VERSION2016-07-14 10:59:21.0 +0200
@@ -1 +1 @@
-21.27
+21.29
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.27/changelog new/hwinfo-21.29/changelog
--- old/hwinfo-21.27/changelog  2016-06-08 12:40:59.0 +0200
+++ new/hwinfo-21.29/changelog  2016-07-14 10:59:21.0 +0200
@@ -1,3 +1,9 @@
+2016-07-14:21.29
+   - refine last patch a bit (bsc #960507)
+
+2016-07-13:21.28
+   - avoid bogus virtio devices in device listing (bsc #960507)
+
 2016-06-08:21.27
- add aliases with '-' for options with '_' (bsc #983004)
- clarify hwinfo usage in man page and help text (bsc #982332)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.27/src/hd/pci.c 
new/hwinfo-21.29/src/hd/pci.c
--- old/hwinfo-21.27/src/hd/pci.c   2016-06-08 12:40:59.0 +0200
+++ new/hwinfo-21.29/src/hd/pci.c   2016-07-14 10:59:21.0 +0200
@@ -1572,9 +1572,9 @@
   int net_cnt = 0, blk_cnt = 0;
   unsigned dev;
   uint64_t ul0; 
-  hd_t *hd;
+  hd_t *hd, *hd2;
   str_list_t *sf_bus, *sf_bus_e;
-  char *sf_dev, *drv, *drv_name, *modalias;
+  char *sf_dev, *drv, *drv_name, *modalias, *s, *t;
 
   sf_bus = read_dir("/sys/bus/virtio/devices", 'l');
 
@@ -1641,6 +1641,33 @@
   str_printf(>device.name, 0, "Storage %d", hd->slot);
   break;
   }
+
+  /*
+   * virtio devs are kind of 'subdevices' to real pci devices; but
+   * the supposedly 'real' devices mess up our device list :-(
+   *
+   * here we track down the 'real' devices and disable them in any
+   * future device listing by classifying them right now as 'unknown'
+   *
+   * this works because devices will never be re-classified
+   */
+  s = new_str(hd->sysfs_id);   // get a writable copy
+
+  if((t = strrchr(s, '/'))) {
+*t = 0;// cut out last path element
+if((hd2 = hd_find_sysfs_id(hd_data, s))) {
+  hd->attached_to = hd2->idx;
+  // hasn't been classified yet and has the same base class
+  if(
+!hd2->hw_class &&
+hd->base_class.id == hd2->base_class.id
+  ) {
+hd2->hw_class = hw_unknown;
+  }
+}
+  }
+
+  free_mem(s);
 }
 
 free_mem(modalias);




commit hwinfo for openSUSE:Factory

2016-06-13 Thread h_root
Hello community,

here is the log from the commit of package hwinfo for openSUSE:Factory checked 
in at 2016-06-13 21:49:09

Comparing /work/SRC/openSUSE:Factory/hwinfo (Old)
 and  /work/SRC/openSUSE:Factory/.hwinfo.new (New)


Package is "hwinfo"

Changes:

--- /work/SRC/openSUSE:Factory/hwinfo/hwinfo.changes2016-06-03 
16:35:50.0 +0200
+++ /work/SRC/openSUSE:Factory/.hwinfo.new/hwinfo.changes   2016-06-13 
21:49:10.0 +0200
@@ -1,0 +2,7 @@
+Wed Jun  8 10:44:44 UTC 2016 - snw...@suse.com
+
+- add aliases with '-' for options with '_' (bsc#983004)
+- clarify hwinfo usage in man page and help text (bsc#982332)
+- 21.27
+
+---

Old:

  hwinfo-21.26.tar.xz

New:

  hwinfo-21.27.tar.xz



Other differences:
--
++ hwinfo.spec ++
--- /var/tmp/diff_new_pack.439EF2/_old  2016-06-13 21:49:11.0 +0200
+++ /var/tmp/diff_new_pack.439EF2/_new  2016-06-13 21:49:11.0 +0200
@@ -36,7 +36,7 @@
 Group:  Hardware/Other
 # Until migration to github this should be correct url
 Url:http://gitorious.org/opensuse/hwinfo
-Version:21.26
+Version:21.27
 Release:0
 Source: %{name}-%{version}.tar.xz
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build

++ hwinfo-21.26.tar.xz -> hwinfo-21.27.tar.xz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.26/VERSION new/hwinfo-21.27/VERSION
--- old/hwinfo-21.26/VERSION2016-05-30 13:56:19.0 +0200
+++ new/hwinfo-21.27/VERSION2016-06-08 12:40:59.0 +0200
@@ -1 +1 @@
-21.26
+21.27
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.26/changelog new/hwinfo-21.27/changelog
--- old/hwinfo-21.26/changelog  2016-05-30 13:56:19.0 +0200
+++ new/hwinfo-21.27/changelog  2016-06-08 12:40:59.0 +0200
@@ -1,3 +1,7 @@
+2016-06-08:21.27
+   - add aliases with '-' for options with '_' (bsc #983004)
+   - clarify hwinfo usage in man page and help text (bsc #982332)
+
 2016-05-30:21.26
- change wording for SCSI reference
- add reference to SCSI command specification
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.26/doc/hwinfo.8 
new/hwinfo-21.27/doc/hwinfo.8
--- old/hwinfo-21.26/doc/hwinfo.8   2016-05-30 13:56:19.0 +0200
+++ new/hwinfo-21.27/doc/hwinfo.8   2016-06-08 12:40:59.0 +0200
@@ -1,5 +1,6 @@
-.TH HWINFO 8 "June 2009" "hwinfo" "System configuration"
+.TH HWINFO 8 "June 2016" "hwinfo" "System configuration"
 .\"
+.nh
 .SH NAME
 hwinfo \- probe for hardware
 .\"
@@ -27,6 +28,8 @@
 network, partition, pci, pcmcia, pcmcia-ctrl, pppoe, printer, redasd,
 reallyall, scanner, scsi, smp, sound, storage-ctrl, sys, tape, tv, uml, usb,
 usb-ctrl, vbe, wlan, xen, zip
+
+Note that if this option is missing, no hardware probing will be done!
 .TP
 \fB--short\fR
 Show only a summary. Use this option in addition to a hardware probing
@@ -36,8 +39,10 @@
 Normally hwinfo does not report RAID devices. Add this option to see them.
 .TP
 \fB--only \fIDEVNAME\fR
-This option can be given more than once. If you add this option, only data
-about devices with \fIDEVNAME\fR will be shown.
+This option can be given more than once. If you add this option
+only entries in the device list matching \fIDEVNAME\fR will be shown.
+Note that you also have to specify --<\fIHARDWARE_ITEM\fR> to trigger
+any device probing.
 .TP
 \fB--save-config \fISPEC\fR
 Store config for a particular device below /var/lib/hardware. \fISPEC\fR
@@ -54,13 +59,15 @@
 .TP
 \fB--debug \fIN\fR
 Set debug level to \fIN\fR. The debug info is shown only in the log file.
-If you specify a log file, the debug level is implicitly set to a reasonable 
value.
+If you specify a log file, the debug level is implicitly set to a reasonable 
value
+(N is a bitmask of individual flags).
 .TP
 \fB--verbose\fR
 Increase verbosity. Only together with --map.
 .TP
 \fB--log \fIFILE\fR
 Write log info to \fIFILE\fR.
+Don't forget to also specify --<\fIHARDWARE_ITEM\fR> to trigger any device 
probing.
 .TP
 \fB--dump-db \fIN\fR
 Dump hardware data base. \fIN\fR is either 0 for the external data base in
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.26/hwinfo.c new/hwinfo-21.27/hwinfo.c
--- old/hwinfo-21.26/hwinfo.c   2016-05-30 13:56:19.0 +0200
+++ new/hwinfo-21.27/hwinfo.c   2016-06-08 12:40:59.0 +0200
@@ -150,12 +150,16 @@
   { "memory", 0, NULL, 1000 + hw_memory },
   { "manual", 0, NULL, 1000 + hw_manual },
   { "pcmcia", 0, NULL, 1000 + 

commit hwinfo for openSUSE:Factory

2016-06-03 Thread h_root
Hello community,

here is the log from the commit of package hwinfo for openSUSE:Factory checked 
in at 2016-06-03 16:35:49

Comparing /work/SRC/openSUSE:Factory/hwinfo (Old)
 and  /work/SRC/openSUSE:Factory/.hwinfo.new (New)


Package is "hwinfo"

Changes:

--- /work/SRC/openSUSE:Factory/hwinfo/hwinfo.changes2016-04-28 
20:29:10.0 +0200
+++ /work/SRC/openSUSE:Factory/.hwinfo.new/hwinfo.changes   2016-06-03 
16:35:50.0 +0200
@@ -1,0 +2,14 @@
+Mon May 30 12:05:50 UTC 2016 - snw...@suse.com
+
+- change wording for SCSI reference
+- add reference to SCSI command specification
+- change type of serial_buf[] to unsigned char (bsc#980819)
+- 21.26
+
+---
+Mon May 30 10:00:21 UTC 2016 - snw...@suse.com
+
+- Correct comma placement after part-number
+- 21.25
+
+---

Old:

  hwinfo-21.24.tar.xz

New:

  hwinfo-21.26.tar.xz



Other differences:
--
++ hwinfo.spec ++
--- /var/tmp/diff_new_pack.bCRwPg/_old  2016-06-03 16:35:51.0 +0200
+++ /var/tmp/diff_new_pack.bCRwPg/_new  2016-06-03 16:35:51.0 +0200
@@ -36,7 +36,7 @@
 Group:  Hardware/Other
 # Until migration to github this should be correct url
 Url:http://gitorious.org/opensuse/hwinfo
-Version:21.24
+Version:21.26
 Release:0
 Source: %{name}-%{version}.tar.xz
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build

++ hwinfo-21.24.tar.xz -> hwinfo-21.26.tar.xz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.24/VERSION new/hwinfo-21.26/VERSION
--- old/hwinfo-21.24/VERSION2016-04-12 13:57:25.0 +0200
+++ new/hwinfo-21.26/VERSION2016-05-30 13:56:19.0 +0200
@@ -1 +1 @@
-21.24
+21.26
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.24/changelog new/hwinfo-21.26/changelog
--- old/hwinfo-21.24/changelog  2016-04-12 13:57:25.0 +0200
+++ new/hwinfo-21.26/changelog  2016-05-30 13:56:19.0 +0200
@@ -1,3 +1,11 @@
+2016-05-30:21.26
+   - change wording for SCSI reference
+   - add reference to SCSI command specification
+   - change type of serial_buf[] to unsigned char (bsc #980819)
+
+2016-05-27:21.25
+   - Correct comma placement after part-number
+
 2016-04-12:21.24
- adjust dmi parser to read memory size according to latest smbios spec 
(bsc #974737)
- adjust dmi parser to read memory size according to latest smbios spec 
(bsc #974737)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.24/src/hd/block.c 
new/hwinfo-21.26/src/hd/block.c
--- old/hwinfo-21.24/src/hd/block.c 2016-04-12 13:57:25.0 +0200
+++ new/hwinfo-21.26/src/hd/block.c 2016-05-30 13:56:19.0 +0200
@@ -708,6 +708,15 @@
 
 /*
  * assumes hd->drivers aleady includes scsi device drivers (like 'sd')
+ *
+ * The following code uses ioctl() calls to issue some SCSI commands
+ * directly (namely the INQUIRY command).
+ *
+ * For reference, and to understand the layout of the ioctl() calls below,
+ * google for a document named 'SCSI Primary Commands 5 (SPC-5)' (or more
+ * recent versions - it doesn't matter for our purpose).
+ *
+ * The latest draft is usually freely available but not directly downloadable.
  */
 void add_scsi_sysfs_info(hd_data_t *hd_data, hd_t *hd, char *sf_dev)
 {
@@ -992,7 +1001,7 @@
   str_printf(_str, 0, "%s serial", hd->unix_dev_name);
   PROGRESS(5, 2, pr_str);
 
-  char *serial_buf = NULL;
+  unsigned char *serial_buf = NULL;
   unsigned serial_buf_len = 0;
   memset(scsi_cmd_buf, 0, sizeof scsi_cmd_buf);
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.24/src/hd/prom.c 
new/hwinfo-21.26/src/hd/prom.c
--- old/hwinfo-21.24/src/hd/prom.c  2016-04-12 13:57:25.0 +0200
+++ new/hwinfo-21.26/src/hd/prom.c  2016-05-30 13:56:19.0 +0200
@@ -570,7 +570,7 @@
 
 if (strstr(devtree->path, "vpd") == devtree->path)
   ADD2LOG(
-"ccin \"%s\", fru-number \"%s\", location-code \"%s\", 
serial-number \"%s\", part-number \"%s,\"\n"
+"ccin \"%s\", fru-number \"%s\", location-code \"%s\", 
serial-number \"%s\", part-number \"%s\",\n"
 "description \"%s\"\n",
 devtree->ccin ? devtree->ccin : "",
 devtree->fru_number ? devtree->fru_number : "",




commit hwinfo for openSUSE:Factory

2016-04-28 Thread h_root
Hello community,

here is the log from the commit of package hwinfo for openSUSE:Factory checked 
in at 2016-04-28 20:29:09

Comparing /work/SRC/openSUSE:Factory/hwinfo (Old)
 and  /work/SRC/openSUSE:Factory/.hwinfo.new (New)


Package is "hwinfo"

Changes:

--- /work/SRC/openSUSE:Factory/hwinfo/hwinfo.changes2015-10-14 
16:35:03.0 +0200
+++ /work/SRC/openSUSE:Factory/.hwinfo.new/hwinfo.changes   2016-04-28 
20:29:10.0 +0200
@@ -1,0 +2,7 @@
+Tue Apr 12 18:21:49 UTC 2016 - snw...@suse.com
+
+- adjust dmi parser to read memory size according to latest smbios spec 
(bsc#974737)
+- adjust dmi parser to read memory size according to latest smbios spec 
(bsc#974737)
+- 21.24
+
+---

Old:

  hwinfo-21.23.tar.xz

New:

  hwinfo-21.24.tar.xz



Other differences:
--
++ hwinfo.spec ++
--- /var/tmp/diff_new_pack.SZcha9/_old  2016-04-28 20:29:11.0 +0200
+++ /var/tmp/diff_new_pack.SZcha9/_new  2016-04-28 20:29:11.0 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package hwinfo
 #
-# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2016 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
@@ -36,7 +36,7 @@
 Group:  Hardware/Other
 # Until migration to github this should be correct url
 Url:http://gitorious.org/opensuse/hwinfo
-Version:21.23
+Version:21.24
 Release:0
 Source: %{name}-%{version}.tar.xz
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build

++ hwinfo-21.23.tar.xz -> hwinfo-21.24.tar.xz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.23/VERSION new/hwinfo-21.24/VERSION
--- old/hwinfo-21.23/VERSION2015-10-09 14:41:05.0 +0200
+++ new/hwinfo-21.24/VERSION2016-04-12 13:57:25.0 +0200
@@ -1 +1 @@
-21.23
+21.24
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.23/changelog new/hwinfo-21.24/changelog
--- old/hwinfo-21.23/changelog  2015-10-09 14:41:05.0 +0200
+++ new/hwinfo-21.24/changelog  2016-04-12 13:57:25.0 +0200
@@ -1,3 +1,7 @@
+2016-04-12:21.24
+   - adjust dmi parser to read memory size according to latest smbios spec 
(bsc #974737)
+   - adjust dmi parser to read memory size according to latest smbios spec 
(bsc #974737)
+
 2015-10-09:21.23
- scsi serial id: read vpd page 0x80 from sysfs, if possible (bsc 
#949287)
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.23/src/hd/smbios.c 
new/hwinfo-21.24/src/hd/smbios.c
--- old/hwinfo-21.23/src/hd/smbios.c2015-10-09 14:41:05.0 +0200
+++ new/hwinfo-21.24/src/hd/smbios.c2016-04-12 13:57:25.0 +0200
@@ -472,7 +472,7 @@
   NULL, "Other", "Unknown", "SIMM",
   "SIP", "Chip", "DIP", "ZIP",
   "Proprietary Card", "DIMM", "TSOP", "Row of Chips",
-  "RIMM", "SODIMM", "SRIMM"
+  "RIMM", "SODIMM", "SRIMM", "FB-DIMM"
 };
 SMBIOS_DEF_MAP(smbios_memdevice_form);
 
@@ -993,6 +993,9 @@
   sm->memdevice.asset = get_string(sl_any, sm_data[0x19]);
   sm->memdevice.part = get_string(sl_any, sm_data[0x1a]);
 }
+if(data_len >= 0x20 && sm->memdevice.size == (0x7fff << 10)) {
+  sm->memdevice.size = (READ_MEM32(sm_data + 0x1c) & 0x7fff) << 10;
+}
 break;
 
   case sm_memerror:




commit hwinfo for openSUSE:Factory

2015-10-14 Thread h_root
Hello community,

here is the log from the commit of package hwinfo for openSUSE:Factory checked 
in at 2015-10-14 16:35:02

Comparing /work/SRC/openSUSE:Factory/hwinfo (Old)
 and  /work/SRC/openSUSE:Factory/.hwinfo.new (New)


Package is "hwinfo"

Changes:

--- /work/SRC/openSUSE:Factory/hwinfo/hwinfo.changes2015-09-24 
07:18:20.0 +0200
+++ /work/SRC/openSUSE:Factory/.hwinfo.new/hwinfo.changes   2015-10-14 
16:35:03.0 +0200
@@ -1,0 +2,13 @@
+Fri Oct  9 12:43:18 UTC 2015 - snw...@suse.com
+
+- scsi serial id: read vpd page 0x80 from sysfs, if possible (bsc#949287)
+- 21.23
+
+---
+Tue Sep 29 09:21:03 UTC 2015 - snw...@suse.com
+
+- Add a general README.md
+- Split README into README-legacy and README-hwprobe
+- 21.22
+
+---

Old:

  hwinfo-21.21.tar.xz

New:

  hwinfo-21.23.tar.xz



Other differences:
--
++ hwinfo.spec ++
--- /var/tmp/diff_new_pack.bc47Tc/_old  2015-10-14 16:35:04.0 +0200
+++ /var/tmp/diff_new_pack.bc47Tc/_new  2015-10-14 16:35:04.0 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package hwinfo
 #
-# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2015 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
@@ -36,7 +36,7 @@
 Group:  Hardware/Other
 # Until migration to github this should be correct url
 Url:http://gitorious.org/opensuse/hwinfo
-Version:21.21
+Version:21.23
 Release:0
 Source: %{name}-%{version}.tar.xz
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
@@ -107,7 +107,9 @@
 /usr/sbin/mk_isdnhwdb
 /usr/sbin/getsysinfo
 %{_libdir}/libhd.so.*
-%doc README
+%doc README.md
+%doc README-hwprobe.md
+%doc README-legacy.md
 %doc %{_mandir}/man1/getsysinfo.1*
 %doc %{_mandir}/man1/mk_isdnhwdb.1*
 %doc %{_mandir}/man8/hwinfo.8*

++ hwinfo-21.21.tar.xz -> hwinfo-21.23.tar.xz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.21/README new/hwinfo-21.23/README
--- old/hwinfo-21.21/README 2015-09-17 13:20:32.0 +0200
+++ new/hwinfo-21.23/README 1970-01-01 01:00:00.0 +0100
@@ -1,143 +0,0 @@
-See hwinfo man page for general usage instructions.
-
-This document describes some legacy features and the "hwprobe" environment 
variable.
-
-
-1. Legacy
-=
-
-***  Note: please do not do this, this is only kept to assist debugging.  ***
-
-Legacy mode is activated when no option starting with "--" is given. In this 
case hwinfo
-works as follows:
-
-  hwinfo [debug=deb_flag] [log=log_file] [list[+]=hw_item] 
[[+|-]probe_option1] [[+|-]probe_option2] ...
-
-Examples:
-
-  hwinfo
-- probes for nearly everything
-
-  hwinfo +all
-- probes for everything
-
-  hwinfo log=hw_log
-- default probing, output is written to hw_log
-  *** Please don't use "hwinfo >some_log 2>&1" to store the output into a
-  log file! ***
-
-  hwinfo -all +pci +int
-- probe for pci devices
-
-Note that "int" should almost always be active.
-
-Some probing flags do not stand for complete modules but enable additional
-features; e.g. "bios.vesa" or "block.cdrom".
-
-Example:
-  hwinfo -all +block +int
-  gives a list of all block devs
-
-  hwinfo -all +block.cdrom +int
-  additionally reads the iso9660 info
-
-The list of supported flags varies from version to version. To get a list of
-the actual set of probing flags, call "hwinfo -all" and look at the top of
-the log.
-
-
-2. Environment variable/kernel cmdline parameter
-
-
-You can control the hardware probing using the environment variable
-"hwprobe" and the kernel cmdline parameter "hwprobe".
-
-If "hwprobe" is set on the kernel cmdline, the environment variable
-"hwprobe" is ignored. Otherwise, the meaning of both is exactly the same.
-
-  hwprobe
-- Controls which probing flags should *always* be set/cleared. (These
-  settings *cannot* be overridden by command line switches.)
-
-  Examples:
-hwprobe=-isapnp
-  o *never* do any isapnp probing
-
-hwprobe=-braille,-modem
-  o don't look for braille displays & modems
-
-- Allows you to add and remove hardware from the probing results. In this 
case
-  the syntax is (-: remove, +: add at end of list, : add at begin 
of
-  list):
-hwprobe=[+-]::[:]
-
-  ,  and  are device ids as used by 
libhd.
-  See the output of hwinfo for examples. In connection with 

commit hwinfo for openSUSE:Factory

2015-09-23 Thread h_root
Hello community,

here is the log from the commit of package hwinfo for openSUSE:Factory checked 
in at 2015-09-24 07:18:18

Comparing /work/SRC/openSUSE:Factory/hwinfo (Old)
 and  /work/SRC/openSUSE:Factory/.hwinfo.new (New)


Package is "hwinfo"

Changes:

--- /work/SRC/openSUSE:Factory/hwinfo/hwinfo.changes2015-08-29 
20:02:05.0 +0200
+++ /work/SRC/openSUSE:Factory/.hwinfo.new/hwinfo.changes   2015-09-24 
07:18:20.0 +0200
@@ -1,0 +2,6 @@
+Thu Sep 17 11:21:47 UTC 2015 - snw...@suse.com
+
+- adjust disk device info gathering after nvme driver change (bsc#943008)
+- 21.21
+
+---

Old:

  hwinfo-21.20.tar.xz

New:

  hwinfo-21.21.tar.xz



Other differences:
--
++ hwinfo.spec ++
--- /var/tmp/diff_new_pack.IjP5ZW/_old  2015-09-24 07:18:21.0 +0200
+++ /var/tmp/diff_new_pack.IjP5ZW/_new  2015-09-24 07:18:21.0 +0200
@@ -36,7 +36,7 @@
 Group:  Hardware/Other
 # Until migration to github this should be correct url
 Url:http://gitorious.org/opensuse/hwinfo
-Version:21.20
+Version:21.21
 Release:0
 Source: %{name}-%{version}.tar.xz
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build

++ hwinfo-21.20.tar.xz -> hwinfo-21.21.tar.xz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.20/VERSION new/hwinfo-21.21/VERSION
--- old/hwinfo-21.20/VERSION2015-08-27 14:10:17.0 +0200
+++ new/hwinfo-21.21/VERSION2015-09-17 13:20:32.0 +0200
@@ -1 +1 @@
-21.20
+21.21
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.20/changelog new/hwinfo-21.21/changelog
--- old/hwinfo-21.20/changelog  2015-08-27 14:10:17.0 +0200
+++ new/hwinfo-21.21/changelog  2015-09-17 13:20:32.0 +0200
@@ -1,3 +1,6 @@
+2015-09-17:21.21
+   - adjust disk device info gathering after nvme driver change (bsc 
#943008)
+
 2015-08-27:21.20
- added some comments
- updated pci id data from http://pci-ids.ucw.cz
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.20/src/hd/block.c 
new/hwinfo-21.21/src/hd/block.c
--- old/hwinfo-21.20/src/hd/block.c 2015-08-27 14:10:17.0 +0200
+++ new/hwinfo-21.21/src/hd/block.c 2015-09-17 13:20:32.0 +0200
@@ -274,6 +274,7 @@
 if(!strcmp(bus_name, "ide")) hd->bus.id = bus_ide;
 else if(!strcmp(bus_name, "scsi")) hd->bus.id = bus_scsi;
 else if(!strcmp(bus_name, "pci")) hd->bus.id = bus_pci;
+else if(!strcmp(bus_name, "nvme")) hd->bus.id = bus_pci;
   }
   hd->sysfs_bus_id = new_str(bus_id);
 
@@ -332,7 +333,25 @@
 add_ide_sysfs_info(hd_data, hd);
   }
   else if(hd->bus.id == bus_scsi || hd->bus.id == bus_pci) {
-add_scsi_sysfs_info(hd_data, hd, sf_dev);
+/*
+ * In case there's no data in the 'device' subdir but in
+ * 'device/device', try one level deeper (for some capricious
+ * drivers).
+ */
+if(
+  !get_sysfs_attr_by_path(sf_dev, "vendor") &&
+  get_sysfs_attr_by_path(sf_dev, "device/vendor")
+) {
+  char *x_dev = NULL;
+
+  str_printf(_dev, 0, "%s/device", sf_dev);
+  add_scsi_sysfs_info(hd_data, hd, x_dev);
+
+  free_mem(x_dev);
+}
+else {
+  add_scsi_sysfs_info(hd_data, hd, sf_dev);
+}
   }
   else {
 add_other_sysfs_info(hd_data, hd);




commit hwinfo for openSUSE:Factory

2015-08-29 Thread h_root
Hello community,

here is the log from the commit of package hwinfo for openSUSE:Factory checked 
in at 2015-08-29 20:02:04

Comparing /work/SRC/openSUSE:Factory/hwinfo (Old)
 and  /work/SRC/openSUSE:Factory/.hwinfo.new (New)


Package is hwinfo

Changes:

--- /work/SRC/openSUSE:Factory/hwinfo/hwinfo.changes2015-08-10 
09:09:30.0 +0200
+++ /work/SRC/openSUSE:Factory/.hwinfo.new/hwinfo.changes   2015-08-29 
20:02:05.0 +0200
@@ -1,0 +2,12 @@
+Thu Aug 27 14:18:58 CEST 2015 - snw...@suse.com
+
+- added some comments
+- updated pci id data from http://pci-ids.ucw.cz
+- udated usb id data from http://www.linux-usb.org/usb.ids
+- add pci ids to nvme devices
+- watch out: nvme disks are pci devices
+- update git2log script
+- read disk model info also via scsi inquiry command (bsc#943008)
+- 21.20
+
+---

Old:

  hwinfo-21.19.tar.xz

New:

  hwinfo-21.20.tar.xz



Other differences:
--
++ hwinfo.spec ++
--- /var/tmp/diff_new_pack.VZpFRn/_old  2015-08-29 20:02:06.0 +0200
+++ /var/tmp/diff_new_pack.VZpFRn/_new  2015-08-29 20:02:06.0 +0200
@@ -36,7 +36,7 @@
 Group:  Hardware/Other
 # Until migration to github this should be correct url
 Url:http://gitorious.org/opensuse/hwinfo
-Version:21.19
+Version:21.20
 Release:0
 Source: %{name}-%{version}.tar.xz
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build

++ hwinfo-21.19.tar.xz - hwinfo-21.20.tar.xz ++
 271484 lines of diff (skipped)




commit hwinfo for openSUSE:Factory

2015-08-10 Thread h_root
Hello community,

here is the log from the commit of package hwinfo for openSUSE:Factory checked 
in at 2015-08-10 09:09:29

Comparing /work/SRC/openSUSE:Factory/hwinfo (Old)
 and  /work/SRC/openSUSE:Factory/.hwinfo.new (New)


Package is hwinfo

Changes:

--- /work/SRC/openSUSE:Factory/hwinfo/hwinfo.changes2015-07-14 
17:20:06.0 +0200
+++ /work/SRC/openSUSE:Factory/.hwinfo.new/hwinfo.changes   2015-08-10 
09:09:30.0 +0200
@@ -1,0 +2,12 @@
+Thu Aug  6 16:11:04 CEST 2015 - snw...@suse.com
+
+- update git2log script to create nicer logs
+- 21.19
+
+---
+Thu Aug  6 11:41:07 CEST 2015 - snw...@suse.com
+
+- Expose more properties to all devices in /proc/device-tree/vpd
+- 21.18
+
+---

Old:

  hwinfo-21.17.tar.xz

New:

  hwinfo-21.19.tar.xz



Other differences:
--
++ hwinfo.spec ++
--- /var/tmp/diff_new_pack.cp6yw6/_old  2015-08-10 09:09:31.0 +0200
+++ /var/tmp/diff_new_pack.cp6yw6/_new  2015-08-10 09:09:31.0 +0200
@@ -36,7 +36,7 @@
 Group:  Hardware/Other
 # Until migration to github this should be correct url
 Url:http://gitorious.org/opensuse/hwinfo
-Version:21.17
+Version:21.19
 Release:0
 Source: %{name}-%{version}.tar.xz
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build

++ hwinfo-21.17.tar.xz - hwinfo-21.19.tar.xz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.17/VERSION new/hwinfo-21.19/VERSION
--- old/hwinfo-21.17/VERSION2015-06-25 15:23:11.0 +0200
+++ new/hwinfo-21.19/VERSION2015-08-06 16:06:46.0 +0200
@@ -1 +1 @@
-21.17
+21.19
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.17/changelog new/hwinfo-21.19/changelog
--- old/hwinfo-21.17/changelog  2015-06-25 15:23:11.0 +0200
+++ new/hwinfo-21.19/changelog  2015-08-06 16:06:46.0 +0200
@@ -1,3 +1,9 @@
+2015-08-06:21.19
+   - update git2log script to create nicer logs
+
+2015-08-06:21.18
+   - Expose more properties to all devices in /proc/device-tree/vpd
+
 2015-06-23:21.17
- hd: Use linux/pci.h instead of sys/pci.h
- hd/hd.c: canonicalize_file_name(s) is equivalent to the more portable 
realpath(s,NULL)
@@ -81,7 +87,7 @@
- VMWare - VMware (bnc #536888)
 
 2013-11-27:21.0
-   - read and add ethtool private flags (bnc 841170)
+   - read and add ethtool private flags (bnc #841170)
- update pci id list (bnc #813172)
- Add support for m68k
 
@@ -111,8 +117,6 @@
- fix network detection if several interfaces are attached to a single 
pci function (bnc #693090)
- fixed typo
- USB joystick fixes
-   - replace USB details by joystick details
-   - set unix_dev_name2 to /dev/input/jsX
- added Gameport bus, detect gameport joysticks
- cleanup - removed unused variables
- added NULL checks
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.17/git2log new/hwinfo-21.19/git2log
--- old/hwinfo-21.17/git2log2015-06-25 15:23:11.0 +0200
+++ new/hwinfo-21.19/git2log2015-08-06 16:06:46.0 +0200
@@ -1,5 +1,7 @@
 #! /usr/bin/perl
 
+use strict;
+
 use Getopt::Long;
 
 use Data::Dumper;
@@ -8,27 +10,43 @@
 $Data::Dumper::Indent = 1;
 
 sub usage;
+sub get_branch_tags;
+sub get_branch;
+sub get_parent_branch;
+sub get_version;
 
 usage 0 if !@ARGV;
 
-@deps = qw ( .git/HEAD .git/refs/heads .git/refs/tags );
+my @deps = qw ( .git/HEAD .git/refs/heads .git/refs/tags );
+
+my $branch;
+my $current_version;
+my @tags;
+my @all_tags;
+
+my $opt_log;
+my $opt_version;
+my $opt_branch;
+my $opt_update;
+my $opt_file;
 
 GetOptions(
   'help'  = sub { usage 0 },
   'version'   = \$opt_version,
+  'branch'= \$opt_branch,
   'update'= \$opt_update,
   'log|changelog' = \$opt_log,
 ) || usage 1;
 
-usage 1 if @ARGV  1 || !($opt_log || $opt_version);
+usage 1 if @ARGV  1 || !($opt_log || $opt_version || $opt_branch);
 $opt_file = @ARGV ? shift : '-';
 
 die no git repo\n unless -d .git;
 
 if($opt_update  $opt_file ne '-'  -f($opt_file)) {
-  $ok = 1;
+  my $ok = 1;
 
-  $t = (stat $opt_file)[9];
+  my $t = (stat $opt_file)[9];
 
   for (@deps) {
 $ok = 0 if (stat)[9]  $t;
@@ -37,57 +55,51 @@
   exit 0 if $ok;
 }
 
-for (`git branch`) {
-  if(/^\*\s+(\S+)/) {
-$branch = $1;
-last;
-  }
-}
-
-$branch = master if $branch eq '(no';
+@all_tags = `git tag`;
+chomp @all_tags;
 
+$branch = get_branch;
 die no branch?\n 

commit hwinfo for openSUSE:Factory

2015-07-14 Thread h_root
Hello community,

here is the log from the commit of package hwinfo for openSUSE:Factory checked 
in at 2015-07-14 17:20:04

Comparing /work/SRC/openSUSE:Factory/hwinfo (Old)
 and  /work/SRC/openSUSE:Factory/.hwinfo.new (New)


Package is hwinfo

Changes:

--- /work/SRC/openSUSE:Factory/hwinfo/hwinfo.changes2015-06-16 
14:05:03.0 +0200
+++ /work/SRC/openSUSE:Factory/.hwinfo.new/hwinfo.changes   2015-07-14 
17:20:06.0 +0200
@@ -1,0 +2,9 @@
+Thu Jun 25 15:26:04 CEST 2015 - snw...@suse.com
+
+- hd: Use linux/pci.h instead of sys/pci.h
+- hd/hd.c: canonicalize_file_name(s) is equivalent to the more portable 
realpath(s,NULL)
+- isdn/cdn: don't use stdin as lvalue with freopen()
+- hd/manual.c: Include limits.h for PATH_MAX
+- 21.17
+
+---

Old:

  hwinfo-21.16.tar.xz

New:

  hwinfo-21.17.tar.xz



Other differences:
--
++ hwinfo.spec ++
--- /var/tmp/diff_new_pack.nbUBiw/_old  2015-07-14 17:20:07.0 +0200
+++ /var/tmp/diff_new_pack.nbUBiw/_new  2015-07-14 17:20:07.0 +0200
@@ -36,7 +36,7 @@
 Group:  Hardware/Other
 # Until migration to github this should be correct url
 Url:http://gitorious.org/opensuse/hwinfo
-Version:21.16
+Version:21.17
 Release:0
 Source: %{name}-%{version}.tar.xz
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build

++ hwinfo-21.16.tar.xz - hwinfo-21.17.tar.xz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.16/VERSION new/hwinfo-21.17/VERSION
--- old/hwinfo-21.16/VERSION2015-06-15 13:44:34.0 +0200
+++ new/hwinfo-21.17/VERSION2015-06-25 15:23:11.0 +0200
@@ -1 +1 @@
-21.16
+21.17
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.16/changelog new/hwinfo-21.17/changelog
--- old/hwinfo-21.16/changelog  2015-06-15 13:44:34.0 +0200
+++ new/hwinfo-21.17/changelog  2015-06-25 15:23:11.0 +0200
@@ -1,3 +1,9 @@
+2015-06-23:21.17
+   - hd: Use linux/pci.h instead of sys/pci.h
+   - hd/hd.c: canonicalize_file_name(s) is equivalent to the more portable 
realpath(s,NULL)
+   - isdn/cdn: don't use stdin as lvalue with freopen()
+   - hd/manual.c: Include limits.h for PATH_MAX
+
 2015-06-15:21.16
- another Makefile fix
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.16/src/hd/bios.c 
new/hwinfo-21.17/src/hd/bios.c
--- old/hwinfo-21.16/src/hd/bios.c  2015-06-15 13:44:34.0 +0200
+++ new/hwinfo-21.17/src/hd/bios.c  2015-06-25 15:23:11.0 +0200
@@ -9,7 +9,7 @@
 #if defined(__i386__) || defined (__x86_64__) || defined(__ia64__)
 #include sys/io.h
 #endif
-#include sys/pci.h
+#include linux/pci.h
 
 #include hd.h
 #include hd_int.h
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.16/src/hd/hd.c new/hwinfo-21.17/src/hd/hd.c
--- old/hwinfo-21.16/src/hd/hd.c2015-06-15 13:44:34.0 +0200
+++ new/hwinfo-21.17/src/hd/hd.c2015-06-25 15:23:11.0 +0200
@@ -1,4 +1,4 @@
-#define _GNU_SOURCE/* canonicalize_file_name(), strcasestr() */
+#define _GNU_SOURCE/* strcasestr() */
 #include stdio.h
 #include stdlib.h
 #include string.h
@@ -2638,7 +2638,7 @@
   str_printf(s, 0, %s/%s, base_dir, link_name);
 
   free_mem(buf);
-  buf = canonicalize_file_name(s);
+  buf = realpath(s, NULL);
 
   free_mem(s);
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.16/src/hd/int.c 
new/hwinfo-21.17/src/hd/int.c
--- old/hwinfo-21.16/src/hd/int.c   2015-06-15 13:44:34.0 +0200
+++ new/hwinfo-21.17/src/hd/int.c   2015-06-25 15:23:11.0 +0200
@@ -2,7 +2,7 @@
 #include stdlib.h
 #include string.h
 #include unistd.h
-#include sys/pci.h
+#include linux/pci.h
 #include sys/types.h
 #include sys/stat.h
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.16/src/hd/manual.c 
new/hwinfo-21.17/src/hd/manual.c
--- old/hwinfo-21.16/src/hd/manual.c2015-06-15 13:44:34.0 +0200
+++ new/hwinfo-21.17/src/hd/manual.c2015-06-25 15:23:11.0 +0200
@@ -4,6 +4,7 @@
 #include unistd.h
 #include dirent.h
 #include ctype.h
+#include limits.h
 #include sys/types.h
 #include sys/stat.h
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.16/src/hd/pci.c 
new/hwinfo-21.17/src/hd/pci.c
--- old/hwinfo-21.16/src/hd/pci.c   2015-06-15 13:44:34.0 +0200
+++ 

commit hwinfo for openSUSE:Factory

2015-06-16 Thread h_root
Hello community,

here is the log from the commit of package hwinfo for openSUSE:Factory checked 
in at 2015-06-16 14:05:02

Comparing /work/SRC/openSUSE:Factory/hwinfo (Old)
 and  /work/SRC/openSUSE:Factory/.hwinfo.new (New)


Package is hwinfo

Changes:

--- /work/SRC/openSUSE:Factory/hwinfo/hwinfo.changes2015-06-04 
08:50:11.0 +0200
+++ /work/SRC/openSUSE:Factory/.hwinfo.new/hwinfo.changes   2015-06-16 
14:05:03.0 +0200
@@ -1,0 +2,22 @@
+Mon Jun 15 13:46:21 CEST 2015 - snw...@suse.com
+
+- another Makefile fix
+- 21.16
+
+---
+Mon Jun 15 12:22:50 CEST 2015 - snw...@suse.com
+
+- fix Makefile typo
+- 21.15
+
+---
+Fri Jun  5 10:15:56 CEST 2015 - snw...@suse.com
+
+- adjusting Makefile
+- use pkg-config for dbus
+- allow to build outside git repository
+- update compiler flags
+- fix spelling errors
+- 21.14
+
+---

Old:

  hwinfo-21.13.tar.xz

New:

  hwinfo-21.16.tar.xz



Other differences:
--
++ hwinfo.spec ++
--- /var/tmp/diff_new_pack.YJky3B/_old  2015-06-16 14:05:04.0 +0200
+++ /var/tmp/diff_new_pack.YJky3B/_new  2015-06-16 14:05:04.0 +0200
@@ -36,7 +36,7 @@
 Group:  Hardware/Other
 # Until migration to github this should be correct url
 Url:http://gitorious.org/opensuse/hwinfo
-Version:21.13
+Version:21.16
 Release:0
 Source: %{name}-%{version}.tar.xz
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build

++ hwinfo-21.13.tar.xz - hwinfo-21.16.tar.xz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.13/Makefile new/hwinfo-21.16/Makefile
--- old/hwinfo-21.13/Makefile   2015-06-03 10:06:24.0 +0200
+++ new/hwinfo-21.16/Makefile   2015-06-15 13:44:34.0 +0200
@@ -12,16 +12,20 @@
 
 GIT2LOG := $(shell if [ -x ./git2log ] ; then echo ./git2log --update ; else 
echo true ; fi)
 GITDEPS := $(shell [ -d .git ]  echo .git/HEAD .git/refs/heads 
.git/refs/tags)
+BRANCH  := $(shell [ -d .git ]  git branch | perl -ne 'print $$_ if 
s/^\*\s*//')
+ifdef HWINFO_VERSION
+VERSION := $(shell echo ${HWINFO_VERSION}  VERSION; cat VERSION)
+else
 VERSION := $(shell $(GIT2LOG) --version VERSION ; cat VERSION)
-BRANCH  := $(shell git branch | perl -ne 'print $$_ if s/^\*\s*//')
+endif
 PREFIX  := hwinfo-$(VERSION)
 
 include Makefile.common
 
 ifeq $(ARCH) x86_64
-LIBDIR = /usr/lib64
+LIBDIR ?= /usr/lib64
 else
-LIBDIR = /usr/lib
+LIBDIR ?= /usr/lib
 endif
 ULIBDIR= $(LIBDIR)
 
@@ -38,20 +42,25 @@
 
 .PHONY:fullstatic static shared tiny doc diet tinydiet uc tinyuc
 
+ifdef HWINFO_VERSION
+changelog:
+   @true
+else
 changelog: $(GITDEPS)
$(GIT2LOG) --changelog changelog
+endif
 
 hwscan: hwscan.o $(LIBHD)
-   $(CC) hwscan.o $(LDFLAGS) $(LIBS) -o $@
+   $(CC) hwscan.o $(LDFLAGS) $(CFLAGS) $(LIBS) -o $@
 
 hwinfo: hwinfo.o $(LIBHD)
-   $(CC) hwinfo.o $(LDFLAGS) $(LIBS) -o $@
+   $(CC) hwinfo.o $(LDFLAGS) $(CFLAGS) $(LIBS) -o $@
 
 hwscand: hwscand.o
-   $(CC) $ $(LDFLAGS) -o $@
+   $(CC) $ $(LDFLAGS) $(CFLAGS) -o $@
 
 hwscanqueue: hwscanqueue.o
-   $(CC) $ $(LDFLAGS) -o $@
+   $(CC) $ $(LDFLAGS) $(CFLAGS) -o $@
 
 hwinfo.pc: hwinfo.pc.in VERSION
VERSION=`cat VERSION`; \
@@ -114,6 +123,7 @@
install -m 644 src/isdn/cdb/ISDN.CDB.hwdb $(DESTDIR)/usr/share/hwinfo
 
 archive: changelog
+   @if [ ! -d .git ] ; then echo no git repo ; false ; fi
mkdir -p package
git archive --prefix=$(PREFIX)/ $(BRANCH)  package/$(PREFIX).tar
tar -r -f package/$(PREFIX).tar --mode=0664 --owner=root --group=root 
--mtime=`git show -s --format=%ci` --transform='s:^:$(PREFIX)/:' VERSION 
changelog
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.13/Makefile.common 
new/hwinfo-21.16/Makefile.common
--- old/hwinfo-21.13/Makefile.common2015-06-03 10:06:24.0 +0200
+++ new/hwinfo-21.16/Makefile.common2015-06-15 13:44:34.0 +0200
@@ -20,12 +20,12 @@
 
 RPM_OPT_FLAGS  ?= -O2
 
-CC = gcc
+CC ?= gcc
 LD = ld
-CFLAGS = $(RPM_OPT_FLAGS) -Wall -Wno-pointer-sign -pipe -g $(SHARED_FLAGS) 
$(EXTRA_FLAGS) -I$(TOPDIR)/src/hd
+CFLAGS += $(RPM_OPT_FLAGS) -Wall -Wno-pointer-sign -pipe -g $(SHARED_FLAGS) 
$(EXTRA_FLAGS) -I$(TOPDIR)/src/hd
 SHARED_FLAGS   = -fPIC
 
-LDFLAGS= -Lsrc
+LDFLAGS+= -Lsrc
 
 CFILES = $(wildcard *.c)
 OBJS   = $(CFILES:.c=.o)
@@ -41,7 +41,7 @@
 .PHONY: all distclean clean 

commit hwinfo for openSUSE:Factory

2015-06-04 Thread h_root
Hello community,

here is the log from the commit of package hwinfo for openSUSE:Factory checked 
in at 2015-06-04 08:50:10

Comparing /work/SRC/openSUSE:Factory/hwinfo (Old)
 and  /work/SRC/openSUSE:Factory/.hwinfo.new (New)


Package is hwinfo

Changes:

--- /work/SRC/openSUSE:Factory/hwinfo/hwinfo.changes2015-03-03 
11:11:18.0 +0100
+++ /work/SRC/openSUSE:Factory/.hwinfo.new/hwinfo.changes   2015-06-04 
08:50:11.0 +0200
@@ -1,0 +2,13 @@
+Wed Jun  3 10:11:00 CEST 2015 - snw...@suse.com
+
+- bugzilla for all this: bsc#913360
+- do not print anything to the console
+- Collect and print Week of Manufacture EDID data
+- increase monitor list size
+- refactor monitor detection
+- dump extra monitor data
+- initial support for detecting monitor via sysfs
+- Makefile - use /usr/lib64 by default on x86_64
+- 21.13
+
+---

Old:

  hwinfo-21.12.tar.xz

New:

  hwinfo-21.13.tar.xz



Other differences:
--
++ hwinfo.spec ++
--- /var/tmp/diff_new_pack.RMu671/_old  2015-06-04 08:50:12.0 +0200
+++ /var/tmp/diff_new_pack.RMu671/_new  2015-06-04 08:50:12.0 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package hwinfo
 #
-# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2015 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
@@ -36,7 +36,7 @@
 Group:  Hardware/Other
 # Until migration to github this should be correct url
 Url:http://gitorious.org/opensuse/hwinfo
-Version:21.12
+Version:21.13
 Release:0
 Source: %{name}-%{version}.tar.xz
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build

++ hwinfo-21.12.tar.xz - hwinfo-21.13.tar.xz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.12/Makefile new/hwinfo-21.13/Makefile
--- old/hwinfo-21.12/Makefile   2015-02-27 10:26:03.0 +0100
+++ new/hwinfo-21.13/Makefile   2015-06-03 10:06:24.0 +0200
@@ -2,8 +2,6 @@
 SUBDIRS= src
 TARGETS= hwinfo hwinfo.pc changelog
 CLEANFILES = hwinfo hwinfo.pc hwinfo.static hwscan hwscan.static hwscand 
hwscanqueue doc/libhd doc/*~
-LIBDIR = /usr/lib
-ULIBDIR= $(LIBDIR)
 LIBS   = -lhd
 SLIBS  = -lhd
 TLIBS  = -lhd_tiny
@@ -20,6 +18,13 @@
 
 include Makefile.common
 
+ifeq $(ARCH) x86_64
+LIBDIR = /usr/lib64
+else
+LIBDIR = /usr/lib
+endif
+ULIBDIR= $(LIBDIR)
+
 # ia64
 ifneq ($(filter i386 x86_64, $(ARCH)),)
 SLIBS  += -lx86emu
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.12/VERSION new/hwinfo-21.13/VERSION
--- old/hwinfo-21.12/VERSION2015-02-27 10:26:03.0 +0100
+++ new/hwinfo-21.13/VERSION2015-06-03 10:06:24.0 +0200
@@ -1 +1 @@
-21.12
+21.13
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.12/changelog new/hwinfo-21.13/changelog
--- old/hwinfo-21.12/changelog  2015-02-27 10:26:03.0 +0100
+++ new/hwinfo-21.13/changelog  2015-06-03 10:06:24.0 +0200
@@ -1,3 +1,12 @@
+2015-06-03:21.13
+   - do not print anything to the console
+   - Collect and print Week of Manufacture EDID data
+   - increase monitor list size
+   - refactor monitor detection
+   - dump extra monitor data
+   - initial support for detecting monitor via sysfs
+   - Makefile - use /usr/lib64 by default on x86_64
+
 2015-02-26:21.12
- Update aarch64 cpuinfo parser to handle post-3.19 format
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.12/src/hd/drm.c 
new/hwinfo-21.13/src/hd/drm.c
--- old/hwinfo-21.12/src/hd/drm.c   1970-01-01 01:00:00.0 +0100
+++ new/hwinfo-21.13/src/hd/drm.c   2015-06-03 10:06:24.0 +0200
@@ -0,0 +1,14 @@
+
+
+#include fcntl.h
+
+#include hd.h
+#include hd_int.h
+
+int is_kms_active(hd_data_t *hd_data) {
+  int kms = open(/sys/class/drm/card0, O_RDONLY)  0;
+  ADD2LOG(  KMS detected: %d\n, kms);
+
+  return kms; 
+}
+
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.12/src/hd/drm.h 
new/hwinfo-21.13/src/hd/drm.h
--- old/hwinfo-21.12/src/hd/drm.h   1970-01-01 01:00:00.0 +0100
+++ new/hwinfo-21.13/src/hd/drm.h   2015-06-03 10:06:24.0 +0200
@@ -0,0 +1,8 @@
+
+#ifndef DRM_H
+#define DRM_H
+
+int is_kms_active(hd_data_t *hd_data);
+
+#endif 

commit hwinfo for openSUSE:Factory

2015-03-03 Thread h_root
Hello community,

here is the log from the commit of package hwinfo for openSUSE:Factory checked 
in at 2015-03-03 11:11:16

Comparing /work/SRC/openSUSE:Factory/hwinfo (Old)
 and  /work/SRC/openSUSE:Factory/.hwinfo.new (New)


Package is hwinfo

Changes:

--- /work/SRC/openSUSE:Factory/hwinfo/hwinfo.changes2015-01-09 
20:52:15.0 +0100
+++ /work/SRC/openSUSE:Factory/.hwinfo.new/hwinfo.changes   2015-03-03 
11:11:18.0 +0100
@@ -1,0 +2,6 @@
+Fri Feb 27 10:31:12 CET 2015 - snw...@suse.com
+
+- Update aarch64 cpuinfo parser to handle post-3.19 format
+- 21.12
+
+---

Old:

  hwinfo-21.11.tar.xz

New:

  hwinfo-21.12.tar.xz



Other differences:
--
++ hwinfo.spec ++
--- /var/tmp/diff_new_pack.VbJRfo/_old  2015-03-03 11:11:19.0 +0100
+++ /var/tmp/diff_new_pack.VbJRfo/_new  2015-03-03 11:11:19.0 +0100
@@ -36,7 +36,7 @@
 Group:  Hardware/Other
 # Until migration to github this should be correct url
 Url:http://gitorious.org/opensuse/hwinfo
-Version:21.11
+Version:21.12
 Release:0
 Source: %{name}-%{version}.tar.xz
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build

++ hwinfo-21.11.tar.xz - hwinfo-21.12.tar.xz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.11/VERSION new/hwinfo-21.12/VERSION
--- old/hwinfo-21.11/VERSION2015-01-07 10:51:30.0 +0100
+++ new/hwinfo-21.12/VERSION2015-02-27 10:26:03.0 +0100
@@ -1 +1 @@
-21.11
+21.12
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.11/changelog new/hwinfo-21.12/changelog
--- old/hwinfo-21.11/changelog  2015-01-07 10:51:30.0 +0100
+++ new/hwinfo-21.12/changelog  2015-02-27 10:26:03.0 +0100
@@ -1,3 +1,6 @@
+2015-02-26:21.12
+   - Update aarch64 cpuinfo parser to handle post-3.19 format
+
 2015-01-06:21.11
- Add PowerNV platform support
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.11/src/hd/cpu.c 
new/hwinfo-21.12/src/hd/cpu.c
--- old/hwinfo-21.11/src/hd/cpu.c   2015-01-07 10:51:30.0 +0100
+++ new/hwinfo-21.12/src/hd/cpu.c   2015-02-27 10:26:03.0 +0100
@@ -121,6 +121,7 @@
   unsigned u;
   double bogo;
   char *t0, *t;
+  int old_format;
 #endif
 
 #ifdef __PPC__
@@ -280,64 +281,68 @@
   *model_id = *system_id = *serial_number = 0;
   cpu_variation = cpu_revision = 0;
   ct = 0; bogo = 0;
+  vendor_id = 0;
 
   hd_data-boot = boot_uboot;
 
   for(sl = hd_data-cpu; sl; sl = sl-next) {
-if(sscanf(sl-str, Processor   : %79[^\n], model_id) == 1) continue;
-if(sscanf(sl-str, Hardware: %79[^\n], system_id) == 1) continue;
-if(sscanf(sl-str, Features: %1000[^\n], features) == 1) 
continue;
-if(sscanf(sl-str, CPU variant : 0x%x, cpu_variation) == 1) 
continue;
-if(sscanf(sl-str, CPU implementer : 0x%x, vendor_id) == 1) continue;
-if(sscanf(sl-str, CPU revision: %d, cpu_revision) == 1) continue;
+if(sscanf(sl-str, Processor   : %79[^\n], model_id) == 1);
+if(sscanf(sl-str, Hardware: %79[^\n], system_id) == 1);
+if(sscanf(sl-str, Features: %1000[^\n], features) == 1);
+if(sscanf(sl-str, CPU variant : 0x%x, cpu_variation) == 1);
+if(sscanf(sl-str, CPU implementer : 0x%x, vendor_id) == 1);
+if(sscanf(sl-str, CPU revision: %d, cpu_revision) == 1);
 if(!bogo  sscanf(sl-str, BogoMIPS: %lg, bogo) == 1);
-if(strstr(sl-str, processor\t: ) == sl-str) cpus++;
-  }
-
-  /* if we didn't find any cpus, we might be running under qemu.
- So simulate just one CPU to make the rest happy. */
-  if(!cpus) cpus = 1;
-  for(u = 0; u  cpus; u++) {
-ct = new_mem(sizeof *ct);
-ct-architecture = arch_aarch64;
-ct-family = cpu_variation;
-ct-model = cpu_revision;
-ct-stepping = 0;
-ct-cache = 0;
-ct-clock = 0;
-ct-bogo = bogo;
-ct-platform = 0;
-if(*system_id) ct-platform = new_str(system_id);
-if(*model_id) ct-model_name = new_str(model_id);
-
-switch (vendor_id) {
-case 0x41: ct-vend_name = new_str(ARM Limited); break;
-case 0x44: ct-vend_name = new_str(Digital Equipment Corporation); break;
-case 0x4d: ct-vend_name = new_str(Motorola, Freescale Semiconductor 
Inc.); break;
-case 0x51: ct-vend_name = new_str(QUALCOMM Inc.); break;
-case 0x56: ct-vend_name = new_str(Marvell Semiconductor Inc.); break;
-case 0x69: ct-vend_name = new_str(Intel Corporation.); break;
-default:
- {
-   char buf[80];
-   sprintf(buf, unknown (%x), 

commit hwinfo for openSUSE:Factory

2015-01-09 Thread h_root
Hello community,

here is the log from the commit of package hwinfo for openSUSE:Factory checked 
in at 2015-01-09 20:52:11

Comparing /work/SRC/openSUSE:Factory/hwinfo (Old)
 and  /work/SRC/openSUSE:Factory/.hwinfo.new (New)


Package is hwinfo

Changes:

--- /work/SRC/openSUSE:Factory/hwinfo/hwinfo.changes2014-11-28 
08:47:06.0 +0100
+++ /work/SRC/openSUSE:Factory/.hwinfo.new/hwinfo.changes   2015-01-09 
20:52:15.0 +0100
@@ -1,0 +2,6 @@
+Wed Jan  7 10:56:10 CET 2015 - snw...@suse.com
+
+- Add PowerNV platform support
+- 21.11
+
+---

Old:

  hwinfo-21.10.tar.xz

New:

  hwinfo-21.11.tar.xz



Other differences:
--
++ hwinfo.spec ++
--- /var/tmp/diff_new_pack.iuKQud/_old  2015-01-09 20:52:16.0 +0100
+++ /var/tmp/diff_new_pack.iuKQud/_new  2015-01-09 20:52:16.0 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package hwinfo
 #
-# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2015 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
@@ -36,7 +36,7 @@
 Group:  Hardware/Other
 # Until migration to github this should be correct url
 Url:http://gitorious.org/opensuse/hwinfo
-Version:21.10
+Version:21.11
 Release:0
 Source: %{name}-%{version}.tar.xz
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build

++ hwinfo-21.10.tar.xz - hwinfo-21.11.tar.xz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.10/VERSION new/hwinfo-21.11/VERSION
--- old/hwinfo-21.10/VERSION2014-11-26 13:26:14.0 +0100
+++ new/hwinfo-21.11/VERSION2015-01-07 10:51:30.0 +0100
@@ -1 +1 @@
-21.10
+21.11
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.10/changelog new/hwinfo-21.11/changelog
--- old/hwinfo-21.10/changelog  2014-11-26 13:26:14.0 +0100
+++ new/hwinfo-21.11/changelog  2015-01-07 10:51:30.0 +0100
@@ -1,3 +1,6 @@
+2015-01-06:21.11
+   - Add PowerNV platform support
+
 2014-11-26:21.10
- fixed distclean target in Makefile
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.10/src/hd/sys.c 
new/hwinfo-21.11/src/hd/sys.c
--- old/hwinfo-21.10/src/hd/sys.c   2014-11-26 13:26:14.0 +0100
+++ new/hwinfo-21.11/src/hd/sys.c   2015-01-07 10:51:30.0 +0100
@@ -88,6 +88,9 @@
   else if(strstr(buf0, CHRP)) {
 st-system_type = new_str(/* is_64 ? CHRP64 : */ CHRP);
   }
+  else if(strstr(buf0, PowerNV)) {
+st-system_type = new_str(PowerNV);
+  }
   else if(strstr(buf0, iSeries)) {
 st-system_type = new_str(iSeries);
 hd_data-flags.iseries = 1;

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



commit hwinfo for openSUSE:Factory

2014-11-27 Thread h_root
Hello community,

here is the log from the commit of package hwinfo for openSUSE:Factory checked 
in at 2014-11-28 08:47:04

Comparing /work/SRC/openSUSE:Factory/hwinfo (Old)
 and  /work/SRC/openSUSE:Factory/.hwinfo.new (New)


Package is hwinfo

Changes:

--- /work/SRC/openSUSE:Factory/hwinfo/hwinfo.changes2014-11-26 
10:32:45.0 +0100
+++ /work/SRC/openSUSE:Factory/.hwinfo.new/hwinfo.changes   2014-11-28 
08:47:06.0 +0100
@@ -1,0 +2,6 @@
+Wed Nov 26 13:26:56 CET 2014 - snwint_jenk...@suse.com
+
+- fixed distclean target in Makefile
+- 21.10
+
+---

Old:

  hwinfo-21.9.tar.xz

New:

  hwinfo-21.10.tar.xz



Other differences:
--
++ hwinfo.spec ++
--- /var/tmp/diff_new_pack.WGUELL/_old  2014-11-28 08:47:07.0 +0100
+++ /var/tmp/diff_new_pack.WGUELL/_new  2014-11-28 08:47:07.0 +0100
@@ -36,7 +36,7 @@
 Group:  Hardware/Other
 # Until migration to github this should be correct url
 Url:http://gitorious.org/opensuse/hwinfo
-Version:21.9
+Version:21.10
 Release:0
 Source: %{name}-%{version}.tar.xz
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build

++ hwinfo-21.9.tar.xz - hwinfo-21.10.tar.xz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.9/Makefile.common 
new/hwinfo-21.10/Makefile.common
--- old/hwinfo-21.9/Makefile.common 2014-11-24 15:01:48.0 +0100
+++ new/hwinfo-21.10/Makefile.common2014-11-26 13:26:14.0 +0100
@@ -58,6 +58,7 @@
 
 distclean: subdirs
@rm -rf $(OBJS) .depend $(CLEANFILES) $(DISTCLEANFILES) *~
+   @rm -rf package
 
 ifneq $(CFILES) 
 ifeq ($(findstring $(MAKECMDGOALS), clean distclean),)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.9/VERSION new/hwinfo-21.10/VERSION
--- old/hwinfo-21.9/VERSION 2014-11-24 15:01:48.0 +0100
+++ new/hwinfo-21.10/VERSION2014-11-26 13:26:14.0 +0100
@@ -1 +1 @@
-21.9
+21.10
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.9/changelog new/hwinfo-21.10/changelog
--- old/hwinfo-21.9/changelog   2014-11-24 15:01:48.0 +0100
+++ new/hwinfo-21.10/changelog  2014-11-26 13:26:14.0 +0100
@@ -1,3 +1,6 @@
+2014-11-26:21.10
+   - fixed distclean target in Makefile
+
 2014-11-24:21.9
- add arm platform devices
 

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



commit hwinfo for openSUSE:Factory

2014-11-26 Thread h_root
Hello community,

here is the log from the commit of package hwinfo for openSUSE:Factory checked 
in at 2014-11-26 10:32:42

Comparing /work/SRC/openSUSE:Factory/hwinfo (Old)
 and  /work/SRC/openSUSE:Factory/.hwinfo.new (New)


Package is hwinfo

Changes:

--- /work/SRC/openSUSE:Factory/hwinfo/hwinfo.changes2014-11-10 
17:28:00.0 +0100
+++ /work/SRC/openSUSE:Factory/.hwinfo.new/hwinfo.changes   2014-11-26 
10:32:45.0 +0100
@@ -1,0 +2,6 @@
+Mon Nov 24 15:10:26 CET 2014 - snwint_jenk...@suse.com
+
+- add arm platform devices
+- 21.9
+
+---

Old:

  hwinfo-21.8.tar.xz

New:

  hwinfo-21.9.tar.xz



Other differences:
--
++ hwinfo.spec ++
--- /var/tmp/diff_new_pack.ASUu5o/_old  2014-11-26 10:32:46.0 +0100
+++ /var/tmp/diff_new_pack.ASUu5o/_new  2014-11-26 10:32:46.0 +0100
@@ -36,7 +36,7 @@
 Group:  Hardware/Other
 # Until migration to github this should be correct url
 Url:http://gitorious.org/opensuse/hwinfo
-Version:21.8
+Version:21.9
 Release:0
 Source: %{name}-%{version}.tar.xz
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build

++ hwinfo-21.8.tar.xz - hwinfo-21.9.tar.xz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.8/VERSION new/hwinfo-21.9/VERSION
--- old/hwinfo-21.8/VERSION 2014-11-07 08:20:34.0 +0100
+++ new/hwinfo-21.9/VERSION 2014-11-24 15:01:48.0 +0100
@@ -1 +1 @@
-21.8
+21.9
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.8/changelog new/hwinfo-21.9/changelog
--- old/hwinfo-21.8/changelog   2014-11-07 08:20:34.0 +0100
+++ new/hwinfo-21.9/changelog   2014-11-24 15:01:48.0 +0100
@@ -1,3 +1,6 @@
+2014-11-24:21.9
+   - add arm platform devices
+
 2014-11-07:21.8
- fix bashisms in getsysinfo script
- mark gen-hwcfg-disk.sh as shell, no bash script
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.8/src/hd/pci.c new/hwinfo-21.9/src/hd/pci.c
--- old/hwinfo-21.8/src/hd/pci.c2014-11-07 08:20:34.0 +0100
+++ new/hwinfo-21.9/src/hd/pci.c2014-11-24 15:01:48.0 +0100
@@ -878,10 +878,12 @@
  */
 void hd_read_platform(hd_data_t *hd_data)
 {
-  char *s, *platform_type;
+  char *s, *platform_type, *device_type = NULL;
   str_list_t *sf_bus, *sf_bus_e, *sf_eth_dev = NULL;
   char *sf_dev, *sf_eth_net;
   int mv643xx_eth_seen = 0;
+  int is_net, is_storage, is_usb;
+  hd_t *hd;
 
   sf_bus = read_dir(/sys/bus/platform/devices, 'l');
 
@@ -901,21 +903,70 @@
 
 if((s = get_sysfs_attr_by_path(sf_dev, modalias))) {
   platform_type = canon_str(s, strlen(s));
-  ADD2LOG(type = \%s\\n, platform_type);
+  device_type = free_mem(device_type);
+  if((s = get_sysfs_attr_by_path(sf_dev, uevent))) {
+char *t, *t2;
+if((t = strstr(s, OF_NAME=))) {
+  t += sizeof OF_NAME= - 1;
+  if((t2 = strchr(t, '\n'))) *t2 = 0;
+  device_type = strdup(t);
+}
+  }
+  ADD2LOG(type = \%s\, modalias = \%s\\n, device_type, 
platform_type);
+  is_net = 0;
   sf_eth_net = new_str(hd_read_sysfs_link(sf_dev, net));
   sf_eth_dev = read_dir(sf_eth_net, 'd');
-  ADD2LOG(  platform device: sf_eth_net = %s sf_eth_dev = %p\n, 
sf_eth_net, sf_eth_dev);
-  if (
+  is_net = sf_eth_net  sf_eth_dev;
+  is_storage = device_type  !strcmp(device_type, sata);
+  is_usb = device_type  !strcmp(device_type, usb);
+  if(is_net) ADD2LOG(is net: sf_eth_net = %s\n, sf_eth_net);
+  if(is_storage) ADD2LOG(is storage\n);
+  if(is_usb) ADD2LOG(is usb\n);
+  free_mem(sf_eth_net);
+  free_str_list(sf_eth_dev);
+  if(
 /* there is 'mv643xx_eth.0', 'mv643xx_eth.1' and 'mv643xx_eth_shared.' 
*/
-sf_eth_dev  sf_eth_net 
+is_net 
 strstr(platform_type, mv643xx_eth) 
 !mv643xx_eth_seen++
   ) {
 add_mv643xx_eth(hd_data, sf_bus_e-str, platform_type);
   }
+  else if(is_net) {
+hd = add_hd_entry(hd_data, __LINE__, 0);
+hd-base_class.id = bc_network;
+hd-sub_class.id = 0;
+str_printf(hd-device.name, 0, ARM Ethernet %d, hd-slot);
+hd-modalias = new_str(platform_type);
+hd-sysfs_id = new_str(hd_sysfs_id(sf_dev));
+hd-sysfs_bus_id = new_str(sf_bus_e-str);
+s = hd_sysfs_find_driver(hd_data, hd-sysfs_id, 1);
+if(s) add_str_list(hd-drivers, s);
+  }
+  else if(is_storage) {
+hd = add_hd_entry(hd_data, __LINE__, 0);

commit hwinfo for openSUSE:Factory

2014-11-10 Thread h_root
Hello community,

here is the log from the commit of package hwinfo for openSUSE:Factory checked 
in at 2014-11-10 17:27:55

Comparing /work/SRC/openSUSE:Factory/hwinfo (Old)
 and  /work/SRC/openSUSE:Factory/.hwinfo.new (New)


Package is hwinfo

Changes:

--- /work/SRC/openSUSE:Factory/hwinfo/hwinfo.changes2014-10-14 
07:10:30.0 +0200
+++ /work/SRC/openSUSE:Factory/.hwinfo.new/hwinfo.changes   2014-11-10 
17:28:00.0 +0100
@@ -1,0 +2,7 @@
+Fri Nov  7 08:25:50 CET 2014 - snwint_jenk...@suse.com
+
+- fix bashisms in getsysinfo script
+- mark gen-hwcfg-disk.sh as shell, no bash script
+- 21.8
+
+---

Old:

  hwinfo-21.7.tar.xz

New:

  hwinfo-21.8.tar.xz



Other differences:
--
++ hwinfo.spec ++
--- /var/tmp/diff_new_pack.BHLuTT/_old  2014-11-10 17:28:01.0 +0100
+++ /var/tmp/diff_new_pack.BHLuTT/_new  2014-11-10 17:28:01.0 +0100
@@ -36,7 +36,7 @@
 Group:  Hardware/Other
 # Until migration to github this should be correct url
 Url:http://gitorious.org/opensuse/hwinfo
-Version:21.7
+Version:21.8
 Release:0
 Source: %{name}-%{version}.tar.xz
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build

++ hwinfo-21.7.tar.xz - hwinfo-21.8.tar.xz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.7/VERSION new/hwinfo-21.8/VERSION
--- old/hwinfo-21.7/VERSION 2014-10-13 15:59:43.0 +0200
+++ new/hwinfo-21.8/VERSION 2014-11-07 08:20:34.0 +0100
@@ -1 +1 @@
-21.7
+21.8
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.7/changelog new/hwinfo-21.8/changelog
--- old/hwinfo-21.7/changelog   2014-10-13 15:59:43.0 +0200
+++ new/hwinfo-21.8/changelog   2014-11-07 08:20:34.0 +0100
@@ -1,3 +1,7 @@
+2014-11-07:21.8
+   - fix bashisms in getsysinfo script
+   - mark gen-hwcfg-disk.sh as shell, no bash script
+
 2014-10-13:21.7
- added 'archive' Makefile target
- updated git2log script
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.7/gen-hwcfg-disk.sh 
new/hwinfo-21.8/gen-hwcfg-disk.sh
--- old/hwinfo-21.7/gen-hwcfg-disk.sh   2014-10-13 15:59:43.0 +0200
+++ new/hwinfo-21.8/gen-hwcfg-disk.sh   2014-11-07 08:20:34.0 +0100
@@ -1,4 +1,4 @@
-#!/bin/bash
+#! /bin/sh
 #
 # gen-hwcfg-disk.sh
 #
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.7/getsysinfo new/hwinfo-21.8/getsysinfo
--- old/hwinfo-21.7/getsysinfo  2014-10-13 15:59:43.0 +0200
+++ new/hwinfo-21.8/getsysinfo  2014-11-07 08:20:34.0 +0100
@@ -62,7 +62,9 @@
 perl -nl -e 'print unless (split)[0] =~ /none|automount|:/' /proc/mounts 
$dir/$host/proc/mounts
 
 mkdir -p $dir/$host/var/log
-echo -e \n--  dmesg start  --\n $dir/$host/var/log/boot.msg
+echo 
+--  dmesg start  --
+ $dir/$host/var/log/boot.msg
 dmesg $dir/$host/var/log/boot.msg
 
 if [ -x /usr/bin/lshal ] ; then
@@ -85,5 +87,5 @@
 
 rm -rf $dir
 
-echo -e \nSystem data written to: /tmp/$file
-
+echo 
+System data written to: /tmp/$file

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



commit hwinfo for openSUSE:Factory

2014-10-13 Thread h_root
Hello community,

here is the log from the commit of package hwinfo for openSUSE:Factory checked 
in at 2014-10-14 07:10:11

Comparing /work/SRC/openSUSE:Factory/hwinfo (Old)
 and  /work/SRC/openSUSE:Factory/.hwinfo.new (New)


Package is hwinfo

Changes:

--- /work/SRC/openSUSE:Factory/hwinfo/hwinfo.changes2014-08-20 
17:54:06.0 +0200
+++ /work/SRC/openSUSE:Factory/.hwinfo.new/hwinfo.changes   2014-10-14 
07:10:30.0 +0200
@@ -1,0 +2,7 @@
+Mon Oct 13 16:05:32 CEST 2014 - jenk...@suse.com
+
+- added 'archive' Makefile target
+- updated git2log script
+- 21.7
+
+---

Old:

  hwinfo-21.6.tar.xz

New:

  hwinfo-21.7.tar.xz



Other differences:
--
++ hwinfo.spec ++
--- /var/tmp/diff_new_pack.shrFLQ/_old  2014-10-14 07:10:31.0 +0200
+++ /var/tmp/diff_new_pack.shrFLQ/_new  2014-10-14 07:10:31.0 +0200
@@ -36,9 +36,9 @@
 Group:  Hardware/Other
 # Until migration to github this should be correct url
 Url:http://gitorious.org/opensuse/hwinfo
-Version:21.6
+Version:21.7
 Release:0
-Source: hwinfo-21.6.tar.xz
+Source: %{name}-%{version}.tar.xz
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 
 %description

++ hwinfo-21.6.tar.xz - hwinfo-21.7.tar.xz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.6/.gitignore new/hwinfo-21.7/.gitignore
--- old/hwinfo-21.6/.gitignore  1970-01-01 01:00:00.0 +0100
+++ new/hwinfo-21.7/.gitignore  2014-10-13 15:59:43.0 +0200
@@ -0,0 +1,7 @@
+changelog
+Changelog
+VERSION
+*.o
+.depend
+hwinfo
+hwinfo.pc
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.6/MAINTAINER new/hwinfo-21.7/MAINTAINER
--- old/hwinfo-21.6/MAINTAINER  1970-01-01 01:00:00.0 +0100
+++ new/hwinfo-21.7/MAINTAINER  2014-10-13 15:59:43.0 +0200
@@ -0,0 +1 @@
+Steffen Winterfeldt (snw...@suse.de)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.6/Makefile new/hwinfo-21.7/Makefile
--- old/hwinfo-21.6/Makefile2013-11-27 15:59:28.0 +0100
+++ new/hwinfo-21.7/Makefile2014-10-13 15:59:43.0 +0200
@@ -14,8 +14,9 @@
 
 GIT2LOG := $(shell if [ -x ./git2log ] ; then echo ./git2log --update ; else 
echo true ; fi)
 GITDEPS := $(shell [ -d .git ]  echo .git/HEAD .git/refs/heads 
.git/refs/tags)
-
 VERSION := $(shell $(GIT2LOG) --version VERSION ; cat VERSION)
+BRANCH  := $(shell git branch | perl -ne 'print $$_ if s/^\*\s*//')
+PREFIX  := hwinfo-$(VERSION)
 
 include Makefile.common
 
@@ -107,3 +108,9 @@
install -m 644 src/isdn/cdb/ISDN.CDB.txt $(DESTDIR)/usr/share/hwinfo
install -m 644 src/isdn/cdb/ISDN.CDB.hwdb $(DESTDIR)/usr/share/hwinfo
 
+archive: changelog
+   mkdir -p package
+   git archive --prefix=$(PREFIX)/ $(BRANCH)  package/$(PREFIX).tar
+   tar -r -f package/$(PREFIX).tar --mode=0664 --owner=root --group=root 
--mtime=`git show -s --format=%ci` --transform='s:^:$(PREFIX)/:' VERSION 
changelog
+   xz -f package/$(PREFIX).tar
+
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.6/Makefile.common 
new/hwinfo-21.7/Makefile.common
--- old/hwinfo-21.6/Makefile.common 2013-10-07 13:45:32.0 +0200
+++ new/hwinfo-21.7/Makefile.common 2014-10-13 15:59:43.0 +0200
@@ -54,6 +54,7 @@
 
 clean: subdirs
@rm -rf $(OBJS) .depend $(CLEANFILES) *~
+   @rm -rf package
 
 distclean: subdirs
@rm -rf $(OBJS) .depend $(CLEANFILES) $(DISTCLEANFILES) *~
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.6/VERSION new/hwinfo-21.7/VERSION
--- old/hwinfo-21.6/VERSION 2014-08-15 11:11:18.0 +0200
+++ new/hwinfo-21.7/VERSION 2014-10-13 15:59:43.0 +0200
@@ -1 +1 @@
-21.6
+21.7
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.6/changelog new/hwinfo-21.7/changelog
--- old/hwinfo-21.6/changelog   2014-08-15 11:11:23.0 +0200
+++ new/hwinfo-21.7/changelog   2014-10-13 15:59:43.0 +0200
@@ -1,4 +1,8 @@
-2014-08-15:HEAD
+2014-10-13:21.7
+   - added 'archive' Makefile target
+   - updated git2log script
+
+2014-08-15:21.6
- create floppy entry only if there really is a floppy device (bnc 
#883465)
 
 2014-05-27:21.5
@@ -7,9 +11,7 @@
 2014-04-24:21.4
- don't dump netcard eeprom by default (bnc #875021)
 
-2014-03-31:21.3
-   - Merge pull request #3 from openSUSE/bnc853635
-   - Removed an 

commit hwinfo for openSUSE:Factory

2014-08-20 Thread h_root
Hello community,

here is the log from the commit of package hwinfo for openSUSE:Factory checked 
in at 2014-08-20 17:53:54

Comparing /work/SRC/openSUSE:Factory/hwinfo (Old)
 and  /work/SRC/openSUSE:Factory/.hwinfo.new (New)


Package is hwinfo

Changes:

--- /work/SRC/openSUSE:Factory/hwinfo/hwinfo.changes2014-05-27 
18:23:59.0 +0200
+++ /work/SRC/openSUSE:Factory/.hwinfo.new/hwinfo.changes   2014-08-20 
17:54:06.0 +0200
@@ -1,0 +2,6 @@
+Fri Aug 15 11:11:28 CEST 2014 - snw...@suse.de
+
+- create floppy entry only if there really is a floppy device (bnc #883465)
+- 21.6
+
+---

Old:

  hwinfo-21.5.tar.xz

New:

  hwinfo-21.6.tar.xz



Other differences:
--
++ hwinfo.spec ++
--- /var/tmp/diff_new_pack.a9BOH5/_old  2014-08-20 17:54:07.0 +0200
+++ /var/tmp/diff_new_pack.a9BOH5/_new  2014-08-20 17:54:07.0 +0200
@@ -36,9 +36,9 @@
 Group:  Hardware/Other
 # Until migration to github this should be correct url
 Url:http://gitorious.org/opensuse/hwinfo
-Version:21.5
+Version:21.6
 Release:0
-Source: hwinfo-21.5.tar.xz
+Source: hwinfo-21.6.tar.xz
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 
 %description

++ hwinfo-21.5.tar.xz - hwinfo-21.6.tar.xz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.5/VERSION new/hwinfo-21.6/VERSION
--- old/hwinfo-21.5/VERSION 2014-05-27 10:22:48.0 +0200
+++ new/hwinfo-21.6/VERSION 2014-08-15 11:11:18.0 +0200
@@ -1 +1 @@
-21.5
+21.6
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.5/changelog new/hwinfo-21.6/changelog
--- old/hwinfo-21.5/changelog   2014-05-27 10:22:49.0 +0200
+++ new/hwinfo-21.6/changelog   2014-08-15 11:11:23.0 +0200
@@ -1,4 +1,7 @@
-2014-05-27:HEAD
+2014-08-15:HEAD
+   - create floppy entry only if there really is a floppy device (bnc 
#883465)
+
+2014-05-27:21.5
- make ethtool private flags tri-state: (unset, false, true)
 
 2014-04-24:21.4
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.5/src/hd/floppy.c 
new/hwinfo-21.6/src/hd/floppy.c
--- old/hwinfo-21.5/src/hd/floppy.c 2013-10-07 13:45:32.0 +0200
+++ new/hwinfo-21.6/src/hd/floppy.c 2014-08-15 11:08:02.0 +0200
@@ -116,7 +116,14 @@
 floppy_ctrls++;
   }
 
-  if(floppy_ctrls  !(floppy_created  (1  u))) {
+  struct stat sbuf;
+  unsigned floppy_exists = 0;
+  char *floppy_name = NULL;
+  str_printf(floppy_name, 0, /dev/fd%u, u);
+  floppy_exists = stat(floppy_name, sbuf) ? 0 : 1;
+  free_mem(floppy_name);
+
+  if(floppy_ctrls  !(floppy_created  (1  u))  floppy_exists) {
 hd = add_hd_entry(hd_data, __LINE__, 0);
 hd-base_class.id = bc_storage_device;
 hd-sub_class.id = sc_sdev_floppy;

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



commit hwinfo for openSUSE:Factory

2014-05-27 Thread h_root
Hello community,

here is the log from the commit of package hwinfo for openSUSE:Factory checked 
in at 2014-05-27 18:23:42

Comparing /work/SRC/openSUSE:Factory/hwinfo (Old)
 and  /work/SRC/openSUSE:Factory/.hwinfo.new (New)


Package is hwinfo

Changes:

--- /work/SRC/openSUSE:Factory/hwinfo/hwinfo.changes2014-04-26 
19:34:12.0 +0200
+++ /work/SRC/openSUSE:Factory/.hwinfo.new/hwinfo.changes   2014-05-27 
18:23:59.0 +0200
@@ -1,0 +2,6 @@
+Tue May 27 10:22:56 CEST 2014 - snw...@suse.de
+
+- make ethtool private flags tri-state: (unset, false, true)
+- 21.5
+
+---

Old:

  hwinfo-21.4.tar.bz2

New:

  hwinfo-21.5.tar.xz



Other differences:
--
++ hwinfo.spec ++
--- /var/tmp/diff_new_pack.i9ShnL/_old  2014-05-27 18:24:01.0 +0200
+++ /var/tmp/diff_new_pack.i9ShnL/_new  2014-05-27 18:24:01.0 +0200
@@ -36,9 +36,9 @@
 Group:  Hardware/Other
 # Until migration to github this should be correct url
 Url:http://gitorious.org/opensuse/hwinfo
-Version:21.4
+Version:21.5
 Release:0
-Source: hwinfo-21.4.tar.bz2
+Source: hwinfo-21.5.tar.xz
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 
 %description

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



commit hwinfo for openSUSE:Factory

2014-04-26 Thread h_root
Hello community,

here is the log from the commit of package hwinfo for openSUSE:Factory checked 
in at 2014-04-26 19:34:03

Comparing /work/SRC/openSUSE:Factory/hwinfo (Old)
 and  /work/SRC/openSUSE:Factory/.hwinfo.new (New)


Package is hwinfo

Changes:

--- /work/SRC/openSUSE:Factory/hwinfo/hwinfo.changes2014-03-31 
20:43:32.0 +0200
+++ /work/SRC/openSUSE:Factory/.hwinfo.new/hwinfo.changes   2014-04-26 
19:34:12.0 +0200
@@ -1,0 +2,6 @@
+Fri Apr 25 10:17:15 CEST 2014 - snw...@suse.de
+
+- don't dump netcard eeprom by default (bnc #875021)
+- 21.4
+
+---

Old:

  hwinfo-21.3.tar.bz2

New:

  hwinfo-21.4.tar.bz2



Other differences:
--
++ hwinfo.spec ++
--- /var/tmp/diff_new_pack.mVhv4I/_old  2014-04-26 19:34:12.0 +0200
+++ /var/tmp/diff_new_pack.mVhv4I/_new  2014-04-26 19:34:13.0 +0200
@@ -36,9 +36,9 @@
 Group:  Hardware/Other
 # Until migration to github this should be correct url
 Url:http://gitorious.org/opensuse/hwinfo
-Version:21.3
+Version:21.4
 Release:0
-Source: hwinfo-21.3.tar.bz2
+Source: hwinfo-21.4.tar.bz2
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 
 %description

++ hwinfo-21.3.tar.bz2 - hwinfo-21.4.tar.bz2 ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.3/VERSION new/hwinfo-21.4/VERSION
--- old/hwinfo-21.3/VERSION 2014-03-31 11:12:56.0 +0200
+++ new/hwinfo-21.4/VERSION 2014-04-25 10:17:11.0 +0200
@@ -1 +1 @@
-21.3
+21.4
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.3/changelog new/hwinfo-21.4/changelog
--- old/hwinfo-21.3/changelog   2014-03-31 11:12:57.0 +0200
+++ new/hwinfo-21.4/changelog   2014-04-25 10:17:13.0 +0200
@@ -1,4 +1,7 @@
-2014-03-31:HEAD
+2014-04-24:HEAD
+   - don't dump netcard eeprom by default (bnc #875021)
+
+2014-03-31:21.3
- Merge pull request #3 from openSUSE/bnc853635
- Removed an unnecessary newline from dump_line call.
- Removed an unnecessary newline from dump_line call.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.3/src/hd/hd.c new/hwinfo-21.4/src/hd/hd.c
--- old/hwinfo-21.3/src/hd/hd.c 2014-03-24 12:24:57.0 +0100
+++ new/hwinfo-21.4/src/hd/hd.c 2014-04-24 18:16:51.0 +0200
@@ -1835,7 +1835,6 @@
 if(hd_probe_feature(hd_data, pr_bios_vram)) hd_data-flags.biosvram = 1;
 hd_set_probe_feature(hd_data, pr_bios_acpi);
 hd_set_probe_feature(hd_data, pr_modules_pata);
-hd_set_probe_feature(hd_data, pr_net_eeprom);
 hd_data-flags.pata = hd_probe_feature(hd_data, pr_modules_pata) ? 1 : 0;
 hd_set_probe_feature(hd_data, pr_x86emu);
 if(!get_probe_val_list(hd_data, pr_x86emu)) {

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



commit hwinfo for openSUSE:Factory

2014-03-31 Thread h_root
Hello community,

here is the log from the commit of package hwinfo for openSUSE:Factory checked 
in at 2014-03-31 20:43:21

Comparing /work/SRC/openSUSE:Factory/hwinfo (Old)
 and  /work/SRC/openSUSE:Factory/.hwinfo.new (New)


Package is hwinfo

Changes:

--- /work/SRC/openSUSE:Factory/hwinfo/hwinfo.changes2014-03-27 
06:12:50.0 +0100
+++ /work/SRC/openSUSE:Factory/.hwinfo.new/hwinfo.changes   2014-03-31 
20:43:32.0 +0200
@@ -1,0 +2,14 @@
+Mon Mar 31 11:13:05 CEST 2014 - snw...@suse.de
+
+- Changed the logic for IUCV detection to only include netiucv type devices
+  Since /sys/bus/iucv/devices/ contains a generic netiucv entry as well
+  as any activated devices,such as netiucv0, or netiucv1, the extra logic
+  to add an unactivated device is no longer needed, so it has been removed.
+
+---
+Fri Mar 28 08:42:12 CET 2014 - snw...@suse.de
+
+- xen vm: use memory settings from /proc/xen/balloon (bnc #867915)
+- avoid strcpy() (bnc #870383)
+
+---

Old:

  hwinfo-21.1.tar.bz2

New:

  hwinfo-21.3.tar.bz2



Other differences:
--
++ hwinfo.spec ++
--- /var/tmp/diff_new_pack.wLOTNT/_old  2014-03-31 20:43:32.0 +0200
+++ /var/tmp/diff_new_pack.wLOTNT/_new  2014-03-31 20:43:32.0 +0200
@@ -36,9 +36,9 @@
 Group:  Hardware/Other
 # Until migration to github this should be correct url
 Url:http://gitorious.org/opensuse/hwinfo
-Version:21.1
+Version:21.3
 Release:0
-Source: hwinfo-21.1.tar.bz2
+Source: hwinfo-21.3.tar.bz2
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 
 %description

++ hwinfo-21.1.tar.bz2 - hwinfo-21.3.tar.bz2 ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.1/VERSION new/hwinfo-21.3/VERSION
--- old/hwinfo-21.1/VERSION 2014-03-24 13:46:24.0 +0100
+++ new/hwinfo-21.3/VERSION 2014-03-31 11:12:56.0 +0200
@@ -1 +1 @@
-21.1
+21.3
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.1/changelog new/hwinfo-21.3/changelog
--- old/hwinfo-21.1/changelog   2014-03-24 13:46:25.0 +0100
+++ new/hwinfo-21.3/changelog   2014-03-31 11:12:57.0 +0200
@@ -1,4 +1,18 @@
-2014-03-24:HEAD
+2014-03-31:HEAD
+   - Merge pull request #3 from openSUSE/bnc853635
+   - Removed an unnecessary newline from dump_line call.
+   - Removed an unnecessary newline from dump_line call.
+ h-rom_id for IUCV connections already has a newline at the end.
+   - Changed the logic for IUCV detection to only include netiucv type 
devices
+ Since /sys/bus/iucv/devices/ contains a generic netiucv entry as 
well
+ as any activated devices,such as netiucv0, or netiucv1, the extra 
logic
+ to add an unactivated device is no longer needed, so it has been 
removed.
+
+2014-03-28:21.2
+   - xen vm: use memory settings from /proc/xen/balloon (bnc #867915)
+   - avoid strcpy() (bnc #870383)
+
+2014-03-24:21.1
- show Consistant Device Name (CDN) as Device Name
- The Device name of a PCI or PCI Express device under OS may be 
exported
- by BIOS via label sysfs attribute. Read it and show it to the user as
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.1/src/hd/hd_int.h 
new/hwinfo-21.3/src/hd/hd_int.h
--- old/hwinfo-21.1/src/hd/hd_int.h 2013-11-27 15:59:28.0 +0100
+++ new/hwinfo-21.3/src/hd/hd_int.h 2014-03-27 11:19:48.0 +0100
@@ -25,6 +25,7 @@
 #define PROC_ISAPNP/proc/isapnp
 #define PROC_PARTITIONS/proc/partitions
 #define PROC_APM   /proc/apm
+#define PROC_XEN_BALLOON   /proc/xen/balloon
 
 #define DEV_NVRAM  /dev/nvram
 #define DEV_PSAUX  /dev/psaux
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.1/src/hd/hdp.c new/hwinfo-21.3/src/hd/hdp.c
--- old/hwinfo-21.1/src/hd/hdp.c2014-03-24 13:40:29.0 +0100
+++ new/hwinfo-21.3/src/hd/hdp.c2014-03-31 09:25:37.0 +0200
@@ -497,7 +497,7 @@
 dump_line(PROM id: %s\n, h-rom_id);
 #endif
 #if defined(__s390__) || defined(__s390x__)
-dump_line(IUCV user: %s\n, h-rom_id);
+dump_line(IUCV user: %s, h-rom_id);
 #endif
   }
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.1/src/hd/klog.c 
new/hwinfo-21.3/src/hd/klog.c
--- old/hwinfo-21.1/src/hd/klog.c   2013-11-27 15:59:28.0 

commit hwinfo for openSUSE:Factory

2014-03-26 Thread h_root
Hello community,

here is the log from the commit of package hwinfo for openSUSE:Factory checked 
in at 2014-03-27 06:12:49

Comparing /work/SRC/openSUSE:Factory/hwinfo (Old)
 and  /work/SRC/openSUSE:Factory/.hwinfo.new (New)


Package is hwinfo

Changes:

--- /work/SRC/openSUSE:Factory/hwinfo/hwinfo.changes2014-03-21 
12:14:21.0 +0100
+++ /work/SRC/openSUSE:Factory/.hwinfo.new/hwinfo.changes   2014-03-27 
06:12:50.0 +0100
@@ -1,0 +2,15 @@
+Mon Mar 24 13:46:26 CET 2014 - snw...@suse.de
+
+- s390: add some virtio device IDs (bnc #807532)
+- adding fingerprint reader (bnc #793928)
+- use 'cp -x' in getsysinfo (bnc #760240)
+- s390: recognize model 2 OSA Express interfaces (bnc #720082)
+- add id to Validity fingerprint sensor (bnc #719202)
+- add unisys hypervisor bus info (bnc #678966)
+- report InfiniBand controller as network controller (bnc #645877, bnc #644299)
+- recognize InfiniBand controller (bnc #645877, bnc #644299, bnc #639807)
+- fix type to avoid compiler warning
+- VMWare - VMware (bnc #536888)
+- integrated  removed hwinfo_pci_scan_label.patch
+
+---

Old:

  hwinfo-21.0.tar.bz2
  hwinfo_pci_scan_label.patch

New:

  hwinfo-21.1.tar.bz2



Other differences:
--
++ hwinfo.spec ++
--- /var/tmp/diff_new_pack.YoTJ3s/_old  2014-03-27 06:12:51.0 +0100
+++ /var/tmp/diff_new_pack.YoTJ3s/_new  2014-03-27 06:12:51.0 +0100
@@ -16,7 +16,6 @@
 #
 
 
-
 Name:   hwinfo
 BuildRequires:  doxygen
 BuildRequires:  flex
@@ -37,10 +36,9 @@
 Group:  Hardware/Other
 # Until migration to github this should be correct url
 Url:http://gitorious.org/opensuse/hwinfo
-Version:21.0
+Version:21.1
 Release:0
-Source: hwinfo-21.0.tar.bz2
-Patch0: hwinfo_pci_scan_label.patch
+Source: hwinfo-21.1.tar.bz2
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 
 %description
@@ -75,7 +73,6 @@
 
 %prep
 %setup
-%patch0 -p1
 
 %build
   make static

++ hwinfo-21.0.tar.bz2 - hwinfo-21.1.tar.bz2 ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.0/VERSION new/hwinfo-21.1/VERSION
--- old/hwinfo-21.0/VERSION 2013-11-27 16:00:19.0 +0100
+++ new/hwinfo-21.1/VERSION 2014-03-24 13:46:24.0 +0100
@@ -1 +1 @@
-21.0
+21.1
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.0/changelog new/hwinfo-21.1/changelog
--- old/hwinfo-21.0/changelog   2013-11-27 16:00:20.0 +0100
+++ new/hwinfo-21.1/changelog   2014-03-24 13:46:25.0 +0100
@@ -1,3 +1,19 @@
+2014-03-24:HEAD
+   - show Consistant Device Name (CDN) as Device Name
+   - The Device name of a PCI or PCI Express device under OS may be 
exported
+   - by BIOS via label sysfs attribute. Read it and show it to the user as
+   - Device Name: (fate #316031, fate #315201).
+   - s390: add some virtio device IDs (bnc #807532)
+   - adding fingerprint reader (bnc #793928)
+   - use 'cp -x' in getsysinfo (bnc #760240)
+   - s390: recognize model 2 OSA Express interfaces (bnc #720082)
+   - add id to Validity fingerprint sensor (bnc #719202)
+   - add unisys hypervisor bus info (bnc #678966)
+   - report InfiniBand controller as network controller (bnc #645877, bnc 
#644299)
+   - recognize InfiniBand controller (bnc #645877, bnc #644299, bnc 
#639807)
+   - fix type to avoid compiler warning
+   - VMWare - VMware (bnc #536888)
+
 2013-11-27:21.0
- read and add ethtool private flags (bnc 841170)
- update pci id list (bnc #813172)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.0/getsysinfo new/hwinfo-21.1/getsysinfo
--- old/hwinfo-21.0/getsysinfo  2013-11-27 15:59:28.0 +0100
+++ new/hwinfo-21.1/getsysinfo  2014-03-24 13:25:58.0 +0100
@@ -50,7 +50,7 @@
 do
   if [ -e $i ] ; then
 echo $i
-cp -a --parents $i $dir/$host 2/dev/null
+cp -x -a --parents $i $dir/$host 2/dev/null
 chmod -R u+w,a+r,a+X $dir/$host
 for i in `( cd $dir/$host ; find proc -type f -size 0 )` ; do
   cat /$i $dir/$host/$i
@@ -61,6 +61,7 @@
 echo /proc/mounts
 perl -nl -e 'print unless (split)[0] =~ /none|automount|:/' /proc/mounts 
$dir/$host/proc/mounts
 
+mkdir -p $dir/$host/var/log
 echo -e \n--  dmesg start  --\n $dir/$host/var/log/boot.msg
 dmesg $dir/$host/var/log/boot.msg
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.0/hwinfo.c new/hwinfo-21.1/hwinfo.c
--- old/hwinfo-21.0/hwinfo.c2013-11-27 

commit hwinfo for openSUSE:Factory

2014-03-21 Thread h_root
Hello community,

here is the log from the commit of package hwinfo for openSUSE:Factory checked 
in at 2014-03-21 12:14:07

Comparing /work/SRC/openSUSE:Factory/hwinfo (Old)
 and  /work/SRC/openSUSE:Factory/.hwinfo.new (New)


Package is hwinfo

Changes:

--- /work/SRC/openSUSE:Factory/hwinfo/hwinfo.changes2013-11-28 
07:27:20.0 +0100
+++ /work/SRC/openSUSE:Factory/.hwinfo.new/hwinfo.changes   2014-03-21 
12:14:21.0 +0100
@@ -1,0 +2,10 @@
+Mon Jan 27 19:32:58 UTC 2014 - tr...@suse.de
+
+- Show Consistant Device Name (CDN) as Device Name.
+  The Device name of a PCI or PCI Express device under OS may be exported
+  by BIOS via label sysfs attribute. Read it and show it to the user as
+  Device Name:
+  fate#316031, fate#315201
+  Add: hwinfo_pci_scan_label.patch
+
+---

New:

  hwinfo_pci_scan_label.patch



Other differences:
--
++ hwinfo.spec ++
--- /var/tmp/diff_new_pack.fLbJaC/_old  2014-03-21 12:14:23.0 +0100
+++ /var/tmp/diff_new_pack.fLbJaC/_new  2014-03-21 12:14:23.0 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package hwinfo
 #
-# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2014 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
@@ -16,6 +16,7 @@
 #
 
 
+
 Name:   hwinfo
 BuildRequires:  doxygen
 BuildRequires:  flex
@@ -39,6 +40,7 @@
 Version:21.0
 Release:0
 Source: hwinfo-21.0.tar.bz2
+Patch0: hwinfo_pci_scan_label.patch
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 
 %description
@@ -73,6 +75,7 @@
 
 %prep
 %setup
+%patch0 -p1
 
 %build
   make static

++ hwinfo_pci_scan_label.patch ++
Index: hwinfo-21.0/src/hd/hd.h
===
--- hwinfo-21.0.orig/src/hd/hd.h
+++ hwinfo-21.0/src/hd/hd.h
@@ -1047,6 +1047,7 @@ typedef struct s_pci_t {
   char *sysfs_id;  /** sysfs path */
   char *sysfs_bus_id;  /** sysfs bus id */
   char *modalias;  /** module alias */
+  char *label; /** Consistant Device Name 
(CDN), pci firmware spec 3.1, chapter 4.6.7 */
   unsigned edid_len[4];/** edid record length 
*/
   unsigned char edid_data[4][0x80];/** edid record */
 } pci_t;
@@ -2583,6 +2584,7 @@ typedef struct s_hd_t {
   hal_prop_t *persistent_prop; /** persistent property list */
 
   char *modalias;  /** module alias */
+  char *label; /** Consistent Device Name (CDN), pci firmware 
spec 3.1, chapter 4.6.7 */
 
   /*
* These are used internally for memory management.
Index: hwinfo-21.0/src/hd/pci.c
===
--- hwinfo-21.0.orig/src/hd/pci.c
+++ hwinfo-21.0/src/hd/pci.c
@@ -192,6 +192,11 @@ void hd_pci_read_data(hd_data_t *hd_data
   pci-irq = ul0;
 }
 
+if((s = get_sysfs_attr_by_path(sf_dev, label))) {
+  pci-label = canon_str(s, strlen(s));
+  ADD2LOG(label = \%s\\n, pci-label);
+}
+
 sl = hd_attr_list(get_sysfs_attr_by_path(sf_dev, resource));
 for(u = 0; sl; sl = sl-next, u++) {
   if(
@@ -432,6 +437,11 @@ void hd_pci_complete_data(hd_t *hd)
 pci-modalias = NULL;
   }
 
+  if(pci-label  *pci-label) {
+hd-label = pci-label;
+pci-label = NULL;
+  }
+
   hd-slot = pci-slot + (pci-bus  8);
   hd-func = pci-func;
   hd-base_class.id = pci-base_class;
Index: hwinfo-21.0/src/hd/hdp.c
===
--- hwinfo-21.0.orig/src/hd/hdp.c
+++ hwinfo-21.0/src/hd/hdp.c
@@ -357,6 +357,8 @@ void dump_normal(hd_data_t *hd_data, hd_
   hd_detail_monitor_t *mdetail;
   static char *geo_type_str[] = { Physical, Logical, BIOS EDD, BIOS 
Legacy };
 
+  if(h-label) dump_line(Device Name: \%s\\n, h-label);
+
   if(h-model) dump_line(Model: \%s\\n, h-model);
 
   s = NULL;
-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org



commit hwinfo for openSUSE:Factory

2013-11-27 Thread h_root
Hello community,

here is the log from the commit of package hwinfo for openSUSE:Factory checked 
in at 2013-11-28 07:27:19

Comparing /work/SRC/openSUSE:Factory/hwinfo (Old)
 and  /work/SRC/openSUSE:Factory/.hwinfo.new (New)


Package is hwinfo

Changes:

--- /work/SRC/openSUSE:Factory/hwinfo/hwinfo.changes2013-10-08 
10:51:46.0 +0200
+++ /work/SRC/openSUSE:Factory/.hwinfo.new/hwinfo.changes   2013-11-28 
07:27:20.0 +0100
@@ -1,0 +2,8 @@
+Wed Nov 27 16:00:22 CET 2013 - snw...@suse.de
+
+- read and add ethtool private flags (bnc 841170)
+- update pci id list (bnc #813172)
+- Merge pull request #2 from andreas-schwab/master
+- Add support for m68k
+
+---

Old:

  hwinfo-20.2.tar.bz2

New:

  hwinfo-21.0.tar.bz2



Other differences:
--
++ hwinfo.spec ++
--- /var/tmp/diff_new_pack.68egis/_old  2013-11-28 07:27:22.0 +0100
+++ /var/tmp/diff_new_pack.68egis/_new  2013-11-28 07:27:22.0 +0100
@@ -36,9 +36,9 @@
 Group:  Hardware/Other
 # Until migration to github this should be correct url
 Url:http://gitorious.org/opensuse/hwinfo
-Version:20.2
+Version:21.0
 Release:0
-Source: hwinfo-20.2.tar.bz2
+Source: hwinfo-21.0.tar.bz2
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 
 %description

++ hwinfo-20.2.tar.bz2 - hwinfo-21.0.tar.bz2 ++
 82507 lines of diff (skipped)

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



commit hwinfo for openSUSE:Factory

2013-10-08 Thread h_root
Hello community,

here is the log from the commit of package hwinfo for openSUSE:Factory checked 
in at 2013-10-08 10:51:45

Comparing /work/SRC/openSUSE:Factory/hwinfo (Old)
 and  /work/SRC/openSUSE:Factory/.hwinfo.new (New)


Package is hwinfo

Changes:

--- /work/SRC/openSUSE:Factory/hwinfo/hwinfo.changes2013-01-10 
13:05:43.0 +0100
+++ /work/SRC/openSUSE:Factory/.hwinfo.new/hwinfo.changes   2013-10-08 
10:51:46.0 +0200
@@ -1,0 +2,10 @@
+Mon Oct  7 13:46:43 CEST 2013 - snw...@suse.de
+
+- AArch64 support
+- Add support for AArch64
+- Add a new CPU Arch Type, AArch64, and properly
+- parse the /proc/cpuinfo (that is quite similar to ARM 32bit)
+- Remove various unused variables
+- Fix sizing error in memset() call
+
+---

Old:

  hwinfo-20.1.tar.bz2

New:

  hwinfo-20.2.tar.bz2



Other differences:
--
++ hwinfo.spec ++
--- /var/tmp/diff_new_pack.saDwOG/_old  2013-10-08 10:51:48.0 +0200
+++ /var/tmp/diff_new_pack.saDwOG/_new  2013-10-08 10:51:48.0 +0200
@@ -36,9 +36,9 @@
 Group:  Hardware/Other
 # Until migration to github this should be correct url
 Url:http://gitorious.org/opensuse/hwinfo
-Version:20.1
+Version:20.2
 Release:0
-Source: hwinfo-20.1.tar.bz2
+Source: hwinfo-20.2.tar.bz2
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 
 %description

++ hwinfo-20.1.tar.bz2 - hwinfo-20.2.tar.bz2 ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-20.1/VERSION new/hwinfo-20.2/VERSION
--- old/hwinfo-20.1/VERSION 2013-01-09 13:57:57.0 +0100
+++ new/hwinfo-20.2/VERSION 2013-10-07 13:46:41.0 +0200
@@ -1 +1 @@
-20.1
+20.2
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-20.1/changelog new/hwinfo-20.2/changelog
--- old/hwinfo-20.1/changelog   2013-01-09 13:57:59.0 +0100
+++ new/hwinfo-20.2/changelog   2013-10-07 13:46:42.0 +0200
@@ -1,4 +1,15 @@
-2013-01-09:HEAD
+2013-08-20:HEAD
+   - Merge pull request #1 from dirkmueller/aarch64
+   - AArch64 support
+   - Add support for AArch64
+   - Add a new CPU Arch Type, AArch64, and properly
+   - parse the /proc/cpuinfo (that is quite similar to ARM 32bit)
+   - Remove various unused variables
+   - GCC 4.8 warns about them, and they seem to be entirely
+   - unused.
+   - Fix sizing error in memset() call
+
+2013-01-09:20.1
- Boris Manojlovic: add missing man pages
 
 2012-05-22:20.0
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-20.1/hwinfo.c new/hwinfo-20.2/hwinfo.c
--- old/hwinfo-20.1/hwinfo.c2013-01-09 13:57:39.0 +0100
+++ new/hwinfo-20.2/hwinfo.c2013-10-07 13:45:32.0 +0200
@@ -621,6 +621,9 @@
   case arch_x86_64:
 s = X86_64;
 break;
+  case arch_aarch64:
+s = AArch64;
+break;
 }
 
 switch(b_arch) {
@@ -1120,7 +1123,6 @@
   driver_info_t *di;
   char *x11i;
   int fb_mode, kbd_ok = 0;
-  unsigned yast2_color = 0;
   char *xkbrules = NULL, *xkbmodel = NULL, *xkblayout = NULL;
   char *xserver, *version, *busid;
   driver_info_t *x11_driver;
@@ -1151,24 +1153,6 @@
 
   xserver = get_xserver(hd_data, version, busid, x11_driver);
 
-  switch(hd_mac_color(hd_data)) {
-case 0x01:
-  yast2_color = 0x5a4add;
-  break;
-case 0x04:
-  yast2_color = 0x32cd32;
-  break;
-case 0x05:
-  yast2_color = 0xff7f50;
-  break;
-case 0x07:
-  yast2_color = 0x00;
-  break;
-case 0xff:
-  yast2_color = 0x7f7f7f;
-  break;
-  }
-
   if(hd_data-progress) {
 printf(\r%64s\r, );
 fflush(stdout);
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-20.1/src/hd/cpu.c new/hwinfo-20.2/src/hd/cpu.c
--- old/hwinfo-20.1/src/hd/cpu.c2013-01-09 13:57:39.0 +0100
+++ new/hwinfo-20.2/src/hd/cpu.c2013-10-07 13:45:32.0 +0200
@@ -115,6 +115,14 @@
   char *t0, *t;
 #endif
 
+#ifdef __aarch64__
+  char model_id[80], system_id[80], serial_number[80], features[0x400];
+  unsigned cpu_variation, cpu_revision, vendor_id;
+  unsigned u;
+  double bogo;
+  char *t0, *t;
+#endif
+
 #ifdef __PPC__
   char model_id[80], vendor_id[80], motherboard[80];
   unsigned mhz, cache, family, model, stepping;
@@ -262,6 +270,70 @@
   }
 #endif /* __arm__ */
 
+#ifdef __aarch64__
+  *model_id = *system_id = *serial_number = 0;
+  cpu_variation = cpu_revision = 0;
+  ct = 0; bogo = 0;
+
+  hd_data-boot = boot_uboot;
+
+  

commit hwinfo for openSUSE:Factory

2013-01-10 Thread h_root
Hello community,

here is the log from the commit of package hwinfo for openSUSE:Factory checked 
in at 2013-01-10 13:05:41

Comparing /work/SRC/openSUSE:Factory/hwinfo (Old)
 and  /work/SRC/openSUSE:Factory/.hwinfo.new (New)


Package is hwinfo, Maintainer is snw...@suse.com

Changes:

--- /work/SRC/openSUSE:Factory/hwinfo/hwinfo.changes2012-08-07 
08:09:37.0 +0200
+++ /work/SRC/openSUSE:Factory/.hwinfo.new/hwinfo.changes   2013-01-10 
13:05:43.0 +0100
@@ -1,0 +2,11 @@
+Wed Jan  9 13:58:00 CET 2013 - snw...@suse.de
+
+- moved man pages into git
+
+---
+Tue Nov  6 14:22:44 UTC 2012 - bo...@steki.net
+
+- cleanup of spec
+- added missing manual pages 
+
+---

Old:

  hwinfo-20.0.tar.bz2

New:

  hwinfo-20.1.tar.bz2



Other differences:
--
++ hwinfo.spec ++
--- /var/tmp/diff_new_pack.BGISbJ/_old  2013-01-10 13:05:44.0 +0100
+++ /var/tmp/diff_new_pack.BGISbJ/_new  2013-01-10 13:05:44.0 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package hwinfo
 #
-# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2013 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
@@ -20,6 +20,7 @@
 BuildRequires:  doxygen
 BuildRequires:  flex
 BuildRequires:  perl-XML-Parser
+BuildRequires:  pkg-config
 BuildRequires:  udev
 %if 0%{?rhel_version} == 0
 BuildRequires:  perl-XML-Writer
@@ -33,9 +34,11 @@
 Summary:Hardware Library
 License:GPL-2.0+
 Group:  Hardware/Other
-Version:20.0
+# Until migration to github this should be correct url
+Url:http://gitorious.org/opensuse/hwinfo
+Version:20.1
 Release:0
-Source: hwinfo-20.0.tar.bz2
+Source: hwinfo-20.1.tar.bz2
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 
 %description
@@ -49,7 +52,10 @@
 Group:  Development/Libraries/C and C++
 Provides:   libhddev
 Obsoletes:  libhddev
-Requires:   %name = %version perl-XML-Parser udev wireless-tools
+Requires:   %name = %version
+Requires:   perl-XML-Parser
+Requires:   udev
+Requires:   wireless-tools
 %if 0%{?rhel_version} == 0
 Requires:   perl-XML-Writer 
 %endif
@@ -69,21 +75,23 @@
 %setup
 
 %build
-# This package failed when testing with -Wl,-as-needed being default.
-# So we disable it here, if you want to retest, just delete this comment and 
the line below.
-export SUSE_ASNEEDED=0
   make static
-  install -d -m 755 %{buildroot}%{_libdir}
-  install -m 644 src/libhd.a %{buildroot}%{_libdir}
+  # make copy of static library for installation
+  cp src/libhd.a .
   make clean
   make LIBDIR=%{_libdir}
   make doc
-  gzip -9c doc/hwinfo.8 hwinfo.8.gz
 
 %install
   make install DESTDIR=%{buildroot} LIBDIR=%{_libdir}
-  install -d -m 755 %{buildroot}%{_mandir}/man8
-  install -m 644 hwinfo.8.gz %{buildroot}%{_mandir}/man8
+  install -m 644 libhd.a %{buildroot}%{_libdir}
+  install -d -m 755 %{buildroot}%{_mandir}/man8/
+  install -d -m 755 %{buildroot}%{_mandir}/man1/
+  install -m 644 doc/check_hd.1 %{buildroot}%{_mandir}/man1/
+  install -m 644 doc/convert_hd.1 %{buildroot}%{_mandir}/man1/
+  install -m 644 doc/getsysinfo.1 %{buildroot}%{_mandir}/man1/
+  install -m 644 doc/mk_isdnhwdb.1 %{buildroot}%{_mandir}/man1/
+  install -m 644 doc/hwinfo.8 %{buildroot}%{_mandir}/man8/
   mkdir -p %{buildroot}/var/lib/hardware/udi
 
 %clean 
@@ -100,7 +108,9 @@
 /usr/sbin/getsysinfo
 %{_libdir}/libhd.so.*
 %doc README
-%doc %{_mandir}/man8/hwinfo.8.gz
+%doc %{_mandir}/man1/getsysinfo.1*
+%doc %{_mandir}/man1/mk_isdnhwdb.1*
+%doc %{_mandir}/man8/hwinfo.8*
 %dir /var/lib/hardware
 %dir /var/lib/hardware/udi
 %dir /usr/share/hwinfo
@@ -110,6 +120,8 @@
 %defattr(-,root,root)
 /usr/sbin/check_hd
 /usr/sbin/convert_hd
+%doc %{_mandir}/man1/convert_hd.1*
+%doc %{_mandir}/man1/check_hd.1*
 %{_libdir}/libhd.so
 %{_libdir}/libhd.a
 %{_libdir}/pkgconfig/hwinfo.pc

++ hwinfo-20.0.tar.bz2 - hwinfo-20.1.tar.bz2 ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-20.0/VERSION new/hwinfo-20.1/VERSION
--- old/hwinfo-20.0/VERSION 2012-08-06 11:55:14.0 +0200
+++ new/hwinfo-20.1/VERSION 2013-01-09 13:57:57.0 +0100
@@ -1 +1 @@
-20.0
+20.1
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-20.0/changelog new/hwinfo-20.1/changelog
--- old/hwinfo-20.0/changelog   2012-08-06 11:55:16.0 +0200
+++ 

commit hwinfo for openSUSE:Factory

2012-08-07 Thread h_root
Hello community,

here is the log from the commit of package hwinfo for openSUSE:Factory checked 
in at 2012-08-07 08:09:14

Comparing /work/SRC/openSUSE:Factory/hwinfo (Old)
 and  /work/SRC/openSUSE:Factory/.hwinfo.new (New)


Package is hwinfo, Maintainer is snw...@suse.com

Changes:

--- /work/SRC/openSUSE:Factory/hwinfo/hwinfo.changes2012-02-15 
16:16:08.0 +0100
+++ /work/SRC/openSUSE:Factory/.hwinfo.new/hwinfo.changes   2012-08-07 
08:09:37.0 +0200
@@ -1,0 +2,6 @@
+Mon Aug  6 11:55:17 CEST 2012 - snw...@suse.de
+
+- increase major version to 20 to avoid ABI change problems (maybe bnc #739349)
+- change multi-interface detection to work with old sysfs layout (bnc #739368, 
bnc #693090)
+
+---

Old:

  hwinfo-19.1.tar.bz2

New:

  hwinfo-20.0.tar.bz2



Other differences:
--
++ hwinfo.spec ++
--- /var/tmp/diff_new_pack.L7PB2d/_old  2012-08-07 08:09:41.0 +0200
+++ /var/tmp/diff_new_pack.L7PB2d/_new  2012-08-07 08:09:41.0 +0200
@@ -15,27 +15,27 @@
 # Please submit bugfixes or comments via http://bugs.opensuse.org/
 #
 
-# norootforbuild
-
 
 Name:   hwinfo
-BuildRequires:  doxygen flex perl-XML-Parser udev
+BuildRequires:  doxygen
+BuildRequires:  flex
+BuildRequires:  perl-XML-Parser
+BuildRequires:  udev
 %if 0%{?rhel_version} == 0
 BuildRequires:  perl-XML-Writer
 %endif
 %ifarch %ix86 x86_64
 BuildRequires:  libx86emu-devel
 %endif
-License:GPL-2.0+
-Group:  Hardware/Other
 Provides:   libhd
 Obsoletes:  libhd
 PreReq: /sbin/ldconfig
-AutoReqProv:on
 Summary:Hardware Library
-Version:19.1
-Release:1
-Source: hwinfo-19.1.tar.bz2
+License:GPL-2.0+
+Group:  Hardware/Other
+Version:20.0
+Release:0
+Source: hwinfo-20.0.tar.bz2
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 
 %description
@@ -45,7 +45,6 @@
 
 
 %package  devel
-License:GPL-2.0+
 Summary:Hardware Detection Library
 Group:  Development/Libraries/C and C++
 Provides:   libhddev

++ hwinfo-19.1.tar.bz2 - hwinfo-20.0.tar.bz2 ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-19.1/VERSION new/hwinfo-20.0/VERSION
--- old/hwinfo-19.1/VERSION 2012-02-10 09:49:41.0 +0100
+++ new/hwinfo-20.0/VERSION 2012-08-06 11:55:14.0 +0200
@@ -1 +1 @@
-19.1
+20.0
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-19.1/changelog new/hwinfo-20.0/changelog
--- old/hwinfo-19.1/changelog   2012-02-10 09:49:42.0 +0100
+++ new/hwinfo-20.0/changelog   2012-08-06 11:55:16.0 +0200
@@ -1,4 +1,7 @@
-2012-02-09:HEAD
+2012-05-22:20.0
+   - change multi-interface detection to work with old sysfs layout (bnc 
#739368, bnc #693090)
+
+2012-02-09:19.1
- basic arm support
- updated git related scripts
- Use new and correct sysfs driver names:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-19.1/src/hd/pci.c new/hwinfo-20.0/src/hd/pci.c
--- old/hwinfo-19.1/src/hd/pci.c2012-02-09 11:37:10.0 +0100
+++ new/hwinfo-20.0/src/hd/pci.c2012-08-06 11:52:28.0 +0200
@@ -310,7 +310,7 @@
   pci_t *pci, *pnext;
   unsigned u;
   char *s, *t;
-  str_list_t *net_ifs;
+  str_list_t *net_ifs, *net_ifs2;
 
   PROGRESS(4, 0, build list);
 
@@ -340,22 +340,40 @@
  * function, just replicate entries.
  */
 
+/* old kernels: subdir 'net/interface' */
 s = NULL;
 str_printf(s, 0, /sys%s/net, hd-sysfs_id);
 net_ifs = read_dir(s, 'D');
 s = free_mem(s);
 
+if(!net_ifs) {
+  /* old kernels: links 'net:interface' */
+  str_list_t *tmp, *sl;
+
+  str_printf(s, 0, /sys%s, hd-sysfs_id);
+  tmp = read_dir(s, 'l');
+  s = free_mem(s);
+
+  for(sl = tmp; sl; sl = sl-next) {
+if(!strncmp(sl-str, net:, sizeof net: - 1)) {
+  add_str_list(net_ifs, sl-str + sizeof net: - 1);
+}
+  }
+
+  free_str_list(tmp);
+}
+
 if(net_ifs) {
   hd-unix_dev_name = new_str(net_ifs-str);
-  net_ifs = net_ifs-next;
+  net_ifs2 = net_ifs-next;
 
-  for(; net_ifs; net_ifs = net_ifs-next) {
+  for(; net_ifs2; net_ifs2 = net_ifs2-next) {
 hd2 = add_hd_entry(hd_data, __LINE__, 0);
 hd2-sysfs_id = new_str(hd-sysfs_id);
 if(hd-drivers) {
   add_str_list(hd2-drivers, hd-drivers-str);
 }
-hd2-unix_dev_name = new_str(net_ifs-str);
+hd2-unix_dev_name = new_str(net_ifs2-str);
 hd2-detail = 

commit hwinfo for openSUSE:Factory

2011-12-06 Thread h_root
Hello community,

here is the log from the commit of package hwinfo for openSUSE:Factory checked 
in at 2011-12-06 18:18:33

Comparing /work/SRC/openSUSE:Factory/hwinfo (Old)
 and  /work/SRC/openSUSE:Factory/.hwinfo.new (New)


Package is hwinfo, Maintainer is snw...@suse.com

Changes:




Other differences:
--
++ hwinfo.spec ++
--- /var/tmp/diff_new_pack.WqM4NS/_old  2011-12-06 18:32:21.0 +0100
+++ /var/tmp/diff_new_pack.WqM4NS/_new  2011-12-06 18:32:21.0 +0100
@@ -26,7 +26,7 @@
 %ifarch %ix86 x86_64
 BuildRequires:  libx86emu-devel
 %endif
-License:GPLv2+
+License:GPL-2.0+
 Group:  Hardware/Other
 Provides:   libhd
 Obsoletes:  libhd
@@ -45,7 +45,7 @@
 
 
 %package  devel
-License:GPLv2+
+License:GPL-2.0+
 Summary:Hardware Detection Library
 Group:  Development/Libraries/C and C++
 Provides:   libhddev

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



commit hwinfo for openSUSE:Factory

2011-10-08 Thread h_root

Hello community,

here is the log from the commit of package hwinfo for openSUSE:Factory
checked in at Sat Oct 8 11:42:30 CEST 2011.




--- openSUSE:Factory/hwinfo/hwinfo.changes  2011-09-23 02:03:02.0 
+0200
+++ hwinfo/hwinfo.changes   2011-10-07 15:20:51.0 +0200
@@ -1,0 +2,17 @@
+Fri Oct  7 15:13:16 CEST 2011 - snw...@suse.de
+
+- fix network detection if several interfaces are attached to a single pci 
function (bnc #693090)
+- fixed typo
+- USB joystick fixes
+- replace USB details by joystick details
+- set unix_dev_name2 to /dev/input/jsX
+- added Gameport bus, detect gameport joysticks
+- cleanup - removed unused variables
+- added NULL checks
+- joystick: detect and report number of axes and buttons
+- added support for detecting USB joysticks
+- updated .gitignore
+- added .gitignore files
+- show disk capacity in GB
+
+---

calling whatdependson for head-i586


Old:

  hwinfo-18.5.tar.bz2

New:

  hwinfo-19.0.tar.bz2



Other differences:
--
++ hwinfo.spec ++
--- /var/tmp/diff_new_pack.EAqtVD/_old  2011-10-08 11:42:10.0 +0200
+++ /var/tmp/diff_new_pack.EAqtVD/_new  2011-10-08 11:42:10.0 +0200
@@ -33,9 +33,9 @@
 PreReq: /sbin/ldconfig
 AutoReqProv:on
 Summary:Hardware Library
-Version:18.5
+Version:19.0
 Release:1
-Source: hwinfo-18.5.tar.bz2
+Source: hwinfo-19.0.tar.bz2
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 
 %description

++ hwinfo-18.5.tar.bz2 - hwinfo-19.0.tar.bz2 ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-18.5/VERSION new/hwinfo-19.0/VERSION
--- old/hwinfo-18.5/VERSION 2011-03-11 11:43:19.0 +0100
+++ new/hwinfo-19.0/VERSION 2011-10-07 15:13:09.0 +0200
@@ -1 +1 @@
-18.5
+19.0
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-18.5/changelog new/hwinfo-19.0/changelog
--- old/hwinfo-18.5/changelog   2011-03-11 11:43:20.0 +0100
+++ new/hwinfo-19.0/changelog   2011-10-07 15:13:11.0 +0200
@@ -1,4 +1,21 @@
-2011-03-11:HEAD
+2011-10-07:19.0
+   - new new version
+   - new version
+   - fix network detection if several interfaces are attached to a single 
pci function (bnc #693090)
+   - fixed typo
+   - USB joystick fixes
+   - replace USB details by joystick details
+   - set unix_dev_name2 to /dev/input/jsX
+   - added Gameport bus, detect gameport joysticks
+   - cleanup - removed unused variables
+   - added NULL checks
+   - joystick: detect and report number of axes and buttons
+   - added support for detecting USB joysticks
+   - updated .gitignore
+   - added .gitignore files
+   - show disk capacity in GB
+
+2011-03-11:18.5
- check for battery, too, to decide on notebook (bnc #678456)
 
 2011-03-08:18.4
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-18.5/src/.gitignore 
new/hwinfo-19.0/src/.gitignore
--- old/hwinfo-18.5/src/.gitignore  1970-01-01 01:00:00.0 +0100
+++ new/hwinfo-19.0/src/.gitignore  2011-10-07 15:13:02.0 +0200
@@ -0,0 +1,3 @@
+.lib
+libhd.a
+libhd.so*
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-18.5/src/hd/.gitignore 
new/hwinfo-19.0/src/hd/.gitignore
--- old/hwinfo-18.5/src/hd/.gitignore   1970-01-01 01:00:00.0 +0100
+++ new/hwinfo-19.0/src/hd/.gitignore   2011-10-07 15:13:02.0 +0200
@@ -0,0 +1,3 @@
+*.o
+.depend
+version.h
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-18.5/src/hd/hd.c new/hwinfo-19.0/src/hd/hd.c
--- old/hwinfo-18.5/src/hd/hd.c 2011-02-16 14:19:01.0 +0100
+++ new/hwinfo-19.0/src/hd/hd.c 2011-10-07 15:13:02.0 +0200
@@ -1359,6 +1359,10 @@
 case hd_detail_ccw:
   free_mem(d-ccw.data);
   break;
+
+case hd_detail_joystick:
+  free_mem(d-joystick.data);
+  break;
   }
 
   free_mem(d);
@@ -2319,6 +2323,7 @@
 
 void hd_log(hd_data_t *hd_data, char *buf, ssize_t len)
 {
+  if (!hd_data) return;
   ssize_t new_size;
   char *p;
 
@@ -2635,6 +2640,8 @@
  */
 void progress(hd_data_t *hd_data, unsigned pos, unsigned count, char *msg)
 {
+  if (!hd_data) return;
+
   char buf1[32], buf2[32], buf3[128], *fn;
 
   if(hd_data-shm.ok  hd_data-flags.forked) {
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-18.5/src/hd/hd.h new/hwinfo-19.0/src/hd/hd.h
--- old/hwinfo-18.5/src/hd/hd.h 2011-03-11 11:27:31.0 +0100
+++ new/hwinfo-19.0/src/hd/hd.h 2011-10-07 15:13:02.0 +0200
@@ -19,7 +19,7 @@
  */
 
 /** Interface version */
-#define HD_VERSION 

commit hwinfo for openSUSE:Factory

2011-03-14 Thread h_root

Hello community,

here is the log from the commit of package hwinfo for openSUSE:Factory
checked in at Mon Mar 14 09:51:39 CET 2011.




--- hwinfo/hwinfo.changes   2011-03-08 11:26:50.0 +0100
+++ /mounts/work_src_done/STABLE/hwinfo/hwinfo.changes  2011-03-11 
11:43:40.0 +0100
@@ -1,0 +2,5 @@
+Fri Mar 11 11:43:28 CET 2011 - snw...@suse.de
+
+- check for battery, too, to decide on notebook (bnc #678456)
+
+---

calling whatdependson for head-i586


Old:

  hwinfo-18.4.tar.bz2

New:

  hwinfo-18.5.tar.bz2



Other differences:
--
++ hwinfo.spec ++
--- /var/tmp/diff_new_pack.caTeXT/_old  2011-03-14 09:51:18.0 +0100
+++ /var/tmp/diff_new_pack.caTeXT/_new  2011-03-14 09:51:18.0 +0100
@@ -33,9 +33,9 @@
 PreReq: /sbin/ldconfig
 AutoReqProv:on
 Summary:Hardware Library
-Version:18.4
+Version:18.5
 Release:1
-Source: hwinfo-18.4.tar.bz2
+Source: hwinfo-18.5.tar.bz2
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 
 %description

++ hwinfo-18.4.tar.bz2 - hwinfo-18.5.tar.bz2 ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-18.4/VERSION new/hwinfo-18.5/VERSION
--- old/hwinfo-18.4/VERSION 2011-03-08 11:26:37.0 +0100
+++ new/hwinfo-18.5/VERSION 2011-03-11 11:43:19.0 +0100
@@ -1 +1 @@
-18.4
+18.5
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-18.4/changelog new/hwinfo-18.5/changelog
--- old/hwinfo-18.4/changelog   2011-03-08 11:26:38.0 +0100
+++ new/hwinfo-18.5/changelog   2011-03-11 11:43:20.0 +0100
@@ -1,4 +1,7 @@
-2011-03-08:HEAD
+2011-03-11:HEAD
+   - check for battery, too, to decide on notebook (bnc #678456)
+
+2011-03-08:18.4
- avoid potential NULL pointer reference (bnc #677686)
 
 2011-02-16:18.3
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-18.4/src/hd/int.c new/hwinfo-18.5/src/hd/int.c
--- old/hwinfo-18.4/src/hd/int.c2011-02-16 14:19:01.0 +0100
+++ new/hwinfo-18.5/src/hd/int.c2011-03-11 11:36:10.0 +0100
@@ -80,6 +80,9 @@
   PROGRESS(6, 0, mouse);
   int_mouse(hd_data);
 
+  /* data already needed in int_system() */
+  hd_sysfs_driver_list(hd_data);
+
 #if defined(__i386__) || defined (__x86_64__)
   PROGRESS(15, 0, system info);
   int_system(hd_data);
@@ -1083,6 +1086,7 @@
   char *s;
   struct stat sbuf;
   sys_info_t *st;
+  hd_sysfsdrv_t *sf;
 
   for(hd_sys = hd_data-hd; hd_sys; hd_sys = hd_sys-next) {
 if(
@@ -1177,6 +1181,16 @@
 }
   }
 
+  /* check for battery, too (bnc #678456) */
+  if(!is.notebook) {
+for(sf = hd_data-sysfsdrv; sf; sf = sf-next) {
+  if(sf-driver  !strcmp(sf-driver, battery)) {
+is.notebook = 1;
+break;
+  }
+}
+  }
+
   ADD2LOG(
   system type:%s%s\n,
 is.vendor == v_ibm ?  ibm :
@@ -1268,8 +1282,6 @@
 {
   hd_t *hd;
 
-  hd_sysfs_driver_list(hd_data);
-
   for(hd = hd_data-hd; hd; hd = hd-next) {
 int_update_driver_data(hd_data, hd);
   }






Remember to have fun...

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



commit hwinfo for openSUSE:Factory

2011-03-09 Thread h_root

Hello community,

here is the log from the commit of package hwinfo for openSUSE:Factory
checked in at Wed Mar 9 10:23:05 CET 2011.




--- hwinfo/hwinfo.changes   2011-02-16 14:39:09.0 +0100
+++ /mounts/work_src_done/STABLE/hwinfo/hwinfo.changes  2011-03-08 
11:26:50.0 +0100
@@ -1,0 +2,5 @@
+Tue Mar  8 11:26:40 CET 2011 - snw...@suse.de
+
+- avoid potential NULL pointer reference (bnc #677686)
+
+---

calling whatdependson for head-i586


Old:

  hwinfo-18.3.tar.bz2

New:

  hwinfo-18.4.tar.bz2



Other differences:
--
++ hwinfo.spec ++
--- /var/tmp/diff_new_pack.5Jw9q5/_old  2011-03-09 10:22:21.0 +0100
+++ /var/tmp/diff_new_pack.5Jw9q5/_new  2011-03-09 10:22:21.0 +0100
@@ -33,9 +33,9 @@
 PreReq: /sbin/ldconfig
 AutoReqProv:on
 Summary:Hardware Library
-Version:18.3
+Version:18.4
 Release:1
-Source: hwinfo-18.3.tar.bz2
+Source: hwinfo-18.4.tar.bz2
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 
 %description

++ hwinfo-18.3.tar.bz2 - hwinfo-18.4.tar.bz2 ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-18.3/VERSION new/hwinfo-18.4/VERSION
--- old/hwinfo-18.3/VERSION 2011-02-16 14:38:46.0 +0100
+++ new/hwinfo-18.4/VERSION 2011-03-08 11:26:37.0 +0100
@@ -1 +1 @@
-18.3
+18.4
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-18.3/changelog new/hwinfo-18.4/changelog
--- old/hwinfo-18.3/changelog   2011-02-16 14:38:47.0 +0100
+++ new/hwinfo-18.4/changelog   2011-03-08 11:26:38.0 +0100
@@ -1,4 +1,7 @@
-2011-02-16:HEAD
+2011-03-08:HEAD
+   - avoid potential NULL pointer reference (bnc #677686)
+
+2011-02-16:18.3
- support Draytech miniVigor 128 ISDN (bnc #663288)
 
 2011-02-16:18.2
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-18.3/src/hd/usb.c new/hwinfo-18.4/src/hd/usb.c
--- old/hwinfo-18.3/src/hd/usb.c2011-02-16 14:19:01.0 +0100
+++ new/hwinfo-18.4/src/hd/usb.c2011-03-08 11:11:44.0 +0100
@@ -516,7 +516,7 @@
 hd_sysfs_id(name)
   );
 
-  if(!strncmp(sf_cdev_name, ts, sizeof ts - 1)) return;
+  if(!sf_cdev_name || !strncmp(sf_cdev_name, ts, sizeof ts - 1)) return;
 
   if((s = get_sysfs_attr_by_path(name, dev))) {
 if(sscanf(s, %u:%u, u1, u2) == 2) {






Remember to have fun...

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