Up to [cvs.NetBSD.org] / pkgsrc / sysutils / py-borgbackup / patches
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
py-msgpack: update to 1.2.4 (security) Also allow this version in py-borgbackup, following upstream. 1.2.3 - Fix memory leaks in the C extension when map key validation or container hooks fail. See GHSA-j586-36cw-2gc2. - wheels: also build for pyodide using emscripten - Support packing Python 3.15 frozentdict (PEP 814) - Reject negative array and map header sizes 1.2.4 - fallback: pass object_pairs_hook a list of pairs - fallback: leave the object unread when a header type does not match - fallback: return bytes from Unpacker.read_bytes - dependency updates
py-borgbackup: updated to 1.4.5
1.4.5 (2026-07-19)
For upgrade and compatibility hints, please also read the "Upgrade Notes" section
above.
New features:
- create/import-tar/delete/prune --quick-stats: faster than --stats by omitting "All archives"
and repository chunk statistics
- prune: show total vs matching archives in output
- create --exclude-dataless: macOS: skip cloud files not materialized locally
- support BORG_HOSTNAME and BORG_USERNAME env vars to override the hostname/username stored
in archives and used by the {hostname}/{user} placeholders
- Minimal implementation of "related repositories"
This feature allows multiple repositories to share deduplication-relevant secrets
(id_key and chunk_seed) while maintaining secure, independent encryption keys.
- borg key export-related-secrets <REPO> <SPATH>
- borg init --import-related-secrets <SPATH> <REPO>
- BORG_JSON_INDENT env var for JSON output formatting
- BORG_HOSTNAME and BORG_USERNAME env vars
Fixes:
- extract: security fixes for CVE-2026-62268 (low severity: attacker would need
repository write access and, if the repo is encrypted, also borg key and passphrase).
- create: do not wrap repository writes in backup_io("read")
- Archive.delete: don't reuse msgpack Unpacker after an unpacking failure
- slashdot hack: fix exclusion of source directory metadata
- hashindex: fix new checks for big endian archs
- Note:
Many of the fixed issues listed below relate to rather rare or theoretical
issues and were found by automated code checking.
- LRUCache: resolve KeyError and memory leaks
- crypto.low_level: fix freeing of memory
- extract: resolve memory leak on abandoned async requests in RemoteRepository
This can happen if borg fails to extract a file due to permission or other errors
or if the archived file had all-zero replacement chunks or inconsistent size.
- Chunker fixes
- Strictly check the return value of fd.read(n) and reject if it returns more
bytes than requested.
- Avoid giving len <= 0 to posix_fadvise(), which could drop the rest of the
file from the cache.
- buzhash: check for len == 0 edge case
- Correctly Py_DECREF in cases of errors.
- Check for malloc/calloc failures.
- Hashindex fixes
- Make it possible to look up in compacted hashtables.
- Avoid buckets_length integer overflow on 32-bit systems via huge num_buckets.
- Deal safely with empty index: we must use num_buckets = 1 to avoid division
by zero and sanity check in hashindex_read.
- Always initialize min_empty and num_empty.
- Reinitialize upper/lower limit and min_empty after compact.
- Fix size_idx / fit_size / grow_size / shrink_size (mind array bounds).
- Deal with growing when already at max capacity.
- hashindex_resize: replace num_entries assertion, return an error instead.
- Correctly free memory when header validation fails.
- BaseIndex.clear: always stay in valid state.
Do not free the old index before we successfully have allocated a new one.
Other changes:
- msgpack: also allow up to 1.2.1
- use F_FULLFSYNC on macOS for SyncFile data durability
- mount: drop runtime warning about symlinks and improve corresponding docs
- mount: improve error msg when uid/gid cannot be resolved
- properly handle invalid and dev versions in version parser
- tests: reset borg.output.progress logger between tests to fix flakiness
- docs
Pullup ticket #7189 - requested by he
sysutils/py-borgbackup: Build fix
Revisions pulled up:
- sysutils/py-borgbackup/Makefile 1.64
- sysutils/py-borgbackup/distinfo 1.43
- sysutils/py-borgbackup/patches/patch-pyproject.toml 1.3
- sysutils/py-borgbackup/patches/patch-src_borg_helpers_msgpack.py 1.7
---
Module Name: pkgsrc
Committed By: he
Date: Tue Jul 21 14:10:28 UTC 2026
Modified Files:
pkgsrc/sysutils/py-borgbackup: Makefile distinfo
Added Files:
pkgsrc/sysutils/py-borgbackup/patches: patch-pyproject.toml
patch-src_borg_helpers_msgpack.py
Log Message:
sysutils/py-borgbackup: make this accept a newer py-msgpack.
This is in contravention to the upstream policy which insists that
because the maintainers of py-msgpack in the distant past made a
non-compatible change (apparently in a version before 0.5.6 of
py-msgpack, many, many years ago), they now insist that you *cannot*
use a newer version of py-msgpack than what the code insists on,
ref.
https://github.com/borgbackup/borg/issues/3753
This collides (hard) with the pkgsrc default stance which is to
"upgrade everything to the newest available version", and makes
this package break each time a new version of py-msgpack is integrated
in pkgsrc.
For now just patch this to accept py-msgpack versions between
0.5.6 and 1.2.1 and not just between 0.5.6 and 1.1.2.
At least testing by doing a backup run makes that backup run
complete successfully with py-mgspack 1.2.1 installed, instead
of a sour error message that a non-supported version of msgpack
is installed.
This time I'll leave a comment over on the py-msgpack package,
in an attempt at preventing this problem from once again creep
into a pkgsrc maintenance branch.
Bump PKGREVISION.
file patch-pyproject.toml was added on branch pkgsrc-2026Q2 on 2026-07-21 18:35:28 +0000
sysutils/py-borgbackup: make this accept a newer py-msgpack. This is in contravention to the upstream policy which insists that because the maintainers of py-msgpack in the distant past made a non-compatible change (apparently in a version before 0.5.6 of py-msgpack, many, many years ago), they now insist that you *cannot* use a newer version of py-msgpack than what the code insists on, ref. https://github.com/borgbackup/borg/issues/3753 This collides (hard) with the pkgsrc default stance which is to "upgrade everything to the newest available version", and makes this package break each time a new version of py-msgpack is integrated in pkgsrc. For now just patch this to accept py-msgpack versions between 0.5.6 and 1.2.1 and not just between 0.5.6 and 1.1.2. At least testing by doing a backup run makes that backup run complete successfully with py-mgspack 1.2.1 installed, instead of a sour error message that a non-supported version of msgpack is installed. This time I'll leave a comment over on the py-msgpack package, in an attempt at preventing this problem from once again creep into a pkgsrc maintenance branch. Bump PKGREVISION.
py-borgbackup: update to 1.4.2. Now officially supports msgpack 1.1.2, so these patches are no longer needed. New features: - BORG_MSGPACK_VERSION_CHECK=no to optionally disable the msgpack version check; default is “yes”; use at your own risk. - diff --sort-by: enhanced sorting - create: add --files-changed=MODE option (controls how borg detects whether a file has changed while it is being backed up) - improve tty-less progress reporting (--progress) Fixes: - extract: fs flags: use get/set to influence only specific flags, Linux/macOS/FreeBSD only. - extract: fs flags: remove support for the compression flag; this wasn’t working correctly anyway. - create/info: fix discrepancies in archive stats - import-tar: fix the dot-slash issue; add a test - import-tar: when printing the path, use the already-normalized item.path - preprocess_args: fix option name matching - fix ChunkerParams validation - mount --show-rc: display main process rc - json: include archive keys in JSON lines when requested via --format Other changes: - support Python 3.14 - msgpack: allow 1.1.2 - Brewfile: use openssl@3 rather than openssl@3.0, to have a more recent OpenSSL. - msgpack version check: ignore “rc” and other version elements
Pullup ticket #7013 - requested by bsiegert
sysutils/py-borgbackup: Functionality fix
Revisions pulled up:
- sysutils/py-borgbackup/Makefile 1.59
- sysutils/py-borgbackup/distinfo 1.39
- sysutils/py-borgbackup/patches/patch-pyproject.toml 1.1
- sysutils/py-borgbackup/patches/patch-src_borg_helpers_msgpack.py 1.5
---
Module Name: pkgsrc
Committed By: he
Date: Thu Oct 16 21:30:21 UTC 2025
Modified Files:
pkgsrc/sysutils/py-borgbackup: Makefile distinfo
Added Files:
pkgsrc/sysutils/py-borgbackup/patches: patch-pyproject.toml
patch-src_borg_helpers_msgpack.py
Log Message:
sysutils/py-borgbackup: add patches to accept py-msgpack up to 1.1.2.
This evidently got lost in the previous update...
This replicates what upstream has already done in 1.4.2rc*.
file patch-pyproject.toml was added on branch pkgsrc-2025Q3 on 2025-10-21 01:43:30 +0000
sysutils/py-borgbackup: add patches to accept py-msgpack up to 1.1.2. This evidently got lost in the previous update... This replicates what upstream has already done in 1.4.2rc*.