Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package hwinfo for openSUSE:Factory checked 
in at 2022-04-16 00:13:49
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/hwinfo (Old)
 and      /work/SRC/openSUSE:Factory/.hwinfo.new.1941 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "hwinfo"

Sat Apr 16 00:13:49 2022 rev:185 rq:969714 version:21.81

Changes:
--------
--- /work/SRC/openSUSE:Factory/hwinfo/hwinfo.changes    2021-12-18 
20:29:20.634212484 +0100
+++ /work/SRC/openSUSE:Factory/.hwinfo.new.1941/hwinfo.changes  2022-04-16 
00:14:03.757634150 +0200
@@ -1,0 +2,7 @@
+Wed Apr 13 07:20:43 UTC 2022 - wfe...@opensuse.org
+
+- merge gh#openSUSE/hwinfo#112
+- fix bug in determining serial console device name (bsc#1198043)
+- 21.81
+
+--------------------------------------------------------------------

Old:
----
  hwinfo-21.80.tar.xz

New:
----
  hwinfo-21.81.tar.xz

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

Other differences:
------------------
++++++ hwinfo.spec ++++++
--- /var/tmp/diff_new_pack.cM1k9C/_old  2022-04-16 00:14:04.249634807 +0200
+++ /var/tmp/diff_new_pack.cM1k9C/_new  2022-04-16 00:14:04.253634812 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package hwinfo
 #
-# Copyright (c) 2021 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2022 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
@@ -37,7 +37,7 @@
 License:        GPL-2.0-or-later
 Group:          Hardware/Other
 Url:            http://gitorious.org/opensuse/hwinfo
-Version:        21.80
+Version:        21.81
 Release:        0
 Source:         %{name}-%{version}.tar.xz
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build

++++++ hwinfo-21.80.tar.xz -> hwinfo-21.81.tar.xz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.80/VERSION new/hwinfo-21.81/VERSION
--- old/hwinfo-21.80/VERSION    2021-12-17 10:04:17.000000000 +0100
+++ new/hwinfo-21.81/VERSION    2022-04-13 09:20:43.000000000 +0200
@@ -1 +1 @@
-21.80
+21.81
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.80/changelog new/hwinfo-21.81/changelog
--- old/hwinfo-21.80/changelog  2021-12-17 10:04:17.000000000 +0100
+++ new/hwinfo-21.81/changelog  2022-04-13 09:20:43.000000000 +0200
@@ -1,3 +1,7 @@
+2022-04-13:    21.81
+       - merge gh#openSUSE/hwinfo#112
+       - fix bug in determining serial console device name (bsc#1198043)
+
 2021-12-17:    21.80
        - merge gh#openSUSE/hwinfo#109
        - fix logic around cdrom detection
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hwinfo-21.80/src/hd/kbd.c 
new/hwinfo-21.81/src/hd/kbd.c
--- old/hwinfo-21.80/src/hd/kbd.c       2021-12-17 10:04:17.000000000 +0100
+++ new/hwinfo-21.81/src/hd/kbd.c       2022-04-13 09:20:43.000000000 +0200
@@ -137,10 +137,23 @@
     if(ioctl(fd, TIOCGDEV, &u) != -1) {
       tty_major = (u >> 8) & 0xfff;
       tty_minor = (u & 0xff) | ((u >> 12) & 0xfff00);
-      ADD2LOG(DEV_CONSOLE ": major %u, minor %u\n", tty_major, tty_minor);
+      // get char device name from major:minor numbers
+      char *dev_link = NULL, *dev_name = NULL;
+      str_printf(&dev_link, 0, "/dev/char/%u:%u", tty_major, tty_minor);
+      dev_name = realpath(dev_link, NULL);
+      if(
+        dev_name &&
+        strcmp(dev_name, dev_link) &&
+        !strncmp(dev_name, "/dev/", sizeof "/dev/" - 1)
+      ) {
+        dev = new_str(dev_name + sizeof "/dev/" - 1);
+      }
+      ADD2LOG(DEV_CONSOLE ": major %u, minor %u, name %s\n", tty_major, 
tty_minor, dev);
+      free_mem(dev_link);
+      free_mem(dev_name);
     }
 
-    if (0)
+    if (dev)
            ;
 #ifdef __powerpc__
     else if(tty_major == 229 /* iseries hvc */) {

Reply via email to