Skip to content

Borgbackup: needs dependency added on python3-openssl #28156

@maartenjd

Description

@maartenjd

Package Name

Borgbackup

Maintainer

Julien Malik julien.malik@paraiso.me

OpenWrt Version

25.12.0-rc1

OpenWrt Target/Subtarget

ipq806x/generic

Steps to Reproduce

  1. Compile borgbackup and dependencies (from current master, python-pyfuse3 issue resolved by bump to pyfuse3 3.4.1)
  2. Install borgbackup (borgbackup-1.4.3-r1.apk, self built)
  3. 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)
  1. Install python3-openssl (python3-openssl-3.13.9-r2.apk, from 25.12.0-rc1 repository)
  2. Execute:
# borg -V
borg 1.4.3

Actual Behaviour

See steps to reproduce above.
See borgbackup/borg#8691
See borgbackup/borg#8691 (comment)
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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions