Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 913238 - sys-libs/libsmbios: StopIteration is deprecated
Summary: sys-libs/libsmbios: StopIteration is deprecated
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Marek Szuba (RETIRED)
URL: https://github.com/dell/libsmbios/pul...
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2023-08-30 05:40 UTC by lg188
Modified: 2023-09-07 10:20 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description lg188 2023-08-30 05:40:11 UTC
StopIteration is deprecated but still used in the code.
Even though there is a pull request to fix this (it works for me as a user patch), the project seems to have halted and might never be pulled in.


Reproducible: Always

Steps to Reproduce:
1. Install sys-libs/libsmbios
2. Run smbios-token-ctl

Actual Results:  
A StopIteration exception is thrown 

Expected Results:  
No exception is thrown.
Comment 1 Marek Szuba (RETIRED) archtester gentoo-dev 2023-08-30 11:52:02 UTC
Thank you for the report! Seeing as upstream indeed appears to have gone dormant, looks like we are it as far as patching this is concerned.
Comment 2 Larry the Git Cow gentoo-dev 2023-09-07 10:20:55 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=034e6374ee320914d8df1d27215e943a60c9dc78

commit 034e6374ee320914d8df1d27215e943a60c9dc78
Author:     Marek Szuba <marecki@gentoo.org>
AuthorDate: 2023-09-07 09:51:21 +0000
Commit:     Marek Szuba <marecki@gentoo.org>
CommitDate: 2023-09-07 10:20:47 +0000

    sys-libs/libsmbios: squash long-present Python deprecation warning
    
    Closes: https://bugs.gentoo.org/913238
    Signed-off-by: Marek Szuba <marecki@gentoo.org>

 .../libsmbios-2.4.3-python-deprecations.patch      | 33 ++++++++
 sys-libs/libsmbios/libsmbios-2.4.3-r1.ebuild       | 92 ++++++++++++++++++++++
 2 files changed, 125 insertions(+)