Bug#1033585: "smbios-token-ctl -d" yields "RuntimeError: generator raised StopIteration"

2023-03-27 Thread Robert Mavrinac
Package: smbios-utils

Any dependency in the smbios-tools python scripts on 
/usr/lib/python3/dist-packages/libsmbios_c/smbios_token.py imporperly raises a 
StopIteration exception with newer versions of Python 3 and terminates.

# smbios-token-ctl -d

  Token: 0x0005 - Serial Port 1 (COM2)
  value: bool = false
   Desc: Configure the system's first/only built-in serial port to respond as CO
 M2.
...
...
...

  Token: 0xf654 - unknown (unknown)
  value: bool = false
   Desc: unknown
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/libsmbios_c/smbios_token.py", line 134, 
in __iter__
raise StopIteration
StopIteration

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/sbin/smbios-token-ctl", line 475, in 
sys.exit( main() )
  ^^
  File "/usr/sbin/smbios-token-ctl", line 380, in main
dumpTokens(tokenTable, tokenXlator, options)
  File "/usr/sbin/smbios-token-ctl", line 214, in dumpTokens
for token in tokenTable:
RuntimeError: generator raised StopIteration


This patch corrects the problem, allowing iterations to continue as expected:

--- smbios_token.py 2023-03-27 13:47:02.135215225 -0400
+++ smbios_token.py.new 2023-03-27 13:47:32.275214757 -0400
@@ -129,9 +129,12 @@
 while 1:
 cur =DLL.token_table_get_next( self._tableobj, cur )
 if bool(cur):
-yield cur.contents
+try:
+yield cur.contents
+except StopIteration:
+return
 else:
-raise StopIteration
+return

 @traceLog()
 def __getitem__(self, id):


I am running Debian Bookworm

# uname -a
Linux lt3107-1 6.1.0-6-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.15-1 
(2023-03-05) x86_64 GNU/Linux



--


Robert Mavrinac

Systems Analyst

School of Computer Science

Room 3103B Lambton Tower

University of Windsor

401 Sunset Avenue, Windsor, ON N9B 3P4

519-253-3000 (4410)

Email: mavri...@uwindsor.ca<mailto:mavri...@uwindsor.ca>


Bug#1029716: make-sqldeveloper-package fails on linking in temporary directory

2023-01-26 Thread Robert Mavrinac
 libjavafx_iio
./make-sqldeveloper-package: 654: [: Illegal number: libglassgtk2
./make-sqldeveloper-package: 656: [: Illegal number: libglassgtk2
./make-sqldeveloper-package: 654: [: Illegal number: ffmpeg-57
./make-sqldeveloper-package: 656: [: Illegal number: ffmpeg-57
./make-sqldeveloper-package: 654: [: Illegal number: lite
./make-sqldeveloper-package: 656: [: Illegal number: lite
./make-sqldeveloper-package: 654: [: Illegal number: libfxplugins
./make-sqldeveloper-package: 656: [: Illegal number: libfxplugins
./make-sqldeveloper-package: 654: [: Illegal number: ffmpeg-56
./make-sqldeveloper-package: 656: [: Illegal number: ffmpeg-56
./make-sqldeveloper-package: 654: [: Illegal number: libdecora_sse
./make-sqldeveloper-package: 656: [: Illegal number: libdecora_sse
./make-sqldeveloper-package: 654: [: Illegal number: libprism_common
./make-sqldeveloper-package: 656: [: Illegal number: libprism_common
done!
Cleaning up work directory 
"/tmp/user/0/tmp.OkM7V0yfPp/sqldeveloper-22.2.1.234.1810" for compliant 
package(s) generation:
  deleting foreign binaries, image thumbnails and caches, foreign 
configuration files, source code, empty directories, done!
  fixing shebang lines, executable bit, done!
  documenting demo files, theme templates, application notes, done!
Populating the "/tmp/user/0/tmp.OkM7V0yfPp/sqldeveloper-22.2.1.234.1810/debian" 
package control directory:
  finding libraries to build ... done!
  debian/changelog ... done!
  debian/compat ... done!
  debian/control ... done!
  debian/rules ... done!
  debian/sqldeveloper-22.2.1.234.1810.copyright ... done!
  debian/sqldeveloper-22.2.1.234.1810.doc-base ... done!
  debian/libjnidispatch-22.2.1.234.1810.shlibs.amd64 ... done!
  debian/libjnidispatch-22.2.1.234.1810.shlibs.i386 ... done!
  debian/sqldeveloper-22.2.1.234.1810.changelog ... done!
  debian/control ... updated!
  debian/sqldeveloper-22.2.1.234.1810.copyright ... done!
  debian/sqldeveloper-22.2.1.234.1810.install.in ... done!
  debian/sqldeveloper-22.2.1.234.1810.lintian-overrides.amd64 ... done!
  debian/sqldeveloper-22.2.1.234.1810.lintian-overrides.i386 ... done!
  debian/libjnidispatch-22.2.1.234.1810.copyright ... updated!
  debian/sqldeveloper-22.2.1.234.1810.copyright ... updated!
  debian/sqldeveloper-22.2.1.234.1810.install ... done!
  debian/sqldeveloper-22.2.1.234.1810.links ... done!
  debian/sqldeveloper-22.2.1.234.1810.lintian-overrides ... done!
  debian/sqldeveloper-22.2.1.234.1810.manpages ... done!
  debian/sqldeveloper-22.2.1.234.1810.NEWS ... done!
  debian/sqldeveloper-22.2.1.234.1810.postinst ... done!
  debian/sqldeveloper-22.2.1.234.1810.prerm ... done!
  debian/sqldeveloper-22.2.1.234.1810.README.Debian ... done!
  debian/sqldeveloper.22.2.1.234.1810.1 ... done!
  debian/sdcli.22.2.1.234.1810.1 ... done!
  debian/sql.22.2.1.234.1810.bundled.1 ... done!
  debian/sqldeveloper.22.2.1.234.1810.bash ... done!
  debian/sqldeveloper.22.2.1.234.1810.desktop ... done!
  debian/sqldeveloper.22.2.1.234.1810.xpm ... done!
Building debian package(s) from sqldeveloper v22.2.1.234.1810 in "/root":
  sqldeveloper-22.2.1.234.1810_22.2.1.234.1810+0.5.4-1_all.deb ... done!
  libjnidispatch-22.2.1.234.1810_4.2.2+0.5.4-1_amd64.deb ... done!


I am using
Linux hostname 6.1.0-1-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.4-1 (2023-01-07) 
x86_64 GNU/Linux qnd libc 2.36-8



--


Robert Mavrinac

Systems Analyst

School of Computer Science

Room 3103B Lambton Tower

University of Windsor

401 Sunset Avenue, Windsor, ON N9B 3P4

519-253-3000 (4410)

Email: mavri...@uwindsor.ca<mailto:mavri...@uwindsor.ca>