Skip to content

Commit

Permalink
update proxmox-backup to 2.4.2-2
Browse files Browse the repository at this point in the history
  • Loading branch information
wofferl committed Jun 27, 2023
1 parent 41e0d95 commit 58c1d68
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 37 deletions.
4 changes: 2 additions & 2 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -230,8 +230,8 @@ ${SUDO} apt install -y "${packages_install[@]}"

cd "${SOURCES}"

PROXMOX_BACKUP_VER="2.4.2-1"
PROXMOX_BACKUP_GIT="e5b6a0b38dd0da736292fb696f6c7d0ec2563c36"
PROXMOX_BACKUP_VER="2.4.2-2"
PROXMOX_BACKUP_GIT="891f6a6fe430e8c269e49cea0d878e96970ffc86"
PATHPATTERNS_GIT="8a0dce93d535ef04bfa9c8317edc0ef0216e9042" # 0.1.3-1
PROXMOX_ACME_RS_GIT="abc0bdd09d5c3501534510d49da0ae8fa5c05c05" # 0.4.0
PROXMOX_APT_GIT="8a7a719aec23ad98a00bb452f0ced4cbf88ba591" # 0.9.3-1
Expand Down
14 changes: 7 additions & 7 deletions patches/proxmox-backup-build.patch
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ index 3b5b6e48..50908c05 100644
+[source.vendored-sources]
+directory = "vendor"
diff --git a/Cargo.toml b/Cargo.toml
index 032060e0..14ee5288 100644
index 20c1e9c8..c0e13abe 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -241,31 +241,34 @@ proxmox-rrd.workspace = true
Expand Down Expand Up @@ -87,15 +87,15 @@ index 032060e0..14ee5288 100644
[features]
default = []
diff --git a/debian/control b/debian/control
index e1470752..13d713ff 100644
index 1b0c36f8..8c1712fa 100644
--- a/debian/control
+++ b/debian/control
@@ -2,133 +2,7 @@ Source: rust-proxmox-backup
Section: admin
Priority: optional
Build-Depends: debhelper (>= 12),
- dh-cargo (>= 24),
- cargo:native (>= 0.65.0-1),
- cargo:native (>= 0.65.0~),
- rustc:native,
libstd-rust-dev,
- librust-anyhow-1+default-dev,
Expand Down Expand Up @@ -225,7 +225,7 @@ index e1470752..13d713ff 100644
libfuse3-dev,
libsystemd-dev (>= 246-~~),
diff --git a/debian/rules b/debian/rules
index cf94692e..0f6bb703 100755
index 79366229..1ebd7460 100755
--- a/debian/rules
+++ b/debian/rules
@@ -4,12 +4,9 @@
Expand All @@ -241,10 +241,10 @@ index cf94692e..0f6bb703 100755
export CFLAGS CXXFLAGS CPPFLAGS LDFLAGS
export DEB_HOST_RUST_TYPE DEB_HOST_GNU_TYPE
export CARGO_HOME = $(CURDIR)/debian/cargo_home
@@ -22,7 +19,6 @@ export DEB_CARGO_PACKAGE=proxmox-backup

@@ -27,7 +24,6 @@ endif
override_dh_auto_configure:
@perl -ne 'if (/^version\s*=\s*"(\d+(?:\.\d+)+)"/) { my $$v_cargo = $$1; my $$v_deb = $$ENV{DEB_VERSION_UPSTREAM}; die "ERROR: d/changelog <-> Cargo.toml version mismatch: $$v_cargo != $$v_deb\n" if $$v_cargo ne $$v_deb; exit(0); }' Cargo.toml
@perl -ne 'if (/^version\s*=\s*"(\d+(?:\.\d+)+)"/) { my $$v_cargo = $$1; my $$v_deb = "$(DEB_VERSION_UPSTREAM)"; \
die "ERROR: d/changelog <-> Cargo.toml version mismatch: $$v_cargo != $$v_deb\n" if $$v_cargo ne $$v_deb; exit(0); }' Cargo.toml
- $(CARGO) prepare-debian $(CURDIR)/debian/cargo_registry --link-from-system
dh_auto_configure

Expand Down
47 changes: 19 additions & 28 deletions patches/proxmox-backup-client.patch
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
diff --git a/Makefile b/Makefile
index 83ab59bd..4a1e499b 100644
index b307009d..3473103a 100644
--- a/Makefile
+++ b/Makefile
@@ -4,32 +4,21 @@ include defines.mk
Expand Down Expand Up @@ -38,28 +38,19 @@ index 83ab59bd..4a1e499b 100644
- proxmox-restore-daemon
+RESTORE_BIN :=

SUBCRATES != cargo metadata --format-version=1 | jq -r .workspace_members'[]' | awk '{ print $$1 }' | grep -v '^proxmox-backup$$' | tr '\n' ' '
SUBCRATES != cargo metadata --no-deps --format-version=1 \
| jq -r .workspace_members'[]' \
@@ -61,8 +50,7 @@ RESTORE_DEB=proxmox-backup-file-restore_$(DEB_VERSION)_$(ARCH).deb
RESTORE_DBG_DEB=proxmox-backup-file-restore-dbgsym_$(DEB_VERSION)_$(ARCH).deb
DOC_DEB=$(PACKAGE)-docs_$(DEB_VERSION)_all.deb

@@ -59,8 +48,7 @@ RESTORE_DEB=proxmox-backup-file-restore_${DEB_VERSION}_${ARCH}.deb
RESTORE_DBG_DEB=proxmox-backup-file-restore-dbgsym_${DEB_VERSION}_${ARCH}.deb
DOC_DEB=${PACKAGE}-docs_${DEB_VERSION}_all.deb

-DEBS=${SERVER_DEB} ${SERVER_DBG_DEB} ${CLIENT_DEB} ${CLIENT_DBG_DEB} \
- ${RESTORE_DEB} ${RESTORE_DBG_DEB} ${DEBUG_DEB} ${DEBUG_DBG_DEB}
-DEBS=$(SERVER_DEB) $(SERVER_DBG_DEB) $(CLIENT_DEB) $(CLIENT_DBG_DEB) \
- $(RESTORE_DEB) $(RESTORE_DBG_DEB) $(DEBUG_DEB) $(DEBUG_DBG_DEB)
+DEBS=${CLIENT_DEB} ${CLIENT_DBG_DEB}

DSC = rust-${PACKAGE}_${DEB_VERSION}.dsc

@@ -77,7 +65,7 @@ $(SUBDIRS):
test:
#cargo test test_broadcast_future
#cargo test $(CARGO_BUILD_ARGS)
- $(CARGO) test $(tests) $(CARGO_BUILD_ARGS)
+ $(CARGO) test $(tests) $(CARGO_BUILD_ARGS)
DSC = rust-$(PACKAGE)_$(DEB_VERSION).dsc

doc:
$(CARGO) doc --workspace --no-deps $(CARGO_BUILD_ARGS)
@@ -152,30 +140,11 @@ cargo-build:
@@ -154,30 +142,11 @@ cargo-build:
$(COMPILED_BINS) $(COMPILEDIR)/dump-catalog-shell-cli $(COMPILEDIR)/docgen: .do-cargo-build
.do-cargo-build:
$(CARGO) build $(CARGO_BUILD_ARGS) \
Expand Down Expand Up @@ -91,7 +82,7 @@ index 83ab59bd..4a1e499b 100644
touch "$@"


@@ -184,10 +153,11 @@ lint:
@@ -186,10 +155,11 @@ lint:
cargo clippy -- -A clippy::all -D clippy::correctness

install: $(COMPILED_BINS)
Expand All @@ -104,7 +95,7 @@ index 83ab59bd..4a1e499b 100644
install -m644 zsh-completions/_$(i) $(DESTDIR)$(ZSH_COMPL_DEST)/ ;)
install -dm755 $(DESTDIR)$(SBINDIR)
$(foreach i,$(USR_SBIN), \
@@ -198,10 +168,10 @@ install: $(COMPILED_BINS)
@@ -200,10 +170,10 @@ install: $(COMPILED_BINS)
$(foreach i,$(RESTORE_BIN), \
install -m755 $(COMPILEDIR)/$(i) $(DESTDIR)$(LIBEXECDIR)/proxmox-backup/file-restore/ ;)
# install sg-tape-cmd as setuid binary
Expand All @@ -118,19 +109,19 @@ index 83ab59bd..4a1e499b 100644

.PHONY: upload
diff --git a/debian/control b/debian/control
index 286922b5..5ddeac2c 100644
index 8c1712fa..aee8f489 100644
--- a/debian/control
+++ b/debian/control
@@ -147,7 +21,7 @@ Build-Depends: debhelper (>= 12),
pve-eslint (>= 7.18.0-1),
@@ -21,7 +21,7 @@ Build-Depends: debhelper (>= 12),
pve-eslint (>= 7.18.0~),
python3-docutils,
python3-pygments,
- python3-sphinx <!nodoc>,
+ python3-sphinx,
rsync,
texlive-fonts-extra <!nodoc>,
texlive-fonts-recommended <!nodoc>,
@@ -160,34 +34,6 @@ Vcs-Browser: https://git.proxmox.com/?p=proxmox-backup.git;a=summary
@@ -34,34 +34,6 @@ Vcs-Browser: https://git.proxmox.com/?p=proxmox-backup.git;a=summary
Homepage: https://www.proxmox.com
Rules-Requires-Root: binary-targets

Expand Down Expand Up @@ -165,7 +156,7 @@ index 286922b5..5ddeac2c 100644
Package: proxmox-backup-client
Architecture: any
Depends: qrencode,
@@ -196,26 +42,3 @@ Depends: qrencode,
@@ -70,26 +42,3 @@ Depends: qrencode,
Description: Proxmox Backup Client tools
This package contains the Proxmox Backup client, which provides a
simple command line tool to create and restore backups.
Expand Down Expand Up @@ -193,10 +184,10 @@ index 286922b5..5ddeac2c 100644
- restoring individual files and folders from both host/container and VM/block
- device backups. It includes a block device restore driver using QEMU.
diff --git a/debian/rules b/debian/rules
index cf94692e..1309ea1f 100755
index 1ebd7460..c72dcd50 100755
--- a/debian/rules
+++ b/debian/rules
@@ -36,12 +36,13 @@ override_dh_missing:
@@ -37,12 +37,13 @@ override_dh_missing:
override_dh_auto_install:
dh_auto_install -- \
PROXY_USER=backup \
Expand Down

0 comments on commit 58c1d68

Please sign in to comment.