Borgbackup: needs dependency added on python3-openssl
Nobody has claimed this yet.
- Dominant language
- Makefile
- Stars
- 4.6k
- Forks
- 4k
- Avg merge
- 3d 12h
- Merged PRs (30d)
- 134
Description
Package Name
Borgbackup
Maintainer
@julienmalik
OpenWrt Version
25.12.0-rc1
OpenWrt Target/Subtarget
ipq806x/generic
Steps to Reproduce
- Compile borgbackup and dependencies (from current master, python-pyfuse3 issue resolved by bump to pyfuse3 3.4.1)
- Install borgbackup (borgbackup-1.4.3-r1.apk, self built)
- Execute:
# borg -V
Traceback (most recent call last):
File "/usr/lib/python3.13/site-packages/borg/archiver.py", line 47, in <module>
File "/usr/lib/python3.13/site-packages/borg/archive.py", line 24, in <module>
File "/usr/lib/python3.13/site-packages/borg/cache.py", line 31, in <module>
File "/usr/lib/python3.13/site-packages/borg/crypto/key.py", line 10, in <module>
ImportError: cannot import name 'pbkdf2_hmac' from 'hashlib' (/usr/lib/python3.13/hashlib.pyc)
- Install python3-openssl (python3-openssl-3.13.9-r2.apk, from 25.12.0-rc1 repository)
- Execute:
# borg -V
borg 1.4.3
Actual Behaviour
See steps to reproduce above.
See https://github.com/borgbackup/borg/issues/8691
See https://github.com/borgbackup/borg/issues/8691#issuecomment-2743020675
See https://docs.python.org/3/library/hashlib.html#hashlib.pbkdf2_hmac:
hashlib.pbkdf2_hmac: Changed in version 3.12: Function now only available when Python is built with OpenSSL. The slow pure Python implementation has been removed.
Solution: add dependency +python3-openssl to borgbackup makefile
I will raise a separate issue for python-pyfuse3
Confirmation Checklist
- The package is maintained in this repository.
- I understand that issues related to the base OpenWrt repository or LuCI repository will be closed.
- I am reporting an issue for OpenWrt, not an unsupported fork.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the Borgbackup package Makefile and review its dependency declarations. Reproduce the failure with borg -V without python3-openssl, then verify that installing the declared dependency makes the command report borg 1.4.3 successfully.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 55/100