New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Replace use of crcmod
by something else
#681
Comments
For my reference: it's used for
Anything to back this up? |
So why not use one of the python standard libraries crc?
Check any OS distribution. [tkloczko@domek fedora]$ rpm -qp --qf "%{NAME}: [%{REQUIRENAME} ]\n" */*rpm | grep 'python3dist(crcmod)'
liquidctl: (python3dist(tomli) if python3-devel < 3.11) pyproject-rpm-macros python3-devel python3-devel python3dist(colorlog) python3dist(crcmod) python3dist(docopt) python3dist(hidapi) python3dist(packaging) python3dist(pillow) python3dist(pip) python3dist(pytest) python3dist(pyusb) python3dist(setuptools) python3dist(setuptools-scm) python3dist(setuptools-scm) python3dist(setuptools-scm[toml]) python3dist(smbus) python3dist(tox) python3dist(tox-current-env) python3dist(wheel) rpmlib(CompressedFileNames) rpmlib(DynamicBuildRequires) rpmlib(FileDigests) rpmlib(RichDependencies) systemd-rpm-macros
python-gcsfs: ((python3dist(aiohttp) < 4~a0 or python3dist(aiohttp) > 4~a0) with (python3dist(aiohttp) < 4~a1 or python3dist(aiohttp) > 4~a1)) latexmk make pyproject-rpm-macros python3-devel python3-devel python3-sphinx-latex python3dist(crcmod) python3dist(decorator) python3dist(fsspec) python3dist(fusepy) python3dist(google-auth) python3dist(google-auth-oauthlib) python3dist(google-cloud-storage) python3dist(packaging) python3dist(pip) python3dist(pytest) python3dist(requests) python3dist(setuptools) python3dist(sphinx) python3dist(sphinx-rtd-theme) python3dist(vcrpy) python3dist(wheel) rpmlib(CompressedFileNames) rpmlib(DynamicBuildRequires) rpmlib(FileDigests) rpmlib(RichDependencies) rpmlib(TildeInVersions) |
Like Aleksa mentioned, we need CRC-8 (CRC-8/SMBUS) and CRC-16/USB, so there are no implementations from the standard library we can use. While There's also a new player, For completeness, in the past we used our own CRC-8 implementation (that I had copied and then adapted from somewhere), but with the need for CRC-16/USB, I don't think this approach makes sense. So, practically, I think we can choose between |
crcmod
by something elsecrcmod
by something else
Packaging statuses according to Repology: |
Describe the bug
Issues:
crcmod
is not maintained since 2010crcmod
binascii.crc32
orzlib.crc32
Commands executed
N/A
Output of all relevant commands with
--debug
flagN/A
Affected device
N/A
Does your version of liquidctl support the device in question?
Yes, my version supports it
Operating system and version
Linux x86/64
Installation method
N/A
Version of liquidctl
1.13.0
The text was updated successfully, but these errors were encountered: