archivers/py-borgbackup: Allow build with py-msgpack 1.1.1
- Bump PORTREVISION for package change
Obtained from: 862f19aab9
This commit is contained in:
parent
079686137a
commit
62cf0672a8
@ -1,6 +1,6 @@
|
||||
PORTNAME= borgbackup
|
||||
DISTVERSION= 1.4.1
|
||||
PORTREVISION= 0
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= archivers python
|
||||
MASTER_SITES= PYPI
|
||||
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
||||
@ -13,7 +13,7 @@ LICENSE= BSD3CLAUSE
|
||||
LICENSE_FILE= ${WRKSRC}/LICENSE
|
||||
|
||||
# note that borgbackup pins the msgpack version range per patchlevel version!
|
||||
_BB_DEPENDS= ${PYTHON_PKGNAMEPREFIX}msgpack>=1.0.3<1.1.1:devel/py-msgpack@${PY_FLAVOR}
|
||||
_BB_DEPENDS= ${PYTHON_PKGNAMEPREFIX}msgpack>=1.0.3<1.1.1_99:devel/py-msgpack@${PY_FLAVOR}
|
||||
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pkgconfig>=0:devel/py-pkgconfig@${PY_FLAVOR} \
|
||||
${PYTHON_PKGNAMEPREFIX}setuptools-scm>=1.7:devel/py-setuptools-scm@${PY_FLAVOR} \
|
||||
${_BB_DEPENDS}
|
||||
@ -28,7 +28,7 @@ TEST_DEPENDS= ${RUN_DEPENDS} \
|
||||
${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR} \
|
||||
fakeroot:security/fakeroot
|
||||
|
||||
USES= pkgconfig python:3.9+ ssl
|
||||
USES= pkgconfig python ssl
|
||||
USE_PYTHON= autoplist distutils
|
||||
MAKE_ENV= BORG_OPENSSL_PREFIX=${OPENSSLBASE}
|
||||
|
||||
|
||||
24
archivers/py-borgbackup/files/patch-msgpack
Normal file
24
archivers/py-borgbackup/files/patch-msgpack
Normal file
@ -0,0 +1,24 @@
|
||||
Obtained from: https://github.com/borgbackup/borg/commit/862f19aab9780b91424bb7f9319d915751d0024f
|
||||
|
||||
--- pyproject.toml.orig 2025-04-18 19:16:24 UTC
|
||||
+++ pyproject.toml
|
||||
@@ -35,7 +35,7 @@ dependencies = [
|
||||
# Please note:
|
||||
# using any other msgpack version is not supported by borg development and
|
||||
# any feedback related to issues caused by this will be ignored.
|
||||
- "msgpack >=1.0.3, <=1.1.0",
|
||||
+ "msgpack >=1.0.3, <=1.1.1",
|
||||
"packaging",
|
||||
]
|
||||
|
||||
--- src/borg/helpers/msgpack.py.orig 2025-04-18 19:16:24 UTC
|
||||
+++ src/borg/helpers/msgpack.py
|
||||
@@ -137,7 +137,7 @@ def is_supported_msgpack():
|
||||
def is_supported_msgpack():
|
||||
# DO NOT CHANGE OR REMOVE! See also requirements and comments in pyproject.toml.
|
||||
import msgpack
|
||||
- return (1, 0, 3) <= msgpack.version <= (1, 1, 0) and \
|
||||
+ return (1, 0, 3) <= msgpack.version <= (1, 1, 1) and \
|
||||
msgpack.version not in [] # < add bad releases here to deny list
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user