Skip to content

Commit

Permalink
rdiff-backup: update and use alternate tmp dir (#4427) (#6049)
Browse files Browse the repository at this point in the history
* rdiff-backup: update and use alternate tmp dir (#4427)
- update rdiff-backup to v2.2.6
- next publish will include ARMv5 archs again
- use alternate tmp dir to fix #4427
- update cross/librsync to v2.3.4

* add expandvars to crossenv

* python.mk: Allow ADDITIONAL_CROSSENV_WHEELS for extra crossenv dep

(cherry picked from commit 5c16182)

* use ADDITIONAL_CROSSENV_WHEELS
- use solution of former #6040 to install expandvars into crossenv to build frozenlist
- revert install expandvars into crossenv in cross/python311/Makefile

* rdiff-backup: update requirements

* rdiff-backup: adjust requirements

- yarl >= 1.12.0 required for aiohttp==3.10.10

---------

Co-authored-by: Vincent Fortier <[email protected]>
  • Loading branch information
hgy59 and th0ma7 authored Nov 14, 2024
1 parent 94e0fd0 commit e5a3cc4
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 33 deletions.
10 changes: 10 additions & 0 deletions mk/spksrc.python.mk
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ PYTHON_DEPENDS := $(foreach cross,$(foreach pkg_name,$(shell $(MAKE) dependency-

# call-up pre-depend to prepare the shared python build environment
PRE_DEPEND_TARGET = python_pre_depend
ifneq ($(strip $(ADDITIONAL_CROSSENV_WHEELS)),)
POST_DEPEND_TARGET = python_post_depend
endif

else
ifneq ($(findstring $(ARCH),$(ARMv5_ARCHS) $(OLD_PPC_ARCHS)),$(ARCH))
Expand Down Expand Up @@ -86,3 +89,10 @@ python_pre_depend:
rm -fr work-*/$${pkgname}* work-*/.$${pkgname}-* ; \
fi ; \
done

.PHONY: python_post_depend
python_post_depend:
@$(MSG) "Install to crossenv: $(ADDITIONAL_CROSSENV_WHEELS)"
@. $(WORK_DIR)/crossenv/bin/activate ; \
$(RUN) build-pip --disable-pip-version-check install $(ADDITIONAL_CROSSENV_WHEELS) ; \
$(RUN) pip --disable-pip-version-check install $(ADDITIONAL_CROSSENV_WHEELS)
12 changes: 9 additions & 3 deletions spk/rdiff-backup/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
SPK_NAME = rdiff-backup
SPK_VERS = 2.2.5
SPK_REV = 5
SPK_VERS = 2.2.6
SPK_REV = 6
SPK_ICON = src/rdiff-backup.png

PYTHON_PACKAGE = python311
Expand All @@ -11,20 +11,26 @@ WHEELS = src/requirements-crossenv.txt src/requirements-pure.txt

DEPENDS = cross/librsync cross/attr cross/acl

# required to build frozenlist and yarl
ADDITIONAL_CROSSENV_WHEELS = expandvars==0.12.0

# [PyYAML]
DEPENDS += cross/libyaml

MAINTAINER = SynoCommunity
DESCRIPTION = Reverse differential backup tool, over a network or locally.
STARTABLE = no
DISPLAY_NAME = rdiff-backup
CHANGELOG = "1. Update to v2.2.5.<br/>2. Migrate to Python 3.11."
CHANGELOG = "1. Update to v2.2.6.<br/>2. Bring back support for ARMv5.<br/>3. Use alternate tmp dir."

HOMEPAGE = https://rdiff-backup.net/
LICENSE = GPLv2

SERVICE_SETUP = src/service-setup.sh

# https://github.com/SynoCommunity/spksrc/issues/4427
USE_ALTERNATE_TMPDIR = 1

SPK_USR_LOCAL_LINKS = bin:env/bin/rdiff-backup bin:env/bin/rdiff-backup-statistics

include ../../mk/spksrc.python.mk
19 changes: 9 additions & 10 deletions spk/rdiff-backup/src/requirements-crossenv.txt
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
rdiff-backup==2.2.5
rdiff-backup==2.2.6

aiohttp==3.8.5
charset-normalizer==3.2.0
coverage==7.2.7
frozenlist==1.4.0
multidict==6.0.4
aiohttp==3.10.10
charset-normalizer==3.4.0
coverage==7.6.3
frozenlist==1.5.0
multidict==6.1.0
pylibacl==0.7.0
pyxattr==0.8.1
yarl==1.9.2
yarl==1.15.3

# [psutil]
# Last known version to build on armv5/ppc
psutil==5.9.1
psutil==5.9.8

# [PyYAML]
# Depends: libyaml
PyYAML==6.0.1
PyYAML==6.0.2
39 changes: 19 additions & 20 deletions spk/rdiff-backup/src/requirements-pure.txt
Original file line number Diff line number Diff line change
@@ -1,40 +1,39 @@
# Snapshot using python 3.11 on Jul 22nd 2023
# Snapshot using python 3.11 on Nov 10th 2024
#aiohttp ==> crossenv
aiosignal==1.3.1
async-timeout==4.0.2
attrs==23.1.0
cachetools==5.3.1
async-timeout==5.0.1
attrs==24.2.0
cachetools==5.5.0
#certifi ==> py311
chardet==5.1.0
chardet==5.2.0
colorama==0.4.6
#coverage ==> crossenv
#distlib ==> py311
#filelock ==> py311
flake8==6.0.0
flake8==7.1.1
#frozenlist ==> crossenv
idna==3.4
idna==3.10
mccabe==0.7.0
#multidict ==> crossenv
packaging==23.1
packaging==24.2
#platformdirs ==> py311
pluggy==1.2.0
pluggy==1.5.0
#psutil ==> crossenv
py==1.11.0
pycodestyle==2.10.0
pyflakes==3.0.1
pycodestyle==2.12.1
pyflakes==3.2.0
#pylibacl ==> crossenv
pyparsing==3.1.0
pyproject-api==1.5.3
pyparsing==3.2.0
pyproject_api==1.8.0
#pyxattr ==> crossenv
#PyYAML ==> crossenv
#rdiff-backup ==> crossenv
requests==2.31.0
rqdb==1.0.11
setuptools-scm==7.1.0
requests==2.32.3
rqdb==1.6.1
#six ==> py311
tomli==2.0.1
tox==4.6.4
typing_extensions==4.7.1
urllib3==2.0.4
tomli==2.0.2
tox==4.23.2
typing_extensions==4.12.2
urllib3==2.2.3
#virtualenv ==> py311
#yarl ==> crossenv

0 comments on commit e5a3cc4

Please sign in to comment.