Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion dockerfiles/Dockerfile.build
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ RUN ./scripts/build/make.bash proxmox-mini-journalreader make_deb
RUN ./scripts/build/make.bash libjs-qrcodejs make_deb
RUN ./scripts/build/make.bash proxmox-acme make_deb
RUN ./scripts/build/make.bash pve-xtermjs "make_deb termproxy" "make_deb xterm.js"
RUN ./scripts/build/make.bash --rust 1.85 proxmox-backup make_deb
RUN ./scripts/build/make.bash proxmox-backup --rust 1.85 make_deb

#=================================

Expand Down
2 changes: 1 addition & 1 deletion dockerfiles/Dockerfile.client
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ ADD /repos /src/repos
# Build
ARG CROSS_ARCH=
RUN ./scripts/build/cross-compile.bash "$CROSS_ARCH"
RUN ./scripts/build/make.bash --keep proxmox-backup "make . ignore proxmox-backup-client-static BUILD_MODE=release COMPILEDIR=target/static/release CARGO_STATIC_CONFIG="
RUN ./scripts/build/make.bash proxmox-backup --keep "make . ignore proxmox-backup-client-static BUILD_MODE=release COMPILEDIR=target/static/release CARGO_STATIC_CONFIG="

# Bundle client
ARG VERSION
Expand Down
33 changes: 2 additions & 31 deletions repos/patches-arm32/proxmox-backup/platform.armhf.patch
Original file line number Diff line number Diff line change
@@ -1,22 +1,4 @@
From 08e19e66fab8280161495c81f688a330fc80e4f5 Mon Sep 17 00:00:00 2001
From: Kamil Trzcinski <[email protected]>
Date: Fri, 25 Jul 2025 22:04:22 +0200
Subject: [PATCH] arm32

---
pbs-client/src/pxar/create.rs | 10 +++++-----
pbs-client/src/pxar/extract.rs | 4 ++--
pbs-client/src/pxar/metadata.rs | 4 ++--
pbs-config/src/acl.rs | 7 +++----
pbs-config/src/user.rs | 7 +++----
pbs-datastore/src/chunk_store.rs | 4 ++--
pbs-datastore/src/fixed_index.rs | 6 +++---
pbs-fuse-loop/src/fuse_loop.rs | 4 ++--
pbs-pxar-fuse/src/lib.rs | 12 ++++++------
9 files changed, 28 insertions(+), 30 deletions(-)

diff --git a/pbs-client/src/pxar/create.rs b/pbs-client/src/pxar/create.rs
index 7f605a61..4a1a16be 100644
--- a/pbs-client/src/pxar/create.rs
+++ b/pbs-client/src/pxar/create.rs
@@ -79,7 +79,7 @@ fn detect_fs_type(fd: RawFd) -> Result<i64, Errno> {
Expand Down Expand Up @@ -65,7 +47,6 @@ index 7f605a61..4a1a16be 100644
..Default::default()
};
diff --git a/pbs-client/src/pxar/extract.rs b/pbs-client/src/pxar/extract.rs
index c4d0085c..dad3cd2f 100644
--- a/pbs-client/src/pxar/extract.rs
+++ b/pbs-client/src/pxar/extract.rs
@@ -727,7 +727,7 @@ impl Extractor {
Expand All @@ -87,7 +68,6 @@ index c4d0085c..dad3cd2f 100644
Err(nix::errno::Errno::EINTR) => true,
Err(err) => return Err(err).context("error setting file size"),
diff --git a/pbs-client/src/pxar/metadata.rs b/pbs-client/src/pxar/metadata.rs
index d03cf7e2..bf71679f 100644
--- a/pbs-client/src/pxar/metadata.rs
+++ b/pbs-client/src/pxar/metadata.rs
@@ -45,10 +45,10 @@ fn timestamp_to_update_timespec(mtime: &pxar::format::StatxTimestamp) -> [libc::
Expand All @@ -104,10 +84,9 @@ index d03cf7e2..bf71679f 100644
},
]
diff --git a/pbs-config/src/acl.rs b/pbs-config/src/acl.rs
index aca1f68f..671ca44c 100644
--- a/pbs-config/src/acl.rs
+++ b/pbs-config/src/acl.rs
@@ -731,8 +731,7 @@ pub fn cached_config() -> Result<Arc<AclTree>, Error> {
@@ -737,8 +737,7 @@ pub fn cached_config() -> Result<Arc<AclTree>, Error> {
let cache = CACHED_CONFIG.read().unwrap();
if let Some(ref config) = cache.data {
if let Some(stat) = stat {
Expand All @@ -117,7 +96,7 @@ index aca1f68f..671ca44c 100644
return Ok(config.clone());
}
} else if cache.last_mtime == 0 && cache.last_mtime_nsec == 0 {
@@ -746,8 +745,8 @@ pub fn cached_config() -> Result<Arc<AclTree>, Error> {
@@ -752,8 +751,8 @@ pub fn cached_config() -> Result<Arc<AclTree>, Error> {

let mut cache = CACHED_CONFIG.write().unwrap();
if let Some(stat) = stat {
Expand All @@ -129,7 +108,6 @@ index aca1f68f..671ca44c 100644
cache.data = Some(config.clone());

diff --git a/pbs-config/src/user.rs b/pbs-config/src/user.rs
index 08d141e6..1bff3c4f 100644
--- a/pbs-config/src/user.rs
+++ b/pbs-config/src/user.rs
@@ -96,8 +96,7 @@ pub fn cached_config() -> Result<Arc<SectionConfigData>, Error> {
Expand All @@ -154,7 +132,6 @@ index 08d141e6..1bff3c4f 100644
cache.data = Some(config.clone());

diff --git a/pbs-datastore/src/chunk_store.rs b/pbs-datastore/src/chunk_store.rs
index 3c59612b..0340d7f1 100644
--- a/pbs-datastore/src/chunk_store.rs
+++ b/pbs-datastore/src/chunk_store.rs
@@ -408,7 +408,7 @@ impl ChunkStore {
Expand All @@ -176,7 +153,6 @@ index 3c59612b..0340d7f1 100644
status.still_bad += 1;
} else {
diff --git a/pbs-datastore/src/fixed_index.rs b/pbs-datastore/src/fixed_index.rs
index 8d9173e8..ae79c045 100644
--- a/pbs-datastore/src/fixed_index.rs
+++ b/pbs-datastore/src/fixed_index.rs
@@ -111,7 +111,7 @@ impl FixedIndexReader {
Expand Down Expand Up @@ -207,7 +183,6 @@ index 8d9173e8..ae79c045 100644
}?
.as_ptr()
diff --git a/pbs-fuse-loop/src/fuse_loop.rs b/pbs-fuse-loop/src/fuse_loop.rs
index d55be3b0..711354bc 100644
--- a/pbs-fuse-loop/src/fuse_loop.rs
+++ b/pbs-fuse-loop/src/fuse_loop.rs
@@ -177,7 +177,7 @@ impl<R: AsyncRead + AsyncSeek + Unpin> FuseLoopSession<R> {
Expand All @@ -228,7 +203,6 @@ index d55be3b0..711354bc 100644
stat
}
diff --git a/pbs-pxar-fuse/src/lib.rs b/pbs-pxar-fuse/src/lib.rs
index 4322c06e..ccb0c17d 100644
--- a/pbs-pxar-fuse/src/lib.rs
+++ b/pbs-pxar-fuse/src/lib.rs
@@ -546,7 +546,7 @@ impl SessionImpl {
Expand Down Expand Up @@ -265,6 +239,3 @@ index 4322c06e..ccb0c17d 100644
stat.st_ctime_nsec = metadata.stat.mtime.nanos as _;
Ok(stat)
}
--
2.39.2

Original file line number Diff line number Diff line change
@@ -1,15 +1,4 @@
From a3cfcb6489bd2bb8e991ede9fd7a935a4ce9f995 Mon Sep 17 00:00:00 2001
From: Kamil Trzcinski <[email protected]>
Date: Fri, 25 Jul 2025 22:04:36 +0200
Subject: [PATCH] arm32

---
src/requests.rs | 8 ++++----
src/session.rs | 4 ++--
2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/requests.rs b/src/requests.rs
index 9bdab30..15fe804 100644
--- a/src/requests.rs
+++ b/src/requests.rs
@@ -362,7 +362,7 @@ impl ReaddirPlus {
Expand Down Expand Up @@ -49,7 +38,6 @@ index 9bdab30..15fe804 100644
None
}
diff --git a/src/session.rs b/src/session.rs
index 427ce46..02048c0 100644
--- a/src/session.rs
+++ b/src/session.rs
@@ -109,7 +109,7 @@ impl FuseData {
Expand All @@ -70,6 +58,3 @@ index 427ce46..02048c0 100644
)));
}

--
2.39.2

27 changes: 0 additions & 27 deletions repos/patches-arm32/proxmox-backup/proxmox/platform.armhf.patch
Original file line number Diff line number Diff line change
@@ -1,21 +1,4 @@
From 06fa463a208338ad397e9581759bb3c26f7f2ee2 Mon Sep 17 00:00:00 2001
From: Kamil Trzcinski <[email protected]>
Date: Fri, 25 Jul 2025 22:04:16 +0200
Subject: [PATCH] arm32

---
proxmox-access-control/src/acl.rs | 7 +++----
proxmox-access-control/src/user.rs | 8 +++++---
proxmox-shared-memory/src/lib.rs | 2 +-
proxmox-sys/src/crypt.rs | 2 +-
proxmox-sys/src/fs/mod.rs | 2 +-
proxmox-sys/src/linux/timer.rs | 4 ++--
proxmox-sys/src/process_locker.rs | 2 +-
proxmox-time/src/posix.rs | 6 ++++--
8 files changed, 18 insertions(+), 15 deletions(-)

diff --git a/proxmox-access-control/src/acl.rs b/proxmox-access-control/src/acl.rs
index b8041688..f6b4f456 100644
--- a/proxmox-access-control/src/acl.rs
+++ b/proxmox-access-control/src/acl.rs
@@ -596,8 +596,7 @@ pub fn cached_config() -> Result<Arc<AclTree>, Error> {
Expand All @@ -40,7 +23,6 @@ index b8041688..f6b4f456 100644
cache.data = Some(config.clone());

diff --git a/proxmox-access-control/src/user.rs b/proxmox-access-control/src/user.rs
index 95b70f25..bf0bb255 100644
--- a/proxmox-access-control/src/user.rs
+++ b/proxmox-access-control/src/user.rs
@@ -83,7 +83,9 @@ pub fn cached_config() -> Result<Arc<SectionConfigData>, Error> {
Expand All @@ -66,7 +48,6 @@ index 95b70f25..bf0bb255 100644
cache.data = Some(config.clone());

diff --git a/proxmox-shared-memory/src/lib.rs b/proxmox-shared-memory/src/lib.rs
index b067d1b9..e8a994a8 100644
--- a/proxmox-shared-memory/src/lib.rs
+++ b/proxmox-shared-memory/src/lib.rs
@@ -145,7 +145,7 @@ impl<T: Sized + Init> SharedMemory<T> {
Expand All @@ -79,7 +60,6 @@ index b067d1b9..e8a994a8 100644
// link the file into place:
let proc_path = format!("/proc/self/fd/{}\0", file.as_raw_fd());
diff --git a/proxmox-sys/src/crypt.rs b/proxmox-sys/src/crypt.rs
index 508b9c15..3b7ee7eb 100644
--- a/proxmox-sys/src/crypt.rs
+++ b/proxmox-sys/src/crypt.rs
@@ -112,7 +112,7 @@ pub fn crypt_gensalt(prefix: &str, count: u64, rbytes: &[u8]) -> Result<String,
Expand All @@ -92,7 +72,6 @@ index 508b9c15..3b7ee7eb 100644
rbytes.len().try_into()?,
output.as_mut_ptr(),
diff --git a/proxmox-sys/src/fs/mod.rs b/proxmox-sys/src/fs/mod.rs
index 752b75d2..4556eac0 100644
--- a/proxmox-sys/src/fs/mod.rs
+++ b/proxmox-sys/src/fs/mod.rs
@@ -170,7 +170,7 @@ pub fn fs_info<P: ?Sized + nix::NixPath>(path: &P) -> nix::Result<FileSystemInfo
Expand All @@ -105,7 +84,6 @@ index 752b75d2..4556eac0 100644
})
}
diff --git a/proxmox-sys/src/linux/timer.rs b/proxmox-sys/src/linux/timer.rs
index bb01dc81..0b0eccd1 100644
--- a/proxmox-sys/src/linux/timer.rs
+++ b/proxmox-sys/src/linux/timer.rs
@@ -106,8 +106,8 @@ fn opt_duration_to_timespec(v: Option<Duration>) -> libc::timespec {
Expand All @@ -120,7 +98,6 @@ index bb01dc81..0b0eccd1 100644
}
}
diff --git a/proxmox-sys/src/process_locker.rs b/proxmox-sys/src/process_locker.rs
index 65d2793a..d5a32ddb 100644
--- a/proxmox-sys/src/process_locker.rs
+++ b/proxmox-sys/src/process_locker.rs
@@ -160,7 +160,7 @@ impl ProcessLocker {
Expand All @@ -133,7 +110,6 @@ index 65d2793a..d5a32ddb 100644
Ok(guard)
}
diff --git a/proxmox-time/src/posix.rs b/proxmox-time/src/posix.rs
index c2146c47..e89876ea 100644
--- a/proxmox-time/src/posix.rs
+++ b/proxmox-time/src/posix.rs
@@ -15,7 +15,7 @@ pub fn timelocal(t: &mut libc::tm) -> Result<i64, Error> {
Expand Down Expand Up @@ -170,6 +146,3 @@ index c2146c47..e89876ea 100644
if libc::gmtime_r(&epoch, &mut result).is_null() {
bail!("libc::gmtime failed for '{epoch}'");
}
--
2.39.2

3 changes: 1 addition & 2 deletions repos/patches/proxmox-backup/0001-zstd-dynamic.patch
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
diff --git a/Cargo.toml b/Cargo.toml
index ea413328..b2980c73 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -160,7 +160,7 @@ udev = "0.9"
@@ -162,7 +162,7 @@ udev = "0.9"
url = "2.1"
walkdir = "2"
xdg = "2.2"
Expand Down
3 changes: 1 addition & 2 deletions repos/patches/proxmox-backup/debian-cargo-config.patch
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
diff --git a/debian/rules b/debian/rules
index aa4571ff..0fbb29e7 100755
--- a/debian/rules
+++ b/debian/rules
@@ -38,9 +38,9 @@ endif
@@ -37,9 +37,9 @@ endif
override_dh_auto_configure:
@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
Expand Down
1 change: 0 additions & 1 deletion repos/patches/proxmox-backup/fix-cargo.patch
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
diff --git a/debian/rules b/debian/rules
index ab48cce1..0a540d4f 100755
--- a/debian/rules
+++ b/debian/rules
@@ -18,7 +18,7 @@ STATIC_COMPILEDIR := $(STATIC_TARGET_DIR)/$(DEB_HOST_RUST_TYPE)/debug
Expand Down
1 change: 0 additions & 1 deletion repos/patches/proxmox-backup/fix-kernel-version.patch
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
diff --git a/www/panel/NodeInfo.js b/www/panel/NodeInfo.js
index a8673f6b..1ead89bd 100644
--- a/www/panel/NodeInfo.js
+++ b/www/panel/NodeInfo.js
@@ -150,7 +150,7 @@ Ext.define('PBS.NodeInfoPanel', {
Expand Down
1 change: 0 additions & 1 deletion repos/patches/proxmox-backup/hide-shell.patch
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
diff --git a/www/NavigationTree.js b/www/NavigationTree.js
index 649692c8..cec8d5a9 100644
--- a/www/NavigationTree.js
+++ b/www/NavigationTree.js
@@ -95,12 +95,6 @@ Ext.define('PBS.store.NavigationStore', {
Expand Down
7 changes: 2 additions & 5 deletions repos/patches/proxmox-backup/multi-arch.patch
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
diff --git a/debian/proxmox-backup-file-restore.install b/debian/proxmox-backup-file-restore.install
old mode 100644
new mode 100755
index 409988a3..8b4034bd
--- a/debian/proxmox-backup-file-restore.install
+++ b/debian/proxmox-backup-file-restore.install
@@ -1,4 +1,5 @@
Expand All @@ -14,15 +13,14 @@ index 409988a3..8b4034bd
diff --git a/debian/proxmox-backup-server.install b/debian/proxmox-backup-server.install
old mode 100644
new mode 100755
index 40d8459f..466bd621
--- a/debian/proxmox-backup-server.install
+++ b/debian/proxmox-backup-server.install
@@ -1,3 +1,4 @@
+#! /usr/bin/dh-exec
etc/pbs-enterprise.sources /etc/apt/sources.list.d/
etc/pbs-network-config-commit.service /usr/lib/systemd/system/
etc/proxmox-backup-banner.service /usr/lib/systemd/system/
etc/proxmox-backup-daily-update.service /usr/lib/systemd/system/
@@ -8,11 +9,11 @@ etc/[email protected] /usr/lib/systemd/system/
@@ -9,11 +10,11 @@ etc/[email protected] /usr/lib/systemd/system/
usr/bin/pmt
usr/bin/pmtx
usr/bin/proxmox-tape
Expand All @@ -40,7 +38,6 @@ index 40d8459f..466bd621
usr/sbin/proxmox-backup-debug
usr/sbin/proxmox-backup-manager
diff --git a/debian/rules b/debian/rules
index 0a540d4f..aa4571ff 100755
--- a/debian/rules
+++ b/debian/rules
@@ -2,6 +2,7 @@
Expand Down
1 change: 0 additions & 1 deletion repos/patches/proxmox-biome/any-arch.patch
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
diff --git a/debian/control b/debian/control
index bcfa86d0..83d2d6b4 100644
--- a/debian/control
+++ b/debian/control
@@ -7,7 +7,7 @@ Homepage: https://biomejs.dev/
Expand Down
1 change: 0 additions & 1 deletion repos/patches/proxmox-biome/config-toml.patch
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
diff --git a/Makefile b/Makefile
index 18e5ce27..7caf87b0 100644
--- a/Makefile
+++ b/Makefile
@@ -39,8 +39,8 @@ $(BUILDDIR):
Expand Down
1 change: 0 additions & 1 deletion repos/patches/proxmox-biome/makefile-arch.patch
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
diff --git a/Makefile b/Makefile
index 7caf87b0..7b398722 100644
--- a/Makefile
+++ b/Makefile
@@ -1,9 +1,10 @@
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
diff --git a/src/Makefile b/src/Makefile
index 6807b67..e64e066 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -6,7 +6,7 @@ MAN1_DIR ?= $(DESTDIR)/usr/share/man/man1
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
diff --git a/pve-rs/debian/control b/pve-rs/debian/control
index bca3c1e..eedce80 100644
--- a/pve-rs/debian/control
+++ b/pve-rs/debian/control
@@ -4,7 +4,6 @@ Priority: optional
Expand Down
1 change: 0 additions & 1 deletion repos/patches/proxmox-perl-rs/no-cargo.patch
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
diff --git a/pve-rs/debian/rules b/pve-rs/debian/rules
index bddb889..4e15f38 100755
--- a/pve-rs/debian/rules
+++ b/pve-rs/debian/rules
@@ -21,5 +21,5 @@ export DEB_CARGO_PACKAGE=pve-rs
Expand Down
2 changes: 0 additions & 2 deletions repos/patches/pve-common/mknodat.patch
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
diff --git a/src/PVE/Syscall.pm b/src/PVE/Syscall.pm
index 68e16fe..503d3fe 100644
--- a/src/PVE/Syscall.pm
+++ b/src/PVE/Syscall.pm
@@ -17,7 +17,7 @@ BEGIN {
Expand All @@ -12,7 +11,6 @@ index 68e16fe..503d3fe 100644
setresuid => &SYS_setresuid,
fallocate => &SYS_fallocate,
diff --git a/src/PVE/Tools.pm b/src/PVE/Tools.pm
index fe9616e..e9b7578 100644
--- a/src/PVE/Tools.pm
+++ b/src/PVE/Tools.pm
@@ -1817,7 +1817,7 @@ sub mkdirat($$$) {
Expand Down
1 change: 0 additions & 1 deletion repos/patches/pve-common/remove-libproxmox-acme-perl.patch
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
diff --git a/debian/control b/debian/control
index ac4cd66..136839b 100644
--- a/debian/control
+++ b/debian/control
@@ -35,7 +35,6 @@ Depends: libanyevent-perl,
Expand Down
1 change: 0 additions & 1 deletion repos/patches/pve-xtermjs/no-cargo.patch
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
diff --git a/termproxy/debian/rules b/termproxy/debian/rules
index add090b..f25093f 100755
--- a/termproxy/debian/rules
+++ b/termproxy/debian/rules
@@ -23,7 +23,7 @@ export DEB_CARGO_PACKAGE=proxmox-termproxy
Expand Down
1 change: 0 additions & 1 deletion repos/patches/pve-xtermjs/no-docs.patch
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
diff --git a/termproxy/debian/docs b/termproxy/debian/docs
deleted file mode 100644
index 8696672..0000000
--- a/termproxy/debian/docs
+++ /dev/null
@@ -1 +0,0 @@
Expand Down
2 changes: 1 addition & 1 deletion scripts/build/apply-patches.bash
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ for dir; do
continue
fi

git -C "$repo_name" diff --cached > "$patch"
git -C "$repo_name" diff --cached | grep -v "^index " > "$patch"
git -C "$repo_name" commit -m "$(basename $patch)"
done < <(find "$dir" -name "*.patch" | sort)
done
Loading