Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package hwinfo for openSUSE:Factory checked in at 2026-08-02 23:13:40 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/hwinfo (Old) and /work/SRC/openSUSE:Factory/.hwinfo.new.16738 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "hwinfo" Sun Aug 2 23:13:40 2026 rev:204 rq:1368859 version:25.5 Changes: -------- --- /work/SRC/openSUSE:Factory/hwinfo/hwinfo.changes 2026-06-03 20:20:51.445292962 +0200 +++ /work/SRC/openSUSE:Factory/.hwinfo.new.16738/hwinfo.changes 2026-08-02 23:14:10.415758543 +0200 @@ -1,0 +2,20 @@ +Fri Jul 31 12:25:46 UTC 2026 - [email protected] + +- merge gh#openSUSE/hwinfo#187 +- small adjustments to bash-completion, update spec file +- 25.5 + +-------------------------------------------------------------------- +Fri Jul 31 11:59:39 UTC 2026 - [email protected] + +- merge gh#openSUSE/hwinfo#183 +- add bash completion script for hwinfo + +-------------------------------------------------------------------- +Fri Jul 31 11:43:30 UTC 2026 - [email protected] + +- merge gh#openSUSE/hwinfo#186 +- serial driver file name changed in /proc in current kernel, + adjusting code (bsc#1271724) + +-------------------------------------------------------------------- Old: ---- hwinfo-25.4.tar.xz New: ---- hwinfo-25.5.tar.xz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ hwinfo.spec ++++++ --- /var/tmp/diff_new_pack.f7c9ia/_old 2026-08-02 23:14:11.579798498 +0200 +++ /var/tmp/diff_new_pack.f7c9ia/_new 2026-08-02 23:14:11.579798498 +0200 @@ -17,7 +17,7 @@ Name: hwinfo -Version: 25.4 +Version: 25.5 %define lname libhd%(echo "%version" | perl -pe 's{\\D.*}{}') Release: 0 Summary: Hardware Library @@ -116,6 +116,9 @@ %dir %{_datadir}/hwinfo %{_datadir}/hwinfo/* %{_tmpfilesdir}/%{name}.conf +%dir %{_datadir}/bash-completion +%dir %{_datadir}/bash-completion/completions/ +%{_datadir}/bash-completion/completions/%{name} %files -n %lname %{_libdir}/libhd.so.* ++++++ hwinfo-25.4.tar.xz -> hwinfo-25.5.tar.xz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/hwinfo-25.4/.gitignore new/hwinfo-25.5/.gitignore --- old/hwinfo-25.4/.gitignore 2026-06-02 16:47:54.000000000 +0200 +++ new/hwinfo-25.5/.gitignore 2026-07-31 14:25:46.000000000 +0200 @@ -3,5 +3,5 @@ VERSION *.o .depend -hwinfo +/hwinfo hwinfo.pc diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/hwinfo-25.4/Makefile new/hwinfo-25.5/Makefile --- old/hwinfo-25.4/Makefile 2026-06-02 16:47:54.000000000 +0200 +++ new/hwinfo-25.5/Makefile 2026-07-31 14:25:46.000000000 +0200 @@ -24,6 +24,8 @@ INSTALL_PREFIX = /usr +BASHCOMP_DIR ?= $(INSTALL_PREFIX)/share/bash-completion/completions + ifeq "$(ARCH)" "x86_64" LIBDIR ?= $(INSTALL_PREFIX)/lib64 else ifeq "$(ARCH)" "loongarch64" @@ -128,6 +130,8 @@ install -d -m 755 $(DESTDIR)/var/lib/hardware/udi install -m 644 src/isdn/cdb/ISDN.CDB.txt $(DESTDIR)$(INSTALL_PREFIX)/share/hwinfo install -m 644 src/isdn/cdb/ISDN.CDB.hwdb $(DESTDIR)$(INSTALL_PREFIX)/share/hwinfo + install -d -m 755 $(DESTDIR)$(BASHCOMP_DIR) + install -m 644 bash-completion/hwinfo $(DESTDIR)$(BASHCOMP_DIR)/hwinfo archive: changelog @if [ ! -d .git ] ; then echo no git repo ; false ; fi diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/hwinfo-25.4/VERSION new/hwinfo-25.5/VERSION --- old/hwinfo-25.4/VERSION 2026-06-02 16:47:54.000000000 +0200 +++ new/hwinfo-25.5/VERSION 2026-07-31 14:25:46.000000000 +0200 @@ -1 +1 @@ -25.4 +25.5 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/hwinfo-25.4/bash-completion/hwinfo new/hwinfo-25.5/bash-completion/hwinfo --- old/hwinfo-25.4/bash-completion/hwinfo 1970-01-01 01:00:00.000000000 +0100 +++ new/hwinfo-25.5/bash-completion/hwinfo 2026-07-31 14:25:46.000000000 +0200 @@ -0,0 +1,167 @@ +_hwinfo_module() +{ + local cur prev OPTS + COMPREPLY=() + cur="${COMP_WORDS[COMP_CWORD]}" + prev="${COMP_WORDS[COMP_CWORD-1]}" + case $prev in + '--only') + local IFS=$'\n' + compopt -o filenames + COMPREPLY=( $(compgen -f -- $cur) ) + return 0 + ;; + '--log'|'-l') + local IFS=$'\n' + compopt -o filenames + COMPREPLY=( $(compgen -f -- $cur) ) + return 0 + ;; + '--debug'|'-d') + COMPREPLY=( $(compgen -W "1 2 4 8 16 32 64 128 256 512 1024 2048 4096 8192 16384 32768 65536 131072 262144 524288 1048576 2097152 4194304 8388608" -- $cur) ) + return 0 + ;; + '--save-config'|'--show-config'|'--write-udi') + return 0 + ;; + '--format') + COMPREPLY=( $(compgen -W "0 1 2 3" -- $cur) ) + return 0 + ;; + '--dump-db'|'--dump-db-raw') + COMPREPLY=( $(compgen -W "0 1" -- $cur) ) + return 0 + ;; + '--root') + compopt -o filenames + COMPREPLY=( $(compgen -o dirnames -- $cur) ) + return 0 + ;; + '--hddb-dir'|'--hddb-dir-new') + compopt -o filenames + COMPREPLY=( $(compgen -o dirnames -- $cur) ) + return 0 + ;; + '--db') + return 0 + ;; + '--kernel-version') + return 0 + ;; + '-h'|'--help'|'--version'|'-p'|'--packages'|'-v'|'--verbose') + return 0 + ;; + esac + case $cur in + -*) + OPTS="--all + --arch + --bios + --block + --bluetooth + --braille + --bridge + --camera + --cdrom + --chipcard + --cpu + --disk + --display + --dsl + --dvb + --fingerprint + --firewire + --firewire-ctrl + --firewire_ctrl + --floppy + --framebuffer + --gfxcard + --hotplug + --hotplug-ctrl + --hotplug_ctrl + --hub + --ide + --ieee1394 + --ieee1394-ctrl + --ieee1394_ctrl + --isapnp + --isdn + --joystick + --keyboard + --listmd + --manual + --memory + --mmc-ctrl + --mmc_ctrl + --modem + --monitor + --mouse + --netcard + --netcards + --network + --network-ctrl + --network_ctrl + --nvme + --partition + --pci + --pcmcia + --pcmcia-ctrl + --pcmcia_ctrl + --pppoe + --printer + --reallyall + --redasd + --scanner + --scsi + --smp + --sound + --special + --storage-ctrl + --storage_ctrl + --sys + --tape + --tv + --uml + --usb + --usb-ctrl + --usb_ctrl + --vbe + --wlan + --xen + --zip + --db + --debug + --dump-db + --dump-db-raw + --fast + --format + --hddb-dir + --hddb-dir-new + --help + --kernel-version + --log + --map + --map2 + --nowpa + --only + --packages + --root + --save-config + --separate + --short + --show-config + --test + --verbose + --version + --write-udi + -h -d -l -p -v" + COMPREPLY=( $(compgen -W "${OPTS[*]}" -- $cur) ) + return 0 + ;; + esac + local IFS=$'\n' + compopt -o filenames + COMPREPLY=( $(compgen -f -- $cur) ) + return 0 +} +complete -F _hwinfo_module hwinfo diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/hwinfo-25.4/changelog new/hwinfo-25.5/changelog --- old/hwinfo-25.4/changelog 2026-06-02 16:47:54.000000000 +0200 +++ new/hwinfo-25.5/changelog 2026-07-31 14:25:46.000000000 +0200 @@ -1,3 +1,12 @@ +2026-07-31: 25.5 + - merge gh#openSUSE/hwinfo#186 + - serial driver file name changed in /proc in current kernel, + adjusting code (bsc#1271724) + - merge gh#openSUSE/hwinfo#183 + - add bash completion script for hwinfo + - merge gh#openSUSE/hwinfo#187 + - small adjustments to bash-completion, update spec file + 2026-06-02: 25.4 - merge gh#openSUSE/hwinfo#179 - Fix: fix sizeof in joystick allocation to use struct size instead diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/hwinfo-25.4/obs/hwinfo.spec new/hwinfo-25.5/obs/hwinfo.spec --- old/hwinfo-25.4/obs/hwinfo.spec 2026-06-02 16:47:54.000000000 +0200 +++ new/hwinfo-25.5/obs/hwinfo.spec 2026-07-31 14:25:46.000000000 +0200 @@ -116,6 +116,9 @@ %dir %{_datadir}/hwinfo %{_datadir}/hwinfo/* %{_tmpfilesdir}/%{name}.conf +%dir %{_datadir}/bash-completion +%dir %{_datadir}/bash-completion/completions/ +%{_datadir}/bash-completion/completions/%{name} %files -n %lname %{_libdir}/libhd.so.* diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/hwinfo-25.4/src/hd/hd_int.h new/hwinfo-25.5/src/hd/hd_int.h --- old/hwinfo-25.4/src/hd/hd_int.h 2026-06-02 16:47:54.000000000 +0200 +++ new/hwinfo-25.5/src/hd/hd_int.h 2026-07-31 14:25:46.000000000 +0200 @@ -12,7 +12,8 @@ #define PROC_CDROM_INFO "/proc/sys/dev/cdrom/info" #define PROC_NET_IF_INFO "/proc/net/dev" #define PROC_MODULES "/proc/modules" -#define PROC_DRIVER_SERIAL "/proc/tty/driver/serial" +#define PROC_DRIVER_SERIAL_OLD "/proc/tty/driver/serial" +#define PROC_DRIVER_SERIAL "/proc/tty/driver/serial_8250" #define PROC_DRIVER_MACSERIAL "/proc/tty/driver/macserial" #define PROC_PARPORT_22 "/proc/parport/" /* Final '/' is essential! */ #define PROC_PARPORT_24 "/proc/sys/dev/parport/parport" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/hwinfo-25.4/src/hd/serial.c new/hwinfo-25.5/src/hd/serial.c --- old/hwinfo-25.4/src/hd/serial.c 2026-06-02 16:47:54.000000000 +0200 +++ new/hwinfo-25.5/src/hd/serial.c 2026-07-31 14:25:46.000000000 +0200 @@ -177,7 +177,15 @@ * somewhat buggy at the moment (2.2.13), hence the explicit 44 lines * limit. That may be dropped later. */ - sl0 = read_file(PROC_DRIVER_SERIAL, 1, 44); + + char *serial_driver_name = PROC_DRIVER_SERIAL; + + sl0 = read_file(serial_driver_name, 1, 44); + if(!sl0) { + sl0 = read_file(PROC_DRIVER_SERIAL_OLD, 1, 44); + if(sl0) serial_driver_name = PROC_DRIVER_SERIAL_OLD; + } + sll = &sl0; while(*sll) sll = &(*sll)->next; // append Agere modem devices @@ -206,11 +214,11 @@ if((hd_data->debug & HD_DEB_SERIAL)) { /* log just the first 16 entries */ - ADD2LOG("----- "PROC_DRIVER_SERIAL" -----\n"); + ADD2LOG("----- %s -----\n", serial_driver_name); for(sl = sl0, i = 16; sl && i--; sl = sl->next) { ADD2LOG(" %s", sl->str); } - ADD2LOG("----- "PROC_DRIVER_SERIAL" end -----\n"); + ADD2LOG("----- %s end -----\n", serial_driver_name); } } #endif /* !defined(__PPC__) */
