-
Notifications
You must be signed in to change notification settings - Fork 18
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
Please replace bsddb3 by berkeleydb according to upstream deprecation notice #61
Comments
This is causing test failure downstream on my side, thanks for fixing this, hopefully the migration is not too complex for this project. |
I can try to make a PR if needed, or if you're too busy, please let me know. |
bsddb3 is used for the sendmail access file. Has sendmail also moved to berkeleydb ? Or is the underlying library the same, and this is a python wrapper change? I'm guessing it is a wrapper change only. |
I used to use anydbm - I can't remember why I had to go back to bsddb3 explicitly. Maybe anydbm works again. |
Please feel free to let me know when you have tried if Also I'm not sure if it's just a wrapper change as there were these instruction to migrate old code :
|
anydbm does not work. It is already tried if bsddb3 fails. Adding berkeleydb as another fallback. |
Was this done in a recent PR, can I close this issue ? @sdgathman |
Have to try combinations of python2.7/3.x and bsddb3/berkeleydb present/absent (anydbm only tries built-in dbms, and bsddb3/berkeleydb was dropped as a builtin). But you can go ahead and drop bsddb3 as a requirement. Since berkeleydb is in Fedora 40 and 39, and bsddb3 is deprecated, it really only needs to be tested for EL8. And I could probably package berkeleydb for EPEL8 if no one else does it first. (EL7 is near EOL and would just use older pymilter) Here is the result when neither are present:
|
That is the correct result - trying to refresh my memory of how to verify that in a test case. Maybe just concentrate on correct operation when either is present. Preference should be given to berkeleydb I think. |
As you suspected, berkeleydb does not work as a simple rename. Per your hint, will need some key conversion. |
I can't even get berkeleydb to open the access file. Does not accept db.DB_RDONLY. Looking for docs.
If bsddb3 is going away, and berkeleydb can't read sendmail access file, that leaves a knotty problem to solve. |
Nevermind, was opening access, not access.db - but still can't get it to find a key. I will try using cursor to list keys as it sees them. |
Working now! |
Thanks a lot for your work on this ! |
pymilter/Milter/policy.py
Line 2 in 1c05080
See here : google/nsscache#135
The text was updated successfully, but these errors were encountered: