From da98dea0d2cec7f8a709def0467d31ff0ed865bd Mon Sep 17 00:00:00 2001 From: Wolfgang Date: Sun, 26 May 2024 20:22:42 +0000 Subject: [PATCH] update proxmox-backup-3.2.3-1 --- build.sh | 10 ++++++--- patches/pbs3/proxmox-arm64.patch | 22 +++++++++++++++++++ patches/pbs3/proxmox-backup-acme.patch | 27 ++++++++++++++++++++++++ patches/pbs3/proxmox-backup-client.patch | 23 +++++++++++++------- 4 files changed, 71 insertions(+), 11 deletions(-) create mode 100644 patches/pbs3/proxmox-arm64.patch create mode 100644 patches/pbs3/proxmox-backup-acme.patch diff --git a/build.sh b/build.sh index 4d5f33d..8d5c5d1 100755 --- a/build.sh +++ b/build.sh @@ -285,9 +285,9 @@ EOF cd "${SOURCES}" if [ "${PBSVERSION}" = "pbs3" ]; then - PROXMOX_BACKUP_VER="3.2.2-1" - PROXMOX_BACKUP_GIT="630be1a577119a5f9438c9cb0fcebd47c93d25c8" - PROXMOX_GIT="0af0bad74226e3b829327432f7bbf65da6ba453f" + PROXMOX_BACKUP_VER="3.2.3-1" + PROXMOX_BACKUP_GIT="1d4afdccea36781a0441e32f538414b24df0c7e2" + PROXMOX_GIT="aae8a03dc4e119b5930ef36a68fb7e50f446eeca" PATHPATTERNS_GIT="281894a5b66099e919d167cd5f0644fff6aca234" # 0.3.0-1 else PROXMOX_BACKUP_VER="2.4.6-1" @@ -302,6 +302,9 @@ PXAR_GIT="29cbeed3e1b52f5eef455cdfa8b5e93f4e3e88f5" # 0.10.2-1 if [ ! -e "${PACKAGES}/proxmox-backup-${BUILD_PACKAGE}_${PROXMOX_BACKUP_VER}_${PACKAGE_ARCH}.deb" ]; then git_clone_or_fetch https://git.proxmox.com/git/proxmox.git git_clean_and_checkout ${PROXMOX_GIT} proxmox + if [ "${PBSVERSION}" = "pbs3" -a "${PACKAGE_ARCH}" = "arm64" ]; then + patch -p1 -d proxmox/ < "${PATCHES}/${PBSVERSION}/proxmox-arm64.patch" + fi git_clone_or_fetch https://git.proxmox.com/git/proxmox-fuse.git git_clean_and_checkout ${PROMXOX_FUSE_GIT} proxmox-fuse git_clone_or_fetch https://git.proxmox.com/git/pxar.git @@ -321,6 +324,7 @@ if [ ! -e "${PACKAGES}/proxmox-backup-${BUILD_PACKAGE}_${PROXMOX_BACKUP_VER}_${P sed -i 's/\(patchelf\|xindy\)\b/\1:native/' proxmox-backup/debian/control sed -i 's/\(latexmk\|proxmox-widget-toolkit-dev\|pve-eslint\|python3-sphinx\)/\1:all/' proxmox-backup/debian/control patch -p1 -d proxmox-backup/ < "${PATCHES}/${PBSVERSION}/proxmox-backup-build.patch" + [ "${PBSVERSION}" = "pbs3" ] && patch -p1 -d proxmox-backup/ < "${PATCHES}/${PBSVERSION}/proxmox-backup-acme.patch" if [ "${BUILD_PACKAGE}" = "client" ]; then patch -p1 -d proxmox-backup/ < "${PATCHES}/${PBSVERSION}/proxmox-backup-client.patch" fi diff --git a/patches/pbs3/proxmox-arm64.patch b/patches/pbs3/proxmox-arm64.patch new file mode 100644 index 0000000..6384a2b --- /dev/null +++ b/patches/pbs3/proxmox-arm64.patch @@ -0,0 +1,22 @@ +diff --git a/proxmox-sys/src/crypt.rs b/proxmox-sys/src/crypt.rs +index 3313f668..c254e761 100644 +--- a/proxmox-sys/src/crypt.rs ++++ b/proxmox-sys/src/crypt.rs +@@ -71,7 +71,7 @@ pub fn crypt(password: &[u8], salt: &[u8]) -> Result { + // > output field of their data argument, and crypt writes an invalid hash to its static + // > storage area. This string will be shorter than 13 characters, will begin with a ‘*’, + // > and will not compare equal to setting. +- if data.output.first().is_none() || Some(&('*' as i8)) == data.output.first() { ++ if data.output.first().is_none() || Some(&('*' as u8)) == data.output.first() { + bail!("internal error: crypt_r returned invalid hash"); + } + CStr::from_ptr(&data.output as *const _) +@@ -133,7 +133,7 @@ pub fn crypt_gensalt(prefix: &str, count: u64, rbytes: &[u8]) -> Result, texlive-fonts-recommended , -@@ -160,56 +34,9 @@ Vcs-Browser: https://git.proxmox.com/?p=proxmox-backup.git;a=summary +@@ -34,56 +34,9 @@ Vcs-Browser: https://git.proxmox.com/?p=proxmox-backup.git;a=summary Homepage: https://www.proxmox.com Rules-Requires-Root: binary-targets @@ -206,10 +209,10 @@ index 79c1ad76..95b1b1bf 100755 override_dh_fixperms: dh_fixperms --exclude sg-tape-cmd diff --git a/docs/Makefile b/docs/Makefile -index b06badff..32b51556 100644 +index d6c61c86..245badbd 100644 --- a/docs/Makefile +++ b/docs/Makefile -@@ -1,49 +1,15 @@ +@@ -1,53 +1,15 @@ include ../defines.mk GENERATED_SYNOPSIS := \ @@ -223,6 +226,8 @@ index b06badff..32b51556 100644 - pmtx/synopsis.rst \ - pmt/synopsis.rst \ - config/media-pool/config.rst \ +- config/notifications/config.rst \ +- config/notifications-priv/config.rst \ - config/tape/config.rst \ - config/tape-job/config.rst \ - config/user/config.rst \ @@ -256,7 +261,9 @@ index b06badff..32b51556 100644 - sync.cfg.5 \ - verification.cfg.5 \ - datastore.cfg.5 \ -- domains.cfg.5 +- domains.cfg.5 \ +- notifications.cfg.5 \ +- notifications-priv.cfg.5 \ + proxmox-backup-client.1 + +MAN5_PAGES :=