python-dmidecode
python-dmidecode copied to clipboard
Python DMI-Decode
It looks like someone in history created package in https://pypi.python.org/pypi/dmidecode and does not maintain it. In Fedora Linux the package is in RPM from this repo or at least it...
Fixes the following error: src/dmidecodemodule.c: In function ‘__dmidecode_xml_getsection’: src/dmidecodemodule.c:482:90: error: passing argument 3 of ‘_pyReturnError’ makes integer from pointer without a cast [-Wint-conversion] 482 | _pyReturnError(PyExc_RuntimeError, "Invalid type id '%s'...
Trying to build python-dmidecode with GCC 14 fails with: ``` [ 18s] src/dmidecodemodule.c: In function ‘__dmidecode_xml_getsection’: [ 18s] src/dmidecodemodule.c:482:90: error: passing argument 3 of ‘_pyReturnError’ makes integer from pointer without...
In "src/efi.c" the function "log_append()" is called with a [log level "LOG_DEBUG"](https://github.com/nima/python-dmidecode/blob/4fdb678f9bea418318131884dd3ffb0a9ab9d1d6/src/efi.c#L87), but the corresponding function in "src/dmilog.c" [only allows "LOG_ERR" and "LOG_WARNING"](https://github.com/nima/python-dmidecode/blob/4fdb678f9bea418318131884dd3ffb0a9ab9d1d6/src/dmilog.c#L93). This bug was introduced with [a commit...
This patch fixes some type casting that are errors by default in gcc14 and greater. Fix https://github.com/nima/python-dmidecode/issues/56
I meet problems like this when I use clang: [ 75s] src/dmidecodemodule.c:916:28: error: incompatible function pointer types initializing 'PyCFunction' (aka 'struct _object *(*)(struct _object *, struct _object *)') with an...